Lines Matching refs:sg_tablesize
4336 unsigned short sg_tablesize; in _base_allocate_memory_pools() local
4350 sg_tablesize = max_sgl_entries; in _base_allocate_memory_pools()
4353 sg_tablesize = MPT2SAS_SG_DEPTH; in _base_allocate_memory_pools()
4355 sg_tablesize = MPT3SAS_SG_DEPTH; in _base_allocate_memory_pools()
4360 sg_tablesize = min_t(unsigned short, sg_tablesize, in _base_allocate_memory_pools()
4364 ioc->shost->sg_tablesize = MPT_MIN_PHYS_SEGMENTS; in _base_allocate_memory_pools()
4366 if (sg_tablesize < MPT_MIN_PHYS_SEGMENTS) in _base_allocate_memory_pools()
4367 sg_tablesize = MPT_MIN_PHYS_SEGMENTS; in _base_allocate_memory_pools()
4368 else if (sg_tablesize > MPT_MAX_PHYS_SEGMENTS) { in _base_allocate_memory_pools()
4369 sg_tablesize = min_t(unsigned short, sg_tablesize, in _base_allocate_memory_pools()
4374 sg_tablesize, MPT_MAX_PHYS_SEGMENTS); in _base_allocate_memory_pools()
4376 ioc->shost->sg_tablesize = sg_tablesize; in _base_allocate_memory_pools()
4448 chains_needed_per_io = ((ioc->shost->sg_tablesize - in _base_allocate_memory_pools()
4453 ioc->shost->sg_tablesize = min_t(u16, in _base_allocate_memory_pools()
4455 * chains_needed_per_io), ioc->shost->sg_tablesize); in _base_allocate_memory_pools()
4488 ioc->max_sges_in_chain_message, ioc->shost->sg_tablesize, in _base_allocate_memory_pools()
4681 (ioc->shost->sg_tablesize * NVME_PRP_SIZE) - 1; in _base_allocate_memory_pools()
4915 ioc->name, ioc->shost->sg_tablesize); in _base_allocate_memory_pools()