Lines Matching refs:opa
186 struct sa_path_rec_opa opa; member
219 struct sa_path_rec *opa) in path_conv_opa_to_ib() argument
221 if ((be32_to_cpu(opa->opa.dlid) >= in path_conv_opa_to_ib()
223 (be32_to_cpu(opa->opa.slid) >= in path_conv_opa_to_ib()
227 = OPA_MAKE_ID(be32_to_cpu(opa->opa.dlid)); in path_conv_opa_to_ib()
229 = opa->dgid.global.subnet_prefix; in path_conv_opa_to_ib()
231 = OPA_MAKE_ID(be32_to_cpu(opa->opa.slid)); in path_conv_opa_to_ib()
233 = opa->dgid.global.subnet_prefix; in path_conv_opa_to_ib()
238 ib->ib.dlid = htons(ntohl(opa->opa.dlid)); in path_conv_opa_to_ib()
239 ib->ib.slid = htons(ntohl(opa->opa.slid)); in path_conv_opa_to_ib()
241 ib->service_id = opa->service_id; in path_conv_opa_to_ib()
242 ib->ib.raw_traffic = opa->opa.raw_traffic; in path_conv_opa_to_ib()
245 static inline void path_conv_ib_to_opa(struct sa_path_rec *opa, in path_conv_ib_to_opa() argument
258 opa->opa.slid = slid; in path_conv_ib_to_opa()
259 opa->opa.dlid = dlid; in path_conv_ib_to_opa()
260 opa->service_id = ib->service_id; in path_conv_ib_to_opa()
261 opa->opa.raw_traffic = ib->ib.raw_traffic; in path_conv_ib_to_opa()
544 rec->opa.slid = cpu_to_be32(slid); in sa_path_set_slid()
552 rec->opa.dlid = cpu_to_be32(dlid); in sa_path_set_dlid()
561 rec->opa.raw_traffic = raw_traffic; in sa_path_set_raw_traffic()
569 return rec->opa.slid; in sa_path_get_slid()
578 return rec->opa.dlid; in sa_path_get_dlid()
587 return rec->opa.raw_traffic; in sa_path_get_raw_traffic()