Lines Matching refs:sz
2675 int sz; in mpt_adapter_disable() local
2715 sz = ioc->alloc_sz; in mpt_adapter_disable()
2718 pci_free_consistent(ioc->pcidev, sz, in mpt_adapter_disable()
2723 ioc->alloc_total -= sz; in mpt_adapter_disable()
2727 sz = (ioc->req_depth * MPT_SENSE_BUFFER_ALLOC); in mpt_adapter_disable()
2728 pci_free_consistent(ioc->pcidev, sz, in mpt_adapter_disable()
2731 ioc->alloc_total -= sz; in mpt_adapter_disable()
2735 sz = MPTCTL_EVENT_LOG_SIZE * sizeof(MPT_IOCTL_EVENTS); in mpt_adapter_disable()
2738 ioc->alloc_total -= sz; in mpt_adapter_disable()
2751 sz = ioc->spi_data.IocPg4Sz; in mpt_adapter_disable()
2752 pci_free_consistent(ioc->pcidev, sz, in mpt_adapter_disable()
2756 ioc->alloc_total -= sz; in mpt_adapter_disable()
3068 int sz; in GetIocFacts() local
3183 r = sz = facts->BlockSize; in GetIocFacts()
3184 vv = ((63 / (sz * 4)) + 1) & 0x03; in GetIocFacts()
3186 while ( sz ) in GetIocFacts()
3189 sz = sz >> 1; in GetIocFacts()
3531 int sz; in mpt_free_fw_memory() local
3536 sz = ioc->facts.FWImageSize; in mpt_free_fw_memory()
3538 ioc->name, ioc->cached_fw, (void *)(ulong)ioc->cached_fw_dma, sz, sz)); in mpt_free_fw_memory()
3539 pci_free_consistent(ioc->pcidev, sz, ioc->cached_fw, ioc->cached_fw_dma); in mpt_free_fw_memory()
3540 ioc->alloc_total -= sz; in mpt_free_fw_memory()
3566 int ii, sz, reply_sz; in mpt_do_upload() local
3571 if ((sz = ioc->facts.FWImageSize) == 0) in mpt_do_upload()
3578 ioc->name, ioc->cached_fw, (void *)(ulong)ioc->cached_fw_dma, sz, sz)); in mpt_do_upload()
3600 ptcsge->ImageSize = cpu_to_le32(sz); in mpt_do_upload()
3603 flagsLength = MPT_SGE_FLAGS_SSIMPLE_READ | sz; in mpt_do_upload()
4309 int sz, ii, num_chain; in initChainBuffers() local
4316 sz = ioc->req_depth * sizeof(int); in initChainBuffers()
4317 mem = kmalloc(sz, GFP_ATOMIC); in initChainBuffers()
4323 ioc->name, mem, sz)); in initChainBuffers()
4324 mem = kmalloc(sz, GFP_ATOMIC); in initChainBuffers()
4330 ioc->name, mem, sz)); in initChainBuffers()
4389 sz = num_chain * sizeof(int); in initChainBuffers()
4391 mem = kmalloc(sz, GFP_ATOMIC); in initChainBuffers()
4397 ioc->name, mem, sz)); in initChainBuffers()
4401 memset(mem, 0xFF, sz); in initChainBuffers()
4423 int i, reply_sz, sz, total_size, num_chain; in PrimeIocFifos() local
4467 sz = (ioc->req_sz * ioc->req_depth); in PrimeIocFifos()
4471 ioc->name, sz, sz)); in PrimeIocFifos()
4472 total_size += sz; in PrimeIocFifos()
4474 sz = num_chain * ioc->req_sz; /* chain buffer pool size */ in PrimeIocFifos()
4478 ioc->name, sz, sz, num_chain)); in PrimeIocFifos()
4480 total_size += sz; in PrimeIocFifos()
4522 sz, in PrimeIocFifos()
4525 ioc->name, ioc->req_frames_dma, sz)); in PrimeIocFifos()
4570 sz = (ioc->req_depth * MPT_SENSE_BUFFER_ALLOC); in PrimeIocFifos()
4572 pci_alloc_consistent(ioc->pcidev, sz, &ioc->sense_buf_pool_dma); in PrimeIocFifos()
4580 ioc->alloc_total += sz; in PrimeIocFifos()
4609 sz = ioc->alloc_sz; in PrimeIocFifos()
4611 sz, in PrimeIocFifos()
4615 ioc->alloc_total -= sz; in PrimeIocFifos()
4618 sz = (ioc->req_depth * MPT_SENSE_BUFFER_ALLOC); in PrimeIocFifos()
4620 sz, in PrimeIocFifos()
5368 int sz; in mpt_GetScsiPortSettings() local
5370 sz = MPT_MAX_SCSI_DEVICES * sizeof(int); in mpt_GetScsiPortSettings()
5371 mem = kmalloc(sz, GFP_ATOMIC); in mpt_GetScsiPortSettings()
5378 ioc->name, ioc->spi_data.nvram, sz)); in mpt_GetScsiPortSettings()
6720 int sz; in mpt_iocinfo_proc_show() local
6754 sz = (ioc->req_sz * ioc->req_depth) + 128; in mpt_iocinfo_proc_show()
6755 sz = ((sz + 0x1000UL - 1UL) / 0x1000) * 0x1000; in mpt_iocinfo_proc_show()
6757 ioc->req_sz, ioc->req_depth, ioc->req_sz*ioc->req_depth, sz); in mpt_iocinfo_proc_show()
6764 sz = (ioc->reply_sz * ioc->reply_depth) + 128; in mpt_iocinfo_proc_show()
6766 ioc->reply_sz, ioc->reply_depth, ioc->reply_sz*ioc->reply_depth, sz); in mpt_iocinfo_proc_show()