Lines Matching +full:rpc +full:- +full:if

2  * Copyright (c) 2004-2009 Voltaire Inc.  All rights reserved.
15 * - Redistributions of source code must retain the above
19 * - Redistributions in binary form must reproduce the above
35 #if HAVE_CONFIG_H
49 #define DEBUG if (ibdebug) IBWARN
67 ib_rpc_v1_t rpc = { 0 }; in ib_vendor_call_via() local
68 ib_rpc_t *rpcold = (ib_rpc_t *)(void *)&rpc; in ib_vendor_call_via()
73 if (portid->lid <= 0) in ib_vendor_call_via()
76 if (!(range1 = mad_is_vendor_range1(call->mgmt_class)) && in ib_vendor_call_via()
77 !(mad_is_vendor_range2(call->mgmt_class))) in ib_vendor_call_via()
80 resp_expected = response_expected(call->method); in ib_vendor_call_via()
82 rpc.mgtclass = call->mgmt_class | IB_MAD_RPC_VERSION1; in ib_vendor_call_via()
84 rpc.method = call->method; in ib_vendor_call_via()
85 rpc.attr.id = call->attrid; in ib_vendor_call_via()
86 rpc.attr.mod = call->mod; in ib_vendor_call_via()
87 rpc.timeout = resp_expected ? call->timeout : 0; in ib_vendor_call_via()
88 rpc.datasz = in ib_vendor_call_via()
90 rpc.dataoffs = in ib_vendor_call_via()
93 if (!range1) in ib_vendor_call_via()
94 rpc.oui = call->oui; in ib_vendor_call_via()
98 rpc.mgtclass, rpc.method, rpc.attr.id, rpc.attr.mod, rpc.datasz, in ib_vendor_call_via()
99 rpc.dataoffs, resp_expected); in ib_vendor_call_via()
101 portid->qp = 1; in ib_vendor_call_via()
102 if (!portid->qkey) in ib_vendor_call_via()
103 portid->qkey = IB_DEFAULT_QP1_QKEY; in ib_vendor_call_via()
105 if (resp_expected) { in ib_vendor_call_via()
107 errno = rpc.error; in ib_vendor_call_via()