Lines Matching refs:poolp
494 threadpool_get(struct threadpool **poolp, pri_t pri) in threadpool_get() argument
537 *poolp = &tpu->tpu_pool; in threadpool_get()
645 struct threadpool **poolp, *pool; in threadpool_percpu_ref() local
647 poolp = percpu_getref(pool_percpu->tpp_percpu); in threadpool_percpu_ref()
648 pool = *poolp; in threadpool_percpu_ref()
658 struct threadpool **poolp, *pool; in threadpool_percpu_ref_remote() local
667 poolp = percpu_getptr_remote(pool_percpu->tpp_percpu, ci); in threadpool_percpu_ref_remote()
668 pool = *poolp; in threadpool_percpu_ref_remote()
715 struct threadpool **const poolp = vpoolp; in threadpool_percpu_init() local
719 *poolp = kmem_zalloc(sizeof(**poolp), KM_SLEEP); in threadpool_percpu_init()
720 error = threadpool_create(*poolp, ci, pri); in threadpool_percpu_init()
723 kmem_free(*poolp, sizeof(**poolp)); in threadpool_percpu_init()
724 *poolp = NULL; in threadpool_percpu_init()
731 struct threadpool **const poolp = vpoolp; in threadpool_percpu_ok() local
734 if (*poolp == NULL) in threadpool_percpu_ok()
741 struct threadpool **const poolp = vpoolp; in threadpool_percpu_fini() local
743 if (*poolp == NULL) /* initialization failed */ in threadpool_percpu_fini()
745 threadpool_destroy(*poolp); in threadpool_percpu_fini()
746 kmem_free(*poolp, sizeof(**poolp)); in threadpool_percpu_fini()