/Linux-v5.4/drivers/infiniband/hw/bnxt_re/ |
D | qplib_rcfw.h | 153 #define CREQ_CMP_VALID(hdr, raw_cons, cp_bit) \ argument 155 !((raw_cons) & (cp_bit))) 180 static inline void bnxt_qplib_ring_creq_db_rearm(void __iomem *db, u32 raw_cons, in bnxt_qplib_ring_creq_db_rearm() argument 184 u32 index = raw_cons & (max_elements - 1); in bnxt_qplib_ring_creq_db_rearm() 193 static inline void bnxt_qplib_ring_creq_db(void __iomem *db, u32 raw_cons, in bnxt_qplib_ring_creq_db() argument 197 u32 index = raw_cons & (max_elements - 1); in bnxt_qplib_ring_creq_db()
|
D | qplib_fp.h | 334 #define CQE_CMP_VALID(hdr, raw_cons, cp_bit) \ argument 336 !((raw_cons) & (cp_bit))) 420 #define NQE_CMP_VALID(hdr, raw_cons, cp_bit) \ argument 422 !((raw_cons) & (cp_bit))) 449 static inline void bnxt_qplib_ring_nq_db_rearm(void __iomem *db, u32 raw_cons, in bnxt_qplib_ring_nq_db_rearm() argument 453 u32 index = raw_cons & (max_elements - 1); in bnxt_qplib_ring_nq_db_rearm() 461 static inline void bnxt_qplib_ring_nq_db(void __iomem *db, u32 raw_cons, in bnxt_qplib_ring_nq_db() argument 465 u32 index = raw_cons & (max_elements - 1); in bnxt_qplib_ring_nq_db()
|
D | qplib_rcfw.c | 372 u32 sw_cons, raw_cons; in bnxt_qplib_service_creq() local 377 raw_cons = creq->cons; in bnxt_qplib_service_creq() 379 sw_cons = HWQ_CMP(raw_cons, creq); in bnxt_qplib_service_creq() 382 if (!CREQ_CMP_VALID(creqe, raw_cons, creq->max_elements)) in bnxt_qplib_service_creq() 411 raw_cons++; in bnxt_qplib_service_creq() 415 if (creq->cons != raw_cons) { in bnxt_qplib_service_creq() 416 creq->cons = raw_cons; in bnxt_qplib_service_creq() 418 raw_cons, creq->max_elements, in bnxt_qplib_service_creq()
|
D | qplib_fp.c | 244 u32 sw_cons, raw_cons; in bnxt_qplib_service_nq() local 251 raw_cons = hwq->cons; in bnxt_qplib_service_nq() 253 sw_cons = HWQ_CMP(raw_cons, hwq); in bnxt_qplib_service_nq() 256 if (!NQE_CMP_VALID(nqe, raw_cons, hwq->max_elements)) in bnxt_qplib_service_nq() 313 raw_cons++; in bnxt_qplib_service_nq() 315 if (hwq->cons != raw_cons) { in bnxt_qplib_service_nq() 316 hwq->cons = raw_cons; in bnxt_qplib_service_nq() 2488 u32 sw_cons, raw_cons; in bnxt_qplib_is_cq_empty() local 2491 raw_cons = cq->hwq.cons; in bnxt_qplib_is_cq_empty() 2492 sw_cons = HWQ_CMP(raw_cons, &cq->hwq); in bnxt_qplib_is_cq_empty() [all …]
|
/Linux-v5.4/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt.h | 613 #define TX_CMP_VALID(txcmp, raw_cons) \ argument 615 !((raw_cons) & bp->cp_bit)) 617 #define RX_CMP_VALID(rxcmp1, raw_cons) \ argument 619 !((raw_cons) & bp->cp_bit)) 621 #define RX_AGG_CMP_VALID(agg, raw_cons) \ argument 623 !((raw_cons) & bp->cp_bit)) 625 #define NQ_CMP_VALID(nqcmp, raw_cons) \ argument 626 (!!((nqcmp)->v & cpu_to_le32(NQ_CN_V)) == !((raw_cons) & bp->cp_bit))
|
D | bnxt_ethtool.c | 2745 u32 raw_cons, int pkt_size) in bnxt_rx_loopback() argument 2757 cp_cons = RING_CMP(raw_cons); in bnxt_rx_loopback() 2782 u32 raw_cons; in bnxt_poll_loopback() local 2786 raw_cons = cpr->cp_raw_cons; in bnxt_poll_loopback() 2788 cons = RING_CMP(raw_cons); in bnxt_poll_loopback() 2791 if (!TX_CMP_VALID(txcmp, raw_cons)) { in bnxt_poll_loopback() 2801 rc = bnxt_rx_loopback(bp, cpr, raw_cons, pkt_size); in bnxt_poll_loopback() 2802 raw_cons = NEXT_RAW_CMP(raw_cons); in bnxt_poll_loopback() 2803 raw_cons = NEXT_RAW_CMP(raw_cons); in bnxt_poll_loopback() 2806 raw_cons = NEXT_RAW_CMP(raw_cons); in bnxt_poll_loopback() [all …]
|
D | bnxt.c | 1076 u8 agg_bufs, u32 *raw_cons) in bnxt_agg_bufs_valid() argument 1081 *raw_cons = ADV_RAW_CMP(*raw_cons, agg_bufs); in bnxt_agg_bufs_valid() 1082 last = RING_CMP(*raw_cons); in bnxt_agg_bufs_valid() 1085 return RX_AGG_CMP_VALID(agg, *raw_cons); in bnxt_agg_bufs_valid() 1114 u32 *raw_cons, void *cmp) in bnxt_discard_rx() argument 1117 u32 tmp_raw_cons = *raw_cons; in bnxt_discard_rx() 1139 *raw_cons = tmp_raw_cons; in bnxt_discard_rx() 1502 u32 *raw_cons, in bnxt_tpa_end() argument 1519 int rc = bnxt_discard_rx(bp, cpr, raw_cons, tpa_end); in bnxt_tpa_end() 1545 idx = RING_CMP(*raw_cons); in bnxt_tpa_end() [all …]
|