Lines Matching full:stats

149 				   struct rdma_hw_stats *stats,  in bnxt_re_copy_ext_stats()  argument
152 stats->value[BNXT_RE_TX_ATOMIC_REQ] = s->tx_atomic_req; in bnxt_re_copy_ext_stats()
153 stats->value[BNXT_RE_TX_READ_REQ] = s->tx_read_req; in bnxt_re_copy_ext_stats()
154 stats->value[BNXT_RE_TX_READ_RES] = s->tx_read_res; in bnxt_re_copy_ext_stats()
155 stats->value[BNXT_RE_TX_WRITE_REQ] = s->tx_write_req; in bnxt_re_copy_ext_stats()
156 stats->value[BNXT_RE_TX_SEND_REQ] = s->tx_send_req; in bnxt_re_copy_ext_stats()
157 stats->value[BNXT_RE_TX_ROCE_PKTS] = s->tx_roce_pkts; in bnxt_re_copy_ext_stats()
158 stats->value[BNXT_RE_TX_ROCE_BYTES] = s->tx_roce_bytes; in bnxt_re_copy_ext_stats()
159 stats->value[BNXT_RE_RX_ATOMIC_REQ] = s->rx_atomic_req; in bnxt_re_copy_ext_stats()
160 stats->value[BNXT_RE_RX_READ_REQ] = s->rx_read_req; in bnxt_re_copy_ext_stats()
161 stats->value[BNXT_RE_RX_READ_RESP] = s->rx_read_res; in bnxt_re_copy_ext_stats()
162 stats->value[BNXT_RE_RX_WRITE_REQ] = s->rx_write_req; in bnxt_re_copy_ext_stats()
163 stats->value[BNXT_RE_RX_SEND_REQ] = s->rx_send_req; in bnxt_re_copy_ext_stats()
164 stats->value[BNXT_RE_RX_ROCE_PKTS] = s->rx_roce_pkts; in bnxt_re_copy_ext_stats()
165 stats->value[BNXT_RE_RX_ROCE_BYTES] = s->rx_roce_bytes; in bnxt_re_copy_ext_stats()
166 stats->value[BNXT_RE_RX_ROCE_GOOD_PKTS] = s->rx_roce_good_pkts; in bnxt_re_copy_ext_stats()
167 stats->value[BNXT_RE_RX_ROCE_GOOD_BYTES] = s->rx_roce_good_bytes; in bnxt_re_copy_ext_stats()
168 stats->value[BNXT_RE_OOB] = s->rx_out_of_buffer; in bnxt_re_copy_ext_stats()
169 stats->value[BNXT_RE_TX_CNP] = s->tx_cnp; in bnxt_re_copy_ext_stats()
170 stats->value[BNXT_RE_RX_CNP] = s->rx_cnp; in bnxt_re_copy_ext_stats()
171 stats->value[BNXT_RE_RX_ECN] = s->rx_ecn_marked; in bnxt_re_copy_ext_stats()
172 stats->value[BNXT_RE_OUT_OF_SEQ_ERR] = s->rx_out_of_sequence; in bnxt_re_copy_ext_stats()
176 struct rdma_hw_stats *stats) in bnxt_re_get_ext_stat() argument
178 struct bnxt_qplib_ext_stat *estat = &rdev->stats.rstat.ext_stat; in bnxt_re_get_ext_stat()
186 bnxt_re_copy_ext_stats(rdev, stats, estat); in bnxt_re_get_ext_stat()
193 struct rdma_hw_stats *stats, in bnxt_re_copy_err_stats() argument
196 stats->value[BNXT_RE_TO_RETRANSMITS] = in bnxt_re_copy_err_stats()
198 stats->value[BNXT_RE_SEQ_ERR_NAKS_RCVD] = in bnxt_re_copy_err_stats()
200 stats->value[BNXT_RE_MAX_RETRY_EXCEEDED] = in bnxt_re_copy_err_stats()
202 stats->value[BNXT_RE_RNR_NAKS_RCVD] = in bnxt_re_copy_err_stats()
204 stats->value[BNXT_RE_MISSING_RESP] = in bnxt_re_copy_err_stats()
206 stats->value[BNXT_RE_UNRECOVERABLE_ERR] = in bnxt_re_copy_err_stats()
208 stats->value[BNXT_RE_BAD_RESP_ERR] = in bnxt_re_copy_err_stats()
210 stats->value[BNXT_RE_LOCAL_QP_OP_ERR] = in bnxt_re_copy_err_stats()
212 stats->value[BNXT_RE_LOCAL_PROTECTION_ERR] = in bnxt_re_copy_err_stats()
214 stats->value[BNXT_RE_MEM_MGMT_OP_ERR] = in bnxt_re_copy_err_stats()
216 stats->value[BNXT_RE_REMOTE_INVALID_REQ_ERR] = in bnxt_re_copy_err_stats()
218 stats->value[BNXT_RE_REMOTE_ACCESS_ERR] = in bnxt_re_copy_err_stats()
220 stats->value[BNXT_RE_REMOTE_OP_ERR] = in bnxt_re_copy_err_stats()
222 stats->value[BNXT_RE_DUP_REQ] = in bnxt_re_copy_err_stats()
224 stats->value[BNXT_RE_RES_EXCEED_MAX] = in bnxt_re_copy_err_stats()
226 stats->value[BNXT_RE_RES_LENGTH_MISMATCH] = in bnxt_re_copy_err_stats()
228 stats->value[BNXT_RE_RES_EXCEEDS_WQE] = in bnxt_re_copy_err_stats()
230 stats->value[BNXT_RE_RES_OPCODE_ERR] = in bnxt_re_copy_err_stats()
232 stats->value[BNXT_RE_RES_RX_INVALID_RKEY] = in bnxt_re_copy_err_stats()
234 stats->value[BNXT_RE_RES_RX_DOMAIN_ERR] = in bnxt_re_copy_err_stats()
236 stats->value[BNXT_RE_RES_RX_NO_PERM] = in bnxt_re_copy_err_stats()
238 stats->value[BNXT_RE_RES_RX_RANGE_ERR] = in bnxt_re_copy_err_stats()
240 stats->value[BNXT_RE_RES_TX_INVALID_RKEY] = in bnxt_re_copy_err_stats()
242 stats->value[BNXT_RE_RES_TX_DOMAIN_ERR] = in bnxt_re_copy_err_stats()
244 stats->value[BNXT_RE_RES_TX_NO_PERM] = in bnxt_re_copy_err_stats()
246 stats->value[BNXT_RE_RES_TX_RANGE_ERR] = in bnxt_re_copy_err_stats()
248 stats->value[BNXT_RE_RES_IRRQ_OFLOW] = in bnxt_re_copy_err_stats()
250 stats->value[BNXT_RE_RES_UNSUP_OPCODE] = in bnxt_re_copy_err_stats()
252 stats->value[BNXT_RE_RES_UNALIGNED_ATOMIC] = in bnxt_re_copy_err_stats()
254 stats->value[BNXT_RE_RES_REM_INV_ERR] = in bnxt_re_copy_err_stats()
256 stats->value[BNXT_RE_RES_MEM_ERROR] = in bnxt_re_copy_err_stats()
258 stats->value[BNXT_RE_RES_SRQ_ERR] = in bnxt_re_copy_err_stats()
260 stats->value[BNXT_RE_RES_CMP_ERR] = in bnxt_re_copy_err_stats()
262 stats->value[BNXT_RE_RES_INVALID_DUP_RKEY] = in bnxt_re_copy_err_stats()
264 stats->value[BNXT_RE_RES_WQE_FORMAT_ERR] = in bnxt_re_copy_err_stats()
266 stats->value[BNXT_RE_RES_CQ_LOAD_ERR] = in bnxt_re_copy_err_stats()
268 stats->value[BNXT_RE_RES_SRQ_LOAD_ERR] = in bnxt_re_copy_err_stats()
270 stats->value[BNXT_RE_RES_TX_PCI_ERR] = in bnxt_re_copy_err_stats()
272 stats->value[BNXT_RE_RES_RX_PCI_ERR] = in bnxt_re_copy_err_stats()
274 stats->value[BNXT_RE_OUT_OF_SEQ_ERR] = in bnxt_re_copy_err_stats()
279 struct rdma_hw_stats *stats) in bnxt_re_copy_db_pacing_stats() argument
281 struct bnxt_re_db_pacing_stats *pacing_s = &rdev->stats.pacing; in bnxt_re_copy_db_pacing_stats()
283 stats->value[BNXT_RE_PACING_RESCHED] = pacing_s->resched; in bnxt_re_copy_db_pacing_stats()
284 stats->value[BNXT_RE_PACING_CMPL] = pacing_s->complete; in bnxt_re_copy_db_pacing_stats()
285 stats->value[BNXT_RE_PACING_ALERT] = pacing_s->alerts; in bnxt_re_copy_db_pacing_stats()
286 stats->value[BNXT_RE_DB_FIFO_REG] = in bnxt_re_copy_db_pacing_stats()
293 struct bnxt_qplib_ext_stat *estat = &rdev->stats.rstat.ext_stat; in bnxt_re_assign_pma_port_ext_counters()
297 hw_stats = rdev->qplib_ctx.stats.dma; in bnxt_re_assign_pma_port_ext_counters()
337 struct bnxt_qplib_ext_stat *estat = &rdev->stats.rstat.ext_stat; in bnxt_re_assign_pma_port_counters()
342 hw_stats = rdev->qplib_ctx.stats.dma; in bnxt_re_assign_pma_port_counters()
381 struct rdma_hw_stats *stats, in bnxt_re_ib_get_hw_stats() argument
385 struct bnxt_re_res_cntrs *res_s = &rdev->stats.res; in bnxt_re_ib_get_hw_stats()
390 hw_stats = rdev->qplib_ctx.stats.dma; in bnxt_re_ib_get_hw_stats()
391 if (!port || !stats) in bnxt_re_ib_get_hw_stats()
394 stats->value[BNXT_RE_ACTIVE_QP] = atomic_read(&res_s->qp_count); in bnxt_re_ib_get_hw_stats()
395 stats->value[BNXT_RE_ACTIVE_RC_QP] = atomic_read(&res_s->rc_qp_count); in bnxt_re_ib_get_hw_stats()
396 stats->value[BNXT_RE_ACTIVE_UD_QP] = atomic_read(&res_s->ud_qp_count); in bnxt_re_ib_get_hw_stats()
397 stats->value[BNXT_RE_ACTIVE_SRQ] = atomic_read(&res_s->srq_count); in bnxt_re_ib_get_hw_stats()
398 stats->value[BNXT_RE_ACTIVE_CQ] = atomic_read(&res_s->cq_count); in bnxt_re_ib_get_hw_stats()
399 stats->value[BNXT_RE_ACTIVE_MR] = atomic_read(&res_s->mr_count); in bnxt_re_ib_get_hw_stats()
400 stats->value[BNXT_RE_ACTIVE_MW] = atomic_read(&res_s->mw_count); in bnxt_re_ib_get_hw_stats()
401 stats->value[BNXT_RE_ACTIVE_PD] = atomic_read(&res_s->pd_count); in bnxt_re_ib_get_hw_stats()
402 stats->value[BNXT_RE_ACTIVE_AH] = atomic_read(&res_s->ah_count); in bnxt_re_ib_get_hw_stats()
403 stats->value[BNXT_RE_WATERMARK_QP] = res_s->qp_watermark; in bnxt_re_ib_get_hw_stats()
404 stats->value[BNXT_RE_WATERMARK_RC_QP] = res_s->rc_qp_watermark; in bnxt_re_ib_get_hw_stats()
405 stats->value[BNXT_RE_WATERMARK_UD_QP] = res_s->ud_qp_watermark; in bnxt_re_ib_get_hw_stats()
406 stats->value[BNXT_RE_WATERMARK_SRQ] = res_s->srq_watermark; in bnxt_re_ib_get_hw_stats()
407 stats->value[BNXT_RE_WATERMARK_CQ] = res_s->cq_watermark; in bnxt_re_ib_get_hw_stats()
408 stats->value[BNXT_RE_WATERMARK_MR] = res_s->mr_watermark; in bnxt_re_ib_get_hw_stats()
409 stats->value[BNXT_RE_WATERMARK_MW] = res_s->mw_watermark; in bnxt_re_ib_get_hw_stats()
410 stats->value[BNXT_RE_WATERMARK_PD] = res_s->pd_watermark; in bnxt_re_ib_get_hw_stats()
411 stats->value[BNXT_RE_WATERMARK_AH] = res_s->ah_watermark; in bnxt_re_ib_get_hw_stats()
412 stats->value[BNXT_RE_RESIZE_CQ_CNT] = atomic_read(&res_s->resize_count); in bnxt_re_ib_get_hw_stats()
415 stats->value[BNXT_RE_RECOVERABLE_ERRORS] = in bnxt_re_ib_get_hw_stats()
417 stats->value[BNXT_RE_TX_DISCARDS] = in bnxt_re_ib_get_hw_stats()
419 stats->value[BNXT_RE_TX_ERRORS] = in bnxt_re_ib_get_hw_stats()
421 stats->value[BNXT_RE_RX_ERRORS] = in bnxt_re_ib_get_hw_stats()
423 stats->value[BNXT_RE_RX_DISCARDS] = in bnxt_re_ib_get_hw_stats()
425 stats->value[BNXT_RE_RX_PKTS] = in bnxt_re_ib_get_hw_stats()
427 stats->value[BNXT_RE_RX_BYTES] = in bnxt_re_ib_get_hw_stats()
429 stats->value[BNXT_RE_TX_PKTS] = in bnxt_re_ib_get_hw_stats()
431 stats->value[BNXT_RE_TX_BYTES] = in bnxt_re_ib_get_hw_stats()
434 err_s = &rdev->stats.rstat.errs; in bnxt_re_ib_get_hw_stats()
442 bnxt_re_copy_err_stats(rdev, stats, err_s); in bnxt_re_ib_get_hw_stats()
445 rc = bnxt_re_get_ext_stat(rdev, stats); in bnxt_re_ib_get_hw_stats()
453 bnxt_re_copy_db_pacing_stats(rdev, stats); in bnxt_re_ib_get_hw_stats()