Searched refs:raw_cons (Results 1 – 5 of 5) sorted by relevance
| /linux/drivers/net/ethernet/broadcom/bnge/ |
| H A D | bnge_txrx.h | 77 #define TX_CMP_VALID(bn, txcmp, raw_cons) \ argument 79 !((raw_cons) & (bn)->cp_bit)) 81 #define RX_CMP_VALID(bn, rxcmp1, raw_cons) \ argument 83 !((raw_cons) & (bn)->cp_bit)) 85 #define RX_AGG_CMP_VALID(bn, agg, raw_cons) \ argument 87 !((raw_cons) & (bn)->cp_bit)) 89 #define NQ_CMP_VALID(bn, nqcmp, raw_cons) \ argument 90 (!!((nqcmp)->v & cpu_to_le32(NQ_CN_V)) == !((raw_cons) & (bn)->cp_bit))
|
| H A D | bnge_txrx.c | 128 u8 agg_bufs, u32 *raw_cons) in bnge_agg_bufs_valid() argument 133 *raw_cons = ADV_RAW_CMP(*raw_cons, agg_bufs); in bnge_agg_bufs_valid() 134 last = RING_CMP(bn, *raw_cons); in bnge_agg_bufs_valid() 137 return RX_AGG_CMP_VALID(bn, agg, *raw_cons); in bnge_agg_bufs_valid() 141 u32 *raw_cons, void *cmp) in bnge_discard_rx() argument 143 u32 tmp_raw_cons = *raw_cons; in bnge_discard_rx() 161 *raw_cons = tmp_raw_cons; in bnge_discard_rx() 580 u32 *raw_cons, in bnge_tpa_end() argument 597 int rc = bnge_discard_rx(bn, cpr, raw_cons, tpa_end); in bnge_tpa_end() 807 u32 *raw_cons, u8 *event) in bnge_rx_pkt() argument [all …]
|
| /linux/drivers/net/ethernet/broadcom/bnxt/ |
| H A D | bnxt.h | 840 #define TX_CMP_VALID(txcmp, raw_cons) \ argument 842 !((raw_cons) & bp->cp_bit)) 844 #define RX_CMP_VALID(rxcmp1, raw_cons) \ argument 846 !((raw_cons) & bp->cp_bit)) 848 #define RX_AGG_CMP_VALID(agg, raw_cons) \ argument 850 !((raw_cons) & bp->cp_bit)) 852 #define NQ_CMP_VALID(nqcmp, raw_cons) \ argument 853 (!!((nqcmp)->v & cpu_to_le32(NQ_CN_V)) == !((raw_cons) & bp->cp_bit))
|
| H A D | bnxt_ethtool.c | 5057 u32 raw_cons, int pkt_size) in bnxt_rx_loopback() argument 5069 cp_cons = RING_CMP(raw_cons); in bnxt_rx_loopback() 5094 u32 raw_cons; in bnxt_poll_loopback() local 5098 raw_cons = cpr->cp_raw_cons; in bnxt_poll_loopback() 5100 cons = RING_CMP(raw_cons); in bnxt_poll_loopback() 5103 if (!TX_CMP_VALID(txcmp, raw_cons)) { in bnxt_poll_loopback() 5114 rc = bnxt_rx_loopback(bp, cpr, raw_cons, pkt_size); in bnxt_poll_loopback() 5115 raw_cons = NEXT_RAW_CMP(raw_cons); in bnxt_poll_loopback() 5116 raw_cons = NEXT_RAW_CMP(raw_cons); in bnxt_poll_loopback() 5119 raw_cons = NEXT_RAW_CMP(raw_cons); in bnxt_poll_loopback() [all …]
|
| H A D | bnxt.c | 1378 u8 agg_bufs, u32 *raw_cons) in bnxt_agg_bufs_valid() argument 1383 *raw_cons = ADV_RAW_CMP(*raw_cons, agg_bufs); in bnxt_agg_bufs_valid() 1384 last = RING_CMP(*raw_cons); in bnxt_agg_bufs_valid() 1387 return RX_AGG_CMP_VALID(agg, *raw_cons); in bnxt_agg_bufs_valid() 1449 u32 *raw_cons, void *cmp) in bnxt_discard_rx() argument 1452 u32 tmp_raw_cons = *raw_cons; in bnxt_discard_rx() 1474 *raw_cons = tmp_raw_cons; in bnxt_discard_rx() 1846 u32 *raw_cons, in bnxt_tpa_end() argument 1864 int rc = bnxt_discard_rx(bp, cpr, raw_cons, tpa_end); in bnxt_tpa_end() 1890 idx = RING_CMP(*raw_cons); in bnxt_tpa_end() [all …]
|