Lines Matching refs:stats
131 struct rdma_hw_stats *stats, in bnxt_re_copy_ext_stats() argument
134 stats->value[BNXT_RE_TX_ATOMIC_REQ] = s->tx_atomic_req; in bnxt_re_copy_ext_stats()
135 stats->value[BNXT_RE_TX_READ_REQ] = s->tx_read_req; in bnxt_re_copy_ext_stats()
136 stats->value[BNXT_RE_TX_READ_RES] = s->tx_read_res; in bnxt_re_copy_ext_stats()
137 stats->value[BNXT_RE_TX_WRITE_REQ] = s->tx_write_req; in bnxt_re_copy_ext_stats()
138 stats->value[BNXT_RE_TX_SEND_REQ] = s->tx_send_req; in bnxt_re_copy_ext_stats()
139 stats->value[BNXT_RE_RX_ATOMIC_REQ] = s->rx_atomic_req; in bnxt_re_copy_ext_stats()
140 stats->value[BNXT_RE_RX_READ_REQ] = s->rx_read_req; in bnxt_re_copy_ext_stats()
141 stats->value[BNXT_RE_RX_READ_RESP] = s->rx_read_res; in bnxt_re_copy_ext_stats()
142 stats->value[BNXT_RE_RX_WRITE_REQ] = s->rx_write_req; in bnxt_re_copy_ext_stats()
143 stats->value[BNXT_RE_RX_SEND_REQ] = s->rx_send_req; in bnxt_re_copy_ext_stats()
144 stats->value[BNXT_RE_RX_ROCE_GOOD_PKTS] = s->rx_roce_good_pkts; in bnxt_re_copy_ext_stats()
145 stats->value[BNXT_RE_RX_ROCE_GOOD_BYTES] = s->rx_roce_good_bytes; in bnxt_re_copy_ext_stats()
146 stats->value[BNXT_RE_OOB] = s->rx_out_of_buffer; in bnxt_re_copy_ext_stats()
150 struct rdma_hw_stats *stats) in bnxt_re_get_ext_stat() argument
152 struct bnxt_qplib_ext_stat *estat = &rdev->stats.rstat.ext_stat; in bnxt_re_get_ext_stat()
160 bnxt_re_copy_ext_stats(rdev, stats, estat); in bnxt_re_get_ext_stat()
167 struct rdma_hw_stats *stats, in bnxt_re_copy_err_stats() argument
170 stats->value[BNXT_RE_TO_RETRANSMITS] = in bnxt_re_copy_err_stats()
172 stats->value[BNXT_RE_SEQ_ERR_NAKS_RCVD] = in bnxt_re_copy_err_stats()
174 stats->value[BNXT_RE_MAX_RETRY_EXCEEDED] = in bnxt_re_copy_err_stats()
176 stats->value[BNXT_RE_RNR_NAKS_RCVD] = in bnxt_re_copy_err_stats()
178 stats->value[BNXT_RE_MISSING_RESP] = in bnxt_re_copy_err_stats()
180 stats->value[BNXT_RE_UNRECOVERABLE_ERR] = in bnxt_re_copy_err_stats()
182 stats->value[BNXT_RE_BAD_RESP_ERR] = in bnxt_re_copy_err_stats()
184 stats->value[BNXT_RE_LOCAL_QP_OP_ERR] = in bnxt_re_copy_err_stats()
186 stats->value[BNXT_RE_LOCAL_PROTECTION_ERR] = in bnxt_re_copy_err_stats()
188 stats->value[BNXT_RE_MEM_MGMT_OP_ERR] = in bnxt_re_copy_err_stats()
190 stats->value[BNXT_RE_REMOTE_INVALID_REQ_ERR] = in bnxt_re_copy_err_stats()
192 stats->value[BNXT_RE_REMOTE_ACCESS_ERR] = in bnxt_re_copy_err_stats()
194 stats->value[BNXT_RE_REMOTE_OP_ERR] = in bnxt_re_copy_err_stats()
196 stats->value[BNXT_RE_DUP_REQ] = in bnxt_re_copy_err_stats()
198 stats->value[BNXT_RE_RES_EXCEED_MAX] = in bnxt_re_copy_err_stats()
200 stats->value[BNXT_RE_RES_LENGTH_MISMATCH] = in bnxt_re_copy_err_stats()
202 stats->value[BNXT_RE_RES_EXCEEDS_WQE] = in bnxt_re_copy_err_stats()
204 stats->value[BNXT_RE_RES_OPCODE_ERR] = in bnxt_re_copy_err_stats()
206 stats->value[BNXT_RE_RES_RX_INVALID_RKEY] = in bnxt_re_copy_err_stats()
208 stats->value[BNXT_RE_RES_RX_DOMAIN_ERR] = in bnxt_re_copy_err_stats()
210 stats->value[BNXT_RE_RES_RX_NO_PERM] = in bnxt_re_copy_err_stats()
212 stats->value[BNXT_RE_RES_RX_RANGE_ERR] = in bnxt_re_copy_err_stats()
214 stats->value[BNXT_RE_RES_TX_INVALID_RKEY] = in bnxt_re_copy_err_stats()
216 stats->value[BNXT_RE_RES_TX_DOMAIN_ERR] = in bnxt_re_copy_err_stats()
218 stats->value[BNXT_RE_RES_TX_NO_PERM] = in bnxt_re_copy_err_stats()
220 stats->value[BNXT_RE_RES_TX_RANGE_ERR] = in bnxt_re_copy_err_stats()
222 stats->value[BNXT_RE_RES_IRRQ_OFLOW] = in bnxt_re_copy_err_stats()
224 stats->value[BNXT_RE_RES_UNSUP_OPCODE] = in bnxt_re_copy_err_stats()
226 stats->value[BNXT_RE_RES_UNALIGNED_ATOMIC] = in bnxt_re_copy_err_stats()
228 stats->value[BNXT_RE_RES_REM_INV_ERR] = in bnxt_re_copy_err_stats()
230 stats->value[BNXT_RE_RES_MEM_ERROR] = in bnxt_re_copy_err_stats()
232 stats->value[BNXT_RE_RES_SRQ_ERR] = in bnxt_re_copy_err_stats()
234 stats->value[BNXT_RE_RES_CMP_ERR] = in bnxt_re_copy_err_stats()
236 stats->value[BNXT_RE_RES_INVALID_DUP_RKEY] = in bnxt_re_copy_err_stats()
238 stats->value[BNXT_RE_RES_WQE_FORMAT_ERR] = in bnxt_re_copy_err_stats()
240 stats->value[BNXT_RE_RES_CQ_LOAD_ERR] = in bnxt_re_copy_err_stats()
242 stats->value[BNXT_RE_RES_SRQ_LOAD_ERR] = in bnxt_re_copy_err_stats()
244 stats->value[BNXT_RE_RES_TX_PCI_ERR] = in bnxt_re_copy_err_stats()
246 stats->value[BNXT_RE_RES_RX_PCI_ERR] = in bnxt_re_copy_err_stats()
248 stats->value[BNXT_RE_OUT_OF_SEQ_ERR] = in bnxt_re_copy_err_stats()
253 struct rdma_hw_stats *stats, in bnxt_re_ib_get_hw_stats() argument
261 hw_stats = rdev->qplib_ctx.stats.dma; in bnxt_re_ib_get_hw_stats()
262 if (!port || !stats) in bnxt_re_ib_get_hw_stats()
265 stats->value[BNXT_RE_ACTIVE_QP] = atomic_read(&rdev->qp_count); in bnxt_re_ib_get_hw_stats()
266 stats->value[BNXT_RE_ACTIVE_SRQ] = atomic_read(&rdev->srq_count); in bnxt_re_ib_get_hw_stats()
267 stats->value[BNXT_RE_ACTIVE_CQ] = atomic_read(&rdev->cq_count); in bnxt_re_ib_get_hw_stats()
268 stats->value[BNXT_RE_ACTIVE_MR] = atomic_read(&rdev->mr_count); in bnxt_re_ib_get_hw_stats()
269 stats->value[BNXT_RE_ACTIVE_MW] = atomic_read(&rdev->mw_count); in bnxt_re_ib_get_hw_stats()
270 stats->value[BNXT_RE_ACTIVE_PD] = atomic_read(&rdev->pd_count); in bnxt_re_ib_get_hw_stats()
271 stats->value[BNXT_RE_ACTIVE_AH] = atomic_read(&rdev->ah_count); in bnxt_re_ib_get_hw_stats()
274 stats->value[BNXT_RE_RECOVERABLE_ERRORS] = in bnxt_re_ib_get_hw_stats()
276 stats->value[BNXT_RE_RX_ERRORS] = in bnxt_re_ib_get_hw_stats()
278 stats->value[BNXT_RE_RX_DISCARDS] = in bnxt_re_ib_get_hw_stats()
280 stats->value[BNXT_RE_RX_PKTS] = in bnxt_re_ib_get_hw_stats()
282 stats->value[BNXT_RE_RX_BYTES] = in bnxt_re_ib_get_hw_stats()
284 stats->value[BNXT_RE_TX_PKTS] = in bnxt_re_ib_get_hw_stats()
286 stats->value[BNXT_RE_TX_BYTES] = in bnxt_re_ib_get_hw_stats()
289 err_s = &rdev->stats.rstat.errs; in bnxt_re_ib_get_hw_stats()
299 rc = bnxt_re_get_ext_stat(rdev, stats); in bnxt_re_ib_get_hw_stats()
306 bnxt_re_copy_err_stats(rdev, stats, err_s); in bnxt_re_ib_get_hw_stats()