Lines Matching full:sa

50 		     ib_portid_t * portid, ib_sa_call_t * sa, unsigned timeout)  in sa_rpc_call()  argument
55 DEBUG("attr 0x%x mod 0x%x route %s", sa->attrid, sa->mod, in sa_rpc_call()
64 rpc.method = sa->method; in sa_rpc_call()
65 rpc.attr.id = sa->attrid; in sa_rpc_call()
66 rpc.attr.mod = sa->mod; in sa_rpc_call()
67 rpc.mask = sa->mask; in sa_rpc_call()
71 rpc.trid = sa->trid; in sa_rpc_call()
77 p = mad_rpc_rmpp(ibmad_port, &rpc, portid, 0 /*&sa->rmpp */ , rcvbuf); /* TODO: RMPP */ in sa_rpc_call()
79 sa->recsz = rpc.recsz; in sa_rpc_call()
84 uint8_t *sa_call(void *rcvbuf, ib_portid_t * portid, ib_sa_call_t * sa, in sa_call() argument
87 return sa_rpc_call(ibmp, rcvbuf, portid, sa, timeout); in sa_call()
119 ib_sa_call_t sa = { 0 }; in ib_path_query_via() local
123 memset(&sa, 0, sizeof sa); in ib_path_query_via()
124 sa.method = IB_MAD_METHOD_GET; in ib_path_query_via()
125 sa.attrid = IB_SA_ATTR_PATHRECORD; in ib_path_query_via()
126 sa.mask = IB_PR_DEF_MASK; in ib_path_query_via()
127 sa.trid = mad_trid(); in ib_path_query_via()
134 p = sa_rpc_call(srcport, buf, sm_id, &sa, 0); in ib_path_query_via()
136 IBWARN("sa call path_query failed"); in ib_path_query_via()
172 ib_sa_call_t sa = { 0 }; in ib_node_query_via() local
175 memset(&sa, 0, sizeof sa); in ib_node_query_via()
176 sa.method = IB_MAD_METHOD_GET; in ib_node_query_via()
177 sa.attrid = IB_SA_ATTR_NODERECORD; in ib_node_query_via()
178 sa.mask = IB_NR_DEF_MASK; in ib_node_query_via()
179 sa.trid = mad_trid(); in ib_node_query_via()
185 p = sa_rpc_call(srcport, buf, sm_id, &sa, 0); in ib_node_query_via()
187 IBWARN("sa call node_query failed"); in ib_node_query_via()