Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/infiniband/hw/bnxt_re/
Dqplib_rcfw.h120 #define CREQ_CMP_VALID(hdr, raw_cons, cp_bit) \ argument
122 !((raw_cons) & (cp_bit)))
132 #define CREQ_DB_REARM(db, raw_cons, cp_bit) \ argument
133 writel(CREQ_DB_CP_FLAGS_REARM | ((raw_cons) & ((cp_bit) - 1)), db)
134 #define CREQ_DB(db, raw_cons, cp_bit) \ argument
135 writel(CREQ_DB_CP_FLAGS | ((raw_cons) & ((cp_bit) - 1)), db)
Dqplib_fp.h334 #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)))
435 #define NQ_DB_REARM(db, raw_cons, cp_bit) \ argument
436 writel(NQ_DB_CP_FLAGS_REARM | ((raw_cons) & ((cp_bit) - 1)), db)
437 #define NQ_DB(db, raw_cons, cp_bit) \ argument
438 writel(NQ_DB_CP_FLAGS | ((raw_cons) & ((cp_bit) - 1)), db)
Dqplib_rcfw.c349 u32 sw_cons, raw_cons; in bnxt_qplib_service_creq() local
355 raw_cons = creq->cons; in bnxt_qplib_service_creq()
357 sw_cons = HWQ_CMP(raw_cons, creq); in bnxt_qplib_service_creq()
360 if (!CREQ_CMP_VALID(creqe, raw_cons, creq->max_elements)) in bnxt_qplib_service_creq()
389 raw_cons++; in bnxt_qplib_service_creq()
393 if (creq->cons != raw_cons) { in bnxt_qplib_service_creq()
394 creq->cons = raw_cons; in bnxt_qplib_service_creq()
395 CREQ_DB_REARM(rcfw->creq_bar_reg_iomem, raw_cons, in bnxt_qplib_service_creq()
Dqplib_fp.c243 u32 sw_cons, raw_cons; in bnxt_qplib_service_nq() local
249 raw_cons = hwq->cons; in bnxt_qplib_service_nq()
251 sw_cons = HWQ_CMP(raw_cons, hwq); in bnxt_qplib_service_nq()
254 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()
2483 u32 sw_cons, raw_cons; in bnxt_qplib_is_cq_empty() local
2486 raw_cons = cq->hwq.cons; in bnxt_qplib_is_cq_empty()
2487 sw_cons = HWQ_CMP(raw_cons, &cq->hwq); in bnxt_qplib_is_cq_empty()
[all …]
/Linux-v4.19/drivers/net/ethernet/broadcom/bnxt/
Dbnxt.h496 #define TX_CMP_VALID(txcmp, raw_cons) \ argument
498 !((raw_cons) & bp->cp_bit))
500 #define RX_CMP_VALID(rxcmp1, raw_cons) \ argument
502 !((raw_cons) & bp->cp_bit))
504 #define RX_AGG_CMP_VALID(agg, raw_cons) \ argument
506 !((raw_cons) & bp->cp_bit))
Dbnxt.c244 #define BNXT_CP_DB_REARM(db, raw_cons) \ argument
245 writel(DB_CP_REARM_FLAGS | RING_CMP(raw_cons), db)
247 #define BNXT_CP_DB(db, raw_cons) \ argument
248 writel(DB_CP_FLAGS | RING_CMP(raw_cons), db)
978 u8 agg_bufs, u32 *raw_cons) in bnxt_agg_bufs_valid() argument
983 *raw_cons = ADV_RAW_CMP(*raw_cons, agg_bufs); in bnxt_agg_bufs_valid()
984 last = RING_CMP(*raw_cons); in bnxt_agg_bufs_valid()
987 return RX_AGG_CMP_VALID(agg, *raw_cons); in bnxt_agg_bufs_valid()
1016 u32 *raw_cons, void *cmp) in bnxt_discard_rx() argument
1020 u32 tmp_raw_cons = *raw_cons; in bnxt_discard_rx()
[all …]
Dbnxt_ethtool.c2423 u32 raw_cons, int pkt_size) in bnxt_rx_loopback() argument
2434 cp_cons = RING_CMP(raw_cons); in bnxt_rx_loopback()
2460 u32 raw_cons; in bnxt_poll_loopback() local
2465 raw_cons = cpr->cp_raw_cons; in bnxt_poll_loopback()
2467 cons = RING_CMP(raw_cons); in bnxt_poll_loopback()
2470 if (!TX_CMP_VALID(txcmp, raw_cons)) { in bnxt_poll_loopback()
2480 rc = bnxt_rx_loopback(bp, bnapi, raw_cons, pkt_size); in bnxt_poll_loopback()
2481 raw_cons = NEXT_RAW_CMP(raw_cons); in bnxt_poll_loopback()
2482 raw_cons = NEXT_RAW_CMP(raw_cons); in bnxt_poll_loopback()
2485 raw_cons = NEXT_RAW_CMP(raw_cons); in bnxt_poll_loopback()
[all …]