Lines Matching refs:sz

2671 	int sz;  in mpt_adapter_disable()  local
2711 sz = ioc->alloc_sz; in mpt_adapter_disable()
2714 pci_free_consistent(ioc->pcidev, sz, in mpt_adapter_disable()
2719 ioc->alloc_total -= sz; in mpt_adapter_disable()
2723 sz = (ioc->req_depth * MPT_SENSE_BUFFER_ALLOC); in mpt_adapter_disable()
2724 pci_free_consistent(ioc->pcidev, sz, in mpt_adapter_disable()
2727 ioc->alloc_total -= sz; in mpt_adapter_disable()
2731 sz = MPTCTL_EVENT_LOG_SIZE * sizeof(MPT_IOCTL_EVENTS); in mpt_adapter_disable()
2734 ioc->alloc_total -= sz; in mpt_adapter_disable()
2747 sz = ioc->spi_data.IocPg4Sz; in mpt_adapter_disable()
2748 pci_free_consistent(ioc->pcidev, sz, in mpt_adapter_disable()
2752 ioc->alloc_total -= sz; in mpt_adapter_disable()
3057 int sz; in GetIocFacts() local
3172 r = sz = facts->BlockSize; in GetIocFacts()
3173 vv = ((63 / (sz * 4)) + 1) & 0x03; in GetIocFacts()
3175 while ( sz ) in GetIocFacts()
3178 sz = sz >> 1; in GetIocFacts()
3520 int sz; in mpt_free_fw_memory() local
3525 sz = ioc->facts.FWImageSize; in mpt_free_fw_memory()
3527 ioc->name, ioc->cached_fw, (void *)(ulong)ioc->cached_fw_dma, sz, sz)); in mpt_free_fw_memory()
3528 pci_free_consistent(ioc->pcidev, sz, ioc->cached_fw, ioc->cached_fw_dma); in mpt_free_fw_memory()
3529 ioc->alloc_total -= sz; in mpt_free_fw_memory()
3555 int ii, sz, reply_sz; in mpt_do_upload() local
3560 if ((sz = ioc->facts.FWImageSize) == 0) in mpt_do_upload()
3567 ioc->name, ioc->cached_fw, (void *)(ulong)ioc->cached_fw_dma, sz, sz)); in mpt_do_upload()
3589 ptcsge->ImageSize = cpu_to_le32(sz); in mpt_do_upload()
3592 flagsLength = MPT_SGE_FLAGS_SSIMPLE_READ | sz; in mpt_do_upload()
4298 int sz, ii, num_chain; in initChainBuffers() local
4305 sz = ioc->req_depth * sizeof(int); in initChainBuffers()
4306 mem = kmalloc(sz, GFP_ATOMIC); in initChainBuffers()
4312 ioc->name, mem, sz)); in initChainBuffers()
4313 mem = kmalloc(sz, GFP_ATOMIC); in initChainBuffers()
4319 ioc->name, mem, sz)); in initChainBuffers()
4378 sz = num_chain * sizeof(int); in initChainBuffers()
4380 mem = kmalloc(sz, GFP_ATOMIC); in initChainBuffers()
4386 ioc->name, mem, sz)); in initChainBuffers()
4390 memset(mem, 0xFF, sz); in initChainBuffers()
4412 int i, reply_sz, sz, total_size, num_chain; in PrimeIocFifos() local
4456 sz = (ioc->req_sz * ioc->req_depth); in PrimeIocFifos()
4460 ioc->name, sz, sz)); in PrimeIocFifos()
4461 total_size += sz; in PrimeIocFifos()
4463 sz = num_chain * ioc->req_sz; /* chain buffer pool size */ in PrimeIocFifos()
4467 ioc->name, sz, sz, num_chain)); in PrimeIocFifos()
4469 total_size += sz; in PrimeIocFifos()
4546 sz = (ioc->req_depth * MPT_SENSE_BUFFER_ALLOC); in PrimeIocFifos()
4548 pci_alloc_consistent(ioc->pcidev, sz, &ioc->sense_buf_pool_dma); in PrimeIocFifos()
4556 ioc->alloc_total += sz; in PrimeIocFifos()
4585 sz = ioc->alloc_sz; in PrimeIocFifos()
4587 sz, in PrimeIocFifos()
4591 ioc->alloc_total -= sz; in PrimeIocFifos()
4594 sz = (ioc->req_depth * MPT_SENSE_BUFFER_ALLOC); in PrimeIocFifos()
4596 sz, in PrimeIocFifos()
5344 int sz; in mpt_GetScsiPortSettings() local
5346 sz = MPT_MAX_SCSI_DEVICES * sizeof(int); in mpt_GetScsiPortSettings()
5347 mem = kmalloc(sz, GFP_ATOMIC); in mpt_GetScsiPortSettings()
5354 ioc->name, ioc->spi_data.nvram, sz)); in mpt_GetScsiPortSettings()
6696 int sz; in mpt_iocinfo_proc_show() local
6730 sz = (ioc->req_sz * ioc->req_depth) + 128; in mpt_iocinfo_proc_show()
6731 sz = ((sz + 0x1000UL - 1UL) / 0x1000) * 0x1000; in mpt_iocinfo_proc_show()
6733 ioc->req_sz, ioc->req_depth, ioc->req_sz*ioc->req_depth, sz); in mpt_iocinfo_proc_show()
6740 sz = (ioc->reply_sz * ioc->reply_depth) + 128; in mpt_iocinfo_proc_show()
6742 ioc->reply_sz, ioc->reply_depth, ioc->reply_sz*ioc->reply_depth, sz); in mpt_iocinfo_proc_show()