Lines Matching refs:cpr
2892 struct bnxt_cp_ring_info *cpr; in bnxt_rx_queue_count_op() local
2902 cpr = rxq->cp_ring; in bnxt_rx_queue_count_op()
2903 raw_cons = cpr->cp_raw_cons; in bnxt_rx_queue_count_op()
2906 cons = RING_CMP(cpr->cp_ring_struct, raw_cons); in bnxt_rx_queue_count_op()
2907 rte_prefetch0(&cpr->cp_desc_ring[cons]); in bnxt_rx_queue_count_op()
2908 rxcmp = (struct rx_pkt_cmpl *)&cpr->cp_desc_ring[cons]; in bnxt_rx_queue_count_op()
2910 if (!CMP_VALID(rxcmp, raw_cons, cpr->cp_ring_struct)) { in bnxt_rx_queue_count_op()
2926 struct bnxt_cp_ring_info *cpr; in bnxt_rx_descriptor_status_op() local
2939 cpr = rxq->cp_ring; in bnxt_rx_descriptor_status_op()
2945 cons = RING_CMP(cpr->cp_ring_struct, offset); in bnxt_rx_descriptor_status_op()
2946 cp_cons = cpr->cp_raw_cons; in bnxt_rx_descriptor_status_op()
2947 rxcmp = (struct rx_pkt_cmpl *)&cpr->cp_desc_ring[cons]; in bnxt_rx_descriptor_status_op()
2950 if (CMPL_VALID(rxcmp, cpr->valid)) in bnxt_rx_descriptor_status_op()
2953 if (CMPL_VALID(rxcmp, !cpr->valid)) in bnxt_rx_descriptor_status_op()
2969 struct bnxt_cp_ring_info *cpr; in bnxt_tx_descriptor_status_op() local
2982 cpr = txq->cp_ring; in bnxt_tx_descriptor_status_op()
2988 cons = RING_CMP(cpr->cp_ring_struct, offset); in bnxt_tx_descriptor_status_op()
2989 txcmp = (struct tx_pkt_cmpl *)&cpr->cp_desc_ring[cons]; in bnxt_tx_descriptor_status_op()
2990 cp_cons = cpr->cp_raw_cons; in bnxt_tx_descriptor_status_op()
2993 if (CMPL_VALID(txcmp, cpr->valid)) in bnxt_tx_descriptor_status_op()
2996 if (CMPL_VALID(txcmp, !cpr->valid)) in bnxt_tx_descriptor_status_op()