Lines Matching defs:sgp
56 struct sg_pool *sgp;
58 sgp = sg_pools + sg_pool_index(nents);
59 mempool_free(sgl, sgp->pool);
64 struct sg_pool *sgp;
66 sgp = sg_pools + sg_pool_index(nents);
67 return mempool_alloc(sgp->pool, gfp_mask);
147 struct sg_pool *sgp = sg_pools + i;
148 int size = sgp->size * sizeof(struct scatterlist);
150 sgp->slab = kmem_cache_create(sgp->name, size, 0,
152 if (!sgp->slab) {
154 sgp->name);
158 sgp->pool = mempool_create_slab_pool(SG_MEMPOOL_SIZE,
159 sgp->slab);
160 if (!sgp->pool) {
162 sgp->name);
171 struct sg_pool *sgp = sg_pools + i;
173 mempool_destroy(sgp->pool);
174 kmem_cache_destroy(sgp->slab);