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
48 #define DEBUG if (ibdebug) IBWARN
54 ib_rpc_v1_t rpc = { 0 }; in pma_query_via() local
55 ib_rpc_t *rpcold = (ib_rpc_t *)(void *)&rpc; in pma_query_via()
56 int lid = dest->lid; in pma_query_via()
61 if (lid == -1) { in pma_query_via()
66 rpc.mgtclass = IB_PERFORMANCE_CLASS | IB_MAD_RPC_VERSION1; in pma_query_via()
67 rpc.method = IB_MAD_METHOD_GET; in pma_query_via()
68 rpc.attr.id = id; in pma_query_via()
72 rpc.attr.mod = 0; in pma_query_via()
73 rpc.timeout = timeout; in pma_query_via()
74 rpc.datasz = IB_PC_DATA_SZ; in pma_query_via()
75 rpc.dataoffs = IB_PC_DATA_OFFS; in pma_query_via()
77 if (!dest->qp) in pma_query_via()
78 dest->qp = 1; in pma_query_via()
79 if (!dest->qkey) in pma_query_via()
80 dest->qkey = IB_DEFAULT_QP1_QKEY; in pma_query_via()
83 errno = rpc.error; in pma_query_via()
91 ib_rpc_v1_t rpc = { 0 }; in performance_reset_via() local
92 ib_rpc_t *rpcold = (ib_rpc_t *)(void *)&rpc; in performance_reset_via()
94 int lid = dest->lid; in performance_reset_via()
99 if (lid == -1) { in performance_reset_via()
104 if (!mask) in performance_reset_via()
107 rpc.mgtclass = IB_PERFORMANCE_CLASS | IB_MAD_RPC_VERSION1; in performance_reset_via()
108 rpc.method = IB_MAD_METHOD_SET; in performance_reset_via()
109 rpc.attr.id = id; in performance_reset_via()
113 /* Next 2 lines - same for attribute IDs */ in performance_reset_via()
117 if (id == IB_GSI_PORT_COUNTERS_EXT) in performance_reset_via()
121 rpc.attr.mod = 0; in performance_reset_via()
122 rpc.timeout = timeout; in performance_reset_via()
123 rpc.datasz = IB_PC_DATA_SZ; in performance_reset_via()
124 rpc.dataoffs = IB_PC_DATA_OFFS; in performance_reset_via()
125 if (!dest->qp) in performance_reset_via()
126 dest->qp = 1; in performance_reset_via()
127 if (!dest->qkey) in performance_reset_via()
128 dest->qkey = IB_DEFAULT_QP1_QKEY; in performance_reset_via()
131 errno = rpc.error; in performance_reset_via()