Home
last modified time | relevance | path

Searched refs:cp_ring_struct (Results 1 – 12 of 12) sorted by relevance

/f-stack/dpdk/drivers/net/bnxt/
H A Dbnxt_ring.c456 nqr->cp_ring_struct = ring; in bnxt_alloc_rxtx_nq_ring()
493 bnxt_free_ring(nqr->cp_ring_struct); in bnxt_free_rxtx_nq_ring()
494 rte_free(nqr->cp_ring_struct); in bnxt_free_rxtx_nq_ring()
495 nqr->cp_ring_struct = NULL; in bnxt_free_rxtx_nq_ring()
640 cp_ring = rxq->cp_ring->cp_ring_struct; in bnxt_init_all_rings()
653 cp_ring = txq->cp_ring->cp_ring_struct; in bnxt_init_all_rings()
768 cp_ring = cpr->cp_ring_struct; in bnxt_alloc_async_cp_ring()
807 bnxt_free_ring(cpr->cp_ring_struct); in bnxt_free_async_cp_ring()
808 rte_free(cpr->cp_ring_struct); in bnxt_free_async_cp_ring()
809 cpr->cp_ring_struct = NULL; in bnxt_free_async_cp_ring()
[all …]
H A Dbnxt_cpr.h41 if (unlikely((idx) >= (cpr)->cp_ring_struct->ring_size)) { \
48 RING_CMP(((cpr)->cp_ring_struct), raw_cons)), \
68 RING_CMP(((cpr)->cp_ring_struct), raw_cons)), \
97 struct bnxt_ring *cp_ring_struct; member
H A Dbnxt_ring.h98 RING_CMP(cpr->cp_ring_struct, cpr->cp_raw_cons), in bnxt_db_nq()
109 RING_CMP(cpr->cp_ring_struct, cpr->cp_raw_cons), in bnxt_db_nq_arm()
116 uint32_t idx = RING_CMP(cpr->cp_ring_struct, cpr->cp_raw_cons); in bnxt_db_cq()
H A Dbnxt_irq.c35 if (!cpr || !cpr->cp_ring_struct || !cpr->cp_db.doorbell) { in bnxt_int_handler()
45 cons = RING_CMP(cpr->cp_ring_struct, raw_cons); in bnxt_int_handler()
48 if (!CMP_VALID(cmp, raw_cons, cpr->cp_ring_struct)) in bnxt_int_handler()
H A Dbnxt_rxtx_vec_sse.c149 uint16_t cp_ring_size = cpr->cp_ring_struct->ring_size; in bnxt_recv_pkts_vec()
286 !!(cpr->cp_raw_cons & cpr->cp_ring_struct->ring_size); in bnxt_recv_pkts_vec()
302 struct bnxt_ring *cp_ring_struct = cpr->cp_ring_struct; in bnxt_handle_tx_cp_vec() local
303 uint32_t ring_mask = cp_ring_struct->ring_mask; in bnxt_handle_tx_cp_vec()
309 if (!CMP_VALID(txcmp, raw_cons, cp_ring_struct)) in bnxt_handle_tx_cp_vec()
321 cpr->valid = !!(raw_cons & cp_ring_struct->ring_size); in bnxt_handle_tx_cp_vec()
H A Dbnxt_rxtx_vec_neon.c156 uint16_t cp_ring_size = cpr->cp_ring_struct->ring_size; in bnxt_recv_pkts_vec()
304 !!(cpr->cp_raw_cons & cpr->cp_ring_struct->ring_size); in bnxt_recv_pkts_vec()
320 struct bnxt_ring *cp_ring_struct = cpr->cp_ring_struct; in bnxt_handle_tx_cp_vec() local
321 uint32_t ring_mask = cp_ring_struct->ring_mask; in bnxt_handle_tx_cp_vec()
327 if (!CMP_VALID(txcmp, raw_cons, cp_ring_struct)) in bnxt_handle_tx_cp_vec()
339 cpr->valid = !!(raw_cons & cp_ring_struct->ring_size); in bnxt_handle_tx_cp_vec()
H A Dbnxt_rxr.c192 cpr->cp_ring_struct->ring_mask, in bnxt_agg_bufs_valid()
238 cp_cons = RING_CMP(cpr->cp_ring_struct, *tmp_raw_cons); in bnxt_rx_pages()
670 RING_CMP(cpr->cp_ring_struct, tmp_raw_cons); in bnxt_rx_pkt()
696 cp_cons = RING_CMP(cpr->cp_ring_struct, tmp_raw_cons); in bnxt_rx_pkt()
703 cpr->cp_ring_struct->ring_mask, in bnxt_rx_pkt()
866 cons = RING_CMP(cpr->cp_ring_struct, raw_cons); in bnxt_recv_pkts()
869 if (!CMP_VALID(rxcmp, raw_cons, cpr->cp_ring_struct)) in bnxt_recv_pkts()
872 cpr->cp_ring_struct->ring_mask, in bnxt_recv_pkts()
984 bnxt_free_ring(rxq->cp_ring->cp_ring_struct); in bnxt_free_rx_rings()
985 rte_free(rxq->cp_ring->cp_ring_struct); in bnxt_free_rx_rings()
[all …]
H A Dbnxt_txr.c36 bnxt_free_ring(txq->cp_ring->cp_ring_struct); in bnxt_free_tx_rings()
37 rte_free(txq->cp_ring->cp_ring_struct); in bnxt_free_tx_rings()
95 cpr->cp_ring_struct = ring; in bnxt_init_tx_ring_struct()
436 struct bnxt_ring *cp_ring_struct = cpr->cp_ring_struct; in bnxt_handle_tx_cp() local
437 uint32_t ring_mask = cp_ring_struct->ring_mask; in bnxt_handle_tx_cp()
H A Dbnxt_txq.c73 bnxt_free_ring(txq->cp_ring->cp_ring_struct); in bnxt_tx_queue_release_op()
74 rte_free(txq->cp_ring->cp_ring_struct); in bnxt_tx_queue_release_op()
H A Dbnxt_rxq.c284 bnxt_free_ring(rxq->cp_ring->cp_ring_struct); in bnxt_rx_queue_release_op()
285 rte_free(rxq->cp_ring->cp_ring_struct); in bnxt_rx_queue_release_op()
H A Dbnxt_hwrm.c1957 rte_cpu_to_le_16(cpr->cp_ring_struct->fw_ring_id); in bnxt_hwrm_vnic_cfg()
2526 struct bnxt_ring *cp_ring = cpr->cp_ring_struct; in bnxt_free_nq_ring()
2531 memset(cpr->cp_desc_ring, 0, cpr->cp_ring_struct->ring_size * in bnxt_free_nq_ring()
2539 struct bnxt_ring *cp_ring = cpr->cp_ring_struct; in bnxt_free_cp_ring()
2544 memset(cpr->cp_desc_ring, 0, cpr->cp_ring_struct->ring_size * in bnxt_free_cp_ring()
2575 if (cpr->cp_ring_struct->fw_ring_id != INVALID_HW_RING_ID) in bnxt_free_hwrm_rx_ring()
2606 if (cpr->cp_ring_struct->fw_ring_id != INVALID_HW_RING_ID) { in bnxt_free_all_hwrm_rings()
2608 cpr->cp_ring_struct->fw_ring_id = INVALID_HW_RING_ID; in bnxt_free_all_hwrm_rings()
3936 bp->async_cp_ring->cp_ring_struct->fw_ring_id); in bnxt_hwrm_func_cfg_def_cp()
3956 bp->async_cp_ring->cp_ring_struct->fw_ring_id); in bnxt_hwrm_vf_func_cfg_def_cp()
[all …]
H A Dbnxt_ethdev.c1828 rxq->cp_ring->cp_ring_struct->fw_ring_id; in bnxt_reta_update_op()
2906 cons = RING_CMP(cpr->cp_ring_struct, raw_cons); in bnxt_rx_queue_count_op()
2910 if (!CMP_VALID(rxcmp, raw_cons, cpr->cp_ring_struct)) { in bnxt_rx_queue_count_op()
2945 cons = RING_CMP(cpr->cp_ring_struct, offset); in bnxt_rx_descriptor_status_op()
2988 cons = RING_CMP(cpr->cp_ring_struct, offset); in bnxt_tx_descriptor_status_op()