Searched refs:RING_CMP (Results 1 – 3 of 3) sorted by relevance
/Linux-v5.4/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt.c | 277 writel(DB_CP_FLAGS | RING_CMP(idx), (db)->doorbell) 280 writeq((db)->db_key64 | DBR_TYPE_NQ | RING_CMP(idx), (db)->doorbell) 283 writel(DB_CP_REARM_FLAGS | RING_CMP(idx), (db)->doorbell) 286 writeq((db)->db_key64 | DBR_TYPE_NQ_ARM | RING_CMP(idx), (db)->doorbell) 307 writeq(db->db_key64 | DBR_TYPE_CQ_ARMALL | RING_CMP(idx), in bnxt_db_cq() 851 cp_cons = RING_CMP(ADV_RAW_CMP(cp_cons, curr)); in bnxt_get_agg() 1082 last = RING_CMP(*raw_cons); in bnxt_agg_bufs_valid() 1545 idx = RING_CMP(*raw_cons); in bnxt_tpa_end() 1679 u16 cfa_code, cons, prod, cp_cons = RING_CMP(tmp_raw_cons); in bnxt_rx_pkt() 1700 cp_cons = RING_CMP(tmp_raw_cons); in bnxt_rx_pkt() [all …]
|
D | bnxt.h | 642 #define RING_CMP(idx) ((idx) & bp->cp_ring_mask) macro 643 #define NEXT_CMP(idx) RING_CMP(ADV_RAW_CMP(idx, 1))
|
D | bnxt_ethtool.c | 2757 cp_cons = RING_CMP(raw_cons); in bnxt_rx_loopback() 2788 cons = RING_CMP(raw_cons); in bnxt_poll_loopback()
|