Lines Matching refs:src

224 void pvrdma_qp_cap_to_ib(struct ib_qp_cap *dst, const struct pvrdma_qp_cap *src)  in pvrdma_qp_cap_to_ib()  argument
226 dst->max_send_wr = src->max_send_wr; in pvrdma_qp_cap_to_ib()
227 dst->max_recv_wr = src->max_recv_wr; in pvrdma_qp_cap_to_ib()
228 dst->max_send_sge = src->max_send_sge; in pvrdma_qp_cap_to_ib()
229 dst->max_recv_sge = src->max_recv_sge; in pvrdma_qp_cap_to_ib()
230 dst->max_inline_data = src->max_inline_data; in pvrdma_qp_cap_to_ib()
233 void ib_qp_cap_to_pvrdma(struct pvrdma_qp_cap *dst, const struct ib_qp_cap *src) in ib_qp_cap_to_pvrdma() argument
235 dst->max_send_wr = src->max_send_wr; in ib_qp_cap_to_pvrdma()
236 dst->max_recv_wr = src->max_recv_wr; in ib_qp_cap_to_pvrdma()
237 dst->max_send_sge = src->max_send_sge; in ib_qp_cap_to_pvrdma()
238 dst->max_recv_sge = src->max_recv_sge; in ib_qp_cap_to_pvrdma()
239 dst->max_inline_data = src->max_inline_data; in ib_qp_cap_to_pvrdma()
242 void pvrdma_gid_to_ib(union ib_gid *dst, const union pvrdma_gid *src) in pvrdma_gid_to_ib() argument
245 memcpy(dst, src, sizeof(*src)); in pvrdma_gid_to_ib()
248 void ib_gid_to_pvrdma(union pvrdma_gid *dst, const union ib_gid *src) in ib_gid_to_pvrdma() argument
251 memcpy(dst, src, sizeof(*src)); in ib_gid_to_pvrdma()
255 const struct pvrdma_global_route *src) in pvrdma_global_route_to_ib() argument
257 pvrdma_gid_to_ib(&dst->dgid, &src->dgid); in pvrdma_global_route_to_ib()
258 dst->flow_label = src->flow_label; in pvrdma_global_route_to_ib()
259 dst->sgid_index = src->sgid_index; in pvrdma_global_route_to_ib()
260 dst->hop_limit = src->hop_limit; in pvrdma_global_route_to_ib()
261 dst->traffic_class = src->traffic_class; in pvrdma_global_route_to_ib()
265 const struct ib_global_route *src) in ib_global_route_to_pvrdma() argument
267 ib_gid_to_pvrdma(&dst->dgid, &src->dgid); in ib_global_route_to_pvrdma()
268 dst->flow_label = src->flow_label; in ib_global_route_to_pvrdma()
269 dst->sgid_index = src->sgid_index; in ib_global_route_to_pvrdma()
270 dst->hop_limit = src->hop_limit; in ib_global_route_to_pvrdma()
271 dst->traffic_class = src->traffic_class; in ib_global_route_to_pvrdma()
275 const struct pvrdma_ah_attr *src) in pvrdma_ah_attr_to_rdma() argument
278 pvrdma_global_route_to_ib(rdma_ah_retrieve_grh(dst), &src->grh); in pvrdma_ah_attr_to_rdma()
279 rdma_ah_set_dlid(dst, src->dlid); in pvrdma_ah_attr_to_rdma()
280 rdma_ah_set_sl(dst, src->sl); in pvrdma_ah_attr_to_rdma()
281 rdma_ah_set_path_bits(dst, src->src_path_bits); in pvrdma_ah_attr_to_rdma()
282 rdma_ah_set_static_rate(dst, src->static_rate); in pvrdma_ah_attr_to_rdma()
283 rdma_ah_set_ah_flags(dst, src->ah_flags); in pvrdma_ah_attr_to_rdma()
284 rdma_ah_set_port_num(dst, src->port_num); in pvrdma_ah_attr_to_rdma()
285 memcpy(dst->roce.dmac, &src->dmac, ETH_ALEN); in pvrdma_ah_attr_to_rdma()
289 const struct rdma_ah_attr *src) in rdma_ah_attr_to_pvrdma() argument
291 ib_global_route_to_pvrdma(&dst->grh, rdma_ah_read_grh(src)); in rdma_ah_attr_to_pvrdma()
292 dst->dlid = rdma_ah_get_dlid(src); in rdma_ah_attr_to_pvrdma()
293 dst->sl = rdma_ah_get_sl(src); in rdma_ah_attr_to_pvrdma()
294 dst->src_path_bits = rdma_ah_get_path_bits(src); in rdma_ah_attr_to_pvrdma()
295 dst->static_rate = rdma_ah_get_static_rate(src); in rdma_ah_attr_to_pvrdma()
296 dst->ah_flags = rdma_ah_get_ah_flags(src); in rdma_ah_attr_to_pvrdma()
297 dst->port_num = rdma_ah_get_port_num(src); in rdma_ah_attr_to_pvrdma()
298 memcpy(&dst->dmac, src->roce.dmac, sizeof(dst->dmac)); in rdma_ah_attr_to_pvrdma()