Lines Matching full:stats

147 				   struct rdma_hw_stats *stats,  in bnxt_re_copy_ext_stats()  argument
150 stats->value[BNXT_RE_TX_ATOMIC_REQ] = s->tx_atomic_req; in bnxt_re_copy_ext_stats()
151 stats->value[BNXT_RE_TX_READ_REQ] = s->tx_read_req; in bnxt_re_copy_ext_stats()
152 stats->value[BNXT_RE_TX_READ_RES] = s->tx_read_res; in bnxt_re_copy_ext_stats()
153 stats->value[BNXT_RE_TX_WRITE_REQ] = s->tx_write_req; in bnxt_re_copy_ext_stats()
154 stats->value[BNXT_RE_TX_SEND_REQ] = s->tx_send_req; in bnxt_re_copy_ext_stats()
155 stats->value[BNXT_RE_TX_ROCE_PKTS] = s->tx_roce_pkts; in bnxt_re_copy_ext_stats()
156 stats->value[BNXT_RE_TX_ROCE_BYTES] = s->tx_roce_bytes; in bnxt_re_copy_ext_stats()
157 stats->value[BNXT_RE_RX_ATOMIC_REQ] = s->rx_atomic_req; in bnxt_re_copy_ext_stats()
158 stats->value[BNXT_RE_RX_READ_REQ] = s->rx_read_req; in bnxt_re_copy_ext_stats()
159 stats->value[BNXT_RE_RX_READ_RESP] = s->rx_read_res; in bnxt_re_copy_ext_stats()
160 stats->value[BNXT_RE_RX_WRITE_REQ] = s->rx_write_req; in bnxt_re_copy_ext_stats()
161 stats->value[BNXT_RE_RX_SEND_REQ] = s->rx_send_req; in bnxt_re_copy_ext_stats()
162 stats->value[BNXT_RE_RX_ROCE_PKTS] = s->rx_roce_pkts; in bnxt_re_copy_ext_stats()
163 stats->value[BNXT_RE_RX_ROCE_BYTES] = s->rx_roce_bytes; in bnxt_re_copy_ext_stats()
164 stats->value[BNXT_RE_RX_ROCE_GOOD_PKTS] = s->rx_roce_good_pkts; in bnxt_re_copy_ext_stats()
165 stats->value[BNXT_RE_RX_ROCE_GOOD_BYTES] = s->rx_roce_good_bytes; in bnxt_re_copy_ext_stats()
166 stats->value[BNXT_RE_OOB] = s->rx_out_of_buffer; in bnxt_re_copy_ext_stats()
167 stats->value[BNXT_RE_TX_CNP] = s->tx_cnp; in bnxt_re_copy_ext_stats()
168 stats->value[BNXT_RE_RX_CNP] = s->rx_cnp; in bnxt_re_copy_ext_stats()
169 stats->value[BNXT_RE_RX_ECN] = s->rx_ecn_marked; in bnxt_re_copy_ext_stats()
170 stats->value[BNXT_RE_OUT_OF_SEQ_ERR] = s->rx_out_of_sequence; in bnxt_re_copy_ext_stats()
174 struct rdma_hw_stats *stats) in bnxt_re_get_ext_stat() argument
176 struct bnxt_qplib_ext_stat *estat = &rdev->stats.rstat.ext_stat; in bnxt_re_get_ext_stat()
184 bnxt_re_copy_ext_stats(rdev, stats, estat); in bnxt_re_get_ext_stat()
191 struct rdma_hw_stats *stats, in bnxt_re_copy_err_stats() argument
194 stats->value[BNXT_RE_TO_RETRANSMITS] = in bnxt_re_copy_err_stats()
196 stats->value[BNXT_RE_SEQ_ERR_NAKS_RCVD] = in bnxt_re_copy_err_stats()
198 stats->value[BNXT_RE_MAX_RETRY_EXCEEDED] = in bnxt_re_copy_err_stats()
200 stats->value[BNXT_RE_RNR_NAKS_RCVD] = in bnxt_re_copy_err_stats()
202 stats->value[BNXT_RE_MISSING_RESP] = in bnxt_re_copy_err_stats()
204 stats->value[BNXT_RE_UNRECOVERABLE_ERR] = in bnxt_re_copy_err_stats()
206 stats->value[BNXT_RE_BAD_RESP_ERR] = in bnxt_re_copy_err_stats()
208 stats->value[BNXT_RE_LOCAL_QP_OP_ERR] = in bnxt_re_copy_err_stats()
210 stats->value[BNXT_RE_LOCAL_PROTECTION_ERR] = in bnxt_re_copy_err_stats()
212 stats->value[BNXT_RE_MEM_MGMT_OP_ERR] = in bnxt_re_copy_err_stats()
214 stats->value[BNXT_RE_REMOTE_INVALID_REQ_ERR] = in bnxt_re_copy_err_stats()
216 stats->value[BNXT_RE_REMOTE_ACCESS_ERR] = in bnxt_re_copy_err_stats()
218 stats->value[BNXT_RE_REMOTE_OP_ERR] = in bnxt_re_copy_err_stats()
220 stats->value[BNXT_RE_DUP_REQ] = in bnxt_re_copy_err_stats()
222 stats->value[BNXT_RE_RES_EXCEED_MAX] = in bnxt_re_copy_err_stats()
224 stats->value[BNXT_RE_RES_LENGTH_MISMATCH] = in bnxt_re_copy_err_stats()
226 stats->value[BNXT_RE_RES_EXCEEDS_WQE] = in bnxt_re_copy_err_stats()
228 stats->value[BNXT_RE_RES_OPCODE_ERR] = in bnxt_re_copy_err_stats()
230 stats->value[BNXT_RE_RES_RX_INVALID_RKEY] = in bnxt_re_copy_err_stats()
232 stats->value[BNXT_RE_RES_RX_DOMAIN_ERR] = in bnxt_re_copy_err_stats()
234 stats->value[BNXT_RE_RES_RX_NO_PERM] = in bnxt_re_copy_err_stats()
236 stats->value[BNXT_RE_RES_RX_RANGE_ERR] = in bnxt_re_copy_err_stats()
238 stats->value[BNXT_RE_RES_TX_INVALID_RKEY] = in bnxt_re_copy_err_stats()
240 stats->value[BNXT_RE_RES_TX_DOMAIN_ERR] = in bnxt_re_copy_err_stats()
242 stats->value[BNXT_RE_RES_TX_NO_PERM] = in bnxt_re_copy_err_stats()
244 stats->value[BNXT_RE_RES_TX_RANGE_ERR] = in bnxt_re_copy_err_stats()
246 stats->value[BNXT_RE_RES_IRRQ_OFLOW] = in bnxt_re_copy_err_stats()
248 stats->value[BNXT_RE_RES_UNSUP_OPCODE] = in bnxt_re_copy_err_stats()
250 stats->value[BNXT_RE_RES_UNALIGNED_ATOMIC] = in bnxt_re_copy_err_stats()
252 stats->value[BNXT_RE_RES_REM_INV_ERR] = in bnxt_re_copy_err_stats()
254 stats->value[BNXT_RE_RES_MEM_ERROR] = in bnxt_re_copy_err_stats()
256 stats->value[BNXT_RE_RES_SRQ_ERR] = in bnxt_re_copy_err_stats()
258 stats->value[BNXT_RE_RES_CMP_ERR] = in bnxt_re_copy_err_stats()
260 stats->value[BNXT_RE_RES_INVALID_DUP_RKEY] = in bnxt_re_copy_err_stats()
262 stats->value[BNXT_RE_RES_WQE_FORMAT_ERR] = in bnxt_re_copy_err_stats()
264 stats->value[BNXT_RE_RES_CQ_LOAD_ERR] = in bnxt_re_copy_err_stats()
266 stats->value[BNXT_RE_RES_SRQ_LOAD_ERR] = in bnxt_re_copy_err_stats()
268 stats->value[BNXT_RE_RES_TX_PCI_ERR] = in bnxt_re_copy_err_stats()
270 stats->value[BNXT_RE_RES_RX_PCI_ERR] = in bnxt_re_copy_err_stats()
272 stats->value[BNXT_RE_OUT_OF_SEQ_ERR] = in bnxt_re_copy_err_stats()
277 struct rdma_hw_stats *stats) in bnxt_re_copy_db_pacing_stats() argument
279 struct bnxt_re_db_pacing_stats *pacing_s = &rdev->stats.pacing; in bnxt_re_copy_db_pacing_stats()
281 stats->value[BNXT_RE_PACING_RESCHED] = pacing_s->resched; in bnxt_re_copy_db_pacing_stats()
282 stats->value[BNXT_RE_PACING_CMPL] = pacing_s->complete; in bnxt_re_copy_db_pacing_stats()
283 stats->value[BNXT_RE_PACING_ALERT] = pacing_s->alerts; in bnxt_re_copy_db_pacing_stats()
284 stats->value[BNXT_RE_DB_FIFO_REG] = in bnxt_re_copy_db_pacing_stats()
289 struct rdma_hw_stats *stats, in bnxt_re_ib_get_hw_stats() argument
293 struct bnxt_re_res_cntrs *res_s = &rdev->stats.res; in bnxt_re_ib_get_hw_stats()
298 hw_stats = rdev->qplib_ctx.stats.dma; in bnxt_re_ib_get_hw_stats()
299 if (!port || !stats) in bnxt_re_ib_get_hw_stats()
302 stats->value[BNXT_RE_ACTIVE_QP] = atomic_read(&res_s->qp_count); in bnxt_re_ib_get_hw_stats()
303 stats->value[BNXT_RE_ACTIVE_RC_QP] = atomic_read(&res_s->rc_qp_count); in bnxt_re_ib_get_hw_stats()
304 stats->value[BNXT_RE_ACTIVE_UD_QP] = atomic_read(&res_s->ud_qp_count); in bnxt_re_ib_get_hw_stats()
305 stats->value[BNXT_RE_ACTIVE_SRQ] = atomic_read(&res_s->srq_count); in bnxt_re_ib_get_hw_stats()
306 stats->value[BNXT_RE_ACTIVE_CQ] = atomic_read(&res_s->cq_count); in bnxt_re_ib_get_hw_stats()
307 stats->value[BNXT_RE_ACTIVE_MR] = atomic_read(&res_s->mr_count); in bnxt_re_ib_get_hw_stats()
308 stats->value[BNXT_RE_ACTIVE_MW] = atomic_read(&res_s->mw_count); in bnxt_re_ib_get_hw_stats()
309 stats->value[BNXT_RE_ACTIVE_PD] = atomic_read(&res_s->pd_count); in bnxt_re_ib_get_hw_stats()
310 stats->value[BNXT_RE_ACTIVE_AH] = atomic_read(&res_s->ah_count); in bnxt_re_ib_get_hw_stats()
311 stats->value[BNXT_RE_WATERMARK_QP] = res_s->qp_watermark; in bnxt_re_ib_get_hw_stats()
312 stats->value[BNXT_RE_WATERMARK_RC_QP] = res_s->rc_qp_watermark; in bnxt_re_ib_get_hw_stats()
313 stats->value[BNXT_RE_WATERMARK_UD_QP] = res_s->ud_qp_watermark; in bnxt_re_ib_get_hw_stats()
314 stats->value[BNXT_RE_WATERMARK_SRQ] = res_s->srq_watermark; in bnxt_re_ib_get_hw_stats()
315 stats->value[BNXT_RE_WATERMARK_CQ] = res_s->cq_watermark; in bnxt_re_ib_get_hw_stats()
316 stats->value[BNXT_RE_WATERMARK_MR] = res_s->mr_watermark; in bnxt_re_ib_get_hw_stats()
317 stats->value[BNXT_RE_WATERMARK_MW] = res_s->mw_watermark; in bnxt_re_ib_get_hw_stats()
318 stats->value[BNXT_RE_WATERMARK_PD] = res_s->pd_watermark; in bnxt_re_ib_get_hw_stats()
319 stats->value[BNXT_RE_WATERMARK_AH] = res_s->ah_watermark; in bnxt_re_ib_get_hw_stats()
320 stats->value[BNXT_RE_RESIZE_CQ_CNT] = atomic_read(&res_s->resize_count); in bnxt_re_ib_get_hw_stats()
323 stats->value[BNXT_RE_RECOVERABLE_ERRORS] = in bnxt_re_ib_get_hw_stats()
325 stats->value[BNXT_RE_TX_DISCARDS] = in bnxt_re_ib_get_hw_stats()
327 stats->value[BNXT_RE_TX_ERRORS] = in bnxt_re_ib_get_hw_stats()
329 stats->value[BNXT_RE_RX_ERRORS] = in bnxt_re_ib_get_hw_stats()
331 stats->value[BNXT_RE_RX_DISCARDS] = in bnxt_re_ib_get_hw_stats()
333 stats->value[BNXT_RE_RX_PKTS] = in bnxt_re_ib_get_hw_stats()
335 stats->value[BNXT_RE_RX_BYTES] = in bnxt_re_ib_get_hw_stats()
337 stats->value[BNXT_RE_TX_PKTS] = in bnxt_re_ib_get_hw_stats()
339 stats->value[BNXT_RE_TX_BYTES] = in bnxt_re_ib_get_hw_stats()
342 err_s = &rdev->stats.rstat.errs; in bnxt_re_ib_get_hw_stats()
350 bnxt_re_copy_err_stats(rdev, stats, err_s); in bnxt_re_ib_get_hw_stats()
353 rc = bnxt_re_get_ext_stat(rdev, stats); in bnxt_re_ib_get_hw_stats()
361 bnxt_re_copy_db_pacing_stats(rdev, stats); in bnxt_re_ib_get_hw_stats()