Home
last modified time | relevance | path

Searched refs:txcmp (Results 1 – 3 of 3) sorted by relevance

/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt.h191 #define TX_CMP_SQ_CONS_IDX(txcmp) \ argument
192 (le32_to_cpu((txcmp)->sq_cons_idx) & TX_CMP_SQ_CONS_IDX_MASK)
840 #define TX_CMP_VALID(txcmp, raw_cons) \ argument
841 (!!((txcmp)->tx_cmp_errors_v & cpu_to_le32(TX_CMP_V)) == \
855 #define TX_CMP_TYPE(txcmp) \ argument
856 (le32_to_cpu((txcmp)->tx_cmp_flags_type) & CMP_TYPE)
H A Dbnxt.c2944 static int bnxt_hwrm_handler(struct bnxt *bp, struct tx_cmp *txcmp) in bnxt_hwrm_handler() argument
2946 u16 cmpl_type = TX_CMP_TYPE(txcmp), vf_id, seq_id; in bnxt_hwrm_handler()
2947 struct hwrm_cmpl *h_cmpl = (struct hwrm_cmpl *)txcmp; in bnxt_hwrm_handler()
2949 (struct hwrm_fwd_req_cmpl *)txcmp; in bnxt_hwrm_handler()
2973 (struct hwrm_async_event_cmpl *)txcmp); in bnxt_hwrm_handler()
3007 struct tx_cmp *txcmp; in bnxt_has_work() local
3009 txcmp = &cpr->cp_desc_ring[CP_RING(cons)][CP_IDX(cons)]; in bnxt_has_work()
3011 return TX_CMP_VALID(txcmp, raw_cons); in bnxt_has_work()
3023 struct tx_cmp *txcmp; in __bnxt_poll_work() local
3032 txcmp = &cpr->cp_desc_ring[CP_RING(cons)][CP_IDX(cons)]; in __bnxt_poll_work()
[all …]
H A Dbnxt_ethtool.c5095 struct tx_cmp *txcmp; in bnxt_poll_loopback() local
5104 txcmp = &cpr->cp_desc_ring[CP_RING(cons)][CP_IDX(cons)]; in bnxt_poll_loopback()
5106 if (!TX_CMP_VALID(txcmp, raw_cons)) { in bnxt_poll_loopback()
5115 if (TX_CMP_TYPE(txcmp) == CMP_TYPE_RX_L2_CMP || in bnxt_poll_loopback()
5116 TX_CMP_TYPE(txcmp) == CMP_TYPE_RX_L2_V3_CMP) { in bnxt_poll_loopback()