Lines Matching refs:stats
74 struct rdma_hw_stats *stats, in bnxt_re_ib_get_hw_stats() argument
78 struct ctx_hw_stats *bnxt_re_stats = rdev->qplib_ctx.stats.dma; in bnxt_re_ib_get_hw_stats()
80 if (!port || !stats) in bnxt_re_ib_get_hw_stats()
83 stats->value[BNXT_RE_ACTIVE_QP] = atomic_read(&rdev->qp_count); in bnxt_re_ib_get_hw_stats()
84 stats->value[BNXT_RE_ACTIVE_SRQ] = atomic_read(&rdev->srq_count); in bnxt_re_ib_get_hw_stats()
85 stats->value[BNXT_RE_ACTIVE_CQ] = atomic_read(&rdev->cq_count); in bnxt_re_ib_get_hw_stats()
86 stats->value[BNXT_RE_ACTIVE_MR] = atomic_read(&rdev->mr_count); in bnxt_re_ib_get_hw_stats()
87 stats->value[BNXT_RE_ACTIVE_MW] = atomic_read(&rdev->mw_count); in bnxt_re_ib_get_hw_stats()
89 stats->value[BNXT_RE_RECOVERABLE_ERRORS] = in bnxt_re_ib_get_hw_stats()
91 stats->value[BNXT_RE_RX_PKTS] = in bnxt_re_ib_get_hw_stats()
93 stats->value[BNXT_RE_RX_BYTES] = in bnxt_re_ib_get_hw_stats()
95 stats->value[BNXT_RE_TX_PKTS] = in bnxt_re_ib_get_hw_stats()
97 stats->value[BNXT_RE_TX_BYTES] = in bnxt_re_ib_get_hw_stats()