Lines Matching refs:sz
2269 u16 sz; in mpt2sas_base_update_missing_delay() local
2279 sz = offsetof(Mpi2SasIOUnitPage1_t, PhyData) + (num_phys * in mpt2sas_base_update_missing_delay()
2281 sas_iounit_pg1 = kzalloc(sz, GFP_KERNEL); in mpt2sas_base_update_missing_delay()
2288 sas_iounit_pg1, sz))) { in mpt2sas_base_update_missing_delay()
2322 sz)) { in mpt2sas_base_update_missing_delay()
2501 u32 sz, total_sz, reply_post_free_sz; in _base_allocate_memory_pools() local
2607 sz = reply_post_free_sz; in _base_allocate_memory_pools()
2609 sz *= ioc->reply_queue_count; in _base_allocate_memory_pools()
2621 ioc->pdev, sz, 16, 0); in _base_allocate_memory_pools()
2640 memset(ioc->reply_post[i].reply_post_free, 0, sz); in _base_allocate_memory_pools()
2645 ioc->reply_post_queue_depth, 8, sz/1024)); in _base_allocate_memory_pools()
2650 total_sz += sz; in _base_allocate_memory_pools()
2676 sz = ((ioc->scsiio_depth + 1) * ioc->request_sz); in _base_allocate_memory_pools()
2679 sz += (ioc->hi_priority_depth * ioc->request_sz); in _base_allocate_memory_pools()
2682 sz += (ioc->internal_depth * ioc->request_sz); in _base_allocate_memory_pools()
2684 ioc->request_dma_sz = sz; in _base_allocate_memory_pools()
2685 ioc->request = pci_alloc_consistent(ioc->pdev, sz, &ioc->request_dma); in _base_allocate_memory_pools()
2690 ioc->chains_needed_per_io, ioc->request_sz, sz/1024); in _base_allocate_memory_pools()
2702 ioc->chains_needed_per_io, ioc->request_sz, sz/1024); in _base_allocate_memory_pools()
2724 total_sz += sz; in _base_allocate_memory_pools()
2726 sz = ioc->scsiio_depth * sizeof(struct scsiio_tracker); in _base_allocate_memory_pools()
2727 ioc->scsi_lookup_pages = get_order(sz); in _base_allocate_memory_pools()
2732 "sz(%d)\n", ioc->name, (int)sz); in _base_allocate_memory_pools()
2741 sz = ioc->chain_depth * sizeof(struct chain_tracker); in _base_allocate_memory_pools()
2742 ioc->chain_pages = get_order(sz); in _base_allocate_memory_pools()
2748 "sz(%d)\n", ioc->name, (int)sz); in _base_allocate_memory_pools()
2801 sz = ioc->scsiio_depth * SCSI_SENSE_BUFFERSIZE; in _base_allocate_memory_pools()
2802 ioc->sense_dma_pool = pci_pool_create("sense pool", ioc->pdev, sz, 4, in _base_allocate_memory_pools()
2819 SCSI_SENSE_BUFFERSIZE, sz/1024)); in _base_allocate_memory_pools()
2822 total_sz += sz; in _base_allocate_memory_pools()
2825 sz = ioc->reply_free_queue_depth * ioc->reply_sz; in _base_allocate_memory_pools()
2826 ioc->reply_dma_pool = pci_pool_create("reply pool", ioc->pdev, sz, 4, in _base_allocate_memory_pools()
2841 ioc->reply_dma_max_address = (u32)(ioc->reply_dma) + sz; in _base_allocate_memory_pools()
2844 ioc->reply_free_queue_depth, ioc->reply_sz, sz/1024)); in _base_allocate_memory_pools()
2847 total_sz += sz; in _base_allocate_memory_pools()
2850 sz = ioc->reply_free_queue_depth * 4; in _base_allocate_memory_pools()
2852 ioc->pdev, sz, 16, 0); in _base_allocate_memory_pools()
2865 memset(ioc->reply_free, 0, sz); in _base_allocate_memory_pools()
2868 ioc->reply_free, ioc->reply_free_queue_depth, 4, sz/1024)); in _base_allocate_memory_pools()
2871 total_sz += sz; in _base_allocate_memory_pools()