Lines Matching +full:rpc +full:- +full:if
2 * Copyright (c) 2004-2009 Voltaire Inc. All rights reserved.
14 * - Redistributions of source code must retain the above
18 * - Redistributions in binary form must reproduce the above
34 #if HAVE_CONFIG_H
43 #define DEBUG if (ibdebug) IBWARN
54 ib_rpc_t rpc = { 0 }; in bm_call_via() local
63 if (portid->lid <= 0) { in bm_call_via()
68 resp_expected = response_expected(call->method); in bm_call_via()
70 rpc.mgtclass = IB_BOARD_MGMT_CLASS; in bm_call_via()
72 rpc.method = call->method; in bm_call_via()
73 rpc.attr.id = call->attrid; in bm_call_via()
74 rpc.attr.mod = call->mod; in bm_call_via()
75 rpc.timeout = resp_expected ? call->timeout : 0; in bm_call_via()
77 rpc.datasz = IB_BM_BKEY_AND_DATA_SZ; in bm_call_via()
78 rpc.dataoffs = IB_BM_BKEY_OFFS; in bm_call_via()
81 bm_data.bkey = htonll(call->bkey); in bm_call_via()
87 rpc.method, rpc.attr.id, rpc.attr.mod, rpc.datasz, rpc.dataoffs, in bm_call_via()
88 resp_expected, (int)(call->bkey >> 32), (int)call->bkey); in bm_call_via()
90 portid->qp = 1; in bm_call_via()
91 if (!portid->qkey) in bm_call_via()
92 portid->qkey = IB_DEFAULT_QP1_QKEY; in bm_call_via()
94 if (resp_expected) { in bm_call_via()
96 if (mad_rpc(srcport, &rpc, portid, &bm_data, &bm_data)) in bm_call_via()
101 if (mad_send_via(&rpc, portid, 0, &bm_data, srcport) < 0) in bm_call_via()