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()
335 uint32_t cons = cpr->cons; in bnxt_isc_rxd_available() local
342 NEXT_CP_CONS_V(&cpr->ring, cons, v_bit); in bnxt_isc_rxd_available()
343 CMPL_PREFETCH_NEXT(cpr, cons); in bnxt_isc_rxd_available()
345 if (!CMP_VALID(&cmp[cons], v_bit)) in bnxt_isc_rxd_available()
348 type = le16toh(cmp[cons].type) & CMPL_BASE_TYPE_MASK; in bnxt_isc_rxd_available()
351 rcp = (void *)&cmp[cons]; in bnxt_isc_rxd_available()
354 NEXT_CP_CONS_V(&cpr->ring, cons, v_bit); in bnxt_isc_rxd_available()
355 CMPL_PREFETCH_NEXT(cpr, cons); in bnxt_isc_rxd_available()
357 if (!CMP_VALID(&cmp[cons], v_bit)) in bnxt_isc_rxd_available()
362 NEXT_CP_CONS_V(&cpr->ring, cons, v_bit); in bnxt_isc_rxd_available()
363 CMPL_PREFETCH_NEXT(cpr, cons); in bnxt_isc_rxd_available()
364 if (!CMP_VALID(&cmp[cons], v_bit)) in bnxt_isc_rxd_available()
370 rtpae = (void *)&cmp[cons]; in bnxt_isc_rxd_available()
374 NEXT_CP_CONS_V(&cpr->ring, cons, v_bit); in bnxt_isc_rxd_available()
375 CMPL_PREFETCH_NEXT(cpr, cons); in bnxt_isc_rxd_available()
377 if (!CMP_VALID(&cmp[cons], v_bit)) in bnxt_isc_rxd_available()
381 NEXT_CP_CONS_V(&cpr->ring, cons, v_bit); in bnxt_isc_rxd_available()
382 CMPL_PREFETCH_NEXT(cpr, cons); in bnxt_isc_rxd_available()
383 if (!CMP_VALID(&cmp[cons], v_bit)) in bnxt_isc_rxd_available()
389 NEXT_CP_CONS_V(&cpr->ring, cons, v_bit); in bnxt_isc_rxd_available()
390 CMPL_PREFETCH_NEXT(cpr, cons); in bnxt_isc_rxd_available()
392 if (!CMP_VALID(&cmp[cons], v_bit)) in bnxt_isc_rxd_available()
404 NEXT_CP_CONS_V(&cpr->ring, cons, v_bit); in bnxt_isc_rxd_available()
405 CMPL_PREFETCH_NEXT(cpr, cons); in bnxt_isc_rxd_available()
407 if (!CMP_VALID(&cmp[cons], v_bit)) in bnxt_isc_rxd_available()
463 rcp = &((struct rx_pkt_cmpl *)cpr->ring.vaddr)[cpr->cons]; in bnxt_pkt_get_l2()
483 NEXT_CP_CONS_V(&cpr->ring, cpr->cons, cpr->v_bit); in bnxt_pkt_get_l2()
485 rcph = &((struct rx_pkt_cmpl_hi *)cpr->ring.vaddr)[cpr->cons]; in bnxt_pkt_get_l2()
514 NEXT_CP_CONS_V(&cpr->ring, cpr->cons, cpr->v_bit); in bnxt_pkt_get_l2()
516 acp = &((struct rx_abuf_cmpl *)cpr->ring.vaddr)[cpr->cons]; in bnxt_pkt_get_l2()
533 &((struct rx_tpa_end_cmpl *)cpr->ring.vaddr)[cpr->cons]; in bnxt_pkt_get_tpa()
564 NEXT_CP_CONS_V(&cpr->ring, cpr->cons, cpr->v_bit); in bnxt_pkt_get_tpa()
589 NEXT_CP_CONS_V(&cpr->ring, cpr->cons, cpr->v_bit); in bnxt_pkt_get_tpa()
591 acp = &((struct rx_abuf_cmpl *)cpr->ring.vaddr)[cpr->cons]; in bnxt_pkt_get_tpa()
625 NEXT_CP_CONS_V(&cpr->ring, cpr->cons, cpr->v_bit); in bnxt_isc_rxd_pkt_get()
627 CMPL_PREFETCH_NEXT(cpr, cpr->cons); in bnxt_isc_rxd_pkt_get()
628 cmp = &((struct cmpl_base *)cpr->ring.vaddr)[cpr->cons]; in bnxt_isc_rxd_pkt_get()
639 rtpa = (void *)&cmp_q[cpr->cons]; in bnxt_isc_rxd_pkt_get()
645 NEXT_CP_CONS_V(&cpr->ring, cpr->cons, cpr->v_bit); in bnxt_isc_rxd_pkt_get()
647 CMPL_PREFETCH_NEXT(cpr, cpr->cons); in bnxt_isc_rxd_pkt_get()
650 ((struct rx_tpa_start_cmpl_hi *)cmp_q)[cpr->cons]; in bnxt_isc_rxd_pkt_get()
657 NEXT_CP_CONS_V(&cpr->ring, cpr->cons, in bnxt_isc_rxd_pkt_get()
661 CMPL_PREFETCH_NEXT(cpr, cpr->cons); in bnxt_isc_rxd_pkt_get()