Lines Matching refs:src
230 void pvrdma_qp_cap_to_ib(struct ib_qp_cap *dst, const struct pvrdma_qp_cap *src) in pvrdma_qp_cap_to_ib() argument
232 dst->max_send_wr = src->max_send_wr; in pvrdma_qp_cap_to_ib()
233 dst->max_recv_wr = src->max_recv_wr; in pvrdma_qp_cap_to_ib()
234 dst->max_send_sge = src->max_send_sge; in pvrdma_qp_cap_to_ib()
235 dst->max_recv_sge = src->max_recv_sge; in pvrdma_qp_cap_to_ib()
236 dst->max_inline_data = src->max_inline_data; in pvrdma_qp_cap_to_ib()
239 void ib_qp_cap_to_pvrdma(struct pvrdma_qp_cap *dst, const struct ib_qp_cap *src) in ib_qp_cap_to_pvrdma() argument
241 dst->max_send_wr = src->max_send_wr; in ib_qp_cap_to_pvrdma()
242 dst->max_recv_wr = src->max_recv_wr; in ib_qp_cap_to_pvrdma()
243 dst->max_send_sge = src->max_send_sge; in ib_qp_cap_to_pvrdma()
244 dst->max_recv_sge = src->max_recv_sge; in ib_qp_cap_to_pvrdma()
245 dst->max_inline_data = src->max_inline_data; in ib_qp_cap_to_pvrdma()
248 void pvrdma_gid_to_ib(union ib_gid *dst, const union pvrdma_gid *src) in pvrdma_gid_to_ib() argument
251 memcpy(dst, src, sizeof(*src)); in pvrdma_gid_to_ib()
254 void ib_gid_to_pvrdma(union pvrdma_gid *dst, const union ib_gid *src) in ib_gid_to_pvrdma() argument
257 memcpy(dst, src, sizeof(*src)); in ib_gid_to_pvrdma()
261 const struct pvrdma_global_route *src) in pvrdma_global_route_to_ib() argument
263 pvrdma_gid_to_ib(&dst->dgid, &src->dgid); in pvrdma_global_route_to_ib()
264 dst->flow_label = src->flow_label; in pvrdma_global_route_to_ib()
265 dst->sgid_index = src->sgid_index; in pvrdma_global_route_to_ib()
266 dst->hop_limit = src->hop_limit; in pvrdma_global_route_to_ib()
267 dst->traffic_class = src->traffic_class; in pvrdma_global_route_to_ib()
271 const struct ib_global_route *src) in ib_global_route_to_pvrdma() argument
273 ib_gid_to_pvrdma(&dst->dgid, &src->dgid); in ib_global_route_to_pvrdma()
274 dst->flow_label = src->flow_label; in ib_global_route_to_pvrdma()
275 dst->sgid_index = src->sgid_index; in ib_global_route_to_pvrdma()
276 dst->hop_limit = src->hop_limit; in ib_global_route_to_pvrdma()
277 dst->traffic_class = src->traffic_class; in ib_global_route_to_pvrdma()
281 const struct pvrdma_ah_attr *src) in pvrdma_ah_attr_to_rdma() argument
284 pvrdma_global_route_to_ib(rdma_ah_retrieve_grh(dst), &src->grh); in pvrdma_ah_attr_to_rdma()
285 rdma_ah_set_dlid(dst, src->dlid); in pvrdma_ah_attr_to_rdma()
286 rdma_ah_set_sl(dst, src->sl); in pvrdma_ah_attr_to_rdma()
287 rdma_ah_set_path_bits(dst, src->src_path_bits); in pvrdma_ah_attr_to_rdma()
288 rdma_ah_set_static_rate(dst, src->static_rate); in pvrdma_ah_attr_to_rdma()
289 rdma_ah_set_ah_flags(dst, src->ah_flags); in pvrdma_ah_attr_to_rdma()
290 rdma_ah_set_port_num(dst, src->port_num); in pvrdma_ah_attr_to_rdma()
291 memcpy(dst->roce.dmac, &src->dmac, ETH_ALEN); in pvrdma_ah_attr_to_rdma()
295 const struct rdma_ah_attr *src) in rdma_ah_attr_to_pvrdma() argument
297 ib_global_route_to_pvrdma(&dst->grh, rdma_ah_read_grh(src)); in rdma_ah_attr_to_pvrdma()
298 dst->dlid = rdma_ah_get_dlid(src); in rdma_ah_attr_to_pvrdma()
299 dst->sl = rdma_ah_get_sl(src); in rdma_ah_attr_to_pvrdma()
300 dst->src_path_bits = rdma_ah_get_path_bits(src); in rdma_ah_attr_to_pvrdma()
301 dst->static_rate = rdma_ah_get_static_rate(src); in rdma_ah_attr_to_pvrdma()
302 dst->ah_flags = rdma_ah_get_ah_flags(src); in rdma_ah_attr_to_pvrdma()
303 dst->port_num = rdma_ah_get_port_num(src); in rdma_ah_attr_to_pvrdma()
304 memcpy(&dst->dmac, src->roce.dmac, sizeof(dst->dmac)); in rdma_ah_attr_to_pvrdma()