Lines Matching refs:opa
186 struct sa_path_rec_opa opa; member
218 struct sa_path_rec *opa) in path_conv_opa_to_ib() argument
220 if ((be32_to_cpu(opa->opa.dlid) >= in path_conv_opa_to_ib()
222 (be32_to_cpu(opa->opa.slid) >= in path_conv_opa_to_ib()
226 = OPA_MAKE_ID(be32_to_cpu(opa->opa.dlid)); in path_conv_opa_to_ib()
228 = opa->dgid.global.subnet_prefix; in path_conv_opa_to_ib()
230 = OPA_MAKE_ID(be32_to_cpu(opa->opa.slid)); in path_conv_opa_to_ib()
232 = opa->dgid.global.subnet_prefix; in path_conv_opa_to_ib()
237 ib->ib.dlid = htons(ntohl(opa->opa.dlid)); in path_conv_opa_to_ib()
238 ib->ib.slid = htons(ntohl(opa->opa.slid)); in path_conv_opa_to_ib()
240 ib->service_id = opa->service_id; in path_conv_opa_to_ib()
241 ib->ib.raw_traffic = opa->opa.raw_traffic; in path_conv_opa_to_ib()
244 static inline void path_conv_ib_to_opa(struct sa_path_rec *opa, in path_conv_ib_to_opa() argument
257 opa->opa.slid = slid; in path_conv_ib_to_opa()
258 opa->opa.dlid = dlid; in path_conv_ib_to_opa()
259 opa->service_id = ib->service_id; in path_conv_ib_to_opa()
260 opa->opa.raw_traffic = ib->ib.raw_traffic; in path_conv_ib_to_opa()
543 rec->opa.slid = cpu_to_be32(slid); in sa_path_set_slid()
551 rec->opa.dlid = cpu_to_be32(dlid); in sa_path_set_dlid()
560 rec->opa.raw_traffic = raw_traffic; in sa_path_set_raw_traffic()
568 return rec->opa.slid; in sa_path_get_slid()
577 return rec->opa.dlid; in sa_path_get_dlid()
586 return rec->opa.raw_traffic; in sa_path_get_raw_traffic()