Searched refs:txcmp (Results 1 – 6 of 6) 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 78 (!!((txcmp)->tx_cmp_errors_v & cpu_to_le32(TX_CMP_V)) == \ 92 #define TX_CMP_TYPE(txcmp) \ argument 93 (le32_to_cpu((txcmp)->tx_cmp_flags_type) & CMP_TYPE)
|
| H A D | bnge_txrx.c | 1149 static int bnge_hwrm_handler(struct bnge_dev *bd, struct tx_cmp *txcmp) in bnge_hwrm_handler() argument 1151 struct hwrm_cmpl *h_cmpl = (struct hwrm_cmpl *)txcmp; in bnge_hwrm_handler() 1152 u16 cmpl_type = TX_CMP_TYPE(txcmp), seq_id; in bnge_hwrm_handler() 1173 struct tx_cmp *txcmp; in __bnge_poll_work() local 1185 txcmp = &cpr->desc_ring[CP_RING(cons)][CP_IDX(cons)]; in __bnge_poll_work() 1187 if (!TX_CMP_VALID(bn, txcmp, raw_cons)) in __bnge_poll_work() 1194 cmp_type = TX_CMP_TYPE(txcmp); in __bnge_poll_work() 1197 u32 opaque = txcmp->tx_cmp_opaque; in __bnge_poll_work() 1204 txr->tx_hw_cons = TX_CMP_SQ_CONS_IDX(txcmp); in __bnge_poll_work() 1238 bnge_hwrm_handler(bn->bd, txcmp); in __bnge_poll_work()
|
| H A D | bnge_hw_def.h | 38 #define TX_CMP_SQ_CONS_IDX(txcmp) \ argument 39 (le32_to_cpu((txcmp)->sq_cons_idx) & TX_CMP_SQ_CONS_IDX_MASK)
|
| /linux/drivers/net/ethernet/broadcom/bnxt/ |
| H A D | bnxt.h | 191 #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 D | bnxt.c | 2946 static int bnxt_hwrm_handler(struct bnxt *bp, struct tx_cmp *txcmp) in bnxt_hwrm_handler() argument 2948 u16 cmpl_type = TX_CMP_TYPE(txcmp), vf_id, seq_id; in bnxt_hwrm_handler() 2949 struct hwrm_cmpl *h_cmpl = (struct hwrm_cmpl *)txcmp; in bnxt_hwrm_handler() 2951 (struct hwrm_fwd_req_cmpl *)txcmp; in bnxt_hwrm_handler() 2975 (struct hwrm_async_event_cmpl *)txcmp); in bnxt_hwrm_handler() 3009 struct tx_cmp *txcmp; in bnxt_has_work() local 3011 txcmp = &cpr->cp_desc_ring[CP_RING(cons)][CP_IDX(cons)]; in bnxt_has_work() 3013 return TX_CMP_VALID(txcmp, raw_cons); in bnxt_has_work() 3025 struct tx_cmp *txcmp; in __bnxt_poll_work() local 3034 txcmp = &cpr->cp_desc_ring[CP_RING(cons)][CP_IDX(cons)]; in __bnxt_poll_work() [all …]
|
| H A D | bnxt_ethtool.c | 5092 struct tx_cmp *txcmp; in bnxt_poll_loopback() local 5101 txcmp = &cpr->cp_desc_ring[CP_RING(cons)][CP_IDX(cons)]; in bnxt_poll_loopback() 5103 if (!TX_CMP_VALID(txcmp, raw_cons)) { in bnxt_poll_loopback() 5112 if (TX_CMP_TYPE(txcmp) == CMP_TYPE_RX_L2_CMP || in bnxt_poll_loopback() 5113 TX_CMP_TYPE(txcmp) == CMP_TYPE_RX_L2_V3_CMP) { in bnxt_poll_loopback()
|