Home
last modified time | relevance | path

Searched refs:raw_cons (Results 1 – 7 of 7) sorted by relevance

/Linux-v6.6/drivers/infiniband/hw/bnxt_re/
Dqplib_rcfw.h144 #define CREQ_CMP_VALID(hdr, raw_cons, cp_bit) \ argument
146 !((raw_cons) & (cp_bit)))
Dqplib_fp.h351 #define CQE_CMP_VALID(hdr, raw_cons, cp_bit) \ argument
353 !((raw_cons) & (cp_bit)))
446 #define NQE_CMP_VALID(hdr, raw_cons, cp_bit) \ argument
448 !((raw_cons) & (cp_bit)))
Dqplib_fp.c240 u32 sw_cons, raw_cons; in clean_nq() local
246 raw_cons = hwq->cons; in clean_nq()
248 sw_cons = HWQ_CMP(raw_cons, hwq); in clean_nq()
251 if (!NQE_CMP_VALID(nqe, raw_cons, hwq->max_elements)) in clean_nq()
279 raw_cons++; in clean_nq()
305 u32 sw_cons, raw_cons; in bnxt_qplib_service_nq() local
312 raw_cons = hwq->cons; in bnxt_qplib_service_nq()
314 sw_cons = HWQ_CMP(raw_cons, hwq); in bnxt_qplib_service_nq()
316 if (!NQE_CMP_VALID(nqe, raw_cons, hwq->max_elements)) in bnxt_qplib_service_nq()
375 raw_cons++; in bnxt_qplib_service_nq()
[all …]
Dqplib_rcfw.c737 u32 sw_cons, raw_cons; in bnxt_qplib_service_creq() local
743 raw_cons = hwq->cons; in bnxt_qplib_service_creq()
745 sw_cons = HWQ_CMP(raw_cons, hwq); in bnxt_qplib_service_creq()
747 if (!CREQ_CMP_VALID(creqe, raw_cons, hwq->max_elements)) in bnxt_qplib_service_creq()
778 raw_cons++; in bnxt_qplib_service_creq()
782 if (hwq->cons != raw_cons) { in bnxt_qplib_service_creq()
783 hwq->cons = raw_cons; in bnxt_qplib_service_creq()
/Linux-v6.6/drivers/net/ethernet/broadcom/bnxt/
Dbnxt.h667 #define TX_CMP_VALID(txcmp, raw_cons) \ argument
669 !((raw_cons) & bp->cp_bit))
671 #define RX_CMP_VALID(rxcmp1, raw_cons) \ argument
673 !((raw_cons) & bp->cp_bit))
675 #define RX_AGG_CMP_VALID(agg, raw_cons) \ argument
677 !((raw_cons) & bp->cp_bit))
679 #define NQ_CMP_VALID(nqcmp, raw_cons) \ argument
680 (!!((nqcmp)->v & cpu_to_le32(NQ_CN_V)) == !((raw_cons) & bp->cp_bit))
Dbnxt.c1200 u8 agg_bufs, u32 *raw_cons) in bnxt_agg_bufs_valid() argument
1205 *raw_cons = ADV_RAW_CMP(*raw_cons, agg_bufs); in bnxt_agg_bufs_valid()
1206 last = RING_CMP(*raw_cons); in bnxt_agg_bufs_valid()
1209 return RX_AGG_CMP_VALID(agg, *raw_cons); in bnxt_agg_bufs_valid()
1238 u32 *raw_cons, void *cmp) in bnxt_discard_rx() argument
1241 u32 tmp_raw_cons = *raw_cons; in bnxt_discard_rx()
1263 *raw_cons = tmp_raw_cons; in bnxt_discard_rx()
1591 u32 *raw_cons, in bnxt_tpa_end() argument
1608 int rc = bnxt_discard_rx(bp, cpr, raw_cons, tpa_end); in bnxt_tpa_end()
1634 idx = RING_CMP(*raw_cons); in bnxt_tpa_end()
[all …]
Dbnxt_ethtool.c3559 u32 raw_cons, int pkt_size) in bnxt_rx_loopback() argument
3571 cp_cons = RING_CMP(raw_cons); in bnxt_rx_loopback()
3596 u32 raw_cons; in bnxt_poll_loopback() local
3600 raw_cons = cpr->cp_raw_cons; in bnxt_poll_loopback()
3602 cons = RING_CMP(raw_cons); in bnxt_poll_loopback()
3605 if (!TX_CMP_VALID(txcmp, raw_cons)) { in bnxt_poll_loopback()
3615 rc = bnxt_rx_loopback(bp, cpr, raw_cons, pkt_size); in bnxt_poll_loopback()
3616 raw_cons = NEXT_RAW_CMP(raw_cons); in bnxt_poll_loopback()
3617 raw_cons = NEXT_RAW_CMP(raw_cons); in bnxt_poll_loopback()
3620 raw_cons = NEXT_RAW_CMP(raw_cons); in bnxt_poll_loopback()
[all …]