Lines Matching full:cpr

1009 				       struct bnxt_cp_ring_info *cpr,  in bnxt_get_agg()  argument
1016 &cpr->cp_desc_ring[CP_RING(cp_cons)][CP_IDX(cp_cons)]; in bnxt_get_agg()
1029 static void bnxt_reuse_rx_agg_bufs(struct bnxt_cp_ring_info *cpr, u16 idx, in bnxt_reuse_rx_agg_bufs() argument
1032 struct bnxt_napi *bnapi = cpr->bnapi; in bnxt_reuse_rx_agg_bufs()
1053 agg = bnxt_get_agg(bp, cpr, idx, start + i); in bnxt_reuse_rx_agg_bufs()
1195 struct bnxt_cp_ring_info *cpr, in __bnxt_rx_agg_pages() argument
1200 struct bnxt_napi *bnapi = cpr->bnapi; in __bnxt_rx_agg_pages()
1221 agg = bnxt_get_agg(bp, cpr, idx, i); in __bnxt_rx_agg_pages()
1251 bnxt_reuse_rx_agg_bufs(cpr, idx, i, agg_bufs - i, tpa); in __bnxt_rx_agg_pages()
1266 struct bnxt_cp_ring_info *cpr, in bnxt_rx_agg_pages_skb() argument
1273 total_frag_len = __bnxt_rx_agg_pages(bp, cpr, shinfo, idx, in bnxt_rx_agg_pages_skb()
1288 struct bnxt_cp_ring_info *cpr, in bnxt_rx_agg_pages_xdp() argument
1298 total_frag_len = __bnxt_rx_agg_pages(bp, cpr, shinfo, in bnxt_rx_agg_pages_xdp()
1308 static int bnxt_agg_bufs_valid(struct bnxt *bp, struct bnxt_cp_ring_info *cpr, in bnxt_agg_bufs_valid() argument
1317 &cpr->cp_desc_ring[CP_RING(last)][CP_IDX(last)]; in bnxt_agg_bufs_valid()
1379 static int bnxt_discard_rx(struct bnxt *bp, struct bnxt_cp_ring_info *cpr, in bnxt_discard_rx() argument
1402 if (!bnxt_agg_bufs_valid(bp, cpr, agg_bufs, &tmp_raw_cons)) in bnxt_discard_rx()
1549 static void bnxt_abort_tpa(struct bnxt_cp_ring_info *cpr, u16 idx, u32 agg_bufs) in bnxt_abort_tpa() argument
1552 bnxt_reuse_rx_agg_bufs(cpr, idx, 0, agg_bufs, true); in bnxt_abort_tpa()
1763 struct bnxt_cp_ring_info *cpr, in bnxt_tpa_end() argument
1769 struct bnxt_napi *bnapi = cpr->bnapi; in bnxt_tpa_end()
1782 int rc = bnxt_discard_rx(bp, cpr, raw_cons, tpa_end); in bnxt_tpa_end()
1810 if (!bnxt_agg_bufs_valid(bp, cpr, agg_bufs, raw_cons)) in bnxt_tpa_end()
1825 bnxt_abort_tpa(cpr, idx, agg_bufs); in bnxt_tpa_end()
1835 bnxt_abort_tpa(cpr, idx, agg_bufs); in bnxt_tpa_end()
1836 cpr->sw_stats->rx.rx_oom_discards += 1; in bnxt_tpa_end()
1845 bnxt_abort_tpa(cpr, idx, agg_bufs); in bnxt_tpa_end()
1846 cpr->sw_stats->rx.rx_oom_discards += 1; in bnxt_tpa_end()
1861 bnxt_abort_tpa(cpr, idx, agg_bufs); in bnxt_tpa_end()
1862 cpr->sw_stats->rx.rx_oom_discards += 1; in bnxt_tpa_end()
1870 skb = bnxt_rx_agg_pages_skb(bp, cpr, skb, idx, agg_bufs, true); in bnxt_tpa_end()
1873 cpr->sw_stats->rx.rx_oom_discards += 1; in bnxt_tpa_end()
2018 static int bnxt_rx_pkt(struct bnxt *bp, struct bnxt_cp_ring_info *cpr, in bnxt_rx_pkt() argument
2021 struct bnxt_napi *bnapi = cpr->bnapi; in bnxt_rx_pkt()
2041 &cpr->cp_desc_ring[CP_RING(cp_cons)][CP_IDX(cp_cons)]; in bnxt_rx_pkt()
2053 &cpr->cp_desc_ring[CP_RING(cp_cons)][CP_IDX(cp_cons)]; in bnxt_rx_pkt()
2074 skb = bnxt_tpa_end(bp, cpr, &tmp_raw_cons, in bnxt_rx_pkt()
2092 int rc1 = bnxt_discard_rx(bp, cpr, &tmp_raw_cons, rxcmp); in bnxt_rx_pkt()
2112 if (!bnxt_agg_bufs_valid(bp, cpr, agg_bufs, &tmp_raw_cons)) in bnxt_rx_pkt()
2126 bnxt_reuse_rx_agg_bufs(cpr, cp_cons, 0, agg_bufs, in bnxt_rx_pkt()
2149 u32 frag_len = bnxt_rx_agg_pages_xdp(bp, cpr, &xdp, in bnxt_rx_pkt()
2174 bnxt_reuse_rx_agg_bufs(cpr, cp_cons, 0, in bnxt_rx_pkt()
2196 skb = bnxt_rx_agg_pages_skb(bp, cpr, skb, cp_cons, agg_bufs, false); in bnxt_rx_pkt()
2272 cpr->rx_packets += 1; in bnxt_rx_pkt()
2273 cpr->rx_bytes += len; in bnxt_rx_pkt()
2285 cpr->sw_stats->rx.rx_oom_discards += 1; in bnxt_rx_pkt()
2294 struct bnxt_cp_ring_info *cpr, in bnxt_force_rx_discard() argument
2306 &cpr->cp_desc_ring[CP_RING(cp_cons)][CP_IDX(cp_cons)]; in bnxt_force_rx_discard()
2311 &cpr->cp_desc_ring[CP_RING(cp_cons)][CP_IDX(cp_cons)]; in bnxt_force_rx_discard()
2332 rc = bnxt_rx_pkt(bp, cpr, raw_cons, event); in bnxt_force_rx_discard()
2334 cpr->sw_stats->rx.rx_netpoll_discards += 1; in bnxt_force_rx_discard()
2835 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_msix() local
2836 u32 cons = RING_CMP(cpr->cp_raw_cons); in bnxt_msix()
2838 cpr->event_ctr++; in bnxt_msix()
2839 prefetch(&cpr->cp_desc_ring[CP_RING(cons)][CP_IDX(cons)]); in bnxt_msix()
2844 static inline int bnxt_has_work(struct bnxt *bp, struct bnxt_cp_ring_info *cpr) in bnxt_has_work() argument
2846 u32 raw_cons = cpr->cp_raw_cons; in bnxt_has_work()
2850 txcmp = &cpr->cp_desc_ring[CP_RING(cons)][CP_IDX(cons)]; in bnxt_has_work()
2855 static int __bnxt_poll_work(struct bnxt *bp, struct bnxt_cp_ring_info *cpr, in __bnxt_poll_work() argument
2858 struct bnxt_napi *bnapi = cpr->bnapi; in __bnxt_poll_work()
2859 u32 raw_cons = cpr->cp_raw_cons; in __bnxt_poll_work()
2865 cpr->has_more_work = 0; in __bnxt_poll_work()
2866 cpr->had_work_done = 1; in __bnxt_poll_work()
2872 txcmp = &cpr->cp_desc_ring[CP_RING(cons)][CP_IDX(cons)]; in __bnxt_poll_work()
2901 cpr->has_more_work = 1; in __bnxt_poll_work()
2909 rc = bnxt_rx_pkt(bp, cpr, &raw_cons, &event); in __bnxt_poll_work()
2911 rc = bnxt_force_rx_discard(bp, cpr, &raw_cons, in __bnxt_poll_work()
2932 cpr->has_more_work = 1; in __bnxt_poll_work()
2953 cpr->cp_raw_cons = raw_cons; in __bnxt_poll_work()
2978 static int bnxt_poll_work(struct bnxt *bp, struct bnxt_cp_ring_info *cpr, in bnxt_poll_work() argument
2981 struct bnxt_napi *bnapi = cpr->bnapi; in bnxt_poll_work()
2984 rx_pkts = __bnxt_poll_work(bp, cpr, budget); in bnxt_poll_work()
2990 bnxt_db_cq(bp, &cpr->cp_db, cpr->cp_raw_cons); in bnxt_poll_work()
3000 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_poll_nitroa0() local
3005 u32 raw_cons = cpr->cp_raw_cons; in bnxt_poll_nitroa0()
3014 txcmp = &cpr->cp_desc_ring[CP_RING(cp_cons)][CP_IDX(cp_cons)]; in bnxt_poll_nitroa0()
3027 &cpr->cp_desc_ring[CP_RING(cp_cons)][CP_IDX(cp_cons)]; in bnxt_poll_nitroa0()
3036 rc = bnxt_rx_pkt(bp, cpr, &raw_cons, &event); in bnxt_poll_nitroa0()
3056 cpr->cp_raw_cons = raw_cons; in bnxt_poll_nitroa0()
3057 BNXT_DB_CQ(&cpr->cp_db, cpr->cp_raw_cons); in bnxt_poll_nitroa0()
3065 if (!bnxt_has_work(bp, cpr) && rx_pkts < budget) { in bnxt_poll_nitroa0()
3067 BNXT_DB_CQ_ARM(&cpr->cp_db, cpr->cp_raw_cons); in bnxt_poll_nitroa0()
3076 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_poll() local
3084 work_done += bnxt_poll_work(bp, cpr, budget - work_done); in bnxt_poll()
3088 BNXT_DB_CQ_ARM(&cpr->cp_db, cpr->cp_raw_cons); in bnxt_poll()
3092 if (!bnxt_has_work(bp, cpr)) { in bnxt_poll()
3094 BNXT_DB_CQ_ARM(&cpr->cp_db, cpr->cp_raw_cons); in bnxt_poll()
3101 dim_update_sample(cpr->event_ctr, in bnxt_poll()
3102 cpr->rx_packets, in bnxt_poll()
3103 cpr->rx_bytes, in bnxt_poll()
3105 net_dim(&cpr->dim, dim_sample); in bnxt_poll()
3112 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in __bnxt_poll_cqs() local
3115 for (i = 0; i < cpr->cp_ring_count; i++) { in __bnxt_poll_cqs()
3116 struct bnxt_cp_ring_info *cpr2 = &cpr->cp_ring_arr[i]; in __bnxt_poll_cqs()
3121 cpr->has_more_work |= cpr2->has_more_work; in __bnxt_poll_cqs()
3130 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in __bnxt_poll_cqs_done() local
3133 for (i = 0; i < cpr->cp_ring_count; i++) { in __bnxt_poll_cqs_done()
3134 struct bnxt_cp_ring_info *cpr2 = &cpr->cp_ring_arr[i]; in __bnxt_poll_cqs_done()
3158 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_poll_p5() local
3160 u32 raw_cons = cpr->cp_raw_cons; in bnxt_poll_p5()
3170 if (cpr->has_more_work) { in bnxt_poll_p5()
3171 cpr->has_more_work = 0; in bnxt_poll_p5()
3178 nqcmp = &cpr->nq_desc_ring[CP_RING(cons)][CP_IDX(cons)]; in bnxt_poll_p5()
3181 if (cpr->has_more_work) in bnxt_poll_p5()
3186 cpr->cp_raw_cons = raw_cons; in bnxt_poll_p5()
3188 BNXT_DB_NQ_ARM_P5(&cpr->cp_db, in bnxt_poll_p5()
3189 cpr->cp_raw_cons); in bnxt_poll_p5()
3210 cpr2 = &cpr->cp_ring_arr[idx]; in bnxt_poll_p5()
3215 cpr->has_more_work |= cpr2->has_more_work; in bnxt_poll_p5()
3222 if (raw_cons != cpr->cp_raw_cons) { in bnxt_poll_p5()
3223 cpr->cp_raw_cons = raw_cons; in bnxt_poll_p5()
3224 BNXT_DB_NQ_P5(&cpr->cp_db, raw_cons); in bnxt_poll_p5()
3227 cpr_rx = &cpr->cp_ring_arr[0]; in bnxt_poll_p5()
3232 dim_update_sample(cpr->event_ctr, in bnxt_poll_p5()
3236 net_dim(&cpr->dim, dim_sample); in bnxt_poll_p5()
3796 static void bnxt_free_cp_arrays(struct bnxt_cp_ring_info *cpr) in bnxt_free_cp_arrays() argument
3798 struct bnxt_ring_struct *ring = &cpr->cp_ring_struct; in bnxt_free_cp_arrays()
3800 kfree(cpr->cp_desc_ring); in bnxt_free_cp_arrays()
3801 cpr->cp_desc_ring = NULL; in bnxt_free_cp_arrays()
3803 kfree(cpr->cp_desc_mapping); in bnxt_free_cp_arrays()
3804 cpr->cp_desc_mapping = NULL; in bnxt_free_cp_arrays()
3808 static int bnxt_alloc_cp_arrays(struct bnxt_cp_ring_info *cpr, int n) in bnxt_alloc_cp_arrays() argument
3810 cpr->cp_desc_ring = kcalloc(n, sizeof(*cpr->cp_desc_ring), GFP_KERNEL); in bnxt_alloc_cp_arrays()
3811 if (!cpr->cp_desc_ring) in bnxt_alloc_cp_arrays()
3813 cpr->cp_desc_mapping = kcalloc(n, sizeof(*cpr->cp_desc_mapping), in bnxt_alloc_cp_arrays()
3815 if (!cpr->cp_desc_mapping) in bnxt_alloc_cp_arrays()
3861 struct bnxt_cp_ring_info *cpr; in bnxt_free_cp_rings() local
3868 cpr = &bnapi->cp_ring; in bnxt_free_cp_rings()
3869 ring = &cpr->cp_ring_struct; in bnxt_free_cp_rings()
3873 if (!cpr->cp_ring_arr) in bnxt_free_cp_rings()
3876 for (j = 0; j < cpr->cp_ring_count; j++) { in bnxt_free_cp_rings()
3877 struct bnxt_cp_ring_info *cpr2 = &cpr->cp_ring_arr[j]; in bnxt_free_cp_rings()
3883 kfree(cpr->cp_ring_arr); in bnxt_free_cp_rings()
3884 cpr->cp_ring_arr = NULL; in bnxt_free_cp_rings()
3885 cpr->cp_ring_count = 0; in bnxt_free_cp_rings()
3890 struct bnxt_cp_ring_info *cpr) in bnxt_alloc_cp_sub_ring() argument
3896 rc = bnxt_alloc_cp_arrays(cpr, bp->cp_nr_pages); in bnxt_alloc_cp_sub_ring()
3898 bnxt_free_cp_arrays(cpr); in bnxt_alloc_cp_sub_ring()
3901 ring = &cpr->cp_ring_struct; in bnxt_alloc_cp_sub_ring()
3905 rmem->pg_arr = (void **)cpr->cp_desc_ring; in bnxt_alloc_cp_sub_ring()
3906 rmem->dma_arr = cpr->cp_desc_mapping; in bnxt_alloc_cp_sub_ring()
3911 bnxt_free_cp_arrays(cpr); in bnxt_alloc_cp_sub_ring()
3927 struct bnxt_cp_ring_info *cpr, *cpr2; in bnxt_alloc_cp_rings() local
3935 cpr = &bnapi->cp_ring; in bnxt_alloc_cp_rings()
3936 cpr->bnapi = bnapi; in bnxt_alloc_cp_rings()
3937 ring = &cpr->cp_ring_struct; in bnxt_alloc_cp_rings()
3961 cpr->cp_ring_arr = kcalloc(cp_count, sizeof(*cpr), in bnxt_alloc_cp_rings()
3963 if (!cpr->cp_ring_arr) in bnxt_alloc_cp_rings()
3965 cpr->cp_ring_count = cp_count; in bnxt_alloc_cp_rings()
3968 cpr2 = &cpr->cp_ring_arr[k]; in bnxt_alloc_cp_rings()
3973 cpr2->sw_stats = cpr->sw_stats; in bnxt_alloc_cp_rings()
4056 struct bnxt_cp_ring_info *cpr; in bnxt_init_ring_struct() local
4064 cpr = &bnapi->cp_ring; in bnxt_init_ring_struct()
4065 ring = &cpr->cp_ring_struct; in bnxt_init_ring_struct()
4069 rmem->pg_arr = (void **)cpr->cp_desc_ring; in bnxt_init_ring_struct()
4070 rmem->dma_arr = cpr->cp_desc_mapping; in bnxt_init_ring_struct()
4256 struct bnxt_cp_ring_info *cpr = &bp->bnapi[i]->cp_ring; in bnxt_init_cp_rings() local
4257 struct bnxt_ring_struct *ring = &cpr->cp_ring_struct; in bnxt_init_cp_rings()
4260 cpr->rx_ring_coal.coal_ticks = bp->rx_coal.coal_ticks; in bnxt_init_cp_rings()
4261 cpr->rx_ring_coal.coal_bufs = bp->rx_coal.coal_bufs; in bnxt_init_cp_rings()
4262 if (!cpr->cp_ring_arr) in bnxt_init_cp_rings()
4264 for (j = 0; j < cpr->cp_ring_count; j++) { in bnxt_init_cp_rings()
4265 struct bnxt_cp_ring_info *cpr2 = &cpr->cp_ring_arr[j]; in bnxt_init_cp_rings()
4815 struct bnxt_cp_ring_info *cpr; in bnxt_init_stats() local
4823 cpr = &bnapi->cp_ring; in bnxt_init_stats()
4824 stats = &cpr->stats; in bnxt_init_stats()
4902 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_free_ring_stats() local
4904 bnxt_free_stats_mem(bp, &cpr->stats); in bnxt_free_ring_stats()
4906 kfree(cpr->sw_stats); in bnxt_free_ring_stats()
4907 cpr->sw_stats = NULL; in bnxt_free_ring_stats()
4920 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_alloc_stats() local
4922 cpr->sw_stats = kzalloc(sizeof(*cpr->sw_stats), GFP_KERNEL); in bnxt_alloc_stats()
4923 if (!cpr->sw_stats) in bnxt_alloc_stats()
4926 cpr->stats.len = size; in bnxt_alloc_stats()
4927 rc = bnxt_alloc_stats_mem(bp, &cpr->stats, !i); in bnxt_alloc_stats()
4931 cpr->hw_stats_ctx_id = INVALID_STATS_CTX_ID; in bnxt_alloc_stats()
4987 struct bnxt_cp_ring_info *cpr; in bnxt_clear_ring_indices() local
4994 cpr = &bnapi->cp_ring; in bnxt_clear_ring_indices()
4995 cpr->cp_raw_cons = 0; in bnxt_clear_ring_indices()
5180 struct bnxt_cp_ring_info *cpr = in bnxt_alloc_mem() local
5183 cpr->cp_ring_struct.ring_mem.flags = in bnxt_alloc_mem()
5313 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_disable_int() local
5314 struct bnxt_ring_struct *ring = &cpr->cp_ring_struct; in bnxt_disable_int()
5317 bnxt_db_nq(bp, &cpr->cp_db, cpr->cp_raw_cons); in bnxt_disable_int()
5324 struct bnxt_cp_ring_info *cpr; in bnxt_cp_num_to_irq_num() local
5326 cpr = &bnapi->cp_ring; in bnxt_cp_num_to_irq_num()
5327 return cpr->cp_ring_struct.map_idx; in bnxt_cp_num_to_irq_num()
5354 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_enable_int() local
5356 bnxt_db_nq_arm(bp, &cpr->cp_db, cpr->cp_raw_cons); in bnxt_enable_int()
7030 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_hwrm_ring_alloc() local
7031 struct bnxt_ring_struct *ring = &cpr->cp_ring_struct; in bnxt_hwrm_ring_alloc()
7042 bnxt_set_db(bp, &cpr->cp_db, type, map_idx, ring->fw_ring_id); in bnxt_hwrm_ring_alloc()
7043 bnxt_db_nq(bp, &cpr->cp_db, cpr->cp_raw_cons); in bnxt_hwrm_ring_alloc()
7238 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_hwrm_ring_free() local
7242 for (j = 0; j < cpr->cp_ring_count && cpr->cp_ring_arr; j++) { in bnxt_hwrm_ring_free()
7243 struct bnxt_cp_ring_info *cpr2 = &cpr->cp_ring_arr[j]; in bnxt_hwrm_ring_free()
7253 ring = &cpr->cp_ring_struct; in bnxt_hwrm_ring_free()
7906 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in __bnxt_hwrm_set_coal_nq() local
7919 req->ring_id = cpu_to_le16(cpr->cp_ring_struct.fw_ring_id); in __bnxt_hwrm_set_coal_nq()
7933 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_hwrm_set_ring_coal() local
7942 coal.coal_ticks = cpr->rx_ring_coal.coal_ticks; in bnxt_hwrm_set_ring_coal()
7943 coal.coal_bufs = cpr->rx_ring_coal.coal_bufs; in bnxt_hwrm_set_ring_coal()
8064 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_hwrm_stat_ctx_free() local
8066 if (cpr->hw_stats_ctx_id != INVALID_STATS_CTX_ID) { in bnxt_hwrm_stat_ctx_free()
8067 req->stat_ctx_id = cpu_to_le32(cpr->hw_stats_ctx_id); in bnxt_hwrm_stat_ctx_free()
8074 cpr->hw_stats_ctx_id = INVALID_STATS_CTX_ID; in bnxt_hwrm_stat_ctx_free()
8101 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_hwrm_stat_ctx_alloc() local
8103 req->stats_dma_addr = cpu_to_le64(cpr->stats.hw_stats_map); in bnxt_hwrm_stat_ctx_alloc()
8109 cpr->hw_stats_ctx_id = le32_to_cpu(resp->stat_ctx_id); in bnxt_hwrm_stat_ctx_alloc()
8111 bp->grp_info[i].fw_stats_ctx = cpr->hw_stats_ctx_id; in bnxt_hwrm_stat_ctx_alloc()
9828 struct bnxt_cp_ring_info *cpr; in bnxt_accumulate_all_stats() local
9831 cpr = &bnapi->cp_ring; in bnxt_accumulate_all_stats()
9832 stats = &cpr->stats; in bnxt_accumulate_all_stats()
11009 struct bnxt_cp_ring_info *cpr; in bnxt_disable_napi() local
11011 cpr = &bnapi->cp_ring; in bnxt_disable_napi()
11013 cpr->sw_stats->tx.tx_resets++; in bnxt_disable_napi()
11015 cpr->sw_stats->rx.rx_resets++; in bnxt_disable_napi()
11018 cancel_work_sync(&cpr->dim.work); in bnxt_disable_napi()
11029 struct bnxt_cp_ring_info *cpr; in bnxt_enable_napi() local
11033 cpr = &bnapi->cp_ring; in bnxt_enable_napi()
11037 INIT_WORK(&cpr->dim.work, bnxt_dim_work); in bnxt_enable_napi()
11038 cpr->dim.mode = DIM_CQ_PERIOD_MODE_START_FROM_EQE; in bnxt_enable_napi()
12491 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_get_ring_stats() local
12492 u64 *sw = cpr->stats.sw_stats; in bnxt_get_ring_stats()
12518 cpr->sw_stats->rx.rx_netpoll_discards + in bnxt_get_ring_stats()
12519 cpr->sw_stats->rx.rx_oom_discards; in bnxt_get_ring_stats()
12584 struct bnxt_cp_ring_info *cpr) in bnxt_get_one_ring_err_stats() argument
12586 struct bnxt_sw_stats *sw_stats = cpr->sw_stats; in bnxt_get_one_ring_err_stats()
12587 u64 *hw_stats = cpr->stats.sw_stats; in bnxt_get_one_ring_err_stats()
13217 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_dump_cp_sw_state() local
13221 i, cpr->cp_ring_struct.fw_ring_id, cpr->cp_raw_cons); in bnxt_dump_cp_sw_state()
13244 struct bnxt_cp_ring_info *cpr; in bnxt_hwrm_rx_ring_reset() local
13252 cpr = &bnapi->cp_ring; in bnxt_hwrm_rx_ring_reset()
13253 cp_ring_id = cpr->cp_ring_struct.fw_ring_id; in bnxt_hwrm_rx_ring_reset()
13400 struct bnxt_cp_ring_info *cpr; in bnxt_rx_ring_reset() local
13423 cpr = &rxr->bnapi->cp_ring; in bnxt_rx_ring_reset()
13424 cpr->sw_stats->rx.rx_resets++; in bnxt_rx_ring_reset()
13618 struct bnxt_cp_ring_info *cpr; in bnxt_chk_missed_irq() local
13625 cpr = &bnapi->cp_ring; in bnxt_chk_missed_irq()
13626 for (j = 0; j < cpr->cp_ring_count; j++) { in bnxt_chk_missed_irq()
13627 struct bnxt_cp_ring_info *cpr2 = &cpr->cp_ring_arr[j]; in bnxt_chk_missed_irq()
13641 cpr->sw_stats->cmn.missed_irqs++; in bnxt_chk_missed_irq()
14976 struct bnxt_cp_ring_info *cpr; in bnxt_get_queue_stats_rx() local
14979 cpr = &bp->bnapi[i]->cp_ring; in bnxt_get_queue_stats_rx()
14980 sw = cpr->stats.sw_stats; in bnxt_get_queue_stats_rx()
14992 stats->alloc_fail = cpr->sw_stats->rx.rx_oom_discards; in bnxt_get_queue_stats_rx()
15202 struct bnxt_cp_ring_info *cpr; in bnxt_queue_start() local
15229 cpr = &rxr->bnapi->cp_ring; in bnxt_queue_start()
15230 cpr->sw_stats->rx.rx_resets++; in bnxt_queue_start()