Lines Matching refs:sg_tablesize
3153 unsigned short sg_tablesize; in _base_allocate_memory_pools() local
3166 sg_tablesize = max_sgl_entries; in _base_allocate_memory_pools()
3169 sg_tablesize = MPT2SAS_SG_DEPTH; in _base_allocate_memory_pools()
3171 sg_tablesize = MPT3SAS_SG_DEPTH; in _base_allocate_memory_pools()
3174 if (sg_tablesize < MPT_MIN_PHYS_SEGMENTS) in _base_allocate_memory_pools()
3175 sg_tablesize = MPT_MIN_PHYS_SEGMENTS; in _base_allocate_memory_pools()
3176 else if (sg_tablesize > MPT_MAX_PHYS_SEGMENTS) { in _base_allocate_memory_pools()
3177 sg_tablesize = min_t(unsigned short, sg_tablesize, in _base_allocate_memory_pools()
3182 sg_tablesize, MPT_MAX_PHYS_SEGMENTS); in _base_allocate_memory_pools()
3184 ioc->shost->sg_tablesize = sg_tablesize; in _base_allocate_memory_pools()
3224 chains_needed_per_io = ((ioc->shost->sg_tablesize - in _base_allocate_memory_pools()
3229 ioc->shost->sg_tablesize = min_t(u16, in _base_allocate_memory_pools()
3231 * chains_needed_per_io), ioc->shost->sg_tablesize); in _base_allocate_memory_pools()
3260 ioc->max_sges_in_chain_message, ioc->shost->sg_tablesize, in _base_allocate_memory_pools()
3558 ioc->name, ioc->shost->sg_tablesize); in _base_allocate_memory_pools()