Lines Matching defs:cpr
208 static void inline bnxt_do_enable_intr(struct bnxt_cp_ring *cpr);
209 static void inline bnxt_do_disable_intr(struct bnxt_cp_ring *cpr);
210 static void bnxt_mark_cpr_invalid(struct bnxt_cp_ring *cpr);
1436 bnxt_do_enable_intr(struct bnxt_cp_ring *cpr)
1438 if (cpr->ring.phys_id != (uint16_t)HWRM_NA_SIGNATURE) {
1440 if (cpr->cons == UINT32_MAX)
1441 BNXT_CP_ENABLE_DB(&cpr->ring);
1443 BNXT_CP_IDX_ENABLE_DB(&cpr->ring, cpr->cons);
1448 bnxt_do_disable_intr(struct bnxt_cp_ring *cpr)
1450 if (cpr->ring.phys_id != (uint16_t)HWRM_NA_SIGNATURE)
1451 BNXT_CP_DISABLE_DB(&cpr->ring);
2240 struct bnxt_cp_ring *cpr = arg;
2243 BNXT_CP_DISABLE_DB(&cpr->ring);
2286 bnxt_mark_cpr_invalid(struct bnxt_cp_ring *cpr)
2288 struct cmpl_base *cmp = (void *)cpr->ring.vaddr;
2291 for (i = 0; i < cpr->ring.ring_size; i++)
2292 cmp[i].info3_v = !cpr->v_bit;
2336 struct bnxt_cp_ring *cpr = &softc->def_cp_ring;
2340 uint32_t cons = cpr->cons;
2341 bool v_bit = cpr->v_bit;
2349 NEXT_CP_CONS_V(&cpr->ring, cons, v_bit);
2350 cmpl = &((struct cmpl_base *)cpr->ring.vaddr)[cons];
2384 cpr->cons = last_cons;
2385 cpr->v_bit = last_v_bit;
2386 BNXT_CP_IDX_ENABLE_DB(&cpr->ring, cpr->cons);