Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/infiniband/hw/bnxt_re/
Dqplib_rcfw.h112 #define CREQ_CMP_VALID(hdr, raw_cons, cp_bit) \ argument
114 !((raw_cons) & (cp_bit)))
Dqplib_rcfw.c380 u32 sw_cons, raw_cons; in bnxt_qplib_service_creq() local
385 raw_cons = hwq->cons; in bnxt_qplib_service_creq()
387 sw_cons = HWQ_CMP(raw_cons, hwq); in bnxt_qplib_service_creq()
389 if (!CREQ_CMP_VALID(creqe, raw_cons, hwq->max_elements)) in bnxt_qplib_service_creq()
418 raw_cons++; in bnxt_qplib_service_creq()
422 if (hwq->cons != raw_cons) { in bnxt_qplib_service_creq()
423 hwq->cons = raw_cons; in bnxt_qplib_service_creq()
Dqplib_fp.c239 u32 sw_cons, raw_cons; in clean_nq() local
245 raw_cons = hwq->cons; in clean_nq()
247 sw_cons = HWQ_CMP(raw_cons, hwq); in clean_nq()
250 if (!NQE_CMP_VALID(nqe, raw_cons, hwq->max_elements)) in clean_nq()
278 raw_cons++; in clean_nq()
306 u32 sw_cons, raw_cons; in bnxt_qplib_service_nq() local
313 raw_cons = hwq->cons; in bnxt_qplib_service_nq()
315 sw_cons = HWQ_CMP(raw_cons, hwq); in bnxt_qplib_service_nq()
317 if (!NQE_CMP_VALID(nqe, raw_cons, hwq->max_elements)) in bnxt_qplib_service_nq()
380 raw_cons++; in bnxt_qplib_service_nq()
[all …]
Dqplib_fp.h349 #define CQE_CMP_VALID(hdr, raw_cons, cp_bit) \ argument
351 !((raw_cons) & (cp_bit)))
443 #define NQE_CMP_VALID(hdr, raw_cons, cp_bit) \ argument
445 !((raw_cons) & (cp_bit)))
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnxt/
Dbnxt.h629 #define TX_CMP_VALID(txcmp, raw_cons) \ argument
631 !((raw_cons) & bp->cp_bit))
633 #define RX_CMP_VALID(rxcmp1, raw_cons) \ argument
635 !((raw_cons) & bp->cp_bit))
637 #define RX_AGG_CMP_VALID(agg, raw_cons) \ argument
639 !((raw_cons) & bp->cp_bit))
641 #define NQ_CMP_VALID(nqcmp, raw_cons) \ argument
642 (!!((nqcmp)->v & cpu_to_le32(NQ_CN_V)) == !((raw_cons) & bp->cp_bit))
Dbnxt_ethtool.c3177 u32 raw_cons, int pkt_size) in bnxt_rx_loopback() argument
3189 cp_cons = RING_CMP(raw_cons); in bnxt_rx_loopback()
3214 u32 raw_cons; in bnxt_poll_loopback() local
3218 raw_cons = cpr->cp_raw_cons; in bnxt_poll_loopback()
3220 cons = RING_CMP(raw_cons); in bnxt_poll_loopback()
3223 if (!TX_CMP_VALID(txcmp, raw_cons)) { in bnxt_poll_loopback()
3233 rc = bnxt_rx_loopback(bp, cpr, raw_cons, pkt_size); in bnxt_poll_loopback()
3234 raw_cons = NEXT_RAW_CMP(raw_cons); in bnxt_poll_loopback()
3235 raw_cons = NEXT_RAW_CMP(raw_cons); in bnxt_poll_loopback()
3238 raw_cons = NEXT_RAW_CMP(raw_cons); in bnxt_poll_loopback()
[all …]
Dbnxt.c1117 u8 agg_bufs, u32 *raw_cons) in bnxt_agg_bufs_valid() argument
1122 *raw_cons = ADV_RAW_CMP(*raw_cons, agg_bufs); in bnxt_agg_bufs_valid()
1123 last = RING_CMP(*raw_cons); in bnxt_agg_bufs_valid()
1126 return RX_AGG_CMP_VALID(agg, *raw_cons); in bnxt_agg_bufs_valid()
1155 u32 *raw_cons, void *cmp) in bnxt_discard_rx() argument
1158 u32 tmp_raw_cons = *raw_cons; in bnxt_discard_rx()
1180 *raw_cons = tmp_raw_cons; in bnxt_discard_rx()
1540 u32 *raw_cons, in bnxt_tpa_end() argument
1557 int rc = bnxt_discard_rx(bp, cpr, raw_cons, tpa_end); in bnxt_tpa_end()
1583 idx = RING_CMP(*raw_cons); in bnxt_tpa_end()
[all …]