Lines Matching full:cpr

894 				       struct bnxt_cp_ring_info *cpr,  in bnxt_get_agg()  argument
901 &cpr->cp_desc_ring[CP_RING(cp_cons)][CP_IDX(cp_cons)]; in bnxt_get_agg()
914 static void bnxt_reuse_rx_agg_bufs(struct bnxt_cp_ring_info *cpr, u16 idx, in bnxt_reuse_rx_agg_bufs() argument
917 struct bnxt_napi *bnapi = cpr->bnapi; in bnxt_reuse_rx_agg_bufs()
938 agg = bnxt_get_agg(bp, cpr, idx, start + i); in bnxt_reuse_rx_agg_bufs()
1081 struct bnxt_cp_ring_info *cpr, in __bnxt_rx_agg_pages() argument
1086 struct bnxt_napi *bnapi = cpr->bnapi; in __bnxt_rx_agg_pages()
1107 agg = bnxt_get_agg(bp, cpr, idx, i); in __bnxt_rx_agg_pages()
1141 bnxt_reuse_rx_agg_bufs(cpr, idx, i, agg_bufs - i, tpa); in __bnxt_rx_agg_pages()
1157 struct bnxt_cp_ring_info *cpr, in bnxt_rx_agg_pages_skb() argument
1164 total_frag_len = __bnxt_rx_agg_pages(bp, cpr, shinfo, idx, in bnxt_rx_agg_pages_skb()
1178 struct bnxt_cp_ring_info *cpr, in bnxt_rx_agg_pages_xdp() argument
1188 total_frag_len = __bnxt_rx_agg_pages(bp, cpr, shinfo, in bnxt_rx_agg_pages_xdp()
1198 static int bnxt_agg_bufs_valid(struct bnxt *bp, struct bnxt_cp_ring_info *cpr, in bnxt_agg_bufs_valid() argument
1207 &cpr->cp_desc_ring[CP_RING(last)][CP_IDX(last)]; in bnxt_agg_bufs_valid()
1236 static int bnxt_discard_rx(struct bnxt *bp, struct bnxt_cp_ring_info *cpr, in bnxt_discard_rx() argument
1259 if (!bnxt_agg_bufs_valid(bp, cpr, agg_bufs, &tmp_raw_cons)) in bnxt_discard_rx()
1407 static void bnxt_abort_tpa(struct bnxt_cp_ring_info *cpr, u16 idx, u32 agg_bufs) in bnxt_abort_tpa() argument
1410 bnxt_reuse_rx_agg_bufs(cpr, idx, 0, agg_bufs, true); in bnxt_abort_tpa()
1621 struct bnxt_cp_ring_info *cpr, in bnxt_tpa_end() argument
1627 struct bnxt_napi *bnapi = cpr->bnapi; in bnxt_tpa_end()
1639 int rc = bnxt_discard_rx(bp, cpr, raw_cons, tpa_end); in bnxt_tpa_end()
1667 if (!bnxt_agg_bufs_valid(bp, cpr, agg_bufs, raw_cons)) in bnxt_tpa_end()
1682 bnxt_abort_tpa(cpr, idx, agg_bufs); in bnxt_tpa_end()
1692 bnxt_abort_tpa(cpr, idx, agg_bufs); in bnxt_tpa_end()
1693 cpr->sw_stats.rx.rx_oom_discards += 1; in bnxt_tpa_end()
1702 bnxt_abort_tpa(cpr, idx, agg_bufs); in bnxt_tpa_end()
1703 cpr->sw_stats.rx.rx_oom_discards += 1; in bnxt_tpa_end()
1718 bnxt_abort_tpa(cpr, idx, agg_bufs); in bnxt_tpa_end()
1719 cpr->sw_stats.rx.rx_oom_discards += 1; in bnxt_tpa_end()
1727 skb = bnxt_rx_agg_pages_skb(bp, cpr, skb, idx, agg_bufs, true); in bnxt_tpa_end()
1730 cpr->sw_stats.rx.rx_oom_discards += 1; in bnxt_tpa_end()
1799 static int bnxt_rx_pkt(struct bnxt *bp, struct bnxt_cp_ring_info *cpr, in bnxt_rx_pkt() argument
1802 struct bnxt_napi *bnapi = cpr->bnapi; in bnxt_rx_pkt()
1821 &cpr->cp_desc_ring[CP_RING(cp_cons)][CP_IDX(cp_cons)]; in bnxt_rx_pkt()
1833 &cpr->cp_desc_ring[CP_RING(cp_cons)][CP_IDX(cp_cons)]; in bnxt_rx_pkt()
1852 skb = bnxt_tpa_end(bp, cpr, &tmp_raw_cons, in bnxt_rx_pkt()
1870 int rc1 = bnxt_discard_rx(bp, cpr, &tmp_raw_cons, rxcmp); in bnxt_rx_pkt()
1890 if (!bnxt_agg_bufs_valid(bp, cpr, agg_bufs, &tmp_raw_cons)) in bnxt_rx_pkt()
1904 bnxt_reuse_rx_agg_bufs(cpr, cp_cons, 0, agg_bufs, in bnxt_rx_pkt()
1927 u32 frag_len = bnxt_rx_agg_pages_xdp(bp, cpr, &xdp, in bnxt_rx_pkt()
1931 cpr->sw_stats.rx.rx_oom_discards += 1; in bnxt_rx_pkt()
1952 bnxt_reuse_rx_agg_bufs(cpr, cp_cons, 0, in bnxt_rx_pkt()
1957 cpr->sw_stats.rx.rx_oom_discards += 1; in bnxt_rx_pkt()
1971 cpr->sw_stats.rx.rx_oom_discards += 1; in bnxt_rx_pkt()
1979 skb = bnxt_rx_agg_pages_skb(bp, cpr, skb, cp_cons, agg_bufs, false); in bnxt_rx_pkt()
1981 cpr->sw_stats.rx.rx_oom_discards += 1; in bnxt_rx_pkt()
1990 cpr->sw_stats.rx.rx_oom_discards += 1; in bnxt_rx_pkt()
2061 cpr->rx_packets += 1; in bnxt_rx_pkt()
2062 cpr->rx_bytes += len; in bnxt_rx_pkt()
2078 struct bnxt_cp_ring_info *cpr, in bnxt_force_rx_discard() argument
2090 &cpr->cp_desc_ring[CP_RING(cp_cons)][CP_IDX(cp_cons)]; in bnxt_force_rx_discard()
2095 &cpr->cp_desc_ring[CP_RING(cp_cons)][CP_IDX(cp_cons)]; in bnxt_force_rx_discard()
2115 rc = bnxt_rx_pkt(bp, cpr, raw_cons, event); in bnxt_force_rx_discard()
2117 cpr->sw_stats.rx.rx_netpoll_discards += 1; in bnxt_force_rx_discard()
2463 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_msix() local
2464 u32 cons = RING_CMP(cpr->cp_raw_cons); in bnxt_msix()
2466 cpr->event_ctr++; in bnxt_msix()
2467 prefetch(&cpr->cp_desc_ring[CP_RING(cons)][CP_IDX(cons)]); in bnxt_msix()
2472 static inline int bnxt_has_work(struct bnxt *bp, struct bnxt_cp_ring_info *cpr) in bnxt_has_work() argument
2474 u32 raw_cons = cpr->cp_raw_cons; in bnxt_has_work()
2478 txcmp = &cpr->cp_desc_ring[CP_RING(cons)][CP_IDX(cons)]; in bnxt_has_work()
2487 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_inta() local
2488 u32 cons = RING_CMP(cpr->cp_raw_cons); in bnxt_inta()
2491 prefetch(&cpr->cp_desc_ring[CP_RING(cons)][CP_IDX(cons)]); in bnxt_inta()
2493 if (!bnxt_has_work(bp, cpr)) { in bnxt_inta()
2496 if (!(int_status & (0x10000 << cpr->cp_ring_struct.fw_ring_id))) in bnxt_inta()
2501 BNXT_CP_DB_IRQ_DIS(cpr->cp_db.doorbell); in bnxt_inta()
2511 static int __bnxt_poll_work(struct bnxt *bp, struct bnxt_cp_ring_info *cpr, in __bnxt_poll_work() argument
2514 struct bnxt_napi *bnapi = cpr->bnapi; in __bnxt_poll_work()
2515 u32 raw_cons = cpr->cp_raw_cons; in __bnxt_poll_work()
2522 cpr->has_more_work = 0; in __bnxt_poll_work()
2523 cpr->had_work_done = 1; in __bnxt_poll_work()
2528 txcmp = &cpr->cp_desc_ring[CP_RING(cons)][CP_IDX(cons)]; in __bnxt_poll_work()
2544 cpr->has_more_work = 1; in __bnxt_poll_work()
2549 rc = bnxt_rx_pkt(bp, cpr, &raw_cons, &event); in __bnxt_poll_work()
2551 rc = bnxt_force_rx_discard(bp, cpr, &raw_cons, in __bnxt_poll_work()
2575 cpr->has_more_work = 1; in __bnxt_poll_work()
2593 cpr->cp_raw_cons = raw_cons; in __bnxt_poll_work()
2619 static int bnxt_poll_work(struct bnxt *bp, struct bnxt_cp_ring_info *cpr, in bnxt_poll_work() argument
2622 struct bnxt_napi *bnapi = cpr->bnapi; in bnxt_poll_work()
2625 rx_pkts = __bnxt_poll_work(bp, cpr, budget); in bnxt_poll_work()
2631 bnxt_db_cq(bp, &cpr->cp_db, cpr->cp_raw_cons); in bnxt_poll_work()
2641 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_poll_nitroa0() local
2646 u32 raw_cons = cpr->cp_raw_cons; in bnxt_poll_nitroa0()
2654 txcmp = &cpr->cp_desc_ring[CP_RING(cp_cons)][CP_IDX(cp_cons)]; in bnxt_poll_nitroa0()
2667 &cpr->cp_desc_ring[CP_RING(cp_cons)][CP_IDX(cp_cons)]; in bnxt_poll_nitroa0()
2676 rc = bnxt_rx_pkt(bp, cpr, &raw_cons, &event); in bnxt_poll_nitroa0()
2694 cpr->cp_raw_cons = raw_cons; in bnxt_poll_nitroa0()
2695 BNXT_DB_CQ(&cpr->cp_db, cpr->cp_raw_cons); in bnxt_poll_nitroa0()
2701 if (!bnxt_has_work(bp, cpr) && rx_pkts < budget) { in bnxt_poll_nitroa0()
2703 BNXT_DB_CQ_ARM(&cpr->cp_db, cpr->cp_raw_cons); in bnxt_poll_nitroa0()
2712 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_poll() local
2720 work_done += bnxt_poll_work(bp, cpr, budget - work_done); in bnxt_poll()
2724 BNXT_DB_CQ_ARM(&cpr->cp_db, cpr->cp_raw_cons); in bnxt_poll()
2728 if (!bnxt_has_work(bp, cpr)) { in bnxt_poll()
2730 BNXT_DB_CQ_ARM(&cpr->cp_db, cpr->cp_raw_cons); in bnxt_poll()
2737 dim_update_sample(cpr->event_ctr, in bnxt_poll()
2738 cpr->rx_packets, in bnxt_poll()
2739 cpr->rx_bytes, in bnxt_poll()
2741 net_dim(&cpr->dim, dim_sample); in bnxt_poll()
2748 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in __bnxt_poll_cqs() local
2752 struct bnxt_cp_ring_info *cpr2 = cpr->cp_ring_arr[i]; in __bnxt_poll_cqs()
2757 cpr->has_more_work |= cpr2->has_more_work; in __bnxt_poll_cqs()
2766 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in __bnxt_poll_cqs_done() local
2770 struct bnxt_cp_ring_info *cpr2 = cpr->cp_ring_arr[i]; in __bnxt_poll_cqs_done()
2786 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_poll_p5() local
2788 u32 raw_cons = cpr->cp_raw_cons; in bnxt_poll_p5()
2798 if (cpr->has_more_work) { in bnxt_poll_p5()
2799 cpr->has_more_work = 0; in bnxt_poll_p5()
2804 nqcmp = &cpr->nq_desc_ring[CP_RING(cons)][CP_IDX(cons)]; in bnxt_poll_p5()
2807 if (cpr->has_more_work) in bnxt_poll_p5()
2811 cpr->cp_raw_cons = raw_cons; in bnxt_poll_p5()
2813 BNXT_DB_NQ_ARM_P5(&cpr->cp_db, in bnxt_poll_p5()
2814 cpr->cp_raw_cons); in bnxt_poll_p5()
2831 cpr2 = cpr->cp_ring_arr[idx]; in bnxt_poll_p5()
2834 cpr->has_more_work |= cpr2->has_more_work; in bnxt_poll_p5()
2841 if (raw_cons != cpr->cp_raw_cons) { in bnxt_poll_p5()
2842 cpr->cp_raw_cons = raw_cons; in bnxt_poll_p5()
2843 BNXT_DB_NQ_P5(&cpr->cp_db, raw_cons); in bnxt_poll_p5()
2846 cpr_rx = cpr->cp_ring_arr[BNXT_RX_HDL]; in bnxt_poll_p5()
2850 dim_update_sample(cpr->event_ctr, in bnxt_poll_p5()
2854 net_dim(&cpr->dim, dim_sample); in bnxt_poll_p5()
3395 static void bnxt_free_cp_arrays(struct bnxt_cp_ring_info *cpr) in bnxt_free_cp_arrays() argument
3397 struct bnxt_ring_struct *ring = &cpr->cp_ring_struct; in bnxt_free_cp_arrays()
3399 kfree(cpr->cp_desc_ring); in bnxt_free_cp_arrays()
3400 cpr->cp_desc_ring = NULL; in bnxt_free_cp_arrays()
3402 kfree(cpr->cp_desc_mapping); in bnxt_free_cp_arrays()
3403 cpr->cp_desc_mapping = NULL; in bnxt_free_cp_arrays()
3407 static int bnxt_alloc_cp_arrays(struct bnxt_cp_ring_info *cpr, int n) in bnxt_alloc_cp_arrays() argument
3409 cpr->cp_desc_ring = kcalloc(n, sizeof(*cpr->cp_desc_ring), GFP_KERNEL); in bnxt_alloc_cp_arrays()
3410 if (!cpr->cp_desc_ring) in bnxt_alloc_cp_arrays()
3412 cpr->cp_desc_mapping = kcalloc(n, sizeof(*cpr->cp_desc_mapping), in bnxt_alloc_cp_arrays()
3414 if (!cpr->cp_desc_mapping) in bnxt_alloc_cp_arrays()
3460 struct bnxt_cp_ring_info *cpr; in bnxt_free_cp_rings() local
3467 cpr = &bnapi->cp_ring; in bnxt_free_cp_rings()
3468 ring = &cpr->cp_ring_struct; in bnxt_free_cp_rings()
3473 struct bnxt_cp_ring_info *cpr2 = cpr->cp_ring_arr[j]; in bnxt_free_cp_rings()
3480 cpr->cp_ring_arr[j] = NULL; in bnxt_free_cp_rings()
3490 struct bnxt_cp_ring_info *cpr; in bnxt_alloc_cp_sub_ring() local
3493 cpr = kzalloc(sizeof(*cpr), GFP_KERNEL); in bnxt_alloc_cp_sub_ring()
3494 if (!cpr) in bnxt_alloc_cp_sub_ring()
3497 rc = bnxt_alloc_cp_arrays(cpr, bp->cp_nr_pages); in bnxt_alloc_cp_sub_ring()
3499 bnxt_free_cp_arrays(cpr); in bnxt_alloc_cp_sub_ring()
3500 kfree(cpr); in bnxt_alloc_cp_sub_ring()
3503 ring = &cpr->cp_ring_struct; in bnxt_alloc_cp_sub_ring()
3507 rmem->pg_arr = (void **)cpr->cp_desc_ring; in bnxt_alloc_cp_sub_ring()
3508 rmem->dma_arr = cpr->cp_desc_mapping; in bnxt_alloc_cp_sub_ring()
3513 bnxt_free_cp_arrays(cpr); in bnxt_alloc_cp_sub_ring()
3514 kfree(cpr); in bnxt_alloc_cp_sub_ring()
3515 cpr = NULL; in bnxt_alloc_cp_sub_ring()
3517 return cpr; in bnxt_alloc_cp_sub_ring()
3529 struct bnxt_cp_ring_info *cpr; in bnxt_alloc_cp_rings() local
3535 cpr = &bnapi->cp_ring; in bnxt_alloc_cp_rings()
3536 cpr->bnapi = bnapi; in bnxt_alloc_cp_rings()
3537 ring = &cpr->cp_ring_struct; in bnxt_alloc_cp_rings()
3555 cpr->cp_ring_arr[BNXT_RX_HDL] = cpr2; in bnxt_alloc_cp_rings()
3565 cpr->cp_ring_arr[BNXT_TX_HDL] = cpr2; in bnxt_alloc_cp_rings()
3581 struct bnxt_cp_ring_info *cpr; in bnxt_init_ring_struct() local
3589 cpr = &bnapi->cp_ring; in bnxt_init_ring_struct()
3590 ring = &cpr->cp_ring_struct; in bnxt_init_ring_struct()
3594 rmem->pg_arr = (void **)cpr->cp_desc_ring; in bnxt_init_ring_struct()
3595 rmem->dma_arr = cpr->cp_desc_mapping; in bnxt_init_ring_struct()
3747 struct bnxt_cp_ring_info *cpr = &bp->bnapi[i]->cp_ring; in bnxt_init_cp_rings() local
3748 struct bnxt_ring_struct *ring = &cpr->cp_ring_struct; in bnxt_init_cp_rings()
3751 cpr->rx_ring_coal.coal_ticks = bp->rx_coal.coal_ticks; in bnxt_init_cp_rings()
3752 cpr->rx_ring_coal.coal_bufs = bp->rx_coal.coal_bufs; in bnxt_init_cp_rings()
3754 struct bnxt_cp_ring_info *cpr2 = cpr->cp_ring_arr[j]; in bnxt_init_cp_rings()
4269 struct bnxt_cp_ring_info *cpr; in bnxt_init_stats() local
4277 cpr = &bnapi->cp_ring; in bnxt_init_stats()
4278 stats = &cpr->stats; in bnxt_init_stats()
4356 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_free_ring_stats() local
4358 bnxt_free_stats_mem(bp, &cpr->stats); in bnxt_free_ring_stats()
4371 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_alloc_stats() local
4373 cpr->stats.len = size; in bnxt_alloc_stats()
4374 rc = bnxt_alloc_stats_mem(bp, &cpr->stats, !i); in bnxt_alloc_stats()
4378 cpr->hw_stats_ctx_id = INVALID_STATS_CTX_ID; in bnxt_alloc_stats()
4434 struct bnxt_cp_ring_info *cpr; in bnxt_clear_ring_indices() local
4441 cpr = &bnapi->cp_ring; in bnxt_clear_ring_indices()
4442 cpr->cp_raw_cons = 0; in bnxt_clear_ring_indices()
4561 struct bnxt_cp_ring_info *cpr = in bnxt_alloc_mem() local
4564 cpr->cp_ring_struct.ring_mem.flags = in bnxt_alloc_mem()
4676 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_disable_int() local
4677 struct bnxt_ring_struct *ring = &cpr->cp_ring_struct; in bnxt_disable_int()
4680 bnxt_db_nq(bp, &cpr->cp_db, cpr->cp_raw_cons); in bnxt_disable_int()
4687 struct bnxt_cp_ring_info *cpr; in bnxt_cp_num_to_irq_num() local
4689 cpr = &bnapi->cp_ring; in bnxt_cp_num_to_irq_num()
4690 return cpr->cp_ring_struct.map_idx; in bnxt_cp_num_to_irq_num()
4717 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_enable_int() local
4719 bnxt_db_nq_arm(bp, &cpr->cp_db, cpr->cp_raw_cons); in bnxt_enable_int()
5170 struct bnxt_cp_ring_info *cpr; in bnxt_cp_ring_for_rx() local
5172 cpr = bnapi->cp_ring.cp_ring_arr[BNXT_RX_HDL]; in bnxt_cp_ring_for_rx()
5173 return cpr->cp_ring_struct.fw_ring_id; in bnxt_cp_ring_for_rx()
5183 struct bnxt_cp_ring_info *cpr; in bnxt_cp_ring_for_tx() local
5185 cpr = bnapi->cp_ring.cp_ring_arr[BNXT_TX_HDL]; in bnxt_cp_ring_for_tx()
5186 return cpr->cp_ring_struct.fw_ring_id; in bnxt_cp_ring_for_tx()
5888 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_hwrm_ring_alloc() local
5889 struct bnxt_ring_struct *ring = &cpr->cp_ring_struct; in bnxt_hwrm_ring_alloc()
5900 bnxt_set_db(bp, &cpr->cp_db, type, map_idx, ring->fw_ring_id); in bnxt_hwrm_ring_alloc()
5901 bnxt_db_nq(bp, &cpr->cp_db, cpr->cp_raw_cons); in bnxt_hwrm_ring_alloc()
5920 struct bnxt_cp_ring_info *cpr, *cpr2; in bnxt_hwrm_ring_alloc() local
5923 cpr = &bnapi->cp_ring; in bnxt_hwrm_ring_alloc()
5924 cpr2 = cpr->cp_ring_arr[BNXT_TX_HDL]; in bnxt_hwrm_ring_alloc()
5959 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_hwrm_ring_alloc() local
5963 cpr2 = cpr->cp_ring_arr[BNXT_RX_HDL]; in bnxt_hwrm_ring_alloc()
6106 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_hwrm_ring_free() local
6111 struct bnxt_cp_ring_info *cpr2 = cpr->cp_ring_arr[j]; in bnxt_hwrm_ring_free()
6123 ring = &cpr->cp_ring_struct; in bnxt_hwrm_ring_free()
6736 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in __bnxt_hwrm_set_coal_nq() local
6749 req->ring_id = cpu_to_le16(cpr->cp_ring_struct.fw_ring_id); in __bnxt_hwrm_set_coal_nq()
6763 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_hwrm_set_ring_coal() local
6772 coal.coal_ticks = cpr->rx_ring_coal.coal_ticks; in bnxt_hwrm_set_ring_coal()
6773 coal.coal_bufs = cpr->rx_ring_coal.coal_bufs; in bnxt_hwrm_set_ring_coal()
6874 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_hwrm_stat_ctx_free() local
6876 if (cpr->hw_stats_ctx_id != INVALID_STATS_CTX_ID) { in bnxt_hwrm_stat_ctx_free()
6877 req->stat_ctx_id = cpu_to_le32(cpr->hw_stats_ctx_id); in bnxt_hwrm_stat_ctx_free()
6884 cpr->hw_stats_ctx_id = INVALID_STATS_CTX_ID; in bnxt_hwrm_stat_ctx_free()
6911 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_hwrm_stat_ctx_alloc() local
6913 req->stats_dma_addr = cpu_to_le64(cpr->stats.hw_stats_map); in bnxt_hwrm_stat_ctx_alloc()
6919 cpr->hw_stats_ctx_id = le32_to_cpu(resp->stat_ctx_id); in bnxt_hwrm_stat_ctx_alloc()
6921 bp->grp_info[i].fw_stats_ctx = cpr->hw_stats_ctx_id; in bnxt_hwrm_stat_ctx_alloc()
8341 struct bnxt_cp_ring_info *cpr; in bnxt_accumulate_all_stats() local
8344 cpr = &bnapi->cp_ring; in bnxt_accumulate_all_stats()
8345 stats = &cpr->stats; in bnxt_accumulate_all_stats()
9391 struct bnxt_cp_ring_info *cpr = &bp->bnapi[i]->cp_ring; in bnxt_disable_napi() local
9395 cancel_work_sync(&cpr->dim.work); in bnxt_disable_napi()
9406 struct bnxt_cp_ring_info *cpr; in bnxt_enable_napi() local
9408 cpr = &bnapi->cp_ring; in bnxt_enable_napi()
9410 cpr->sw_stats.rx.rx_resets++; in bnxt_enable_napi()
9414 INIT_WORK(&cpr->dim.work, bnxt_dim_work); in bnxt_enable_napi()
9415 cpr->dim.mode = DIM_CQ_PERIOD_MODE_START_FROM_EQE; in bnxt_enable_napi()
10836 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_get_ring_stats() local
10837 u64 *sw = cpr->stats.sw_stats; in bnxt_get_ring_stats()
10863 cpr->sw_stats.rx.rx_netpoll_discards + in bnxt_get_ring_stats()
10864 cpr->sw_stats.rx.rx_oom_discards; in bnxt_get_ring_stats()
11495 struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring; in bnxt_dump_cp_sw_state() local
11499 i, cpr->cp_ring_struct.fw_ring_id, cpr->cp_raw_cons); in bnxt_dump_cp_sw_state()
11522 struct bnxt_cp_ring_info *cpr; in bnxt_hwrm_rx_ring_reset() local
11530 cpr = &bnapi->cp_ring; in bnxt_hwrm_rx_ring_reset()
11531 cp_ring_id = cpr->cp_ring_struct.fw_ring_id; in bnxt_hwrm_rx_ring_reset()
11699 struct bnxt_cp_ring_info *cpr; in bnxt_rx_ring_reset() local
11722 cpr = &rxr->bnapi->cp_ring; in bnxt_rx_ring_reset()
11723 cpr->sw_stats.rx.rx_resets++; in bnxt_rx_ring_reset()
11909 struct bnxt_cp_ring_info *cpr; in bnxt_chk_missed_irq() local
11916 cpr = &bnapi->cp_ring; in bnxt_chk_missed_irq()
11918 struct bnxt_cp_ring_info *cpr2 = cpr->cp_ring_arr[j]; in bnxt_chk_missed_irq()
11933 cpr->sw_stats.cmn.missed_irqs++; in bnxt_chk_missed_irq()