Lines Matching refs:opa
213 struct sa_path_rec_opa opa; member
245 struct sa_path_rec *opa) in path_conv_opa_to_ib() argument
247 if ((be32_to_cpu(opa->opa.dlid) >= in path_conv_opa_to_ib()
249 (be32_to_cpu(opa->opa.slid) >= in path_conv_opa_to_ib()
253 = OPA_MAKE_ID(be32_to_cpu(opa->opa.dlid)); in path_conv_opa_to_ib()
255 = opa->dgid.global.subnet_prefix; in path_conv_opa_to_ib()
257 = OPA_MAKE_ID(be32_to_cpu(opa->opa.slid)); in path_conv_opa_to_ib()
259 = opa->dgid.global.subnet_prefix; in path_conv_opa_to_ib()
264 ib->ib.dlid = htons(ntohl(opa->opa.dlid)); in path_conv_opa_to_ib()
265 ib->ib.slid = htons(ntohl(opa->opa.slid)); in path_conv_opa_to_ib()
267 ib->service_id = opa->service_id; in path_conv_opa_to_ib()
268 ib->ib.raw_traffic = opa->opa.raw_traffic; in path_conv_opa_to_ib()
271 static inline void path_conv_ib_to_opa(struct sa_path_rec *opa, in path_conv_ib_to_opa() argument
284 opa->opa.slid = slid; in path_conv_ib_to_opa()
285 opa->opa.dlid = dlid; in path_conv_ib_to_opa()
286 opa->service_id = ib->service_id; in path_conv_ib_to_opa()
287 opa->opa.raw_traffic = ib->ib.raw_traffic; in path_conv_ib_to_opa()
603 rec->opa.slid = cpu_to_be32(slid); in sa_path_set_slid()
611 rec->opa.dlid = cpu_to_be32(dlid); in sa_path_set_dlid()
620 rec->opa.raw_traffic = raw_traffic; in sa_path_set_raw_traffic()
628 return rec->opa.slid; in sa_path_get_slid()
637 return rec->opa.dlid; in sa_path_get_dlid()
646 return rec->opa.raw_traffic; in sa_path_get_raw_traffic()