Lines Matching refs:src

225 void pvrdma_qp_cap_to_ib(struct ib_qp_cap *dst, const struct pvrdma_qp_cap *src)  in pvrdma_qp_cap_to_ib()  argument
227 dst->max_send_wr = src->max_send_wr; in pvrdma_qp_cap_to_ib()
228 dst->max_recv_wr = src->max_recv_wr; in pvrdma_qp_cap_to_ib()
229 dst->max_send_sge = src->max_send_sge; in pvrdma_qp_cap_to_ib()
230 dst->max_recv_sge = src->max_recv_sge; in pvrdma_qp_cap_to_ib()
231 dst->max_inline_data = src->max_inline_data; in pvrdma_qp_cap_to_ib()
234 void ib_qp_cap_to_pvrdma(struct pvrdma_qp_cap *dst, const struct ib_qp_cap *src) in ib_qp_cap_to_pvrdma() argument
236 dst->max_send_wr = src->max_send_wr; in ib_qp_cap_to_pvrdma()
237 dst->max_recv_wr = src->max_recv_wr; in ib_qp_cap_to_pvrdma()
238 dst->max_send_sge = src->max_send_sge; in ib_qp_cap_to_pvrdma()
239 dst->max_recv_sge = src->max_recv_sge; in ib_qp_cap_to_pvrdma()
240 dst->max_inline_data = src->max_inline_data; in ib_qp_cap_to_pvrdma()
243 void pvrdma_gid_to_ib(union ib_gid *dst, const union pvrdma_gid *src) in pvrdma_gid_to_ib() argument
246 memcpy(dst, src, sizeof(*src)); in pvrdma_gid_to_ib()
249 void ib_gid_to_pvrdma(union pvrdma_gid *dst, const union ib_gid *src) in ib_gid_to_pvrdma() argument
252 memcpy(dst, src, sizeof(*src)); in ib_gid_to_pvrdma()
256 const struct pvrdma_global_route *src) in pvrdma_global_route_to_ib() argument
258 pvrdma_gid_to_ib(&dst->dgid, &src->dgid); in pvrdma_global_route_to_ib()
259 dst->flow_label = src->flow_label; in pvrdma_global_route_to_ib()
260 dst->sgid_index = src->sgid_index; in pvrdma_global_route_to_ib()
261 dst->hop_limit = src->hop_limit; in pvrdma_global_route_to_ib()
262 dst->traffic_class = src->traffic_class; in pvrdma_global_route_to_ib()
266 const struct ib_global_route *src) in ib_global_route_to_pvrdma() argument
268 ib_gid_to_pvrdma(&dst->dgid, &src->dgid); in ib_global_route_to_pvrdma()
269 dst->flow_label = src->flow_label; in ib_global_route_to_pvrdma()
270 dst->sgid_index = src->sgid_index; in ib_global_route_to_pvrdma()
271 dst->hop_limit = src->hop_limit; in ib_global_route_to_pvrdma()
272 dst->traffic_class = src->traffic_class; in ib_global_route_to_pvrdma()
276 const struct pvrdma_ah_attr *src) in pvrdma_ah_attr_to_rdma() argument
279 pvrdma_global_route_to_ib(rdma_ah_retrieve_grh(dst), &src->grh); in pvrdma_ah_attr_to_rdma()
280 rdma_ah_set_dlid(dst, src->dlid); in pvrdma_ah_attr_to_rdma()
281 rdma_ah_set_sl(dst, src->sl); in pvrdma_ah_attr_to_rdma()
282 rdma_ah_set_path_bits(dst, src->src_path_bits); in pvrdma_ah_attr_to_rdma()
283 rdma_ah_set_static_rate(dst, src->static_rate); in pvrdma_ah_attr_to_rdma()
284 rdma_ah_set_ah_flags(dst, src->ah_flags); in pvrdma_ah_attr_to_rdma()
285 rdma_ah_set_port_num(dst, src->port_num); in pvrdma_ah_attr_to_rdma()
286 memcpy(dst->roce.dmac, &src->dmac, ETH_ALEN); in pvrdma_ah_attr_to_rdma()
290 const struct rdma_ah_attr *src) in rdma_ah_attr_to_pvrdma() argument
292 ib_global_route_to_pvrdma(&dst->grh, rdma_ah_read_grh(src)); in rdma_ah_attr_to_pvrdma()
293 dst->dlid = rdma_ah_get_dlid(src); in rdma_ah_attr_to_pvrdma()
294 dst->sl = rdma_ah_get_sl(src); in rdma_ah_attr_to_pvrdma()
295 dst->src_path_bits = rdma_ah_get_path_bits(src); in rdma_ah_attr_to_pvrdma()
296 dst->static_rate = rdma_ah_get_static_rate(src); in rdma_ah_attr_to_pvrdma()
297 dst->ah_flags = rdma_ah_get_ah_flags(src); in rdma_ah_attr_to_pvrdma()
298 dst->port_num = rdma_ah_get_port_num(src); in rdma_ah_attr_to_pvrdma()
299 memcpy(&dst->dmac, src->roce.dmac, sizeof(dst->dmac)); in rdma_ah_attr_to_pvrdma()