Lines Matching refs:cons
196 uint32_t cons = cpr->cons; in bnxt_isc_txd_credits_update() local
204 last_cons = cons; in bnxt_isc_txd_credits_update()
206 NEXT_CP_CONS_V(&cpr->ring, cons, v_bit); in bnxt_isc_txd_credits_update()
207 CMPL_PREFETCH_NEXT(cpr, cons); in bnxt_isc_txd_credits_update()
209 if (!CMP_VALID(&cmpl[cons], v_bit)) in bnxt_isc_txd_credits_update()
212 type = cmpl[cons].flags_type & TX_CMPL_TYPE_MASK; in bnxt_isc_txd_credits_update()
215 err = (le16toh(cmpl[cons].errors_v) & in bnxt_isc_txd_credits_update()
222 avail += cmpl[cons].opaque >> 24; in bnxt_isc_txd_credits_update()
233 NEXT_CP_CONS_V(&cpr->ring, cons, v_bit); in bnxt_isc_txd_credits_update()
234 if (!CMP_VALID(&cmpl[cons], v_bit)) in bnxt_isc_txd_credits_update()
245 cpr->cons = last_cons; in bnxt_isc_txd_credits_update()
247 BNXT_CP_IDX_DISABLE_DB(&cpr->ring, cpr->cons); in bnxt_isc_txd_credits_update()
316 if (softc->rx_cp_rings[rxqid].cons != UINT32_MAX) in bnxt_isc_rxd_flush()
318 softc->rx_cp_rings[rxqid].cons); in bnxt_isc_rxd_flush()
334 uint32_t cons = cpr->cons; in bnxt_isc_rxd_available() local
341 NEXT_CP_CONS_V(&cpr->ring, cons, v_bit); in bnxt_isc_rxd_available()
342 CMPL_PREFETCH_NEXT(cpr, cons); in bnxt_isc_rxd_available()
344 if (!CMP_VALID(&cmp[cons], v_bit)) in bnxt_isc_rxd_available()
347 type = le16toh(cmp[cons].type) & CMPL_BASE_TYPE_MASK; in bnxt_isc_rxd_available()
350 rcp = (void *)&cmp[cons]; in bnxt_isc_rxd_available()
353 NEXT_CP_CONS_V(&cpr->ring, cons, v_bit); in bnxt_isc_rxd_available()
354 CMPL_PREFETCH_NEXT(cpr, cons); in bnxt_isc_rxd_available()
356 if (!CMP_VALID(&cmp[cons], v_bit)) in bnxt_isc_rxd_available()
361 NEXT_CP_CONS_V(&cpr->ring, cons, v_bit); in bnxt_isc_rxd_available()
362 CMPL_PREFETCH_NEXT(cpr, cons); in bnxt_isc_rxd_available()
363 if (!CMP_VALID(&cmp[cons], v_bit)) in bnxt_isc_rxd_available()
369 rtpae = (void *)&cmp[cons]; in bnxt_isc_rxd_available()
373 NEXT_CP_CONS_V(&cpr->ring, cons, v_bit); in bnxt_isc_rxd_available()
374 CMPL_PREFETCH_NEXT(cpr, cons); in bnxt_isc_rxd_available()
376 if (!CMP_VALID(&cmp[cons], v_bit)) in bnxt_isc_rxd_available()
380 NEXT_CP_CONS_V(&cpr->ring, cons, v_bit); in bnxt_isc_rxd_available()
381 CMPL_PREFETCH_NEXT(cpr, cons); in bnxt_isc_rxd_available()
382 if (!CMP_VALID(&cmp[cons], v_bit)) in bnxt_isc_rxd_available()
388 NEXT_CP_CONS_V(&cpr->ring, cons, v_bit); in bnxt_isc_rxd_available()
389 CMPL_PREFETCH_NEXT(cpr, cons); in bnxt_isc_rxd_available()
391 if (!CMP_VALID(&cmp[cons], v_bit)) in bnxt_isc_rxd_available()
403 NEXT_CP_CONS_V(&cpr->ring, cons, v_bit); in bnxt_isc_rxd_available()
404 CMPL_PREFETCH_NEXT(cpr, cons); in bnxt_isc_rxd_available()
406 if (!CMP_VALID(&cmp[cons], v_bit)) in bnxt_isc_rxd_available()
462 rcp = &((struct rx_pkt_cmpl *)cpr->ring.vaddr)[cpr->cons]; in bnxt_pkt_get_l2()
482 NEXT_CP_CONS_V(&cpr->ring, cpr->cons, cpr->v_bit); in bnxt_pkt_get_l2()
484 rcph = &((struct rx_pkt_cmpl_hi *)cpr->ring.vaddr)[cpr->cons]; in bnxt_pkt_get_l2()
513 NEXT_CP_CONS_V(&cpr->ring, cpr->cons, cpr->v_bit); in bnxt_pkt_get_l2()
515 acp = &((struct rx_abuf_cmpl *)cpr->ring.vaddr)[cpr->cons]; in bnxt_pkt_get_l2()
532 &((struct rx_tpa_end_cmpl *)cpr->ring.vaddr)[cpr->cons]; in bnxt_pkt_get_tpa()
563 NEXT_CP_CONS_V(&cpr->ring, cpr->cons, cpr->v_bit); in bnxt_pkt_get_tpa()
588 NEXT_CP_CONS_V(&cpr->ring, cpr->cons, cpr->v_bit); in bnxt_pkt_get_tpa()
590 acp = &((struct rx_abuf_cmpl *)cpr->ring.vaddr)[cpr->cons]; in bnxt_pkt_get_tpa()
624 NEXT_CP_CONS_V(&cpr->ring, cpr->cons, cpr->v_bit); in bnxt_isc_rxd_pkt_get()
626 CMPL_PREFETCH_NEXT(cpr, cpr->cons); in bnxt_isc_rxd_pkt_get()
627 cmp = &((struct cmpl_base *)cpr->ring.vaddr)[cpr->cons]; in bnxt_isc_rxd_pkt_get()
638 rtpa = (void *)&cmp_q[cpr->cons]; in bnxt_isc_rxd_pkt_get()
644 NEXT_CP_CONS_V(&cpr->ring, cpr->cons, cpr->v_bit); in bnxt_isc_rxd_pkt_get()
646 CMPL_PREFETCH_NEXT(cpr, cpr->cons); in bnxt_isc_rxd_pkt_get()
649 ((struct rx_tpa_start_cmpl_hi *)cmp_q)[cpr->cons]; in bnxt_isc_rxd_pkt_get()
656 NEXT_CP_CONS_V(&cpr->ring, cpr->cons, in bnxt_isc_rxd_pkt_get()
660 CMPL_PREFETCH_NEXT(cpr, cpr->cons); in bnxt_isc_rxd_pkt_get()