Lines Matching refs:cpr

897 				       struct bnxt_cp_ring_info *cpr,  in bnxt_get_agg()  argument
904 &cpr->cp_desc_ring[CP_RING(cp_cons)][CP_IDX(cp_cons)]; in bnxt_get_agg()
917 static void bnxt_reuse_rx_agg_bufs(struct bnxt_cp_ring_info *cpr, u16 idx, in bnxt_reuse_rx_agg_bufs() argument
920 struct bnxt_napi *bnapi = cpr->bnapi; in bnxt_reuse_rx_agg_bufs()
941 agg = bnxt_get_agg(bp, cpr, idx, start + i); in bnxt_reuse_rx_agg_bufs()
1083 struct bnxt_cp_ring_info *cpr, in __bnxt_rx_agg_pages() argument
1088 struct bnxt_napi *bnapi = cpr->bnapi; in __bnxt_rx_agg_pages()
1109 agg = bnxt_get_agg(bp, cpr, idx, i); in __bnxt_rx_agg_pages()
1143 bnxt_reuse_rx_agg_bufs(cpr, idx, i, agg_bufs - i, tpa); in __bnxt_rx_agg_pages()
1159 struct bnxt_cp_ring_info *cpr, in bnxt_rx_agg_pages_skb() argument
1166 total_frag_len = __bnxt_rx_agg_pages(bp, cpr, shinfo, idx, in bnxt_rx_agg_pages_skb()
1180 struct bnxt_cp_ring_info *cpr, in bnxt_rx_agg_pages_xdp() argument
1190 total_frag_len = __bnxt_rx_agg_pages(bp, cpr, shinfo, in bnxt_rx_agg_pages_xdp()
1200 static int bnxt_agg_bufs_valid(struct bnxt *bp, struct bnxt_cp_ring_info *cpr, in bnxt_agg_bufs_valid() argument
1209 &cpr->cp_desc_ring[CP_RING(last)][CP_IDX(last)]; in bnxt_agg_bufs_valid()
1238 static int bnxt_discard_rx(struct bnxt *bp, struct bnxt_cp_ring_info *cpr, in bnxt_discard_rx() argument
1261 if (!bnxt_agg_bufs_valid(bp, cpr, agg_bufs, &tmp_raw_cons)) in bnxt_discard_rx()
1409 static void bnxt_abort_tpa(struct bnxt_cp_ring_info *cpr, u16 idx, u32 agg_bufs) in bnxt_abort_tpa() argument
1412 bnxt_reuse_rx_agg_bufs(cpr, idx, 0, agg_bufs, true); in bnxt_abort_tpa()
1623 struct bnxt_cp_ring_info *cpr, in bnxt_tpa_end() argument
1629 struct bnxt_napi *bnapi = cpr->bnapi; in bnxt_tpa_end()
1641 int rc = bnxt_discard_rx(bp, cpr, raw_cons, tpa_end); in bnxt_tpa_end()
1669 if (!bnxt_agg_bufs_valid(bp, cpr, agg_bufs, raw_cons)) in bnxt_tpa_end()
1684 bnxt_abort_tpa(cpr, idx, agg_bufs); in bnxt_tpa_end()
1694 bnxt_abort_tpa(cpr, idx, agg_bufs); in bnxt_tpa_end()
1695 cpr->sw_stats.rx.rx_oom_discards += 1; in bnxt_tpa_end()
1704 bnxt_abort_tpa(cpr, idx, agg_bufs); in bnxt_tpa_end()
1705 cpr->sw_stats.rx.rx_oom_discards += 1; in bnxt_tpa_end()
1720 bnxt_abort_tpa(cpr, idx, agg_bufs); in bnxt_tpa_end()
1721 cpr->sw_stats.rx.rx_oom_discards += 1; in bnxt_tpa_end()
1729 skb = bnxt_rx_agg_pages_skb(bp, cpr, skb, idx, agg_bufs, true); in bnxt_tpa_end()
1732 cpr->sw_stats.rx.rx_oom_discards += 1; in bnxt_tpa_end()
1801 static int bnxt_rx_pkt(struct bnxt *bp, struct bnxt_cp_ring_info *cpr, in bnxt_rx_pkt() argument
1804 struct bnxt_napi *bnapi = cpr->bnapi; in bnxt_rx_pkt()
1823 &cpr->cp_desc_ring[CP_RING(cp_cons)][CP_IDX(cp_cons)]; in bnxt_rx_pkt()
1835 &cpr->cp_desc_ring[CP_RING(cp_cons)][CP_IDX(cp_cons)]; in bnxt_rx_pkt()
1854 skb = bnxt_tpa_end(bp, cpr, &tmp_raw_cons, in bnxt_rx_pkt()
1872 int rc1 = bnxt_discard_rx(bp, cpr, &tmp_raw_cons, rxcmp); in bnxt_rx_pkt()
1892 if (!bnxt_agg_bufs_valid(bp, cpr, agg_bufs, &tmp_raw_cons)) in bnxt_rx_pkt()
1906 bnxt_reuse_rx_agg_bufs(cpr, cp_cons, 0, agg_bufs, in bnxt_rx_pkt()
1929 u32 frag_len = bnxt_rx_agg_pages_xdp(bp, cpr, &xdp, in bnxt_rx_pkt()
1933 cpr->sw_stats.rx.rx_oom_discards += 1; in bnxt_rx_pkt()
1954 bnxt_reuse_rx_agg_bufs(cpr, cp_cons, 0, in bnxt_rx_pkt()
1959 cpr->sw_stats.rx.rx_oom_discards += 1; in bnxt_rx_pkt()
1973 cpr->sw_stats.rx.rx_oom_discards += 1; in bnxt_rx_pkt()
1981 skb = bnxt_rx_agg_pages_skb(bp, cpr, skb, cp_cons, agg_bufs, false); in bnxt_rx_pkt()
1983 cpr->sw_stats.rx.rx_oom_discards += 1; in bnxt_rx_pkt()
1992 cpr->sw_stats.rx.rx_oom_discards += 1; in bnxt_rx_pkt()
2063 cpr->rx_packets += 1; in bnxt_rx_pkt()
2064 cpr->rx_bytes += len; in bnxt_rx_pkt()
2080 struct bnxt_cp_ring_info *cpr, in bnxt_force_rx_discard() argument
2092 &cpr->cp_desc_ring[CP_RING(cp_cons)][CP_IDX(cp_cons)]; in bnxt_force_rx_discard()
2097 &cpr->cp_desc_ring[CP_RING(cp_cons)][CP_IDX(cp_cons)]; in bnxt_force_rx_discard()
2117 rc = bnxt_rx_pkt(bp, cpr, raw_cons, event); in bnxt_force_rx_discard()
2119 cpr->sw_stats.rx.rx_netpoll_discards += 1; in bnxt_force_rx_discard()
2464 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_msix() local
2465 u32 cons = RING_CMP(cpr->cp_raw_cons); in bnxt_msix()
2467 cpr->event_ctr++; in bnxt_msix()
2468 prefetch(&cpr->cp_desc_ring[CP_RING(cons)][CP_IDX(cons)]); in bnxt_msix()
2473 static inline int bnxt_has_work(struct bnxt *bp, struct bnxt_cp_ring_info *cpr) in bnxt_has_work() argument
2475 u32 raw_cons = cpr->cp_raw_cons; in bnxt_has_work()
2479 txcmp = &cpr->cp_desc_ring[CP_RING(cons)][CP_IDX(cons)]; in bnxt_has_work()
2488 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_inta() local
2489 u32 cons = RING_CMP(cpr->cp_raw_cons); in bnxt_inta()
2492 prefetch(&cpr->cp_desc_ring[CP_RING(cons)][CP_IDX(cons)]); in bnxt_inta()
2494 if (!bnxt_has_work(bp, cpr)) { in bnxt_inta()
2497 if (!(int_status & (0x10000 << cpr->cp_ring_struct.fw_ring_id))) in bnxt_inta()
2502 BNXT_CP_DB_IRQ_DIS(cpr->cp_db.doorbell); in bnxt_inta()
2512 static int __bnxt_poll_work(struct bnxt *bp, struct bnxt_cp_ring_info *cpr, in __bnxt_poll_work() argument
2515 struct bnxt_napi *bnapi = cpr->bnapi; in __bnxt_poll_work()
2516 u32 raw_cons = cpr->cp_raw_cons; in __bnxt_poll_work()
2523 cpr->has_more_work = 0; in __bnxt_poll_work()
2524 cpr->had_work_done = 1; in __bnxt_poll_work()
2529 txcmp = &cpr->cp_desc_ring[CP_RING(cons)][CP_IDX(cons)]; in __bnxt_poll_work()
2545 cpr->has_more_work = 1; in __bnxt_poll_work()
2550 rc = bnxt_rx_pkt(bp, cpr, &raw_cons, &event); in __bnxt_poll_work()
2552 rc = bnxt_force_rx_discard(bp, cpr, &raw_cons, in __bnxt_poll_work()
2576 cpr->has_more_work = 1; in __bnxt_poll_work()
2594 cpr->cp_raw_cons = raw_cons; in __bnxt_poll_work()
2620 static int bnxt_poll_work(struct bnxt *bp, struct bnxt_cp_ring_info *cpr, in bnxt_poll_work() argument
2623 struct bnxt_napi *bnapi = cpr->bnapi; in bnxt_poll_work()
2626 rx_pkts = __bnxt_poll_work(bp, cpr, budget); in bnxt_poll_work()
2632 bnxt_db_cq(bp, &cpr->cp_db, cpr->cp_raw_cons); in bnxt_poll_work()
2642 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_poll_nitroa0() local
2647 u32 raw_cons = cpr->cp_raw_cons; in bnxt_poll_nitroa0()
2655 txcmp = &cpr->cp_desc_ring[CP_RING(cp_cons)][CP_IDX(cp_cons)]; in bnxt_poll_nitroa0()
2668 &cpr->cp_desc_ring[CP_RING(cp_cons)][CP_IDX(cp_cons)]; in bnxt_poll_nitroa0()
2677 rc = bnxt_rx_pkt(bp, cpr, &raw_cons, &event); in bnxt_poll_nitroa0()
2695 cpr->cp_raw_cons = raw_cons; in bnxt_poll_nitroa0()
2696 BNXT_DB_CQ(&cpr->cp_db, cpr->cp_raw_cons); in bnxt_poll_nitroa0()
2702 if (!bnxt_has_work(bp, cpr) && rx_pkts < budget) { in bnxt_poll_nitroa0()
2704 BNXT_DB_CQ_ARM(&cpr->cp_db, cpr->cp_raw_cons); in bnxt_poll_nitroa0()
2713 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_poll() local
2721 work_done += bnxt_poll_work(bp, cpr, budget - work_done); in bnxt_poll()
2725 BNXT_DB_CQ_ARM(&cpr->cp_db, cpr->cp_raw_cons); in bnxt_poll()
2729 if (!bnxt_has_work(bp, cpr)) { in bnxt_poll()
2731 BNXT_DB_CQ_ARM(&cpr->cp_db, cpr->cp_raw_cons); in bnxt_poll()
2738 dim_update_sample(cpr->event_ctr, in bnxt_poll()
2739 cpr->rx_packets, in bnxt_poll()
2740 cpr->rx_bytes, in bnxt_poll()
2742 net_dim(&cpr->dim, dim_sample); in bnxt_poll()
2749 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in __bnxt_poll_cqs() local
2753 struct bnxt_cp_ring_info *cpr2 = cpr->cp_ring_arr[i]; in __bnxt_poll_cqs()
2758 cpr->has_more_work |= cpr2->has_more_work; in __bnxt_poll_cqs()
2767 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in __bnxt_poll_cqs_done() local
2771 struct bnxt_cp_ring_info *cpr2 = cpr->cp_ring_arr[i]; in __bnxt_poll_cqs_done()
2787 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_poll_p5() local
2789 u32 raw_cons = cpr->cp_raw_cons; in bnxt_poll_p5()
2799 if (cpr->has_more_work) { in bnxt_poll_p5()
2800 cpr->has_more_work = 0; in bnxt_poll_p5()
2805 nqcmp = &cpr->nq_desc_ring[CP_RING(cons)][CP_IDX(cons)]; in bnxt_poll_p5()
2808 if (cpr->has_more_work) in bnxt_poll_p5()
2812 cpr->cp_raw_cons = raw_cons; in bnxt_poll_p5()
2814 BNXT_DB_NQ_ARM_P5(&cpr->cp_db, in bnxt_poll_p5()
2815 cpr->cp_raw_cons); in bnxt_poll_p5()
2832 cpr2 = cpr->cp_ring_arr[idx]; in bnxt_poll_p5()
2835 cpr->has_more_work |= cpr2->has_more_work; in bnxt_poll_p5()
2842 if (raw_cons != cpr->cp_raw_cons) { in bnxt_poll_p5()
2843 cpr->cp_raw_cons = raw_cons; in bnxt_poll_p5()
2844 BNXT_DB_NQ_P5(&cpr->cp_db, raw_cons); in bnxt_poll_p5()
2847 cpr_rx = cpr->cp_ring_arr[BNXT_RX_HDL]; in bnxt_poll_p5()
2851 dim_update_sample(cpr->event_ctr, in bnxt_poll_p5()
2855 net_dim(&cpr->dim, dim_sample); in bnxt_poll_p5()
3397 static void bnxt_free_cp_arrays(struct bnxt_cp_ring_info *cpr) in bnxt_free_cp_arrays() argument
3399 struct bnxt_ring_struct *ring = &cpr->cp_ring_struct; in bnxt_free_cp_arrays()
3401 kfree(cpr->cp_desc_ring); in bnxt_free_cp_arrays()
3402 cpr->cp_desc_ring = NULL; in bnxt_free_cp_arrays()
3404 kfree(cpr->cp_desc_mapping); in bnxt_free_cp_arrays()
3405 cpr->cp_desc_mapping = NULL; in bnxt_free_cp_arrays()
3409 static int bnxt_alloc_cp_arrays(struct bnxt_cp_ring_info *cpr, int n) in bnxt_alloc_cp_arrays() argument
3411 cpr->cp_desc_ring = kcalloc(n, sizeof(*cpr->cp_desc_ring), GFP_KERNEL); in bnxt_alloc_cp_arrays()
3412 if (!cpr->cp_desc_ring) in bnxt_alloc_cp_arrays()
3414 cpr->cp_desc_mapping = kcalloc(n, sizeof(*cpr->cp_desc_mapping), in bnxt_alloc_cp_arrays()
3416 if (!cpr->cp_desc_mapping) in bnxt_alloc_cp_arrays()
3462 struct bnxt_cp_ring_info *cpr; in bnxt_free_cp_rings() local
3469 cpr = &bnapi->cp_ring; in bnxt_free_cp_rings()
3470 ring = &cpr->cp_ring_struct; in bnxt_free_cp_rings()
3475 struct bnxt_cp_ring_info *cpr2 = cpr->cp_ring_arr[j]; in bnxt_free_cp_rings()
3482 cpr->cp_ring_arr[j] = NULL; in bnxt_free_cp_rings()
3492 struct bnxt_cp_ring_info *cpr; in bnxt_alloc_cp_sub_ring() local
3495 cpr = kzalloc(sizeof(*cpr), GFP_KERNEL); in bnxt_alloc_cp_sub_ring()
3496 if (!cpr) in bnxt_alloc_cp_sub_ring()
3499 rc = bnxt_alloc_cp_arrays(cpr, bp->cp_nr_pages); in bnxt_alloc_cp_sub_ring()
3501 bnxt_free_cp_arrays(cpr); in bnxt_alloc_cp_sub_ring()
3502 kfree(cpr); in bnxt_alloc_cp_sub_ring()
3505 ring = &cpr->cp_ring_struct; in bnxt_alloc_cp_sub_ring()
3509 rmem->pg_arr = (void **)cpr->cp_desc_ring; in bnxt_alloc_cp_sub_ring()
3510 rmem->dma_arr = cpr->cp_desc_mapping; in bnxt_alloc_cp_sub_ring()
3515 bnxt_free_cp_arrays(cpr); in bnxt_alloc_cp_sub_ring()
3516 kfree(cpr); in bnxt_alloc_cp_sub_ring()
3517 cpr = NULL; in bnxt_alloc_cp_sub_ring()
3519 return cpr; in bnxt_alloc_cp_sub_ring()
3531 struct bnxt_cp_ring_info *cpr; in bnxt_alloc_cp_rings() local
3537 cpr = &bnapi->cp_ring; in bnxt_alloc_cp_rings()
3538 cpr->bnapi = bnapi; in bnxt_alloc_cp_rings()
3539 ring = &cpr->cp_ring_struct; in bnxt_alloc_cp_rings()
3557 cpr->cp_ring_arr[BNXT_RX_HDL] = cpr2; in bnxt_alloc_cp_rings()
3567 cpr->cp_ring_arr[BNXT_TX_HDL] = cpr2; in bnxt_alloc_cp_rings()
3583 struct bnxt_cp_ring_info *cpr; in bnxt_init_ring_struct() local
3591 cpr = &bnapi->cp_ring; in bnxt_init_ring_struct()
3592 ring = &cpr->cp_ring_struct; in bnxt_init_ring_struct()
3596 rmem->pg_arr = (void **)cpr->cp_desc_ring; in bnxt_init_ring_struct()
3597 rmem->dma_arr = cpr->cp_desc_mapping; in bnxt_init_ring_struct()
3749 struct bnxt_cp_ring_info *cpr = &bp->bnapi[i]->cp_ring; in bnxt_init_cp_rings() local
3750 struct bnxt_ring_struct *ring = &cpr->cp_ring_struct; in bnxt_init_cp_rings()
3753 cpr->rx_ring_coal.coal_ticks = bp->rx_coal.coal_ticks; in bnxt_init_cp_rings()
3754 cpr->rx_ring_coal.coal_bufs = bp->rx_coal.coal_bufs; in bnxt_init_cp_rings()
3756 struct bnxt_cp_ring_info *cpr2 = cpr->cp_ring_arr[j]; in bnxt_init_cp_rings()
4273 struct bnxt_cp_ring_info *cpr; in bnxt_init_stats() local
4281 cpr = &bnapi->cp_ring; in bnxt_init_stats()
4282 stats = &cpr->stats; in bnxt_init_stats()
4360 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_free_ring_stats() local
4362 bnxt_free_stats_mem(bp, &cpr->stats); in bnxt_free_ring_stats()
4375 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_alloc_stats() local
4377 cpr->stats.len = size; in bnxt_alloc_stats()
4378 rc = bnxt_alloc_stats_mem(bp, &cpr->stats, !i); in bnxt_alloc_stats()
4382 cpr->hw_stats_ctx_id = INVALID_STATS_CTX_ID; in bnxt_alloc_stats()
4438 struct bnxt_cp_ring_info *cpr; in bnxt_clear_ring_indices() local
4445 cpr = &bnapi->cp_ring; in bnxt_clear_ring_indices()
4446 cpr->cp_raw_cons = 0; in bnxt_clear_ring_indices()
4565 struct bnxt_cp_ring_info *cpr = in bnxt_alloc_mem() local
4568 cpr->cp_ring_struct.ring_mem.flags = in bnxt_alloc_mem()
4680 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_disable_int() local
4681 struct bnxt_ring_struct *ring = &cpr->cp_ring_struct; in bnxt_disable_int()
4684 bnxt_db_nq(bp, &cpr->cp_db, cpr->cp_raw_cons); in bnxt_disable_int()
4691 struct bnxt_cp_ring_info *cpr; in bnxt_cp_num_to_irq_num() local
4693 cpr = &bnapi->cp_ring; in bnxt_cp_num_to_irq_num()
4694 return cpr->cp_ring_struct.map_idx; in bnxt_cp_num_to_irq_num()
4721 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_enable_int() local
4723 bnxt_db_nq_arm(bp, &cpr->cp_db, cpr->cp_raw_cons); in bnxt_enable_int()
5174 struct bnxt_cp_ring_info *cpr; in bnxt_cp_ring_for_rx() local
5176 cpr = bnapi->cp_ring.cp_ring_arr[BNXT_RX_HDL]; in bnxt_cp_ring_for_rx()
5177 return cpr->cp_ring_struct.fw_ring_id; in bnxt_cp_ring_for_rx()
5187 struct bnxt_cp_ring_info *cpr; in bnxt_cp_ring_for_tx() local
5189 cpr = bnapi->cp_ring.cp_ring_arr[BNXT_TX_HDL]; in bnxt_cp_ring_for_tx()
5190 return cpr->cp_ring_struct.fw_ring_id; in bnxt_cp_ring_for_tx()
5920 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_hwrm_ring_alloc() local
5921 struct bnxt_ring_struct *ring = &cpr->cp_ring_struct; in bnxt_hwrm_ring_alloc()
5932 bnxt_set_db(bp, &cpr->cp_db, type, map_idx, ring->fw_ring_id); in bnxt_hwrm_ring_alloc()
5933 bnxt_db_nq(bp, &cpr->cp_db, cpr->cp_raw_cons); in bnxt_hwrm_ring_alloc()
5952 struct bnxt_cp_ring_info *cpr, *cpr2; in bnxt_hwrm_ring_alloc() local
5955 cpr = &bnapi->cp_ring; in bnxt_hwrm_ring_alloc()
5956 cpr2 = cpr->cp_ring_arr[BNXT_TX_HDL]; in bnxt_hwrm_ring_alloc()
5991 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_hwrm_ring_alloc() local
5995 cpr2 = cpr->cp_ring_arr[BNXT_RX_HDL]; in bnxt_hwrm_ring_alloc()
6138 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_hwrm_ring_free() local
6143 struct bnxt_cp_ring_info *cpr2 = cpr->cp_ring_arr[j]; in bnxt_hwrm_ring_free()
6155 ring = &cpr->cp_ring_struct; in bnxt_hwrm_ring_free()
6768 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in __bnxt_hwrm_set_coal_nq() local
6781 req->ring_id = cpu_to_le16(cpr->cp_ring_struct.fw_ring_id); in __bnxt_hwrm_set_coal_nq()
6795 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_hwrm_set_ring_coal() local
6804 coal.coal_ticks = cpr->rx_ring_coal.coal_ticks; in bnxt_hwrm_set_ring_coal()
6805 coal.coal_bufs = cpr->rx_ring_coal.coal_bufs; in bnxt_hwrm_set_ring_coal()
6906 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_hwrm_stat_ctx_free() local
6908 if (cpr->hw_stats_ctx_id != INVALID_STATS_CTX_ID) { in bnxt_hwrm_stat_ctx_free()
6909 req->stat_ctx_id = cpu_to_le32(cpr->hw_stats_ctx_id); in bnxt_hwrm_stat_ctx_free()
6916 cpr->hw_stats_ctx_id = INVALID_STATS_CTX_ID; in bnxt_hwrm_stat_ctx_free()
6943 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_hwrm_stat_ctx_alloc() local
6945 req->stats_dma_addr = cpu_to_le64(cpr->stats.hw_stats_map); in bnxt_hwrm_stat_ctx_alloc()
6951 cpr->hw_stats_ctx_id = le32_to_cpu(resp->stat_ctx_id); in bnxt_hwrm_stat_ctx_alloc()
6953 bp->grp_info[i].fw_stats_ctx = cpr->hw_stats_ctx_id; in bnxt_hwrm_stat_ctx_alloc()
8376 struct bnxt_cp_ring_info *cpr; in bnxt_accumulate_all_stats() local
8379 cpr = &bnapi->cp_ring; in bnxt_accumulate_all_stats()
8380 stats = &cpr->stats; in bnxt_accumulate_all_stats()
9432 struct bnxt_cp_ring_info *cpr = &bp->bnapi[i]->cp_ring; in bnxt_disable_napi() local
9436 cancel_work_sync(&cpr->dim.work); in bnxt_disable_napi()
9447 struct bnxt_cp_ring_info *cpr; in bnxt_enable_napi() local
9449 cpr = &bnapi->cp_ring; in bnxt_enable_napi()
9451 cpr->sw_stats.rx.rx_resets++; in bnxt_enable_napi()
9455 INIT_WORK(&cpr->dim.work, bnxt_dim_work); in bnxt_enable_napi()
9456 cpr->dim.mode = DIM_CQ_PERIOD_MODE_START_FROM_EQE; in bnxt_enable_napi()
10877 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_get_ring_stats() local
10878 u64 *sw = cpr->stats.sw_stats; in bnxt_get_ring_stats()
10904 cpr->sw_stats.rx.rx_netpoll_discards + in bnxt_get_ring_stats()
10905 cpr->sw_stats.rx.rx_oom_discards; in bnxt_get_ring_stats()
11555 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_dump_cp_sw_state() local
11559 i, cpr->cp_ring_struct.fw_ring_id, cpr->cp_raw_cons); in bnxt_dump_cp_sw_state()
11582 struct bnxt_cp_ring_info *cpr; in bnxt_hwrm_rx_ring_reset() local
11590 cpr = &bnapi->cp_ring; in bnxt_hwrm_rx_ring_reset()
11591 cp_ring_id = cpr->cp_ring_struct.fw_ring_id; in bnxt_hwrm_rx_ring_reset()
11759 struct bnxt_cp_ring_info *cpr; in bnxt_rx_ring_reset() local
11782 cpr = &rxr->bnapi->cp_ring; in bnxt_rx_ring_reset()
11783 cpr->sw_stats.rx.rx_resets++; in bnxt_rx_ring_reset()
11969 struct bnxt_cp_ring_info *cpr; in bnxt_chk_missed_irq() local
11976 cpr = &bnapi->cp_ring; in bnxt_chk_missed_irq()
11978 struct bnxt_cp_ring_info *cpr2 = cpr->cp_ring_arr[j]; in bnxt_chk_missed_irq()
11993 cpr->sw_stats.cmn.missed_irqs++; in bnxt_chk_missed_irq()