Lines Matching full:cpr
1031 struct bnxt_cp_ring_info *cpr, in bnxt_get_agg() argument
1038 &cpr->cp_desc_ring[CP_RING(cp_cons)][CP_IDX(cp_cons)]; in bnxt_get_agg()
1051 static void bnxt_reuse_rx_agg_bufs(struct bnxt_cp_ring_info *cpr, u16 idx, in bnxt_reuse_rx_agg_bufs() argument
1054 struct bnxt_napi *bnapi = cpr->bnapi; in bnxt_reuse_rx_agg_bufs()
1075 agg = bnxt_get_agg(bp, cpr, idx, start + i); in bnxt_reuse_rx_agg_bufs()
1218 struct bnxt_cp_ring_info *cpr, in __bnxt_rx_agg_pages() argument
1223 struct bnxt_napi *bnapi = cpr->bnapi; in __bnxt_rx_agg_pages()
1244 agg = bnxt_get_agg(bp, cpr, idx, i); in __bnxt_rx_agg_pages()
1274 bnxt_reuse_rx_agg_bufs(cpr, idx, i, agg_bufs - i, tpa); in __bnxt_rx_agg_pages()
1289 struct bnxt_cp_ring_info *cpr, in bnxt_rx_agg_pages_skb() argument
1296 total_frag_len = __bnxt_rx_agg_pages(bp, cpr, shinfo, idx, in bnxt_rx_agg_pages_skb()
1311 struct bnxt_cp_ring_info *cpr, in bnxt_rx_agg_pages_xdp() argument
1321 total_frag_len = __bnxt_rx_agg_pages(bp, cpr, shinfo, in bnxt_rx_agg_pages_xdp()
1331 static int bnxt_agg_bufs_valid(struct bnxt *bp, struct bnxt_cp_ring_info *cpr, in bnxt_agg_bufs_valid() argument
1340 &cpr->cp_desc_ring[CP_RING(last)][CP_IDX(last)]; in bnxt_agg_bufs_valid()
1402 static int bnxt_discard_rx(struct bnxt *bp, struct bnxt_cp_ring_info *cpr, in bnxt_discard_rx() argument
1425 if (!bnxt_agg_bufs_valid(bp, cpr, agg_bufs, &tmp_raw_cons)) in bnxt_discard_rx()
1572 static void bnxt_abort_tpa(struct bnxt_cp_ring_info *cpr, u16 idx, u32 agg_bufs) in bnxt_abort_tpa() argument
1575 bnxt_reuse_rx_agg_bufs(cpr, idx, 0, agg_bufs, true); in bnxt_abort_tpa()
1786 struct bnxt_cp_ring_info *cpr, in bnxt_tpa_end() argument
1792 struct bnxt_napi *bnapi = cpr->bnapi; in bnxt_tpa_end()
1805 int rc = bnxt_discard_rx(bp, cpr, raw_cons, tpa_end); in bnxt_tpa_end()
1833 if (!bnxt_agg_bufs_valid(bp, cpr, agg_bufs, raw_cons)) in bnxt_tpa_end()
1848 bnxt_abort_tpa(cpr, idx, agg_bufs); in bnxt_tpa_end()
1858 bnxt_abort_tpa(cpr, idx, agg_bufs); in bnxt_tpa_end()
1859 cpr->sw_stats->rx.rx_oom_discards += 1; in bnxt_tpa_end()
1869 bnxt_abort_tpa(cpr, idx, agg_bufs); in bnxt_tpa_end()
1870 cpr->sw_stats->rx.rx_oom_discards += 1; in bnxt_tpa_end()
1884 bnxt_abort_tpa(cpr, idx, agg_bufs); in bnxt_tpa_end()
1885 cpr->sw_stats->rx.rx_oom_discards += 1; in bnxt_tpa_end()
1894 skb = bnxt_rx_agg_pages_skb(bp, cpr, skb, idx, agg_bufs, true); in bnxt_tpa_end()
1897 cpr->sw_stats->rx.rx_oom_discards += 1; in bnxt_tpa_end()
2042 static int bnxt_rx_pkt(struct bnxt *bp, struct bnxt_cp_ring_info *cpr, in bnxt_rx_pkt() argument
2045 struct bnxt_napi *bnapi = cpr->bnapi; in bnxt_rx_pkt()
2066 &cpr->cp_desc_ring[CP_RING(cp_cons)][CP_IDX(cp_cons)]; in bnxt_rx_pkt()
2078 &cpr->cp_desc_ring[CP_RING(cp_cons)][CP_IDX(cp_cons)]; in bnxt_rx_pkt()
2099 skb = bnxt_tpa_end(bp, cpr, &tmp_raw_cons, in bnxt_rx_pkt()
2117 int rc1 = bnxt_discard_rx(bp, cpr, &tmp_raw_cons, rxcmp); in bnxt_rx_pkt()
2137 if (!bnxt_agg_bufs_valid(bp, cpr, agg_bufs, &tmp_raw_cons)) in bnxt_rx_pkt()
2151 bnxt_reuse_rx_agg_bufs(cpr, cp_cons, 0, agg_bufs, in bnxt_rx_pkt()
2174 u32 frag_len = bnxt_rx_agg_pages_xdp(bp, cpr, &xdp, in bnxt_rx_pkt()
2206 bnxt_reuse_rx_agg_bufs(cpr, cp_cons, 0, in bnxt_rx_pkt()
2228 skb = bnxt_rx_agg_pages_skb(bp, cpr, skb, cp_cons, agg_bufs, false); in bnxt_rx_pkt()
2300 cpr->rx_packets += 1; in bnxt_rx_pkt()
2301 cpr->rx_bytes += len; in bnxt_rx_pkt()
2313 cpr->sw_stats->rx.rx_oom_discards += 1; in bnxt_rx_pkt()
2322 struct bnxt_cp_ring_info *cpr, in bnxt_force_rx_discard() argument
2334 &cpr->cp_desc_ring[CP_RING(cp_cons)][CP_IDX(cp_cons)]; in bnxt_force_rx_discard()
2339 &cpr->cp_desc_ring[CP_RING(cp_cons)][CP_IDX(cp_cons)]; in bnxt_force_rx_discard()
2360 rc = bnxt_rx_pkt(bp, cpr, raw_cons, event); in bnxt_force_rx_discard()
2362 cpr->sw_stats->rx.rx_netpoll_discards += 1; in bnxt_force_rx_discard()
2931 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_msix() local
2932 u32 cons = RING_CMP(cpr->cp_raw_cons); in bnxt_msix()
2934 cpr->event_ctr++; in bnxt_msix()
2935 prefetch(&cpr->cp_desc_ring[CP_RING(cons)][CP_IDX(cons)]); in bnxt_msix()
2940 static inline int bnxt_has_work(struct bnxt *bp, struct bnxt_cp_ring_info *cpr) in bnxt_has_work() argument
2942 u32 raw_cons = cpr->cp_raw_cons; in bnxt_has_work()
2946 txcmp = &cpr->cp_desc_ring[CP_RING(cons)][CP_IDX(cons)]; in bnxt_has_work()
2951 static int __bnxt_poll_work(struct bnxt *bp, struct bnxt_cp_ring_info *cpr, in __bnxt_poll_work() argument
2954 struct bnxt_napi *bnapi = cpr->bnapi; in __bnxt_poll_work()
2955 u32 raw_cons = cpr->cp_raw_cons; in __bnxt_poll_work()
2961 cpr->has_more_work = 0; in __bnxt_poll_work()
2962 cpr->had_work_done = 1; in __bnxt_poll_work()
2968 txcmp = &cpr->cp_desc_ring[CP_RING(cons)][CP_IDX(cons)]; in __bnxt_poll_work()
2997 cpr->has_more_work = 1; in __bnxt_poll_work()
3005 rc = bnxt_rx_pkt(bp, cpr, &raw_cons, &event); in __bnxt_poll_work()
3007 rc = bnxt_force_rx_discard(bp, cpr, &raw_cons, in __bnxt_poll_work()
3028 cpr->has_more_work = 1; in __bnxt_poll_work()
3049 cpr->cp_raw_cons = raw_cons; in __bnxt_poll_work()
3074 static int bnxt_poll_work(struct bnxt *bp, struct bnxt_cp_ring_info *cpr, in bnxt_poll_work() argument
3077 struct bnxt_napi *bnapi = cpr->bnapi; in bnxt_poll_work()
3080 rx_pkts = __bnxt_poll_work(bp, cpr, budget); in bnxt_poll_work()
3086 bnxt_db_cq(bp, &cpr->cp_db, cpr->cp_raw_cons); in bnxt_poll_work()
3096 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_poll_nitroa0() local
3101 u32 raw_cons = cpr->cp_raw_cons; in bnxt_poll_nitroa0()
3110 txcmp = &cpr->cp_desc_ring[CP_RING(cp_cons)][CP_IDX(cp_cons)]; in bnxt_poll_nitroa0()
3123 &cpr->cp_desc_ring[CP_RING(cp_cons)][CP_IDX(cp_cons)]; in bnxt_poll_nitroa0()
3132 rc = bnxt_rx_pkt(bp, cpr, &raw_cons, &event); in bnxt_poll_nitroa0()
3152 cpr->cp_raw_cons = raw_cons; in bnxt_poll_nitroa0()
3153 BNXT_DB_CQ(&cpr->cp_db, cpr->cp_raw_cons); in bnxt_poll_nitroa0()
3161 if (!bnxt_has_work(bp, cpr) && rx_pkts < budget) { in bnxt_poll_nitroa0()
3163 BNXT_DB_CQ_ARM(&cpr->cp_db, cpr->cp_raw_cons); in bnxt_poll_nitroa0()
3172 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_poll() local
3180 work_done += bnxt_poll_work(bp, cpr, budget - work_done); in bnxt_poll()
3184 BNXT_DB_CQ_ARM(&cpr->cp_db, cpr->cp_raw_cons); in bnxt_poll()
3188 if (!bnxt_has_work(bp, cpr)) { in bnxt_poll()
3190 BNXT_DB_CQ_ARM(&cpr->cp_db, cpr->cp_raw_cons); in bnxt_poll()
3197 dim_update_sample(cpr->event_ctr, in bnxt_poll()
3198 cpr->rx_packets, in bnxt_poll()
3199 cpr->rx_bytes, in bnxt_poll()
3201 net_dim(&cpr->dim, &dim_sample); in bnxt_poll()
3208 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in __bnxt_poll_cqs() local
3211 for (i = 0; i < cpr->cp_ring_count; i++) { in __bnxt_poll_cqs()
3212 struct bnxt_cp_ring_info *cpr2 = &cpr->cp_ring_arr[i]; in __bnxt_poll_cqs()
3217 cpr->has_more_work |= cpr2->has_more_work; in __bnxt_poll_cqs()
3226 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in __bnxt_poll_cqs_done() local
3229 for (i = 0; i < cpr->cp_ring_count; i++) { in __bnxt_poll_cqs_done()
3230 struct bnxt_cp_ring_info *cpr2 = &cpr->cp_ring_arr[i]; in __bnxt_poll_cqs_done()
3254 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_poll_p5() local
3256 u32 raw_cons = cpr->cp_raw_cons; in bnxt_poll_p5()
3266 if (cpr->has_more_work) { in bnxt_poll_p5()
3267 cpr->has_more_work = 0; in bnxt_poll_p5()
3274 nqcmp = &cpr->nq_desc_ring[CP_RING(cons)][CP_IDX(cons)]; in bnxt_poll_p5()
3277 if (cpr->has_more_work) in bnxt_poll_p5()
3282 cpr->cp_raw_cons = raw_cons; in bnxt_poll_p5()
3284 BNXT_DB_NQ_ARM_P5(&cpr->cp_db, in bnxt_poll_p5()
3285 cpr->cp_raw_cons); in bnxt_poll_p5()
3306 cpr2 = &cpr->cp_ring_arr[idx]; in bnxt_poll_p5()
3311 cpr->has_more_work |= cpr2->has_more_work; in bnxt_poll_p5()
3318 if (raw_cons != cpr->cp_raw_cons) { in bnxt_poll_p5()
3319 cpr->cp_raw_cons = raw_cons; in bnxt_poll_p5()
3320 BNXT_DB_NQ_P5(&cpr->cp_db, raw_cons); in bnxt_poll_p5()
3323 cpr_rx = &cpr->cp_ring_arr[0]; in bnxt_poll_p5()
3328 dim_update_sample(cpr->event_ctr, in bnxt_poll_p5()
3332 net_dim(&cpr->dim, &dim_sample); in bnxt_poll_p5()
3959 static void bnxt_free_cp_arrays(struct bnxt_cp_ring_info *cpr) in bnxt_free_cp_arrays() argument
3961 struct bnxt_ring_struct *ring = &cpr->cp_ring_struct; in bnxt_free_cp_arrays()
3963 kfree(cpr->cp_desc_ring); in bnxt_free_cp_arrays()
3964 cpr->cp_desc_ring = NULL; in bnxt_free_cp_arrays()
3966 kfree(cpr->cp_desc_mapping); in bnxt_free_cp_arrays()
3967 cpr->cp_desc_mapping = NULL; in bnxt_free_cp_arrays()
3971 static int bnxt_alloc_cp_arrays(struct bnxt_cp_ring_info *cpr, int n) in bnxt_alloc_cp_arrays() argument
3973 cpr->cp_desc_ring = kcalloc(n, sizeof(*cpr->cp_desc_ring), GFP_KERNEL); in bnxt_alloc_cp_arrays()
3974 if (!cpr->cp_desc_ring) in bnxt_alloc_cp_arrays()
3976 cpr->cp_desc_mapping = kcalloc(n, sizeof(*cpr->cp_desc_mapping), in bnxt_alloc_cp_arrays()
3978 if (!cpr->cp_desc_mapping) in bnxt_alloc_cp_arrays()
4024 struct bnxt_cp_ring_info *cpr; in bnxt_free_cp_rings() local
4031 cpr = &bnapi->cp_ring; in bnxt_free_cp_rings()
4032 ring = &cpr->cp_ring_struct; in bnxt_free_cp_rings()
4036 if (!cpr->cp_ring_arr) in bnxt_free_cp_rings()
4039 for (j = 0; j < cpr->cp_ring_count; j++) { in bnxt_free_cp_rings()
4040 struct bnxt_cp_ring_info *cpr2 = &cpr->cp_ring_arr[j]; in bnxt_free_cp_rings()
4046 kfree(cpr->cp_ring_arr); in bnxt_free_cp_rings()
4047 cpr->cp_ring_arr = NULL; in bnxt_free_cp_rings()
4048 cpr->cp_ring_count = 0; in bnxt_free_cp_rings()
4053 struct bnxt_cp_ring_info *cpr) in bnxt_alloc_cp_sub_ring() argument
4059 rc = bnxt_alloc_cp_arrays(cpr, bp->cp_nr_pages); in bnxt_alloc_cp_sub_ring()
4061 bnxt_free_cp_arrays(cpr); in bnxt_alloc_cp_sub_ring()
4064 ring = &cpr->cp_ring_struct; in bnxt_alloc_cp_sub_ring()
4068 rmem->pg_arr = (void **)cpr->cp_desc_ring; in bnxt_alloc_cp_sub_ring()
4069 rmem->dma_arr = cpr->cp_desc_mapping; in bnxt_alloc_cp_sub_ring()
4074 bnxt_free_cp_arrays(cpr); in bnxt_alloc_cp_sub_ring()
4090 struct bnxt_cp_ring_info *cpr, *cpr2; in bnxt_alloc_cp_rings() local
4098 cpr = &bnapi->cp_ring; in bnxt_alloc_cp_rings()
4099 cpr->bnapi = bnapi; in bnxt_alloc_cp_rings()
4100 ring = &cpr->cp_ring_struct; in bnxt_alloc_cp_rings()
4124 cpr->cp_ring_arr = kcalloc(cp_count, sizeof(*cpr), in bnxt_alloc_cp_rings()
4126 if (!cpr->cp_ring_arr) in bnxt_alloc_cp_rings()
4128 cpr->cp_ring_count = cp_count; in bnxt_alloc_cp_rings()
4131 cpr2 = &cpr->cp_ring_arr[k]; in bnxt_alloc_cp_rings()
4136 cpr2->sw_stats = cpr->sw_stats; in bnxt_alloc_cp_rings()
4219 struct bnxt_cp_ring_info *cpr; in bnxt_init_ring_struct() local
4227 cpr = &bnapi->cp_ring; in bnxt_init_ring_struct()
4228 ring = &cpr->cp_ring_struct; in bnxt_init_ring_struct()
4232 rmem->pg_arr = (void **)cpr->cp_desc_ring; in bnxt_init_ring_struct()
4233 rmem->dma_arr = cpr->cp_desc_mapping; in bnxt_init_ring_struct()
4431 struct bnxt_cp_ring_info *cpr = &bp->bnapi[i]->cp_ring; in bnxt_init_cp_rings() local
4432 struct bnxt_ring_struct *ring = &cpr->cp_ring_struct; in bnxt_init_cp_rings()
4435 cpr->rx_ring_coal.coal_ticks = bp->rx_coal.coal_ticks; in bnxt_init_cp_rings()
4436 cpr->rx_ring_coal.coal_bufs = bp->rx_coal.coal_bufs; in bnxt_init_cp_rings()
4437 if (!cpr->cp_ring_arr) in bnxt_init_cp_rings()
4439 for (j = 0; j < cpr->cp_ring_count; j++) { in bnxt_init_cp_rings()
4440 struct bnxt_cp_ring_info *cpr2 = &cpr->cp_ring_arr[j]; in bnxt_init_cp_rings()
5018 struct bnxt_cp_ring_info *cpr; in bnxt_init_stats() local
5026 cpr = &bnapi->cp_ring; in bnxt_init_stats()
5027 stats = &cpr->stats; in bnxt_init_stats()
5105 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_free_ring_stats() local
5107 bnxt_free_stats_mem(bp, &cpr->stats); in bnxt_free_ring_stats()
5109 kfree(cpr->sw_stats); in bnxt_free_ring_stats()
5110 cpr->sw_stats = NULL; in bnxt_free_ring_stats()
5123 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_alloc_stats() local
5125 cpr->sw_stats = kzalloc(sizeof(*cpr->sw_stats), GFP_KERNEL); in bnxt_alloc_stats()
5126 if (!cpr->sw_stats) in bnxt_alloc_stats()
5129 cpr->stats.len = size; in bnxt_alloc_stats()
5130 rc = bnxt_alloc_stats_mem(bp, &cpr->stats, !i); in bnxt_alloc_stats()
5134 cpr->hw_stats_ctx_id = INVALID_STATS_CTX_ID; in bnxt_alloc_stats()
5190 struct bnxt_cp_ring_info *cpr; in bnxt_clear_ring_indices() local
5197 cpr = &bnapi->cp_ring; in bnxt_clear_ring_indices()
5198 cpr->cp_raw_cons = 0; in bnxt_clear_ring_indices()
5383 struct bnxt_cp_ring_info *cpr = in bnxt_alloc_mem() local
5386 cpr->cp_ring_struct.ring_mem.flags = in bnxt_alloc_mem()
5516 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_disable_int() local
5517 struct bnxt_ring_struct *ring = &cpr->cp_ring_struct; in bnxt_disable_int()
5520 bnxt_db_nq(bp, &cpr->cp_db, cpr->cp_raw_cons); in bnxt_disable_int()
5527 struct bnxt_cp_ring_info *cpr; in bnxt_cp_num_to_irq_num() local
5529 cpr = &bnapi->cp_ring; in bnxt_cp_num_to_irq_num()
5530 return cpr->cp_ring_struct.map_idx; in bnxt_cp_num_to_irq_num()
5557 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_enable_int() local
5559 bnxt_db_nq_arm(bp, &cpr->cp_db, cpr->cp_raw_cons); in bnxt_enable_int()
7232 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_hwrm_ring_alloc() local
7233 struct bnxt_ring_struct *ring = &cpr->cp_ring_struct; in bnxt_hwrm_ring_alloc()
7244 bnxt_set_db(bp, &cpr->cp_db, type, map_idx, ring->fw_ring_id); in bnxt_hwrm_ring_alloc()
7245 bnxt_db_nq(bp, &cpr->cp_db, cpr->cp_raw_cons); in bnxt_hwrm_ring_alloc()
7461 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_hwrm_ring_free() local
7465 for (j = 0; j < cpr->cp_ring_count && cpr->cp_ring_arr; j++) { in bnxt_hwrm_ring_free()
7466 struct bnxt_cp_ring_info *cpr2 = &cpr->cp_ring_arr[j]; in bnxt_hwrm_ring_free()
7476 ring = &cpr->cp_ring_struct; in bnxt_hwrm_ring_free()
8129 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in __bnxt_hwrm_set_coal_nq() local
8142 req->ring_id = cpu_to_le16(cpr->cp_ring_struct.fw_ring_id); in __bnxt_hwrm_set_coal_nq()
8156 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_hwrm_set_ring_coal() local
8165 coal.coal_ticks = cpr->rx_ring_coal.coal_ticks; in bnxt_hwrm_set_ring_coal()
8166 coal.coal_bufs = cpr->rx_ring_coal.coal_bufs; in bnxt_hwrm_set_ring_coal()
8287 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_hwrm_stat_ctx_free() local
8289 if (cpr->hw_stats_ctx_id != INVALID_STATS_CTX_ID) { in bnxt_hwrm_stat_ctx_free()
8290 req->stat_ctx_id = cpu_to_le32(cpr->hw_stats_ctx_id); in bnxt_hwrm_stat_ctx_free()
8297 cpr->hw_stats_ctx_id = INVALID_STATS_CTX_ID; in bnxt_hwrm_stat_ctx_free()
8324 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_hwrm_stat_ctx_alloc() local
8326 req->stats_dma_addr = cpu_to_le64(cpr->stats.hw_stats_map); in bnxt_hwrm_stat_ctx_alloc()
8332 cpr->hw_stats_ctx_id = le32_to_cpu(resp->stat_ctx_id); in bnxt_hwrm_stat_ctx_alloc()
8334 bp->grp_info[i].fw_stats_ctx = cpr->hw_stats_ctx_id; in bnxt_hwrm_stat_ctx_alloc()
10218 struct bnxt_cp_ring_info *cpr; in bnxt_accumulate_all_stats() local
10221 cpr = &bnapi->cp_ring; in bnxt_accumulate_all_stats()
10222 stats = &cpr->stats; in bnxt_accumulate_all_stats()
11400 struct bnxt_cp_ring_info *cpr; in bnxt_disable_napi() local
11402 cpr = &bnapi->cp_ring; in bnxt_disable_napi()
11404 cpr->sw_stats->tx.tx_resets++; in bnxt_disable_napi()
11406 cpr->sw_stats->rx.rx_resets++; in bnxt_disable_napi()
11418 struct bnxt_cp_ring_info *cpr; in bnxt_enable_napi() local
11422 cpr = &bnapi->cp_ring; in bnxt_enable_napi()
11426 INIT_WORK(&cpr->dim.work, bnxt_dim_work); in bnxt_enable_napi()
11427 cpr->dim.mode = DIM_CQ_PERIOD_MODE_START_FROM_EQE; in bnxt_enable_napi()
12900 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_get_ring_stats() local
12901 u64 *sw = cpr->stats.sw_stats; in bnxt_get_ring_stats()
12927 cpr->sw_stats->rx.rx_netpoll_discards + in bnxt_get_ring_stats()
12928 cpr->sw_stats->rx.rx_oom_discards; in bnxt_get_ring_stats()
12993 struct bnxt_cp_ring_info *cpr) in bnxt_get_one_ring_err_stats() argument
12995 struct bnxt_sw_stats *sw_stats = cpr->sw_stats; in bnxt_get_one_ring_err_stats()
12996 u64 *hw_stats = cpr->stats.sw_stats; in bnxt_get_one_ring_err_stats()
13626 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_dump_cp_sw_state() local
13630 i, cpr->cp_ring_struct.fw_ring_id, cpr->cp_raw_cons); in bnxt_dump_cp_sw_state()
13653 struct bnxt_cp_ring_info *cpr; in bnxt_hwrm_rx_ring_reset() local
13661 cpr = &bnapi->cp_ring; in bnxt_hwrm_rx_ring_reset()
13662 cp_ring_id = cpr->cp_ring_struct.fw_ring_id; in bnxt_hwrm_rx_ring_reset()
13809 struct bnxt_cp_ring_info *cpr; in bnxt_rx_ring_reset() local
13832 cpr = &rxr->bnapi->cp_ring; in bnxt_rx_ring_reset()
13833 cpr->sw_stats->rx.rx_resets++; in bnxt_rx_ring_reset()
14029 struct bnxt_cp_ring_info *cpr; in bnxt_chk_missed_irq() local
14036 cpr = &bnapi->cp_ring; in bnxt_chk_missed_irq()
14037 for (j = 0; j < cpr->cp_ring_count; j++) { in bnxt_chk_missed_irq()
14038 struct bnxt_cp_ring_info *cpr2 = &cpr->cp_ring_arr[j]; in bnxt_chk_missed_irq()
14052 cpr->sw_stats->cmn.missed_irqs++; in bnxt_chk_missed_irq()
15395 struct bnxt_cp_ring_info *cpr; in bnxt_get_queue_stats_rx() local
15401 cpr = &bp->bnapi[i]->cp_ring; in bnxt_get_queue_stats_rx()
15402 sw = cpr->stats.sw_stats; in bnxt_get_queue_stats_rx()
15414 stats->alloc_fail = cpr->sw_stats->rx.rx_oom_discards; in bnxt_get_queue_stats_rx()
15632 struct bnxt_cp_ring_info *cpr; in bnxt_queue_start() local
15662 cpr = &rxr->bnapi->cp_ring; in bnxt_queue_start()
15663 cpr->sw_stats->rx.rx_resets++; in bnxt_queue_start()