Lines Matching refs:tso_num_seg_pool

657 	struct dp_tx_tso_num_seg_pool_s *tso_num_seg_pool;  in dp_tx_tso_num_seg_pool_alloc_by_id()  local
662 tso_num_seg_pool = &soc->tx_tso_num_seg[pool_id]; in dp_tx_tso_num_seg_pool_alloc_by_id()
663 tso_num_seg_pool->num_free = 0; in dp_tx_tso_num_seg_pool_alloc_by_id()
665 &tso_num_seg_pool->desc_pages, in dp_tx_tso_num_seg_pool_alloc_by_id()
669 if (!tso_num_seg_pool->desc_pages.num_pages) { in dp_tx_tso_num_seg_pool_alloc_by_id()
703 struct dp_tx_tso_num_seg_pool_s *tso_num_seg_pool; in dp_tx_tso_num_seg_pool_free_by_id() local
705 tso_num_seg_pool = &soc->tx_tso_num_seg[pool_id]; in dp_tx_tso_num_seg_pool_free_by_id()
707 &tso_num_seg_pool->desc_pages, in dp_tx_tso_num_seg_pool_free_by_id()
723 struct dp_tx_tso_num_seg_pool_s *tso_num_seg_pool; in dp_tx_tso_num_seg_pool_init_by_id() local
727 tso_num_seg_pool = &soc->tx_tso_num_seg[pool_id]; in dp_tx_tso_num_seg_pool_init_by_id()
730 &tso_num_seg_pool->desc_pages, in dp_tx_tso_num_seg_pool_init_by_id()
738 tso_num_seg_pool->freelist = (struct qdf_tso_num_seg_elem_t *) in dp_tx_tso_num_seg_pool_init_by_id()
739 *tso_num_seg_pool->desc_pages.cacheable_pages; in dp_tx_tso_num_seg_pool_init_by_id()
740 tso_num_seg_pool->num_free = num_elem; in dp_tx_tso_num_seg_pool_init_by_id()
741 tso_num_seg_pool->num_seg_pool_size = num_elem; in dp_tx_tso_num_seg_pool_init_by_id()
743 qdf_spinlock_create(&tso_num_seg_pool->lock); in dp_tx_tso_num_seg_pool_init_by_id()
768 struct dp_tx_tso_num_seg_pool_s *tso_num_seg_pool; in dp_tx_tso_num_seg_pool_deinit_by_id() local
770 tso_num_seg_pool = &soc->tx_tso_num_seg[pool_id]; in dp_tx_tso_num_seg_pool_deinit_by_id()
772 if (tso_num_seg_pool->num_seg_pool_size) { in dp_tx_tso_num_seg_pool_deinit_by_id()
773 qdf_spin_lock_bh(&tso_num_seg_pool->lock); in dp_tx_tso_num_seg_pool_deinit_by_id()
774 tso_num_seg_pool->freelist = NULL; in dp_tx_tso_num_seg_pool_deinit_by_id()
775 tso_num_seg_pool->num_free = 0; in dp_tx_tso_num_seg_pool_deinit_by_id()
776 tso_num_seg_pool->num_seg_pool_size = 0; in dp_tx_tso_num_seg_pool_deinit_by_id()
777 qdf_spin_unlock_bh(&tso_num_seg_pool->lock); in dp_tx_tso_num_seg_pool_deinit_by_id()
778 qdf_spinlock_destroy(&tso_num_seg_pool->lock); in dp_tx_tso_num_seg_pool_deinit_by_id()