Lines Matching full:cpr
944 struct bnxt_cp_ring_info *cpr, in bnxt_get_agg() argument
951 &cpr->cp_desc_ring[CP_RING(cp_cons)][CP_IDX(cp_cons)]; in bnxt_get_agg()
964 static void bnxt_reuse_rx_agg_bufs(struct bnxt_cp_ring_info *cpr, u16 idx, in bnxt_reuse_rx_agg_bufs() argument
967 struct bnxt_napi *bnapi = cpr->bnapi; in bnxt_reuse_rx_agg_bufs()
988 agg = bnxt_get_agg(bp, cpr, idx, start + i); in bnxt_reuse_rx_agg_bufs()
1130 struct bnxt_cp_ring_info *cpr, in __bnxt_rx_agg_pages() argument
1135 struct bnxt_napi *bnapi = cpr->bnapi; in __bnxt_rx_agg_pages()
1156 agg = bnxt_get_agg(bp, cpr, idx, i); in __bnxt_rx_agg_pages()
1186 bnxt_reuse_rx_agg_bufs(cpr, idx, i, agg_bufs - i, tpa); in __bnxt_rx_agg_pages()
1201 struct bnxt_cp_ring_info *cpr, in bnxt_rx_agg_pages_skb() argument
1208 total_frag_len = __bnxt_rx_agg_pages(bp, cpr, shinfo, idx, in bnxt_rx_agg_pages_skb()
1223 struct bnxt_cp_ring_info *cpr, in bnxt_rx_agg_pages_xdp() argument
1233 total_frag_len = __bnxt_rx_agg_pages(bp, cpr, shinfo, in bnxt_rx_agg_pages_xdp()
1243 static int bnxt_agg_bufs_valid(struct bnxt *bp, struct bnxt_cp_ring_info *cpr, in bnxt_agg_bufs_valid() argument
1252 &cpr->cp_desc_ring[CP_RING(last)][CP_IDX(last)]; in bnxt_agg_bufs_valid()
1281 static int bnxt_discard_rx(struct bnxt *bp, struct bnxt_cp_ring_info *cpr, in bnxt_discard_rx() argument
1304 if (!bnxt_agg_bufs_valid(bp, cpr, agg_bufs, &tmp_raw_cons)) in bnxt_discard_rx()
1451 static void bnxt_abort_tpa(struct bnxt_cp_ring_info *cpr, u16 idx, u32 agg_bufs) in bnxt_abort_tpa() argument
1454 bnxt_reuse_rx_agg_bufs(cpr, idx, 0, agg_bufs, true); in bnxt_abort_tpa()
1665 struct bnxt_cp_ring_info *cpr, in bnxt_tpa_end() argument
1671 struct bnxt_napi *bnapi = cpr->bnapi; in bnxt_tpa_end()
1684 int rc = bnxt_discard_rx(bp, cpr, raw_cons, tpa_end); in bnxt_tpa_end()
1712 if (!bnxt_agg_bufs_valid(bp, cpr, agg_bufs, raw_cons)) in bnxt_tpa_end()
1727 bnxt_abort_tpa(cpr, idx, agg_bufs); in bnxt_tpa_end()
1737 bnxt_abort_tpa(cpr, idx, agg_bufs); in bnxt_tpa_end()
1738 cpr->sw_stats.rx.rx_oom_discards += 1; in bnxt_tpa_end()
1747 bnxt_abort_tpa(cpr, idx, agg_bufs); in bnxt_tpa_end()
1748 cpr->sw_stats.rx.rx_oom_discards += 1; in bnxt_tpa_end()
1763 bnxt_abort_tpa(cpr, idx, agg_bufs); in bnxt_tpa_end()
1764 cpr->sw_stats.rx.rx_oom_discards += 1; in bnxt_tpa_end()
1772 skb = bnxt_rx_agg_pages_skb(bp, cpr, skb, idx, agg_bufs, true); in bnxt_tpa_end()
1775 cpr->sw_stats.rx.rx_oom_discards += 1; in bnxt_tpa_end()
1920 static int bnxt_rx_pkt(struct bnxt *bp, struct bnxt_cp_ring_info *cpr, in bnxt_rx_pkt() argument
1923 struct bnxt_napi *bnapi = cpr->bnapi; in bnxt_rx_pkt()
1943 &cpr->cp_desc_ring[CP_RING(cp_cons)][CP_IDX(cp_cons)]; in bnxt_rx_pkt()
1955 &cpr->cp_desc_ring[CP_RING(cp_cons)][CP_IDX(cp_cons)]; in bnxt_rx_pkt()
1976 skb = bnxt_tpa_end(bp, cpr, &tmp_raw_cons, in bnxt_rx_pkt()
1994 int rc1 = bnxt_discard_rx(bp, cpr, &tmp_raw_cons, rxcmp); in bnxt_rx_pkt()
2014 if (!bnxt_agg_bufs_valid(bp, cpr, agg_bufs, &tmp_raw_cons)) in bnxt_rx_pkt()
2028 bnxt_reuse_rx_agg_bufs(cpr, cp_cons, 0, agg_bufs, in bnxt_rx_pkt()
2051 u32 frag_len = bnxt_rx_agg_pages_xdp(bp, cpr, &xdp, in bnxt_rx_pkt()
2055 cpr->sw_stats.rx.rx_oom_discards += 1; in bnxt_rx_pkt()
2076 bnxt_reuse_rx_agg_bufs(cpr, cp_cons, 0, in bnxt_rx_pkt()
2081 cpr->sw_stats.rx.rx_oom_discards += 1; in bnxt_rx_pkt()
2095 cpr->sw_stats.rx.rx_oom_discards += 1; in bnxt_rx_pkt()
2103 skb = bnxt_rx_agg_pages_skb(bp, cpr, skb, cp_cons, agg_bufs, false); in bnxt_rx_pkt()
2105 cpr->sw_stats.rx.rx_oom_discards += 1; in bnxt_rx_pkt()
2114 cpr->sw_stats.rx.rx_oom_discards += 1; in bnxt_rx_pkt()
2183 cpr->rx_packets += 1; in bnxt_rx_pkt()
2184 cpr->rx_bytes += len; in bnxt_rx_pkt()
2200 struct bnxt_cp_ring_info *cpr, in bnxt_force_rx_discard() argument
2212 &cpr->cp_desc_ring[CP_RING(cp_cons)][CP_IDX(cp_cons)]; in bnxt_force_rx_discard()
2217 &cpr->cp_desc_ring[CP_RING(cp_cons)][CP_IDX(cp_cons)]; in bnxt_force_rx_discard()
2238 rc = bnxt_rx_pkt(bp, cpr, raw_cons, event); in bnxt_force_rx_discard()
2240 cpr->sw_stats.rx.rx_netpoll_discards += 1; in bnxt_force_rx_discard()
2737 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_msix() local
2738 u32 cons = RING_CMP(cpr->cp_raw_cons); in bnxt_msix()
2740 cpr->event_ctr++; in bnxt_msix()
2741 prefetch(&cpr->cp_desc_ring[CP_RING(cons)][CP_IDX(cons)]); in bnxt_msix()
2746 static inline int bnxt_has_work(struct bnxt *bp, struct bnxt_cp_ring_info *cpr) in bnxt_has_work() argument
2748 u32 raw_cons = cpr->cp_raw_cons; in bnxt_has_work()
2752 txcmp = &cpr->cp_desc_ring[CP_RING(cons)][CP_IDX(cons)]; in bnxt_has_work()
2761 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_inta() local
2762 u32 cons = RING_CMP(cpr->cp_raw_cons); in bnxt_inta()
2765 prefetch(&cpr->cp_desc_ring[CP_RING(cons)][CP_IDX(cons)]); in bnxt_inta()
2767 if (!bnxt_has_work(bp, cpr)) { in bnxt_inta()
2770 if (!(int_status & (0x10000 << cpr->cp_ring_struct.fw_ring_id))) in bnxt_inta()
2775 BNXT_CP_DB_IRQ_DIS(cpr->cp_db.doorbell); in bnxt_inta()
2785 static int __bnxt_poll_work(struct bnxt *bp, struct bnxt_cp_ring_info *cpr, in __bnxt_poll_work() argument
2788 struct bnxt_napi *bnapi = cpr->bnapi; in __bnxt_poll_work()
2789 u32 raw_cons = cpr->cp_raw_cons; in __bnxt_poll_work()
2795 cpr->has_more_work = 0; in __bnxt_poll_work()
2796 cpr->had_work_done = 1; in __bnxt_poll_work()
2802 txcmp = &cpr->cp_desc_ring[CP_RING(cons)][CP_IDX(cons)]; in __bnxt_poll_work()
2831 cpr->has_more_work = 1; in __bnxt_poll_work()
2837 rc = bnxt_rx_pkt(bp, cpr, &raw_cons, &event); in __bnxt_poll_work()
2839 rc = bnxt_force_rx_discard(bp, cpr, &raw_cons, in __bnxt_poll_work()
2860 cpr->has_more_work = 1; in __bnxt_poll_work()
2878 cpr->cp_raw_cons = raw_cons; in __bnxt_poll_work()
2902 static int bnxt_poll_work(struct bnxt *bp, struct bnxt_cp_ring_info *cpr, in bnxt_poll_work() argument
2905 struct bnxt_napi *bnapi = cpr->bnapi; in bnxt_poll_work()
2908 rx_pkts = __bnxt_poll_work(bp, cpr, budget); in bnxt_poll_work()
2914 bnxt_db_cq(bp, &cpr->cp_db, cpr->cp_raw_cons); in bnxt_poll_work()
2924 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_poll_nitroa0() local
2929 u32 raw_cons = cpr->cp_raw_cons; in bnxt_poll_nitroa0()
2938 txcmp = &cpr->cp_desc_ring[CP_RING(cp_cons)][CP_IDX(cp_cons)]; in bnxt_poll_nitroa0()
2951 &cpr->cp_desc_ring[CP_RING(cp_cons)][CP_IDX(cp_cons)]; in bnxt_poll_nitroa0()
2960 rc = bnxt_rx_pkt(bp, cpr, &raw_cons, &event); in bnxt_poll_nitroa0()
2980 cpr->cp_raw_cons = raw_cons; in bnxt_poll_nitroa0()
2981 BNXT_DB_CQ(&cpr->cp_db, cpr->cp_raw_cons); in bnxt_poll_nitroa0()
2989 if (!bnxt_has_work(bp, cpr) && rx_pkts < budget) { in bnxt_poll_nitroa0()
2991 BNXT_DB_CQ_ARM(&cpr->cp_db, cpr->cp_raw_cons); in bnxt_poll_nitroa0()
3000 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_poll() local
3008 work_done += bnxt_poll_work(bp, cpr, budget - work_done); in bnxt_poll()
3012 BNXT_DB_CQ_ARM(&cpr->cp_db, cpr->cp_raw_cons); in bnxt_poll()
3016 if (!bnxt_has_work(bp, cpr)) { in bnxt_poll()
3018 BNXT_DB_CQ_ARM(&cpr->cp_db, cpr->cp_raw_cons); in bnxt_poll()
3025 dim_update_sample(cpr->event_ctr, in bnxt_poll()
3026 cpr->rx_packets, in bnxt_poll()
3027 cpr->rx_bytes, in bnxt_poll()
3029 net_dim(&cpr->dim, dim_sample); in bnxt_poll()
3036 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in __bnxt_poll_cqs() local
3039 for (i = 0; i < cpr->cp_ring_count; i++) { in __bnxt_poll_cqs()
3040 struct bnxt_cp_ring_info *cpr2 = &cpr->cp_ring_arr[i]; in __bnxt_poll_cqs()
3045 cpr->has_more_work |= cpr2->has_more_work; in __bnxt_poll_cqs()
3054 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in __bnxt_poll_cqs_done() local
3057 for (i = 0; i < cpr->cp_ring_count; i++) { in __bnxt_poll_cqs_done()
3058 struct bnxt_cp_ring_info *cpr2 = &cpr->cp_ring_arr[i]; in __bnxt_poll_cqs_done()
3082 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_poll_p5() local
3084 u32 raw_cons = cpr->cp_raw_cons; in bnxt_poll_p5()
3094 if (cpr->has_more_work) { in bnxt_poll_p5()
3095 cpr->has_more_work = 0; in bnxt_poll_p5()
3102 nqcmp = &cpr->nq_desc_ring[CP_RING(cons)][CP_IDX(cons)]; in bnxt_poll_p5()
3105 if (cpr->has_more_work) in bnxt_poll_p5()
3110 cpr->cp_raw_cons = raw_cons; in bnxt_poll_p5()
3112 BNXT_DB_NQ_ARM_P5(&cpr->cp_db, in bnxt_poll_p5()
3113 cpr->cp_raw_cons); in bnxt_poll_p5()
3134 cpr2 = &cpr->cp_ring_arr[idx]; in bnxt_poll_p5()
3139 cpr->has_more_work |= cpr2->has_more_work; in bnxt_poll_p5()
3146 if (raw_cons != cpr->cp_raw_cons) { in bnxt_poll_p5()
3147 cpr->cp_raw_cons = raw_cons; in bnxt_poll_p5()
3148 BNXT_DB_NQ_P5(&cpr->cp_db, raw_cons); in bnxt_poll_p5()
3151 cpr_rx = &cpr->cp_ring_arr[0]; in bnxt_poll_p5()
3156 dim_update_sample(cpr->event_ctr, in bnxt_poll_p5()
3160 net_dim(&cpr->dim, dim_sample); in bnxt_poll_p5()
3696 static void bnxt_free_cp_arrays(struct bnxt_cp_ring_info *cpr) in bnxt_free_cp_arrays() argument
3698 struct bnxt_ring_struct *ring = &cpr->cp_ring_struct; in bnxt_free_cp_arrays()
3700 kfree(cpr->cp_desc_ring); in bnxt_free_cp_arrays()
3701 cpr->cp_desc_ring = NULL; in bnxt_free_cp_arrays()
3703 kfree(cpr->cp_desc_mapping); in bnxt_free_cp_arrays()
3704 cpr->cp_desc_mapping = NULL; in bnxt_free_cp_arrays()
3708 static int bnxt_alloc_cp_arrays(struct bnxt_cp_ring_info *cpr, int n) in bnxt_alloc_cp_arrays() argument
3710 cpr->cp_desc_ring = kcalloc(n, sizeof(*cpr->cp_desc_ring), GFP_KERNEL); in bnxt_alloc_cp_arrays()
3711 if (!cpr->cp_desc_ring) in bnxt_alloc_cp_arrays()
3713 cpr->cp_desc_mapping = kcalloc(n, sizeof(*cpr->cp_desc_mapping), in bnxt_alloc_cp_arrays()
3715 if (!cpr->cp_desc_mapping) in bnxt_alloc_cp_arrays()
3761 struct bnxt_cp_ring_info *cpr; in bnxt_free_cp_rings() local
3768 cpr = &bnapi->cp_ring; in bnxt_free_cp_rings()
3769 ring = &cpr->cp_ring_struct; in bnxt_free_cp_rings()
3773 if (!cpr->cp_ring_arr) in bnxt_free_cp_rings()
3776 for (j = 0; j < cpr->cp_ring_count; j++) { in bnxt_free_cp_rings()
3777 struct bnxt_cp_ring_info *cpr2 = &cpr->cp_ring_arr[j]; in bnxt_free_cp_rings()
3783 kfree(cpr->cp_ring_arr); in bnxt_free_cp_rings()
3784 cpr->cp_ring_arr = NULL; in bnxt_free_cp_rings()
3785 cpr->cp_ring_count = 0; in bnxt_free_cp_rings()
3790 struct bnxt_cp_ring_info *cpr) in bnxt_alloc_cp_sub_ring() argument
3796 rc = bnxt_alloc_cp_arrays(cpr, bp->cp_nr_pages); in bnxt_alloc_cp_sub_ring()
3798 bnxt_free_cp_arrays(cpr); in bnxt_alloc_cp_sub_ring()
3801 ring = &cpr->cp_ring_struct; in bnxt_alloc_cp_sub_ring()
3805 rmem->pg_arr = (void **)cpr->cp_desc_ring; in bnxt_alloc_cp_sub_ring()
3806 rmem->dma_arr = cpr->cp_desc_mapping; in bnxt_alloc_cp_sub_ring()
3811 bnxt_free_cp_arrays(cpr); in bnxt_alloc_cp_sub_ring()
3828 struct bnxt_cp_ring_info *cpr, *cpr2; in bnxt_alloc_cp_rings() local
3836 cpr = &bnapi->cp_ring; in bnxt_alloc_cp_rings()
3837 cpr->bnapi = bnapi; in bnxt_alloc_cp_rings()
3838 ring = &cpr->cp_ring_struct; in bnxt_alloc_cp_rings()
3865 cpr->cp_ring_arr = kcalloc(cp_count, sizeof(*cpr), in bnxt_alloc_cp_rings()
3867 if (!cpr->cp_ring_arr) in bnxt_alloc_cp_rings()
3869 cpr->cp_ring_count = cp_count; in bnxt_alloc_cp_rings()
3872 cpr2 = &cpr->cp_ring_arr[k]; in bnxt_alloc_cp_rings()
3902 struct bnxt_cp_ring_info *cpr; in bnxt_init_ring_struct() local
3910 cpr = &bnapi->cp_ring; in bnxt_init_ring_struct()
3911 ring = &cpr->cp_ring_struct; in bnxt_init_ring_struct()
3915 rmem->pg_arr = (void **)cpr->cp_desc_ring; in bnxt_init_ring_struct()
3916 rmem->dma_arr = cpr->cp_desc_mapping; in bnxt_init_ring_struct()
4069 struct bnxt_cp_ring_info *cpr = &bp->bnapi[i]->cp_ring; in bnxt_init_cp_rings() local
4070 struct bnxt_ring_struct *ring = &cpr->cp_ring_struct; in bnxt_init_cp_rings()
4073 cpr->rx_ring_coal.coal_ticks = bp->rx_coal.coal_ticks; in bnxt_init_cp_rings()
4074 cpr->rx_ring_coal.coal_bufs = bp->rx_coal.coal_bufs; in bnxt_init_cp_rings()
4075 if (!cpr->cp_ring_arr) in bnxt_init_cp_rings()
4077 for (j = 0; j < cpr->cp_ring_count; j++) { in bnxt_init_cp_rings()
4078 struct bnxt_cp_ring_info *cpr2 = &cpr->cp_ring_arr[j]; in bnxt_init_cp_rings()
4609 struct bnxt_cp_ring_info *cpr; in bnxt_init_stats() local
4617 cpr = &bnapi->cp_ring; in bnxt_init_stats()
4618 stats = &cpr->stats; in bnxt_init_stats()
4696 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_free_ring_stats() local
4698 bnxt_free_stats_mem(bp, &cpr->stats); in bnxt_free_ring_stats()
4711 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_alloc_stats() local
4713 cpr->stats.len = size; in bnxt_alloc_stats()
4714 rc = bnxt_alloc_stats_mem(bp, &cpr->stats, !i); in bnxt_alloc_stats()
4718 cpr->hw_stats_ctx_id = INVALID_STATS_CTX_ID; in bnxt_alloc_stats()
4774 struct bnxt_cp_ring_info *cpr; in bnxt_clear_ring_indices() local
4781 cpr = &bnapi->cp_ring; in bnxt_clear_ring_indices()
4782 cpr->cp_raw_cons = 0; in bnxt_clear_ring_indices()
4935 struct bnxt_cp_ring_info *cpr = in bnxt_alloc_mem() local
4938 cpr->cp_ring_struct.ring_mem.flags = in bnxt_alloc_mem()
5063 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_disable_int() local
5064 struct bnxt_ring_struct *ring = &cpr->cp_ring_struct; in bnxt_disable_int()
5067 bnxt_db_nq(bp, &cpr->cp_db, cpr->cp_raw_cons); in bnxt_disable_int()
5074 struct bnxt_cp_ring_info *cpr; in bnxt_cp_num_to_irq_num() local
5076 cpr = &bnapi->cp_ring; in bnxt_cp_num_to_irq_num()
5077 return cpr->cp_ring_struct.map_idx; in bnxt_cp_num_to_irq_num()
5104 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_enable_int() local
5106 bnxt_db_nq_arm(bp, &cpr->cp_db, cpr->cp_raw_cons); in bnxt_enable_int()
6647 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_hwrm_ring_alloc() local
6648 struct bnxt_ring_struct *ring = &cpr->cp_ring_struct; in bnxt_hwrm_ring_alloc()
6659 bnxt_set_db(bp, &cpr->cp_db, type, map_idx, ring->fw_ring_id); in bnxt_hwrm_ring_alloc()
6660 bnxt_db_nq(bp, &cpr->cp_db, cpr->cp_raw_cons); in bnxt_hwrm_ring_alloc()
6861 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_hwrm_ring_free() local
6865 for (j = 0; j < cpr->cp_ring_count && cpr->cp_ring_arr; j++) { in bnxt_hwrm_ring_free()
6866 struct bnxt_cp_ring_info *cpr2 = &cpr->cp_ring_arr[j]; in bnxt_hwrm_ring_free()
6876 ring = &cpr->cp_ring_struct; in bnxt_hwrm_ring_free()
7501 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in __bnxt_hwrm_set_coal_nq() local
7514 req->ring_id = cpu_to_le16(cpr->cp_ring_struct.fw_ring_id); in __bnxt_hwrm_set_coal_nq()
7528 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_hwrm_set_ring_coal() local
7537 coal.coal_ticks = cpr->rx_ring_coal.coal_ticks; in bnxt_hwrm_set_ring_coal()
7538 coal.coal_bufs = cpr->rx_ring_coal.coal_bufs; in bnxt_hwrm_set_ring_coal()
7659 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_hwrm_stat_ctx_free() local
7661 if (cpr->hw_stats_ctx_id != INVALID_STATS_CTX_ID) { in bnxt_hwrm_stat_ctx_free()
7662 req->stat_ctx_id = cpu_to_le32(cpr->hw_stats_ctx_id); in bnxt_hwrm_stat_ctx_free()
7669 cpr->hw_stats_ctx_id = INVALID_STATS_CTX_ID; in bnxt_hwrm_stat_ctx_free()
7696 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_hwrm_stat_ctx_alloc() local
7698 req->stats_dma_addr = cpu_to_le64(cpr->stats.hw_stats_map); in bnxt_hwrm_stat_ctx_alloc()
7704 cpr->hw_stats_ctx_id = le32_to_cpu(resp->stat_ctx_id); in bnxt_hwrm_stat_ctx_alloc()
7706 bp->grp_info[i].fw_stats_ctx = cpr->hw_stats_ctx_id; in bnxt_hwrm_stat_ctx_alloc()
9331 struct bnxt_cp_ring_info *cpr; in bnxt_accumulate_all_stats() local
9334 cpr = &bnapi->cp_ring; in bnxt_accumulate_all_stats()
9335 stats = &cpr->stats; in bnxt_accumulate_all_stats()
10435 struct bnxt_cp_ring_info *cpr; in bnxt_disable_napi() local
10437 cpr = &bnapi->cp_ring; in bnxt_disable_napi()
10439 cpr->sw_stats.tx.tx_resets++; in bnxt_disable_napi()
10441 cpr->sw_stats.rx.rx_resets++; in bnxt_disable_napi()
10444 cancel_work_sync(&cpr->dim.work); in bnxt_disable_napi()
10455 struct bnxt_cp_ring_info *cpr; in bnxt_enable_napi() local
10459 cpr = &bnapi->cp_ring; in bnxt_enable_napi()
10463 INIT_WORK(&cpr->dim.work, bnxt_dim_work); in bnxt_enable_napi()
10464 cpr->dim.mode = DIM_CQ_PERIOD_MODE_START_FROM_EQE; in bnxt_enable_napi()
11850 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_get_ring_stats() local
11851 u64 *sw = cpr->stats.sw_stats; in bnxt_get_ring_stats()
11877 cpr->sw_stats.rx.rx_netpoll_discards + in bnxt_get_ring_stats()
11878 cpr->sw_stats.rx.rx_oom_discards; in bnxt_get_ring_stats()
11943 struct bnxt_cp_ring_info *cpr) in bnxt_get_one_ring_err_stats() argument
11945 struct bnxt_sw_stats *sw_stats = &cpr->sw_stats; in bnxt_get_one_ring_err_stats()
11946 u64 *hw_stats = cpr->stats.sw_stats; in bnxt_get_one_ring_err_stats()
12551 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_dump_cp_sw_state() local
12555 i, cpr->cp_ring_struct.fw_ring_id, cpr->cp_raw_cons); in bnxt_dump_cp_sw_state()
12578 struct bnxt_cp_ring_info *cpr; in bnxt_hwrm_rx_ring_reset() local
12586 cpr = &bnapi->cp_ring; in bnxt_hwrm_rx_ring_reset()
12587 cp_ring_id = cpr->cp_ring_struct.fw_ring_id; in bnxt_hwrm_rx_ring_reset()
12743 struct bnxt_cp_ring_info *cpr; in bnxt_rx_ring_reset() local
12766 cpr = &rxr->bnapi->cp_ring; in bnxt_rx_ring_reset()
12767 cpr->sw_stats.rx.rx_resets++; in bnxt_rx_ring_reset()
12951 struct bnxt_cp_ring_info *cpr; in bnxt_chk_missed_irq() local
12958 cpr = &bnapi->cp_ring; in bnxt_chk_missed_irq()
12959 for (j = 0; j < cpr->cp_ring_count; j++) { in bnxt_chk_missed_irq()
12960 struct bnxt_cp_ring_info *cpr2 = &cpr->cp_ring_arr[j]; in bnxt_chk_missed_irq()
12974 cpr->sw_stats.cmn.missed_irqs++; in bnxt_chk_missed_irq()