Lines Matching refs:tso_desc_pool
520 struct dp_tx_tso_seg_pool_s *tso_desc_pool; in dp_tx_tso_desc_pool_alloc_by_id() local
525 tso_desc_pool = &soc->tx_tso_desc[pool_id]; in dp_tx_tso_desc_pool_alloc_by_id()
526 tso_desc_pool->num_free = 0; in dp_tx_tso_desc_pool_alloc_by_id()
528 &tso_desc_pool->desc_pages, in dp_tx_tso_desc_pool_alloc_by_id()
530 if (!tso_desc_pool->desc_pages.num_pages) { in dp_tx_tso_desc_pool_alloc_by_id()
564 struct dp_tx_tso_seg_pool_s *tso_desc_pool; in dp_tx_tso_desc_pool_free_by_id() local
566 tso_desc_pool = &soc->tx_tso_desc[pool_id]; in dp_tx_tso_desc_pool_free_by_id()
568 &tso_desc_pool->desc_pages, in dp_tx_tso_desc_pool_free_by_id()
583 struct dp_tx_tso_seg_pool_s *tso_desc_pool; in dp_tx_tso_desc_pool_init_by_id() local
588 tso_desc_pool = &soc->tx_tso_desc[pool_id]; in dp_tx_tso_desc_pool_init_by_id()
591 &tso_desc_pool->desc_pages, in dp_tx_tso_desc_pool_init_by_id()
599 tso_desc_pool->freelist = (struct qdf_tso_seg_elem_t *) in dp_tx_tso_desc_pool_init_by_id()
600 *tso_desc_pool->desc_pages.cacheable_pages; in dp_tx_tso_desc_pool_init_by_id()
601 tso_desc_pool->num_free = num_elem; in dp_tx_tso_desc_pool_init_by_id()
604 tso_desc_pool->num_free); in dp_tx_tso_desc_pool_init_by_id()
605 tso_desc_pool->pool_size = num_elem; in dp_tx_tso_desc_pool_init_by_id()
606 qdf_spinlock_create(&tso_desc_pool->lock); in dp_tx_tso_desc_pool_init_by_id()
631 struct dp_tx_tso_seg_pool_s *tso_desc_pool; in dp_tx_tso_desc_pool_deinit_by_id() local
633 tso_desc_pool = &soc->tx_tso_desc[pool_id]; in dp_tx_tso_desc_pool_deinit_by_id()
635 if (tso_desc_pool->pool_size) { in dp_tx_tso_desc_pool_deinit_by_id()
636 qdf_spin_lock_bh(&tso_desc_pool->lock); in dp_tx_tso_desc_pool_deinit_by_id()
637 tso_desc_pool->freelist = NULL; in dp_tx_tso_desc_pool_deinit_by_id()
638 tso_desc_pool->num_free = 0; in dp_tx_tso_desc_pool_deinit_by_id()
639 tso_desc_pool->pool_size = 0; in dp_tx_tso_desc_pool_deinit_by_id()
640 qdf_spin_unlock_bh(&tso_desc_pool->lock); in dp_tx_tso_desc_pool_deinit_by_id()
641 qdf_spinlock_destroy(&tso_desc_pool->lock); in dp_tx_tso_desc_pool_deinit_by_id()