Lines Matching refs:cpr
933 struct bnxt_cp_ring_info *cpr, in bnxt_get_agg() argument
940 &cpr->cp_desc_ring[CP_RING(cp_cons)][CP_IDX(cp_cons)]; in bnxt_get_agg()
953 static void bnxt_reuse_rx_agg_bufs(struct bnxt_cp_ring_info *cpr, u16 idx, in bnxt_reuse_rx_agg_bufs() argument
956 struct bnxt_napi *bnapi = cpr->bnapi; in bnxt_reuse_rx_agg_bufs()
977 agg = bnxt_get_agg(bp, cpr, idx, start + i); in bnxt_reuse_rx_agg_bufs()
1087 struct bnxt_cp_ring_info *cpr, in bnxt_rx_pages() argument
1091 struct bnxt_napi *bnapi = cpr->bnapi; in bnxt_rx_pages()
1111 agg = bnxt_get_agg(bp, cpr, idx, i); in bnxt_rx_pages()
1145 bnxt_reuse_rx_agg_bufs(cpr, idx, i, agg_bufs - i, tpa); in bnxt_rx_pages()
1163 static int bnxt_agg_bufs_valid(struct bnxt *bp, struct bnxt_cp_ring_info *cpr, in bnxt_agg_bufs_valid() argument
1172 &cpr->cp_desc_ring[CP_RING(last)][CP_IDX(last)]; in bnxt_agg_bufs_valid()
1201 static int bnxt_discard_rx(struct bnxt *bp, struct bnxt_cp_ring_info *cpr, in bnxt_discard_rx() argument
1224 if (!bnxt_agg_bufs_valid(bp, cpr, agg_bufs, &tmp_raw_cons)) in bnxt_discard_rx()
1372 static void bnxt_abort_tpa(struct bnxt_cp_ring_info *cpr, u16 idx, u32 agg_bufs) in bnxt_abort_tpa() argument
1375 bnxt_reuse_rx_agg_bufs(cpr, idx, 0, agg_bufs, true); in bnxt_abort_tpa()
1586 struct bnxt_cp_ring_info *cpr, in bnxt_tpa_end() argument
1592 struct bnxt_napi *bnapi = cpr->bnapi; in bnxt_tpa_end()
1604 int rc = bnxt_discard_rx(bp, cpr, raw_cons, tpa_end); in bnxt_tpa_end()
1632 if (!bnxt_agg_bufs_valid(bp, cpr, agg_bufs, raw_cons)) in bnxt_tpa_end()
1647 bnxt_abort_tpa(cpr, idx, agg_bufs); in bnxt_tpa_end()
1657 bnxt_abort_tpa(cpr, idx, agg_bufs); in bnxt_tpa_end()
1658 cpr->sw_stats.rx.rx_oom_discards += 1; in bnxt_tpa_end()
1667 bnxt_abort_tpa(cpr, idx, agg_bufs); in bnxt_tpa_end()
1668 cpr->sw_stats.rx.rx_oom_discards += 1; in bnxt_tpa_end()
1683 bnxt_abort_tpa(cpr, idx, agg_bufs); in bnxt_tpa_end()
1684 cpr->sw_stats.rx.rx_oom_discards += 1; in bnxt_tpa_end()
1692 skb = bnxt_rx_pages(bp, cpr, skb, idx, agg_bufs, true); in bnxt_tpa_end()
1695 cpr->sw_stats.rx.rx_oom_discards += 1; in bnxt_tpa_end()
1764 static int bnxt_rx_pkt(struct bnxt *bp, struct bnxt_cp_ring_info *cpr, in bnxt_rx_pkt() argument
1767 struct bnxt_napi *bnapi = cpr->bnapi; in bnxt_rx_pkt()
1784 &cpr->cp_desc_ring[CP_RING(cp_cons)][CP_IDX(cp_cons)]; in bnxt_rx_pkt()
1796 &cpr->cp_desc_ring[CP_RING(cp_cons)][CP_IDX(cp_cons)]; in bnxt_rx_pkt()
1815 skb = bnxt_tpa_end(bp, cpr, &tmp_raw_cons, in bnxt_rx_pkt()
1833 int rc1 = bnxt_discard_rx(bp, cpr, &tmp_raw_cons, rxcmp); in bnxt_rx_pkt()
1853 if (!bnxt_agg_bufs_valid(bp, cpr, agg_bufs, &tmp_raw_cons)) in bnxt_rx_pkt()
1867 bnxt_reuse_rx_agg_bufs(cpr, cp_cons, 0, agg_bufs, in bnxt_rx_pkt()
1897 bnxt_reuse_rx_agg_bufs(cpr, cp_cons, 0, in bnxt_rx_pkt()
1899 cpr->sw_stats.rx.rx_oom_discards += 1; in bnxt_rx_pkt()
1913 cpr->sw_stats.rx.rx_oom_discards += 1; in bnxt_rx_pkt()
1920 skb = bnxt_rx_pages(bp, cpr, skb, cp_cons, agg_bufs, false); in bnxt_rx_pkt()
1922 cpr->sw_stats.rx.rx_oom_discards += 1; in bnxt_rx_pkt()
1992 cpr->rx_packets += 1; in bnxt_rx_pkt()
1993 cpr->rx_bytes += len; in bnxt_rx_pkt()
2009 struct bnxt_cp_ring_info *cpr, in bnxt_force_rx_discard() argument
2021 &cpr->cp_desc_ring[CP_RING(cp_cons)][CP_IDX(cp_cons)]; in bnxt_force_rx_discard()
2026 &cpr->cp_desc_ring[CP_RING(cp_cons)][CP_IDX(cp_cons)]; in bnxt_force_rx_discard()
2046 rc = bnxt_rx_pkt(bp, cpr, raw_cons, event); in bnxt_force_rx_discard()
2048 cpr->sw_stats.rx.rx_netpoll_discards += 1; in bnxt_force_rx_discard()
2342 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_msix() local
2343 u32 cons = RING_CMP(cpr->cp_raw_cons); in bnxt_msix()
2345 cpr->event_ctr++; in bnxt_msix()
2346 prefetch(&cpr->cp_desc_ring[CP_RING(cons)][CP_IDX(cons)]); in bnxt_msix()
2351 static inline int bnxt_has_work(struct bnxt *bp, struct bnxt_cp_ring_info *cpr) in bnxt_has_work() argument
2353 u32 raw_cons = cpr->cp_raw_cons; in bnxt_has_work()
2357 txcmp = &cpr->cp_desc_ring[CP_RING(cons)][CP_IDX(cons)]; in bnxt_has_work()
2366 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_inta() local
2367 u32 cons = RING_CMP(cpr->cp_raw_cons); in bnxt_inta()
2370 prefetch(&cpr->cp_desc_ring[CP_RING(cons)][CP_IDX(cons)]); in bnxt_inta()
2372 if (!bnxt_has_work(bp, cpr)) { in bnxt_inta()
2375 if (!(int_status & (0x10000 << cpr->cp_ring_struct.fw_ring_id))) in bnxt_inta()
2380 BNXT_CP_DB_IRQ_DIS(cpr->cp_db.doorbell); in bnxt_inta()
2390 static int __bnxt_poll_work(struct bnxt *bp, struct bnxt_cp_ring_info *cpr, in __bnxt_poll_work() argument
2393 struct bnxt_napi *bnapi = cpr->bnapi; in __bnxt_poll_work()
2394 u32 raw_cons = cpr->cp_raw_cons; in __bnxt_poll_work()
2401 cpr->has_more_work = 0; in __bnxt_poll_work()
2402 cpr->had_work_done = 1; in __bnxt_poll_work()
2407 txcmp = &cpr->cp_desc_ring[CP_RING(cons)][CP_IDX(cons)]; in __bnxt_poll_work()
2423 cpr->has_more_work = 1; in __bnxt_poll_work()
2428 rc = bnxt_rx_pkt(bp, cpr, &raw_cons, &event); in __bnxt_poll_work()
2430 rc = bnxt_force_rx_discard(bp, cpr, &raw_cons, in __bnxt_poll_work()
2454 cpr->has_more_work = 1; in __bnxt_poll_work()
2472 cpr->cp_raw_cons = raw_cons; in __bnxt_poll_work()
2495 static int bnxt_poll_work(struct bnxt *bp, struct bnxt_cp_ring_info *cpr, in bnxt_poll_work() argument
2498 struct bnxt_napi *bnapi = cpr->bnapi; in bnxt_poll_work()
2501 rx_pkts = __bnxt_poll_work(bp, cpr, budget); in bnxt_poll_work()
2507 bnxt_db_cq(bp, &cpr->cp_db, cpr->cp_raw_cons); in bnxt_poll_work()
2517 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_poll_nitroa0() local
2522 u32 raw_cons = cpr->cp_raw_cons; in bnxt_poll_nitroa0()
2530 txcmp = &cpr->cp_desc_ring[CP_RING(cp_cons)][CP_IDX(cp_cons)]; in bnxt_poll_nitroa0()
2543 &cpr->cp_desc_ring[CP_RING(cp_cons)][CP_IDX(cp_cons)]; in bnxt_poll_nitroa0()
2552 rc = bnxt_rx_pkt(bp, cpr, &raw_cons, &event); in bnxt_poll_nitroa0()
2570 cpr->cp_raw_cons = raw_cons; in bnxt_poll_nitroa0()
2571 BNXT_DB_CQ(&cpr->cp_db, cpr->cp_raw_cons); in bnxt_poll_nitroa0()
2577 if (!bnxt_has_work(bp, cpr) && rx_pkts < budget) { in bnxt_poll_nitroa0()
2579 BNXT_DB_CQ_ARM(&cpr->cp_db, cpr->cp_raw_cons); in bnxt_poll_nitroa0()
2588 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_poll() local
2596 work_done += bnxt_poll_work(bp, cpr, budget - work_done); in bnxt_poll()
2600 BNXT_DB_CQ_ARM(&cpr->cp_db, cpr->cp_raw_cons); in bnxt_poll()
2604 if (!bnxt_has_work(bp, cpr)) { in bnxt_poll()
2606 BNXT_DB_CQ_ARM(&cpr->cp_db, cpr->cp_raw_cons); in bnxt_poll()
2613 dim_update_sample(cpr->event_ctr, in bnxt_poll()
2614 cpr->rx_packets, in bnxt_poll()
2615 cpr->rx_bytes, in bnxt_poll()
2617 net_dim(&cpr->dim, dim_sample); in bnxt_poll()
2624 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in __bnxt_poll_cqs() local
2628 struct bnxt_cp_ring_info *cpr2 = cpr->cp_ring_arr[i]; in __bnxt_poll_cqs()
2633 cpr->has_more_work |= cpr2->has_more_work; in __bnxt_poll_cqs()
2642 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in __bnxt_poll_cqs_done() local
2646 struct bnxt_cp_ring_info *cpr2 = cpr->cp_ring_arr[i]; in __bnxt_poll_cqs_done()
2662 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_poll_p5() local
2663 u32 raw_cons = cpr->cp_raw_cons; in bnxt_poll_p5()
2673 if (cpr->has_more_work) { in bnxt_poll_p5()
2674 cpr->has_more_work = 0; in bnxt_poll_p5()
2679 nqcmp = &cpr->nq_desc_ring[CP_RING(cons)][CP_IDX(cons)]; in bnxt_poll_p5()
2682 if (cpr->has_more_work) in bnxt_poll_p5()
2686 cpr->cp_raw_cons = raw_cons; in bnxt_poll_p5()
2688 BNXT_DB_NQ_ARM_P5(&cpr->cp_db, in bnxt_poll_p5()
2689 cpr->cp_raw_cons); in bnxt_poll_p5()
2702 cpr2 = cpr->cp_ring_arr[idx]; in bnxt_poll_p5()
2705 cpr->has_more_work |= cpr2->has_more_work; in bnxt_poll_p5()
2712 if (raw_cons != cpr->cp_raw_cons) { in bnxt_poll_p5()
2713 cpr->cp_raw_cons = raw_cons; in bnxt_poll_p5()
2714 BNXT_DB_NQ_P5(&cpr->cp_db, raw_cons); in bnxt_poll_p5()
3245 static void bnxt_free_cp_arrays(struct bnxt_cp_ring_info *cpr) in bnxt_free_cp_arrays() argument
3247 struct bnxt_ring_struct *ring = &cpr->cp_ring_struct; in bnxt_free_cp_arrays()
3249 kfree(cpr->cp_desc_ring); in bnxt_free_cp_arrays()
3250 cpr->cp_desc_ring = NULL; in bnxt_free_cp_arrays()
3252 kfree(cpr->cp_desc_mapping); in bnxt_free_cp_arrays()
3253 cpr->cp_desc_mapping = NULL; in bnxt_free_cp_arrays()
3257 static int bnxt_alloc_cp_arrays(struct bnxt_cp_ring_info *cpr, int n) in bnxt_alloc_cp_arrays() argument
3259 cpr->cp_desc_ring = kcalloc(n, sizeof(*cpr->cp_desc_ring), GFP_KERNEL); in bnxt_alloc_cp_arrays()
3260 if (!cpr->cp_desc_ring) in bnxt_alloc_cp_arrays()
3262 cpr->cp_desc_mapping = kcalloc(n, sizeof(*cpr->cp_desc_mapping), in bnxt_alloc_cp_arrays()
3264 if (!cpr->cp_desc_mapping) in bnxt_alloc_cp_arrays()
3310 struct bnxt_cp_ring_info *cpr; in bnxt_free_cp_rings() local
3317 cpr = &bnapi->cp_ring; in bnxt_free_cp_rings()
3318 ring = &cpr->cp_ring_struct; in bnxt_free_cp_rings()
3323 struct bnxt_cp_ring_info *cpr2 = cpr->cp_ring_arr[j]; in bnxt_free_cp_rings()
3330 cpr->cp_ring_arr[j] = NULL; in bnxt_free_cp_rings()
3340 struct bnxt_cp_ring_info *cpr; in bnxt_alloc_cp_sub_ring() local
3343 cpr = kzalloc(sizeof(*cpr), GFP_KERNEL); in bnxt_alloc_cp_sub_ring()
3344 if (!cpr) in bnxt_alloc_cp_sub_ring()
3347 rc = bnxt_alloc_cp_arrays(cpr, bp->cp_nr_pages); in bnxt_alloc_cp_sub_ring()
3349 bnxt_free_cp_arrays(cpr); in bnxt_alloc_cp_sub_ring()
3350 kfree(cpr); in bnxt_alloc_cp_sub_ring()
3353 ring = &cpr->cp_ring_struct; in bnxt_alloc_cp_sub_ring()
3357 rmem->pg_arr = (void **)cpr->cp_desc_ring; in bnxt_alloc_cp_sub_ring()
3358 rmem->dma_arr = cpr->cp_desc_mapping; in bnxt_alloc_cp_sub_ring()
3363 bnxt_free_cp_arrays(cpr); in bnxt_alloc_cp_sub_ring()
3364 kfree(cpr); in bnxt_alloc_cp_sub_ring()
3365 cpr = NULL; in bnxt_alloc_cp_sub_ring()
3367 return cpr; in bnxt_alloc_cp_sub_ring()
3379 struct bnxt_cp_ring_info *cpr; in bnxt_alloc_cp_rings() local
3385 cpr = &bnapi->cp_ring; in bnxt_alloc_cp_rings()
3386 cpr->bnapi = bnapi; in bnxt_alloc_cp_rings()
3387 ring = &cpr->cp_ring_struct; in bnxt_alloc_cp_rings()
3405 cpr->cp_ring_arr[BNXT_RX_HDL] = cpr2; in bnxt_alloc_cp_rings()
3415 cpr->cp_ring_arr[BNXT_TX_HDL] = cpr2; in bnxt_alloc_cp_rings()
3431 struct bnxt_cp_ring_info *cpr; in bnxt_init_ring_struct() local
3439 cpr = &bnapi->cp_ring; in bnxt_init_ring_struct()
3440 ring = &cpr->cp_ring_struct; in bnxt_init_ring_struct()
3444 rmem->pg_arr = (void **)cpr->cp_desc_ring; in bnxt_init_ring_struct()
3445 rmem->dma_arr = cpr->cp_desc_mapping; in bnxt_init_ring_struct()
3597 struct bnxt_cp_ring_info *cpr = &bp->bnapi[i]->cp_ring; in bnxt_init_cp_rings() local
3598 struct bnxt_ring_struct *ring = &cpr->cp_ring_struct; in bnxt_init_cp_rings()
3601 cpr->rx_ring_coal.coal_ticks = bp->rx_coal.coal_ticks; in bnxt_init_cp_rings()
3602 cpr->rx_ring_coal.coal_bufs = bp->rx_coal.coal_bufs; in bnxt_init_cp_rings()
3604 struct bnxt_cp_ring_info *cpr2 = cpr->cp_ring_arr[j]; in bnxt_init_cp_rings()
4106 struct bnxt_cp_ring_info *cpr; in bnxt_init_stats() local
4114 cpr = &bnapi->cp_ring; in bnxt_init_stats()
4115 stats = &cpr->stats; in bnxt_init_stats()
4193 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_free_ring_stats() local
4195 bnxt_free_stats_mem(bp, &cpr->stats); in bnxt_free_ring_stats()
4208 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_alloc_stats() local
4210 cpr->stats.len = size; in bnxt_alloc_stats()
4211 rc = bnxt_alloc_stats_mem(bp, &cpr->stats, !i); in bnxt_alloc_stats()
4215 cpr->hw_stats_ctx_id = INVALID_STATS_CTX_ID; in bnxt_alloc_stats()
4271 struct bnxt_cp_ring_info *cpr; in bnxt_clear_ring_indices() local
4278 cpr = &bnapi->cp_ring; in bnxt_clear_ring_indices()
4279 cpr->cp_raw_cons = 0; in bnxt_clear_ring_indices()
4400 struct bnxt_cp_ring_info *cpr = in bnxt_alloc_mem() local
4403 cpr->cp_ring_struct.ring_mem.flags = in bnxt_alloc_mem()
4515 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_disable_int() local
4516 struct bnxt_ring_struct *ring = &cpr->cp_ring_struct; in bnxt_disable_int()
4519 bnxt_db_nq(bp, &cpr->cp_db, cpr->cp_raw_cons); in bnxt_disable_int()
4526 struct bnxt_cp_ring_info *cpr; in bnxt_cp_num_to_irq_num() local
4528 cpr = &bnapi->cp_ring; in bnxt_cp_num_to_irq_num()
4529 return cpr->cp_ring_struct.map_idx; in bnxt_cp_num_to_irq_num()
4556 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_enable_int() local
4558 bnxt_db_nq_arm(bp, &cpr->cp_db, cpr->cp_raw_cons); in bnxt_enable_int()
5007 struct bnxt_cp_ring_info *cpr; in bnxt_cp_ring_for_rx() local
5009 cpr = bnapi->cp_ring.cp_ring_arr[BNXT_RX_HDL]; in bnxt_cp_ring_for_rx()
5010 return cpr->cp_ring_struct.fw_ring_id; in bnxt_cp_ring_for_rx()
5020 struct bnxt_cp_ring_info *cpr; in bnxt_cp_ring_for_tx() local
5022 cpr = bnapi->cp_ring.cp_ring_arr[BNXT_TX_HDL]; in bnxt_cp_ring_for_tx()
5023 return cpr->cp_ring_struct.fw_ring_id; in bnxt_cp_ring_for_tx()
5722 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_hwrm_ring_alloc() local
5723 struct bnxt_ring_struct *ring = &cpr->cp_ring_struct; in bnxt_hwrm_ring_alloc()
5734 bnxt_set_db(bp, &cpr->cp_db, type, map_idx, ring->fw_ring_id); in bnxt_hwrm_ring_alloc()
5735 bnxt_db_nq(bp, &cpr->cp_db, cpr->cp_raw_cons); in bnxt_hwrm_ring_alloc()
5754 struct bnxt_cp_ring_info *cpr, *cpr2; in bnxt_hwrm_ring_alloc() local
5757 cpr = &bnapi->cp_ring; in bnxt_hwrm_ring_alloc()
5758 cpr2 = cpr->cp_ring_arr[BNXT_TX_HDL]; in bnxt_hwrm_ring_alloc()
5793 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_hwrm_ring_alloc() local
5797 cpr2 = cpr->cp_ring_arr[BNXT_RX_HDL]; in bnxt_hwrm_ring_alloc()
5940 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_hwrm_ring_free() local
5945 struct bnxt_cp_ring_info *cpr2 = cpr->cp_ring_arr[j]; in bnxt_hwrm_ring_free()
5957 ring = &cpr->cp_ring_struct; in bnxt_hwrm_ring_free()
6572 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in __bnxt_hwrm_set_coal_nq() local
6585 req->ring_id = cpu_to_le16(cpr->cp_ring_struct.fw_ring_id); in __bnxt_hwrm_set_coal_nq()
6599 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_hwrm_set_ring_coal() local
6608 coal.coal_ticks = cpr->rx_ring_coal.coal_ticks; in bnxt_hwrm_set_ring_coal()
6609 coal.coal_bufs = cpr->rx_ring_coal.coal_bufs; in bnxt_hwrm_set_ring_coal()
6710 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_hwrm_stat_ctx_free() local
6712 if (cpr->hw_stats_ctx_id != INVALID_STATS_CTX_ID) { in bnxt_hwrm_stat_ctx_free()
6713 req->stat_ctx_id = cpu_to_le32(cpr->hw_stats_ctx_id); in bnxt_hwrm_stat_ctx_free()
6720 cpr->hw_stats_ctx_id = INVALID_STATS_CTX_ID; in bnxt_hwrm_stat_ctx_free()
6747 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_hwrm_stat_ctx_alloc() local
6749 req->stats_dma_addr = cpu_to_le64(cpr->stats.hw_stats_map); in bnxt_hwrm_stat_ctx_alloc()
6755 cpr->hw_stats_ctx_id = le32_to_cpu(resp->stat_ctx_id); in bnxt_hwrm_stat_ctx_alloc()
6757 bp->grp_info[i].fw_stats_ctx = cpr->hw_stats_ctx_id; in bnxt_hwrm_stat_ctx_alloc()
8121 struct bnxt_cp_ring_info *cpr; in bnxt_accumulate_all_stats() local
8124 cpr = &bnapi->cp_ring; in bnxt_accumulate_all_stats()
8125 stats = &cpr->stats; in bnxt_accumulate_all_stats()
9160 struct bnxt_cp_ring_info *cpr = &bp->bnapi[i]->cp_ring; in bnxt_disable_napi() local
9164 cancel_work_sync(&cpr->dim.work); in bnxt_disable_napi()
9175 struct bnxt_cp_ring_info *cpr; in bnxt_enable_napi() local
9177 cpr = &bnapi->cp_ring; in bnxt_enable_napi()
9179 cpr->sw_stats.rx.rx_resets++; in bnxt_enable_napi()
9183 INIT_WORK(&cpr->dim.work, bnxt_dim_work); in bnxt_enable_napi()
9184 cpr->dim.mode = DIM_CQ_PERIOD_MODE_START_FROM_EQE; in bnxt_enable_napi()
10562 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_get_ring_stats() local
10563 u64 *sw = cpr->stats.sw_stats; in bnxt_get_ring_stats()
10589 cpr->sw_stats.rx.rx_netpoll_discards + in bnxt_get_ring_stats()
10590 cpr->sw_stats.rx.rx_oom_discards; in bnxt_get_ring_stats()
11211 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_dump_cp_sw_state() local
11215 i, cpr->cp_ring_struct.fw_ring_id, cpr->cp_raw_cons); in bnxt_dump_cp_sw_state()
11238 struct bnxt_cp_ring_info *cpr; in bnxt_hwrm_rx_ring_reset() local
11246 cpr = &bnapi->cp_ring; in bnxt_hwrm_rx_ring_reset()
11247 cp_ring_id = cpr->cp_ring_struct.fw_ring_id; in bnxt_hwrm_rx_ring_reset()
11406 struct bnxt_cp_ring_info *cpr; in bnxt_rx_ring_reset() local
11429 cpr = &rxr->bnapi->cp_ring; in bnxt_rx_ring_reset()
11430 cpr->sw_stats.rx.rx_resets++; in bnxt_rx_ring_reset()
11616 struct bnxt_cp_ring_info *cpr; in bnxt_chk_missed_irq() local
11623 cpr = &bnapi->cp_ring; in bnxt_chk_missed_irq()
11625 struct bnxt_cp_ring_info *cpr2 = cpr->cp_ring_arr[j]; in bnxt_chk_missed_irq()
11640 cpr->sw_stats.cmn.missed_irqs++; in bnxt_chk_missed_irq()