Lines Matching refs:sgp
625 struct scsi_host_sg_pool *sgp; in scsi_sg_free() local
627 sgp = scsi_sg_pools + scsi_sgtable_index(nents); in scsi_sg_free()
628 mempool_free(sgl, sgp->pool); in scsi_sg_free()
633 struct scsi_host_sg_pool *sgp; in scsi_sg_alloc() local
635 sgp = scsi_sg_pools + scsi_sgtable_index(nents); in scsi_sg_alloc()
636 return mempool_alloc(sgp->pool, gfp_mask); in scsi_sg_alloc()
1799 struct scsi_host_sg_pool *sgp = scsi_sg_pools + i; in scsi_init_queue() local
1800 int size = sgp->size * sizeof(struct scatterlist); in scsi_init_queue()
1802 sgp->slab = kmem_cache_create(sgp->name, size, 0, in scsi_init_queue()
1804 if (!sgp->slab) { in scsi_init_queue()
1806 sgp->name); in scsi_init_queue()
1810 sgp->pool = mempool_create_slab_pool(SG_MEMPOOL_SIZE, in scsi_init_queue()
1811 sgp->slab); in scsi_init_queue()
1812 if (!sgp->pool) { in scsi_init_queue()
1814 sgp->name); in scsi_init_queue()
1823 struct scsi_host_sg_pool *sgp = scsi_sg_pools + i; in scsi_init_queue() local
1824 if (sgp->pool) in scsi_init_queue()
1825 mempool_destroy(sgp->pool); in scsi_init_queue()
1826 if (sgp->slab) in scsi_init_queue()
1827 kmem_cache_destroy(sgp->slab); in scsi_init_queue()
1841 struct scsi_host_sg_pool *sgp = scsi_sg_pools + i; in scsi_exit_queue() local
1842 mempool_destroy(sgp->pool); in scsi_exit_queue()
1843 kmem_cache_destroy(sgp->slab); in scsi_exit_queue()