Home
last modified time | relevance | path

Searched refs:raw_cons (Results 1 - 14 of 14) sorted by relevance

/kernel/linux/linux-5.10/drivers/infiniband/hw/bnxt_re/
H A Dqplib_rcfw.h112 #define CREQ_CMP_VALID(hdr, raw_cons, cp_bit) \
114 !((raw_cons) & (cp_bit)))
H A Dqplib_rcfw.c383 u32 sw_cons, raw_cons; in bnxt_qplib_service_creq() local
389 raw_cons = hwq->cons; in bnxt_qplib_service_creq()
391 sw_cons = HWQ_CMP(raw_cons, hwq); in bnxt_qplib_service_creq()
393 if (!CREQ_CMP_VALID(creqe, raw_cons, hwq->max_elements)) in bnxt_qplib_service_creq()
423 raw_cons++; in bnxt_qplib_service_creq()
427 if (hwq->cons != raw_cons) { in bnxt_qplib_service_creq()
428 hwq->cons = raw_cons; in bnxt_qplib_service_creq()
H A Dqplib_fp.h349 #define CQE_CMP_VALID(hdr, raw_cons, cp_bit) \
351 !((raw_cons) & (cp_bit)))
443 #define NQE_CMP_VALID(hdr, raw_cons, cp_bit) \
445 !((raw_cons) & (cp_bit)))
H A 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()
2611 u32 sw_cons, raw_cons; bnxt_qplib_is_cq_empty() local
2860 u32 sw_cons, raw_cons; bnxt_qplib_poll_cq() local
[all...]
/kernel/linux/linux-6.6/drivers/infiniband/hw/bnxt_re/
H A Dqplib_fp.h351 #define CQE_CMP_VALID(hdr, raw_cons, cp_bit) \
353 !((raw_cons) & (cp_bit)))
446 #define NQE_CMP_VALID(hdr, raw_cons, cp_bit) \
448 !((raw_cons) & (cp_bit)))
H A 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()
2690 u32 sw_cons, raw_cons; bnxt_qplib_is_cq_empty() local
2937 u32 sw_cons, raw_cons; bnxt_qplib_poll_cq() local
[all...]
H A Dqplib_rcfw.h144 #define CREQ_CMP_VALID(hdr, raw_cons, cp_bit) \
146 !((raw_cons) & (cp_bit)))
H A 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()
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_ethtool.c3179 u32 raw_cons, int pkt_size) in bnxt_rx_loopback()
3191 cp_cons = RING_CMP(raw_cons); in bnxt_rx_loopback()
3216 u32 raw_cons; in bnxt_poll_loopback() local
3220 raw_cons = cpr->cp_raw_cons; in bnxt_poll_loopback()
3222 cons = RING_CMP(raw_cons); in bnxt_poll_loopback()
3225 if (!TX_CMP_VALID(txcmp, raw_cons)) { in bnxt_poll_loopback()
3235 rc = bnxt_rx_loopback(bp, cpr, raw_cons, pkt_size); in bnxt_poll_loopback()
3236 raw_cons = NEXT_RAW_CMP(raw_cons); in bnxt_poll_loopback()
3237 raw_cons in bnxt_poll_loopback()
3178 bnxt_rx_loopback(struct bnxt *bp, struct bnxt_cp_ring_info *cpr, u32 raw_cons, int pkt_size) bnxt_rx_loopback() argument
[all...]
H A Dbnxt.h629 #define TX_CMP_VALID(txcmp, raw_cons) \
631 !((raw_cons) & bp->cp_bit))
633 #define RX_CMP_VALID(rxcmp1, raw_cons) \
635 !((raw_cons) & bp->cp_bit))
637 #define RX_AGG_CMP_VALID(agg, raw_cons) \
639 !((raw_cons) & bp->cp_bit))
641 #define NQ_CMP_VALID(nqcmp, raw_cons) \
642 (!!((nqcmp)->v & cpu_to_le32(NQ_CN_V)) == !((raw_cons) & bp->cp_bit))
H A Dbnxt.c1117 u8 agg_bufs, u32 *raw_cons) in bnxt_agg_bufs_valid()
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()
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()
1557 int rc = bnxt_discard_rx(bp, cpr, raw_cons, tpa_en in bnxt_tpa_end()
1116 bnxt_agg_bufs_valid(struct bnxt *bp, struct bnxt_cp_ring_info *cpr, u8 agg_bufs, u32 *raw_cons) bnxt_agg_bufs_valid() argument
1154 bnxt_discard_rx(struct bnxt *bp, struct bnxt_cp_ring_info *cpr, u32 *raw_cons, void *cmp) bnxt_discard_rx() argument
1538 bnxt_tpa_end(struct bnxt *bp, struct bnxt_cp_ring_info *cpr, u32 *raw_cons, struct rx_tpa_end_cmp *tpa_end, struct rx_tpa_end_cmp_ext *tpa_end1, u8 *event) bnxt_tpa_end() argument
1713 bnxt_rx_pkt(struct bnxt *bp, struct bnxt_cp_ring_info *cpr, u32 *raw_cons, u8 *event) bnxt_rx_pkt() argument
1935 bnxt_force_rx_discard(struct bnxt *bp, struct bnxt_cp_ring_info *cpr, u32 *raw_cons, u8 *event) bnxt_force_rx_discard() argument
2237 u32 raw_cons = cpr->cp_raw_cons; bnxt_has_work() local
2278 u32 raw_cons = cpr->cp_raw_cons; __bnxt_poll_work() local
2406 u32 raw_cons = cpr->cp_raw_cons; bnxt_poll_nitroa0() local
2548 u32 raw_cons = cpr->cp_raw_cons; bnxt_poll_p5() local
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_ethtool.c3553 u32 raw_cons, int pkt_size) in bnxt_rx_loopback()
3565 cp_cons = RING_CMP(raw_cons); in bnxt_rx_loopback()
3590 u32 raw_cons; in bnxt_poll_loopback() local
3594 raw_cons = cpr->cp_raw_cons; in bnxt_poll_loopback()
3596 cons = RING_CMP(raw_cons); in bnxt_poll_loopback()
3599 if (!TX_CMP_VALID(txcmp, raw_cons)) { in bnxt_poll_loopback()
3609 rc = bnxt_rx_loopback(bp, cpr, raw_cons, pkt_size); in bnxt_poll_loopback()
3610 raw_cons = NEXT_RAW_CMP(raw_cons); in bnxt_poll_loopback()
3611 raw_cons in bnxt_poll_loopback()
3552 bnxt_rx_loopback(struct bnxt *bp, struct bnxt_cp_ring_info *cpr, u32 raw_cons, int pkt_size) bnxt_rx_loopback() argument
[all...]
H A Dbnxt.h673 #define TX_CMP_VALID(txcmp, raw_cons) \
675 !((raw_cons) & bp->cp_bit))
677 #define RX_CMP_VALID(rxcmp1, raw_cons) \
679 !((raw_cons) & bp->cp_bit))
681 #define RX_AGG_CMP_VALID(agg, raw_cons) \
683 !((raw_cons) & bp->cp_bit))
685 #define NQ_CMP_VALID(nqcmp, raw_cons) \
686 (!!((nqcmp)->v & cpu_to_le32(NQ_CN_V)) == !((raw_cons) & bp->cp_bit))
H A Dbnxt.c1200 u8 agg_bufs, u32 *raw_cons) in bnxt_agg_bufs_valid()
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()
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()
1608 int rc = bnxt_discard_rx(bp, cpr, raw_cons, tpa_en in bnxt_tpa_end()
1199 bnxt_agg_bufs_valid(struct bnxt *bp, struct bnxt_cp_ring_info *cpr, u8 agg_bufs, u32 *raw_cons) bnxt_agg_bufs_valid() argument
1237 bnxt_discard_rx(struct bnxt *bp, struct bnxt_cp_ring_info *cpr, u32 *raw_cons, void *cmp) bnxt_discard_rx() argument
1589 bnxt_tpa_end(struct bnxt *bp, struct bnxt_cp_ring_info *cpr, u32 *raw_cons, struct rx_tpa_end_cmp *tpa_end, struct rx_tpa_end_cmp_ext *tpa_end1, u8 *event) bnxt_tpa_end() argument
1785 bnxt_rx_pkt(struct bnxt *bp, struct bnxt_cp_ring_info *cpr, u32 *raw_cons, u8 *event) bnxt_rx_pkt() argument
2062 bnxt_force_rx_discard(struct bnxt *bp, struct bnxt_cp_ring_info *cpr, u32 *raw_cons, u8 *event) bnxt_force_rx_discard() argument
2460 u32 raw_cons = cpr->cp_raw_cons; bnxt_has_work() local
2501 u32 raw_cons = cpr->cp_raw_cons; __bnxt_poll_work() local
2631 u32 raw_cons = cpr->cp_raw_cons; bnxt_poll_nitroa0() local
2778 u32 raw_cons = cpr->cp_raw_cons; bnxt_poll_p5() local
[all...]

Completed in 47 milliseconds