Lines Matching refs:stats

156 				   struct rdma_hw_stats *stats,  in bnxt_re_copy_ext_stats()  argument
159 stats->value[BNXT_RE_TX_ATOMIC_REQ] = s->tx_atomic_req; in bnxt_re_copy_ext_stats()
160 stats->value[BNXT_RE_TX_READ_REQ] = s->tx_read_req; in bnxt_re_copy_ext_stats()
161 stats->value[BNXT_RE_TX_READ_RES] = s->tx_read_res; in bnxt_re_copy_ext_stats()
162 stats->value[BNXT_RE_TX_WRITE_REQ] = s->tx_write_req; in bnxt_re_copy_ext_stats()
163 stats->value[BNXT_RE_TX_SEND_REQ] = s->tx_send_req; in bnxt_re_copy_ext_stats()
164 stats->value[BNXT_RE_TX_ROCE_PKTS] = s->tx_roce_pkts; in bnxt_re_copy_ext_stats()
165 stats->value[BNXT_RE_TX_ROCE_BYTES] = s->tx_roce_bytes; in bnxt_re_copy_ext_stats()
166 stats->value[BNXT_RE_RX_ATOMIC_REQ] = s->rx_atomic_req; in bnxt_re_copy_ext_stats()
167 stats->value[BNXT_RE_RX_READ_REQ] = s->rx_read_req; in bnxt_re_copy_ext_stats()
168 stats->value[BNXT_RE_RX_READ_RESP] = s->rx_read_res; in bnxt_re_copy_ext_stats()
169 stats->value[BNXT_RE_RX_WRITE_REQ] = s->rx_write_req; in bnxt_re_copy_ext_stats()
170 stats->value[BNXT_RE_RX_SEND_REQ] = s->rx_send_req; in bnxt_re_copy_ext_stats()
171 stats->value[BNXT_RE_RX_ROCE_PKTS] = s->rx_roce_pkts; in bnxt_re_copy_ext_stats()
172 stats->value[BNXT_RE_RX_ROCE_BYTES] = s->rx_roce_bytes; in bnxt_re_copy_ext_stats()
173 stats->value[BNXT_RE_RX_ROCE_GOOD_PKTS] = s->rx_roce_good_pkts; in bnxt_re_copy_ext_stats()
174 stats->value[BNXT_RE_RX_ROCE_GOOD_BYTES] = s->rx_roce_good_bytes; in bnxt_re_copy_ext_stats()
175 stats->value[BNXT_RE_OOB] = s->rx_out_of_buffer; in bnxt_re_copy_ext_stats()
176 stats->value[BNXT_RE_TX_CNP] = s->tx_cnp; in bnxt_re_copy_ext_stats()
177 stats->value[BNXT_RE_RX_CNP] = s->rx_cnp; in bnxt_re_copy_ext_stats()
178 stats->value[BNXT_RE_RX_ECN] = s->rx_ecn_marked; in bnxt_re_copy_ext_stats()
179 stats->value[BNXT_RE_OUT_OF_SEQ_ERR] = s->rx_out_of_sequence; in bnxt_re_copy_ext_stats()
183 struct rdma_hw_stats *stats) in bnxt_re_get_ext_stat() argument
185 struct bnxt_qplib_ext_stat *estat = &rdev->stats.rstat.ext_stat; in bnxt_re_get_ext_stat()
193 bnxt_re_copy_ext_stats(rdev, stats, estat); in bnxt_re_get_ext_stat()
200 struct rdma_hw_stats *stats, in bnxt_re_copy_err_stats() argument
203 stats->value[BNXT_RE_TO_RETRANSMITS] = in bnxt_re_copy_err_stats()
205 stats->value[BNXT_RE_SEQ_ERR_NAKS_RCVD] = in bnxt_re_copy_err_stats()
207 stats->value[BNXT_RE_MAX_RETRY_EXCEEDED] = in bnxt_re_copy_err_stats()
209 stats->value[BNXT_RE_RNR_NAKS_RCVD] = in bnxt_re_copy_err_stats()
211 stats->value[BNXT_RE_MISSING_RESP] = in bnxt_re_copy_err_stats()
213 stats->value[BNXT_RE_UNRECOVERABLE_ERR] = in bnxt_re_copy_err_stats()
215 stats->value[BNXT_RE_BAD_RESP_ERR] = in bnxt_re_copy_err_stats()
217 stats->value[BNXT_RE_LOCAL_QP_OP_ERR] = in bnxt_re_copy_err_stats()
219 stats->value[BNXT_RE_LOCAL_PROTECTION_ERR] = in bnxt_re_copy_err_stats()
221 stats->value[BNXT_RE_MEM_MGMT_OP_ERR] = in bnxt_re_copy_err_stats()
223 stats->value[BNXT_RE_REMOTE_INVALID_REQ_ERR] = in bnxt_re_copy_err_stats()
225 stats->value[BNXT_RE_REMOTE_ACCESS_ERR] = in bnxt_re_copy_err_stats()
227 stats->value[BNXT_RE_REMOTE_OP_ERR] = in bnxt_re_copy_err_stats()
229 stats->value[BNXT_RE_DUP_REQ] = in bnxt_re_copy_err_stats()
231 stats->value[BNXT_RE_RES_EXCEED_MAX] = in bnxt_re_copy_err_stats()
233 stats->value[BNXT_RE_RES_LENGTH_MISMATCH] = in bnxt_re_copy_err_stats()
235 stats->value[BNXT_RE_RES_EXCEEDS_WQE] = in bnxt_re_copy_err_stats()
237 stats->value[BNXT_RE_RES_OPCODE_ERR] = in bnxt_re_copy_err_stats()
239 stats->value[BNXT_RE_RES_RX_INVALID_RKEY] = in bnxt_re_copy_err_stats()
241 stats->value[BNXT_RE_RES_RX_DOMAIN_ERR] = in bnxt_re_copy_err_stats()
243 stats->value[BNXT_RE_RES_RX_NO_PERM] = in bnxt_re_copy_err_stats()
245 stats->value[BNXT_RE_RES_RX_RANGE_ERR] = in bnxt_re_copy_err_stats()
247 stats->value[BNXT_RE_RES_TX_INVALID_RKEY] = in bnxt_re_copy_err_stats()
249 stats->value[BNXT_RE_RES_TX_DOMAIN_ERR] = in bnxt_re_copy_err_stats()
251 stats->value[BNXT_RE_RES_TX_NO_PERM] = in bnxt_re_copy_err_stats()
253 stats->value[BNXT_RE_RES_TX_RANGE_ERR] = in bnxt_re_copy_err_stats()
255 stats->value[BNXT_RE_RES_IRRQ_OFLOW] = in bnxt_re_copy_err_stats()
257 stats->value[BNXT_RE_RES_UNSUP_OPCODE] = in bnxt_re_copy_err_stats()
259 stats->value[BNXT_RE_RES_UNALIGNED_ATOMIC] = in bnxt_re_copy_err_stats()
261 stats->value[BNXT_RE_RES_REM_INV_ERR] = in bnxt_re_copy_err_stats()
263 stats->value[BNXT_RE_RES_MEM_ERROR] = in bnxt_re_copy_err_stats()
265 stats->value[BNXT_RE_RES_SRQ_ERR] = in bnxt_re_copy_err_stats()
267 stats->value[BNXT_RE_RES_CMP_ERR] = in bnxt_re_copy_err_stats()
269 stats->value[BNXT_RE_RES_INVALID_DUP_RKEY] = in bnxt_re_copy_err_stats()
271 stats->value[BNXT_RE_RES_WQE_FORMAT_ERR] = in bnxt_re_copy_err_stats()
273 stats->value[BNXT_RE_RES_CQ_LOAD_ERR] = in bnxt_re_copy_err_stats()
275 stats->value[BNXT_RE_RES_SRQ_LOAD_ERR] = in bnxt_re_copy_err_stats()
277 stats->value[BNXT_RE_RES_TX_PCI_ERR] = in bnxt_re_copy_err_stats()
279 stats->value[BNXT_RE_RES_RX_PCI_ERR] = in bnxt_re_copy_err_stats()
281 stats->value[BNXT_RE_OUT_OF_SEQ_ERR] = in bnxt_re_copy_err_stats()
286 struct rdma_hw_stats *stats) in bnxt_re_copy_db_pacing_stats() argument
288 struct bnxt_re_db_pacing_stats *pacing_s = &rdev->stats.pacing; in bnxt_re_copy_db_pacing_stats()
290 stats->value[BNXT_RE_PACING_RESCHED] = pacing_s->resched; in bnxt_re_copy_db_pacing_stats()
291 stats->value[BNXT_RE_PACING_CMPL] = pacing_s->complete; in bnxt_re_copy_db_pacing_stats()
292 stats->value[BNXT_RE_PACING_ALERT] = pacing_s->alerts; in bnxt_re_copy_db_pacing_stats()
293 stats->value[BNXT_RE_DB_FIFO_REG] = in bnxt_re_copy_db_pacing_stats()
298 struct rdma_hw_stats *stats, in bnxt_re_ib_get_hw_stats() argument
302 struct bnxt_re_res_cntrs *res_s = &rdev->stats.res; in bnxt_re_ib_get_hw_stats()
307 hw_stats = rdev->qplib_ctx.stats.dma; in bnxt_re_ib_get_hw_stats()
308 if (!port || !stats) in bnxt_re_ib_get_hw_stats()
311 stats->value[BNXT_RE_ACTIVE_QP] = atomic_read(&res_s->qp_count); in bnxt_re_ib_get_hw_stats()
312 stats->value[BNXT_RE_ACTIVE_RC_QP] = atomic_read(&res_s->rc_qp_count); in bnxt_re_ib_get_hw_stats()
313 stats->value[BNXT_RE_ACTIVE_UD_QP] = atomic_read(&res_s->ud_qp_count); in bnxt_re_ib_get_hw_stats()
314 stats->value[BNXT_RE_ACTIVE_SRQ] = atomic_read(&res_s->srq_count); in bnxt_re_ib_get_hw_stats()
315 stats->value[BNXT_RE_ACTIVE_CQ] = atomic_read(&res_s->cq_count); in bnxt_re_ib_get_hw_stats()
316 stats->value[BNXT_RE_ACTIVE_MR] = atomic_read(&res_s->mr_count); in bnxt_re_ib_get_hw_stats()
317 stats->value[BNXT_RE_ACTIVE_MW] = atomic_read(&res_s->mw_count); in bnxt_re_ib_get_hw_stats()
318 stats->value[BNXT_RE_ACTIVE_PD] = atomic_read(&res_s->pd_count); in bnxt_re_ib_get_hw_stats()
319 stats->value[BNXT_RE_ACTIVE_AH] = atomic_read(&res_s->ah_count); in bnxt_re_ib_get_hw_stats()
320 stats->value[BNXT_RE_WATERMARK_QP] = res_s->qp_watermark; in bnxt_re_ib_get_hw_stats()
321 stats->value[BNXT_RE_WATERMARK_RC_QP] = res_s->rc_qp_watermark; in bnxt_re_ib_get_hw_stats()
322 stats->value[BNXT_RE_WATERMARK_UD_QP] = res_s->ud_qp_watermark; in bnxt_re_ib_get_hw_stats()
323 stats->value[BNXT_RE_WATERMARK_SRQ] = res_s->srq_watermark; in bnxt_re_ib_get_hw_stats()
324 stats->value[BNXT_RE_WATERMARK_CQ] = res_s->cq_watermark; in bnxt_re_ib_get_hw_stats()
325 stats->value[BNXT_RE_WATERMARK_MR] = res_s->mr_watermark; in bnxt_re_ib_get_hw_stats()
326 stats->value[BNXT_RE_WATERMARK_MW] = res_s->mw_watermark; in bnxt_re_ib_get_hw_stats()
327 stats->value[BNXT_RE_WATERMARK_PD] = res_s->pd_watermark; in bnxt_re_ib_get_hw_stats()
328 stats->value[BNXT_RE_WATERMARK_AH] = res_s->ah_watermark; in bnxt_re_ib_get_hw_stats()
329 stats->value[BNXT_RE_RESIZE_CQ_CNT] = atomic_read(&res_s->resize_count); in bnxt_re_ib_get_hw_stats()
332 stats->value[BNXT_RE_RECOVERABLE_ERRORS] = in bnxt_re_ib_get_hw_stats()
334 stats->value[BNXT_RE_TX_DISCARDS] = in bnxt_re_ib_get_hw_stats()
336 stats->value[BNXT_RE_TX_ERRORS] = in bnxt_re_ib_get_hw_stats()
338 stats->value[BNXT_RE_RX_ERRORS] = in bnxt_re_ib_get_hw_stats()
340 stats->value[BNXT_RE_RX_DISCARDS] = in bnxt_re_ib_get_hw_stats()
342 stats->value[BNXT_RE_RX_PKTS] = in bnxt_re_ib_get_hw_stats()
344 stats->value[BNXT_RE_RX_BYTES] = in bnxt_re_ib_get_hw_stats()
346 stats->value[BNXT_RE_TX_PKTS] = in bnxt_re_ib_get_hw_stats()
348 stats->value[BNXT_RE_TX_BYTES] = in bnxt_re_ib_get_hw_stats()
351 err_s = &rdev->stats.rstat.errs; in bnxt_re_ib_get_hw_stats()
359 bnxt_re_copy_err_stats(rdev, stats, err_s); in bnxt_re_ib_get_hw_stats()
362 rc = bnxt_re_get_ext_stat(rdev, stats); in bnxt_re_ib_get_hw_stats()
370 bnxt_re_copy_db_pacing_stats(rdev, stats); in bnxt_re_ib_get_hw_stats()