Lines Matching refs:cpr2

2430 		struct bnxt_cp_ring_info *cpr2 = cpr->cp_ring_arr[i];  in __bnxt_poll_cqs()  local
2432 if (cpr2) { in __bnxt_poll_cqs()
2433 work_done += __bnxt_poll_work(bp, cpr2, in __bnxt_poll_cqs()
2435 cpr->has_more_work |= cpr2->has_more_work; in __bnxt_poll_cqs()
2448 struct bnxt_cp_ring_info *cpr2 = cpr->cp_ring_arr[i]; in __bnxt_poll_cqs_done() local
2451 if (cpr2 && cpr2->had_work_done) { in __bnxt_poll_cqs_done()
2452 db = &cpr2->cp_db; in __bnxt_poll_cqs_done()
2454 RING_CMP(cpr2->cp_raw_cons), db->doorbell); in __bnxt_poll_cqs_done()
2455 cpr2->had_work_done = 0; in __bnxt_poll_cqs_done()
2498 struct bnxt_cp_ring_info *cpr2; in bnxt_poll_p5() local
2500 cpr2 = cpr->cp_ring_arr[idx]; in bnxt_poll_p5()
2501 work_done += __bnxt_poll_work(bp, cpr2, in bnxt_poll_p5()
2503 cpr->has_more_work |= cpr2->has_more_work; in bnxt_poll_p5()
3031 struct bnxt_cp_ring_info *cpr2 = cpr->cp_ring_arr[j]; in bnxt_free_cp_rings() local
3033 if (cpr2) { in bnxt_free_cp_rings()
3034 ring = &cpr2->cp_ring_struct; in bnxt_free_cp_rings()
3036 kfree(cpr2); in bnxt_free_cp_rings()
3102 struct bnxt_cp_ring_info *cpr2 = in bnxt_alloc_cp_rings() local
3105 cpr->cp_ring_arr[BNXT_RX_HDL] = cpr2; in bnxt_alloc_cp_rings()
3106 if (!cpr2) in bnxt_alloc_cp_rings()
3108 cpr2->bnapi = bnapi; in bnxt_alloc_cp_rings()
3112 struct bnxt_cp_ring_info *cpr2 = in bnxt_alloc_cp_rings() local
3115 cpr->cp_ring_arr[BNXT_TX_HDL] = cpr2; in bnxt_alloc_cp_rings()
3116 if (!cpr2) in bnxt_alloc_cp_rings()
3118 cpr2->bnapi = bnapi; in bnxt_alloc_cp_rings()
3304 struct bnxt_cp_ring_info *cpr2 = cpr->cp_ring_arr[j]; in bnxt_init_cp_rings() local
3306 if (!cpr2) in bnxt_init_cp_rings()
3309 ring = &cpr2->cp_ring_struct; in bnxt_init_cp_rings()
3311 cpr2->rx_ring_coal.coal_ticks = bp->rx_coal.coal_ticks; in bnxt_init_cp_rings()
3312 cpr2->rx_ring_coal.coal_bufs = bp->rx_coal.coal_bufs; in bnxt_init_cp_rings()
5690 struct bnxt_cp_ring_info *cpr, *cpr2; in bnxt_hwrm_ring_alloc() local
5694 cpr2 = cpr->cp_ring_arr[BNXT_TX_HDL]; in bnxt_hwrm_ring_alloc()
5695 ring = &cpr2->cp_ring_struct; in bnxt_hwrm_ring_alloc()
5701 bnxt_set_db(bp, &cpr2->cp_db, type2, map_idx, in bnxt_hwrm_ring_alloc()
5703 bnxt_db_cq(bp, &cpr2->cp_db, cpr2->cp_raw_cons); in bnxt_hwrm_ring_alloc()
5731 struct bnxt_cp_ring_info *cpr2; in bnxt_hwrm_ring_alloc() local
5733 cpr2 = cpr->cp_ring_arr[BNXT_RX_HDL]; in bnxt_hwrm_ring_alloc()
5734 ring = &cpr2->cp_ring_struct; in bnxt_hwrm_ring_alloc()
5739 bnxt_set_db(bp, &cpr2->cp_db, type2, map_idx, in bnxt_hwrm_ring_alloc()
5741 bnxt_db_cq(bp, &cpr2->cp_db, cpr2->cp_raw_cons); in bnxt_hwrm_ring_alloc()
5877 struct bnxt_cp_ring_info *cpr2 = cpr->cp_ring_arr[j]; in bnxt_hwrm_ring_free() local
5879 if (cpr2) { in bnxt_hwrm_ring_free()
5880 ring = &cpr2->cp_ring_struct; in bnxt_hwrm_ring_free()
10943 struct bnxt_cp_ring_info *cpr2 = cpr->cp_ring_arr[j]; in bnxt_chk_missed_irq() local
10946 if (!cpr2 || cpr2->has_more_work || in bnxt_chk_missed_irq()
10947 !bnxt_has_work(bp, cpr2)) in bnxt_chk_missed_irq()
10950 if (cpr2->cp_raw_cons != cpr2->last_cp_raw_cons) { in bnxt_chk_missed_irq()
10951 cpr2->last_cp_raw_cons = cpr2->cp_raw_cons; in bnxt_chk_missed_irq()
10954 fw_ring_id = cpr2->cp_ring_struct.fw_ring_id; in bnxt_chk_missed_irq()