Lines Matching refs:rpc
75 ib_rpc_t rpc = { 0 };
96 rpc.mgtclass = mad_get_field(mad, 0, IB_MAD_MGMTCLASS_F);
97 rpc.method = IB_MAD_METHOD_GET | IB_MAD_RESPONSE;
98 rpc.attr.id = mad_get_field(mad, 0, IB_MAD_ATTRID_F);
99 rpc.attr.mod = mad_get_field(mad, 0, IB_MAD_ATTRMOD_F);
100 rpc.oui = mad_get_field(mad, 0, IB_VEND2_OUI_F);
101 rpc.trid = mad_get_field64(mad, 0, IB_MAD_TRID_F);
107 size, portid2str(&rport), rpc.attr.id, rpc.attr.mod, rport.qkey);
109 if (mad_build_pkt(umad, &rpc, &rport, &rmpp, 0) < 0)
116 mad_rpc_class_agent(srcport, rpc.mgtclass), umad, size,
117 rpc.timeout, 0) < 0) {
224 ib_rpc_t rpc = { 0 };
230 rpc.mgtclass = IB_VENDOR_OPENIB_SYSSTAT_CLASS;
231 rpc.method = IB_MAD_METHOD_GET;
232 rpc.attr.id = attr;
233 rpc.attr.mod = 0;
234 rpc.oui = oui;
235 rpc.timeout = 0;
236 rpc.datasz = IB_VENDOR_RANGE2_DATA_SIZE;
237 rpc.dataoffs = IB_VENDOR_RANGE2_DATA_OFFS;
243 if ((len = mad_build_pkt(buf, &rpc, portid, NULL, NULL)) < 0)
247 agent = mad_rpc_class_agent(srcport, rpc.mgtclass);