Lines Matching refs:pool_id
97 uint8_t pool_id; in dp_tx_comp_find_tx_desc_rh() local
100 pool_id = (sw_cookie & DP_TX_DESC_ID_POOL_MASK) >> in dp_tx_comp_find_tx_desc_rh()
104 tx_desc = dp_tx_desc_find(soc, pool_id, in dp_tx_comp_find_tx_desc_rh()
110 if (tx_desc && tx_desc->pool_id != pool_id) { in dp_tx_comp_find_tx_desc_rh()
112 pool_id, tx_desc->pool_id); in dp_tx_comp_find_tx_desc_rh()
421 uint8_t pool_id) in dp_tx_tcl_desc_pool_alloc_rh() argument
429 if (pool_id > MAX_TXDESC_POOLS - 1) in dp_tx_tcl_desc_pool_alloc_rh()
433 tcl_desc_pool = &rh_soc->tcl_desc_pool[pool_id]; in dp_tx_tcl_desc_pool_alloc_rh()
460 static void dp_tx_tcl_desc_pool_free_rh(struct dp_soc *soc, uint8_t pool_id) in dp_tx_tcl_desc_pool_free_rh() argument
466 if (pool_id > MAX_TXDESC_POOLS - 1) in dp_tx_tcl_desc_pool_free_rh()
469 tcl_desc_pool = &rh_soc->tcl_desc_pool[pool_id]; in dp_tx_tcl_desc_pool_free_rh()
489 uint8_t pool_id) in dp_tx_tcl_desc_pool_init_rh() argument
496 tcl_desc_pool = &rh_soc->tcl_desc_pool[pool_id]; in dp_tx_tcl_desc_pool_init_rh()
526 static void dp_tx_tcl_desc_pool_deinit_rh(struct dp_soc *soc, uint8_t pool_id) in dp_tx_tcl_desc_pool_deinit_rh() argument
560 uint8_t pool_id, in dp_tx_desc_pool_init_rh() argument
571 status = dp_tx_tcl_desc_pool_init_rh(soc, num_elem, pool_id); in dp_tx_desc_pool_init_rh()
573 dp_err("failed to initialise tcl desc pool %d", pool_id); in dp_tx_desc_pool_init_rh()
577 status = dp_tx_ext_desc_pool_init_by_id(soc, num_elem, pool_id); in dp_tx_desc_pool_init_rh()
579 dp_err("failed to initialise tx ext desc pool %d", pool_id); in dp_tx_desc_pool_init_rh()
583 status = dp_tx_tso_desc_pool_init_by_id(soc, num_elem, pool_id); in dp_tx_desc_pool_init_rh()
585 dp_err("failed to initialise tso desc pool %d", pool_id); in dp_tx_desc_pool_init_rh()
589 status = dp_tx_tso_num_seg_pool_init_by_id(soc, num_elem, pool_id); in dp_tx_desc_pool_init_rh()
591 dp_err("failed to initialise tso num seg pool %d", pool_id); in dp_tx_desc_pool_init_rh()
595 tx_desc_pool = &soc->tx_desc[pool_id]; in dp_tx_desc_pool_init_rh()
596 tcl_desc_pool = &rh_soc->tcl_desc_pool[pool_id]; in dp_tx_desc_pool_init_rh()
599 pool_id_32 = (uint32_t)pool_id; in dp_tx_desc_pool_init_rh()
608 tx_desc->pool_id = pool_id; in dp_tx_desc_pool_init_rh()
618 dp_tx_tso_desc_pool_deinit_by_id(soc, pool_id); in dp_tx_desc_pool_init_rh()
620 dp_tx_ext_desc_pool_deinit_by_id(soc, pool_id); in dp_tx_desc_pool_init_rh()
622 dp_tx_tcl_desc_pool_deinit_rh(soc, pool_id); in dp_tx_desc_pool_init_rh()
631 uint8_t pool_id, bool spcl_tx_desc) in dp_tx_desc_pool_deinit_rh() argument
633 dp_tx_tso_num_seg_pool_free_by_id(soc, pool_id); in dp_tx_desc_pool_deinit_rh()
634 dp_tx_tso_desc_pool_deinit_by_id(soc, pool_id); in dp_tx_desc_pool_deinit_rh()
635 dp_tx_ext_desc_pool_deinit_by_id(soc, pool_id); in dp_tx_desc_pool_deinit_rh()
636 dp_tx_tcl_desc_pool_deinit_rh(soc, pool_id); in dp_tx_desc_pool_deinit_rh()
648 uint8_t pool_id) in dp_tx_desc_pool_alloc_rh() argument
652 status = dp_tx_tcl_desc_pool_alloc_rh(soc, num_elem, pool_id); in dp_tx_desc_pool_alloc_rh()
654 dp_err("failed to allocate tcl desc pool %d", pool_id); in dp_tx_desc_pool_alloc_rh()
658 status = dp_tx_ext_desc_pool_alloc_by_id(soc, num_elem, pool_id); in dp_tx_desc_pool_alloc_rh()
660 dp_err("failed to allocate tx ext desc pool %d", pool_id); in dp_tx_desc_pool_alloc_rh()
664 status = dp_tx_tso_desc_pool_alloc_by_id(soc, num_elem, pool_id); in dp_tx_desc_pool_alloc_rh()
666 dp_err("failed to allocate tso desc pool %d", pool_id); in dp_tx_desc_pool_alloc_rh()
670 status = dp_tx_tso_num_seg_pool_alloc_by_id(soc, num_elem, pool_id); in dp_tx_desc_pool_alloc_rh()
672 dp_err("failed to allocate tso num seg pool %d", pool_id); in dp_tx_desc_pool_alloc_rh()
679 dp_tx_tso_desc_pool_free_by_id(soc, pool_id); in dp_tx_desc_pool_alloc_rh()
681 dp_tx_ext_desc_pool_free_by_id(soc, pool_id); in dp_tx_desc_pool_alloc_rh()
683 dp_tx_tcl_desc_pool_free_rh(soc, pool_id); in dp_tx_desc_pool_alloc_rh()
690 void dp_tx_desc_pool_free_rh(struct dp_soc *soc, uint8_t pool_id) in dp_tx_desc_pool_free_rh() argument
692 dp_tx_tso_num_seg_pool_free_by_id(soc, pool_id); in dp_tx_desc_pool_free_rh()
693 dp_tx_tso_desc_pool_free_by_id(soc, pool_id); in dp_tx_desc_pool_free_rh()
694 dp_tx_ext_desc_pool_free_by_id(soc, pool_id); in dp_tx_desc_pool_free_rh()
695 dp_tx_tcl_desc_pool_free_rh(soc, pool_id); in dp_tx_desc_pool_free_rh()
743 dp_tx_desc_release(soc, tx_desc, tx_desc->pool_id); in dp_tx_compl_handler_rh()