Lines Matching refs:pool
48 struct dma_pool *pool;
50 pool = kmalloc(sizeof(*pool), GFP_KERNEL);
56 pool->pool_zone = uma_zcreate(name, size, NULL, NULL, NULL, NULL,
59 return (pool);
63 dma_pool_destroy(struct dma_pool *pool)
65 uma_zdestroy(pool->pool_zone);
66 kfree(pool);
70 dma_pool_alloc(struct dma_pool *pool, gfp_t mem_flags, dma_addr_t *handle)
74 vaddr = uma_zalloc(pool->pool_zone, mem_flags);
81 dma_pool_free(struct dma_pool *pool, void *vaddr, dma_addr_t addr)
83 uma_zfree(pool->pool_zone, vaddr);