Lines Matching refs:sg_tablesize
4838 unsigned short sg_tablesize; in _base_allocate_memory_pools() local
4851 sg_tablesize = max_sgl_entries; in _base_allocate_memory_pools()
4854 sg_tablesize = MPT2SAS_SG_DEPTH; in _base_allocate_memory_pools()
4856 sg_tablesize = MPT3SAS_SG_DEPTH; in _base_allocate_memory_pools()
4861 sg_tablesize = min_t(unsigned short, sg_tablesize, in _base_allocate_memory_pools()
4865 ioc->shost->sg_tablesize = MPT_MIN_PHYS_SEGMENTS; in _base_allocate_memory_pools()
4867 if (sg_tablesize < MPT_MIN_PHYS_SEGMENTS) in _base_allocate_memory_pools()
4868 sg_tablesize = MPT_MIN_PHYS_SEGMENTS; in _base_allocate_memory_pools()
4869 else if (sg_tablesize > MPT_MAX_PHYS_SEGMENTS) { in _base_allocate_memory_pools()
4870 sg_tablesize = min_t(unsigned short, sg_tablesize, in _base_allocate_memory_pools()
4873 sg_tablesize, MPT_MAX_PHYS_SEGMENTS); in _base_allocate_memory_pools()
4875 ioc->shost->sg_tablesize = sg_tablesize; in _base_allocate_memory_pools()
4946 chains_needed_per_io = ((ioc->shost->sg_tablesize - in _base_allocate_memory_pools()
4951 ioc->shost->sg_tablesize = min_t(u16, in _base_allocate_memory_pools()
4953 * chains_needed_per_io), ioc->shost->sg_tablesize); in _base_allocate_memory_pools()
4987 ioc->shost->sg_tablesize, in _base_allocate_memory_pools()
5171 (ioc->shost->sg_tablesize * NVME_PRP_SIZE) - 1; in _base_allocate_memory_pools()
5389 ioc->shost->sg_tablesize); in _base_allocate_memory_pools()