Home
last modified time | relevance | path

Searched refs:nqcmp (Results 1 – 4 of 4) sorted by relevance

/linux/drivers/net/ethernet/broadcom/bnge/
H A Dbnge_txrx.h89 #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 Dbnge_txrx.c1306 struct nqe_cn *nqcmp; in bnge_napi_poll() local
1319 nqcmp = &nqr->desc_ring[CP_RING(cons)][CP_IDX(cons)]; in bnge_napi_poll()
1321 if (!NQ_CMP_VALID(bn, nqcmp, raw_cons)) { in bnge_napi_poll()
1339 type = le16_to_cpu(nqcmp->type); in bnge_napi_poll()
1341 u32 idx = le32_to_cpu(nqcmp->cq_handle_low); in bnge_napi_poll()
1358 bnge_hwrm_handler(bn->bd, (struct tx_cmp *)nqcmp); in bnge_napi_poll()
/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt.h852 #define NQ_CMP_VALID(nqcmp, raw_cons) \ argument
853 (!!((nqcmp)->v & cpu_to_le32(NQ_CN_V)) == !((raw_cons) & bp->cp_bit))
H A Dbnxt.c3326 struct nqe_cn *nqcmp; in bnxt_poll_p5() local
3342 nqcmp = &cpr->nq_desc_ring[CP_RING(cons)][CP_IDX(cons)]; in bnxt_poll_p5()
3344 if (!NQ_CMP_VALID(nqcmp, raw_cons)) { in bnxt_poll_p5()
3362 type = le16_to_cpu(nqcmp->type); in bnxt_poll_p5()
3364 u32 idx = le32_to_cpu(nqcmp->cq_handle_low); in bnxt_poll_p5()
3381 bnxt_hwrm_handler(bp, (struct tx_cmp *)nqcmp); in bnxt_poll_p5()