alloc_size 1032 arch/ia64/include/asm/pal.h ia64_pal_copy_pal (u64 target_addr, u64 alloc_size, u64 processor, u64 *pal_proc_offset) alloc_size 1035 arch/ia64/include/asm/pal.h PAL_CALL(iprv, PAL_COPY_PAL, target_addr, alloc_size, processor); alloc_size 134 arch/ia64/mm/contig.c ai->alloc_size = PERCPU_PAGE_SIZE; alloc_size 224 arch/ia64/mm/discontig.c ai->alloc_size = PERCPU_PAGE_SIZE; alloc_size 49 arch/powerpc/kernel/eeh_pe.c size_t alloc_size; alloc_size 51 arch/powerpc/kernel/eeh_pe.c alloc_size = sizeof(struct eeh_pe); alloc_size 53 arch/powerpc/kernel/eeh_pe.c alloc_size = ALIGN(alloc_size, cache_line_size()); alloc_size 54 arch/powerpc/kernel/eeh_pe.c alloc_size += eeh_pe_aux_size; alloc_size 58 arch/powerpc/kernel/eeh_pe.c pe = kzalloc(alloc_size, GFP_KERNEL); alloc_size 556 arch/powerpc/platforms/pseries/vio.c size_t alloc_size = 0; alloc_size 559 arch/powerpc/platforms/pseries/vio.c alloc_size += roundup(sgl->length, IOMMU_PAGE_SIZE(tbl)); alloc_size 561 arch/powerpc/platforms/pseries/vio.c if (vio_cmo_alloc(viodev, alloc_size)) alloc_size 569 arch/powerpc/platforms/pseries/vio.c alloc_size -= roundup(sgl->dma_length, IOMMU_PAGE_SIZE(tbl)); alloc_size 570 arch/powerpc/platforms/pseries/vio.c if (alloc_size) alloc_size 571 arch/powerpc/platforms/pseries/vio.c vio_cmo_dealloc(viodev, alloc_size); alloc_size 575 arch/powerpc/platforms/pseries/vio.c vio_cmo_dealloc(viodev, alloc_size); alloc_size 589 arch/powerpc/platforms/pseries/vio.c size_t alloc_size = 0; alloc_size 593 arch/powerpc/platforms/pseries/vio.c alloc_size += roundup(sgl->dma_length, IOMMU_PAGE_SIZE(tbl)); alloc_size 596 arch/powerpc/platforms/pseries/vio.c vio_cmo_dealloc(viodev, alloc_size); alloc_size 634 arch/s390/kernel/crash_dump.c u32 alloc_size; alloc_size 653 arch/s390/kernel/crash_dump.c alloc_size = get_elfcorehdr_size(mem_chunk_cnt); alloc_size 655 arch/s390/kernel/crash_dump.c hdr = kzalloc(alloc_size, GFP_KERNEL); alloc_size 679 arch/s390/kernel/crash_dump.c BUG_ON(elfcorehdr_size > alloc_size); alloc_size 163 arch/sparc/kernel/mdesc.c unsigned int handle_size, alloc_size; alloc_size 170 arch/sparc/kernel/mdesc.c alloc_size = PAGE_ALIGN(handle_size); alloc_size 172 arch/sparc/kernel/mdesc.c paddr = memblock_phys_alloc(alloc_size, PAGE_SIZE); alloc_size 184 arch/sparc/kernel/mdesc.c unsigned int alloc_size; alloc_size 190 arch/sparc/kernel/mdesc.c alloc_size = PAGE_ALIGN(hp->handle_size); alloc_size 192 arch/sparc/kernel/mdesc.c memblock_free_late(start, alloc_size); alloc_size 1058 arch/sparc/kernel/pci_sun4v.c unsigned long q_size, alloc_size, pages, order; alloc_size 1062 arch/sparc/kernel/pci_sun4v.c alloc_size = (pbm->msiq_num * q_size); alloc_size 1063 arch/sparc/kernel/pci_sun4v.c order = get_order(alloc_size); alloc_size 1112 arch/sparc/kernel/pci_sun4v.c unsigned long q_size, alloc_size, pages, order; alloc_size 1122 arch/sparc/kernel/pci_sun4v.c alloc_size = (pbm->msiq_num * q_size); alloc_size 1123 arch/sparc/kernel/pci_sun4v.c order = get_order(alloc_size); alloc_size 68 arch/x86/kernel/ldt.c unsigned int alloc_size; alloc_size 78 arch/x86/kernel/ldt.c alloc_size = num_entries * LDT_ENTRY_SIZE; alloc_size 86 arch/x86/kernel/ldt.c if (alloc_size > PAGE_SIZE) alloc_size 87 arch/x86/kernel/ldt.c new_ldt->entries = vzalloc(alloc_size); alloc_size 172 drivers/atm/fore200e.c chunk->alloc_size = size + alignment; alloc_size 175 drivers/atm/fore200e.c chunk->alloc_addr = kzalloc(chunk->alloc_size, GFP_KERNEL); alloc_size 214 drivers/atm/fore200e.c chunk->alloc_size = size * nbr; alloc_size 215 drivers/atm/fore200e.c chunk->alloc_addr = dma_alloc_coherent(fore200e->dev, chunk->alloc_size, alloc_size 229 drivers/atm/fore200e.c dma_free_coherent(fore200e->dev, chunk->alloc_size, chunk->alloc_addr, alloc_size 569 drivers/atm/fore200e.h u32 alloc_size; /* length of allocated chunk */ alloc_size 858 drivers/block/rbd.c int alloc_size; alloc_size 916 drivers/block/rbd.c pctx->opts->alloc_size = intval; alloc_size 2435 drivers/block/rbd.c if (rbd_dev->opts->alloc_size != rbd_dev->layout.object_size || alloc_size 2437 drivers/block/rbd.c off = round_up(obj_req->ex.oe_off, rbd_dev->opts->alloc_size); alloc_size 2439 drivers/block/rbd.c rbd_dev->opts->alloc_size); alloc_size 5169 drivers/block/rbd.c blk_queue_io_min(q, rbd_dev->opts->alloc_size); alloc_size 5170 drivers/block/rbd.c blk_queue_io_opt(q, rbd_dev->opts->alloc_size); alloc_size 5174 drivers/block/rbd.c q->limits.discard_granularity = rbd_dev->opts->alloc_size; alloc_size 6584 drivers/block/rbd.c pctx.opts->alloc_size = RBD_ALLOC_SIZE_DEFAULT; alloc_size 7108 drivers/block/rbd.c if (rbd_dev->opts->alloc_size > rbd_dev->layout.object_size) { alloc_size 7111 drivers/block/rbd.c rbd_dev->opts->alloc_size = rbd_dev->layout.object_size; alloc_size 100 drivers/char/agp/generic.c unsigned long alloc_size = num_agp_pages*sizeof(struct page *); alloc_size 116 drivers/char/agp/generic.c agp_alloc_page_array(alloc_size, new); alloc_size 173 drivers/cpufreq/cpufreq_stats.c unsigned int alloc_size; alloc_size 188 drivers/cpufreq/cpufreq_stats.c alloc_size = count * sizeof(int) + count * sizeof(u64); alloc_size 190 drivers/cpufreq/cpufreq_stats.c alloc_size += count * count * sizeof(int); alloc_size 193 drivers/cpufreq/cpufreq_stats.c stats->time_in_state = kzalloc(alloc_size, GFP_KERNEL); alloc_size 784 drivers/crypto/axis/artpec6_crypto.c size_t alloc_size = sizeof(struct artpec6_crypto_bounce_buffer) + alloc_size 786 drivers/crypto/axis/artpec6_crypto.c struct artpec6_crypto_bounce_buffer *bbuf = kzalloc(alloc_size, flags); alloc_size 312 drivers/dca/dca-core.c int alloc_size; alloc_size 314 drivers/dca/dca-core.c alloc_size = (sizeof(*dca) + priv_size); alloc_size 315 drivers/dca/dca-core.c dca = kzalloc(alloc_size, GFP_KERNEL); alloc_size 513 drivers/dma-buf/dma-buf.c size_t alloc_size = sizeof(struct dma_buf); alloc_size 517 drivers/dma-buf/dma-buf.c alloc_size += sizeof(struct dma_resv); alloc_size 520 drivers/dma-buf/dma-buf.c alloc_size += 1; alloc_size 533 drivers/dma-buf/dma-buf.c dmabuf = kzalloc(alloc_size, GFP_KERNEL); alloc_size 694 drivers/firmware/efi/libstub/efi-stub-helper.c unsigned long alloc_size, alloc_size 705 drivers/firmware/efi/libstub/efi-stub-helper.c if (!image_addr || !image_size || !alloc_size) alloc_size 707 drivers/firmware/efi/libstub/efi-stub-helper.c if (alloc_size < image_size) alloc_size 720 drivers/firmware/efi/libstub/efi-stub-helper.c nr_pages = round_up(alloc_size, EFI_ALLOC_ALIGN) / EFI_PAGE_SIZE; alloc_size 730 drivers/firmware/efi/libstub/efi-stub-helper.c status = efi_low_alloc_above(sys_table_arg, alloc_size, alloc_size 133 drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c uint32_t status = 0, alloc_size; alloc_size 163 drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c alloc_size = ring->funcs->emit_frame_size + num_ibs * alloc_size 166 drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c r = amdgpu_ring_alloc(ring, alloc_size); alloc_size 628 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c unsigned n, alloc_size; alloc_size 650 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c alloc_size = info->read_mmr_reg.count * sizeof(*regs); alloc_size 665 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c n = copy_to_user(out, regs, min(size, alloc_size)); alloc_size 4342 drivers/gpu/drm/i915/intel_pm.c u16 alloc_size, start = 0; alloc_size 4378 drivers/gpu/drm/i915/intel_pm.c alloc_size = skl_ddb_entry_size(alloc); alloc_size 4379 drivers/gpu/drm/i915/intel_pm.c if (alloc_size == 0) alloc_size 4384 drivers/gpu/drm/i915/intel_pm.c alloc_size -= total[PLANE_CURSOR]; alloc_size 4415 drivers/gpu/drm/i915/intel_pm.c if (blocks <= alloc_size) { alloc_size 4416 drivers/gpu/drm/i915/intel_pm.c alloc_size -= blocks; alloc_size 4424 drivers/gpu/drm/i915/intel_pm.c alloc_size); alloc_size 4450 drivers/gpu/drm/i915/intel_pm.c extra = min_t(u16, alloc_size, alloc_size 4451 drivers/gpu/drm/i915/intel_pm.c DIV64_U64_ROUND_UP(alloc_size * rate, alloc_size 4454 drivers/gpu/drm/i915/intel_pm.c alloc_size -= extra; alloc_size 4461 drivers/gpu/drm/i915/intel_pm.c extra = min_t(u16, alloc_size, alloc_size 4462 drivers/gpu/drm/i915/intel_pm.c DIV64_U64_ROUND_UP(alloc_size * rate, alloc_size 4465 drivers/gpu/drm/i915/intel_pm.c alloc_size -= extra; alloc_size 4468 drivers/gpu/drm/i915/intel_pm.c WARN_ON(alloc_size != 0 || total_data_rate != 0); alloc_size 88 drivers/gpu/drm/ttm/ttm_page_alloc.c unsigned alloc_size; alloc_size 181 drivers/gpu/drm/ttm/ttm_page_alloc.c m->options.alloc_size = val; alloc_size 199 drivers/gpu/drm/ttm/ttm_page_alloc.c val = m->options.alloc_size; alloc_size 593 drivers/gpu/drm/ttm/ttm_page_alloc.c unsigned alloc_size = _manager->options.alloc_size; alloc_size 603 drivers/gpu/drm/ttm/ttm_page_alloc.c cstate, alloc_size, 0); alloc_size 609 drivers/gpu/drm/ttm/ttm_page_alloc.c pool->npages += alloc_size; alloc_size 995 drivers/gpu/drm/ttm/ttm_page_alloc.c _manager->options.alloc_size = NUM_PAGES_TO_ALLOC; alloc_size 136 drivers/gpu/drm/ttm/ttm_page_alloc_dma.c unsigned alloc_size; alloc_size 230 drivers/gpu/drm/ttm/ttm_page_alloc_dma.c m->options.alloc_size = val; alloc_size 248 drivers/gpu/drm/ttm/ttm_page_alloc_dma.c val = m->options.alloc_size; alloc_size 1178 drivers/gpu/drm/ttm/ttm_page_alloc_dma.c _manager->options.alloc_size = NUM_PAGES_TO_ALLOC; alloc_size 156 drivers/gpu/drm/vmwgfx/vmwgfx_simple_resource.c size_t alloc_size; alloc_size 160 drivers/gpu/drm/vmwgfx/vmwgfx_simple_resource.c alloc_size = offsetof(struct vmw_user_simple_resource, simple) + alloc_size 162 drivers/gpu/drm/vmwgfx/vmwgfx_simple_resource.c account_size = ttm_round_pot(alloc_size) + VMW_IDA_ACC_SIZE + alloc_size 180 drivers/gpu/drm/vmwgfx/vmwgfx_simple_resource.c usimple = kzalloc(alloc_size, GFP_KERNEL); alloc_size 57 drivers/gpu/host1x/cdma.c iommu_unmap(host1x->domain, pb->dma, pb->alloc_size); alloc_size 61 drivers/gpu/host1x/cdma.c dma_free_wc(host1x->dev, pb->alloc_size, pb->mapped, pb->phys); alloc_size 120 drivers/gpu/host1x/cdma.c pb->alloc_size = size; alloc_size 40 drivers/gpu/host1x/cdma.h u32 alloc_size; alloc_size 650 drivers/hid/hid-rmi.c size_t alloc_size; alloc_size 704 drivers/hid/hid-rmi.c alloc_size = data->output_report_size + data->input_report_size; alloc_size 706 drivers/hid/hid-rmi.c data->writeReport = devm_kzalloc(&hdev->dev, alloc_size, GFP_KERNEL); alloc_size 173 drivers/hsi/clients/hsi_char.c static inline struct hsi_msg *hsc_msg_alloc(unsigned int alloc_size) alloc_size 181 drivers/hsi/clients/hsi_char.c buf = kmalloc(alloc_size, GFP_KERNEL); alloc_size 186 drivers/hsi/clients/hsi_char.c sg_init_one(msg->sgt.sgl, buf, alloc_size); alloc_size 181 drivers/i2c/busses/i2c-cros-ec-tunnel.c int alloc_size; alloc_size 198 drivers/i2c/busses/i2c-cros-ec-tunnel.c alloc_size = max(request_len, response_len); alloc_size 199 drivers/i2c/busses/i2c-cros-ec-tunnel.c msg = kmalloc(sizeof(*msg) + alloc_size, GFP_KERNEL); alloc_size 1427 drivers/iio/industrialio-core.c size_t alloc_size; alloc_size 1429 drivers/iio/industrialio-core.c alloc_size = sizeof(struct iio_dev); alloc_size 1431 drivers/iio/industrialio-core.c alloc_size = ALIGN(alloc_size, IIO_ALIGN); alloc_size 1432 drivers/iio/industrialio-core.c alloc_size += sizeof_priv; alloc_size 1435 drivers/iio/industrialio-core.c alloc_size += IIO_ALIGN - 1; alloc_size 1437 drivers/iio/industrialio-core.c dev = kzalloc(alloc_size, GFP_KERNEL); alloc_size 16 drivers/infiniband/core/uverbs_uapi.c static void *uapi_add_elm(struct uverbs_api *uapi, u32 key, size_t alloc_size) alloc_size 24 drivers/infiniband/core/uverbs_uapi.c elm = kzalloc(alloc_size, GFP_KERNEL); alloc_size 37 drivers/infiniband/core/uverbs_uapi.c size_t alloc_size, bool *exists) alloc_size 41 drivers/infiniband/core/uverbs_uapi.c elm = uapi_add_elm(uapi, key, alloc_size); alloc_size 924 drivers/iommu/dma-iommu.c size_t alloc_size = PAGE_ALIGN(size); alloc_size 925 drivers/iommu/dma-iommu.c int count = alloc_size >> PAGE_SHIFT; alloc_size 930 drivers/iommu/dma-iommu.c dma_free_from_pool(cpu_addr, alloc_size)) alloc_size 941 drivers/iommu/dma-iommu.c dma_common_free_remap(cpu_addr, alloc_size); alloc_size 950 drivers/iommu/dma-iommu.c dma_free_contiguous(dev, page, alloc_size); alloc_size 964 drivers/iommu/dma-iommu.c size_t alloc_size = PAGE_ALIGN(size); alloc_size 969 drivers/iommu/dma-iommu.c page = dma_alloc_contiguous(dev, alloc_size, gfp); alloc_size 971 drivers/iommu/dma-iommu.c page = alloc_pages_node(node, gfp, get_order(alloc_size)); alloc_size 978 drivers/iommu/dma-iommu.c cpu_addr = dma_common_contiguous_remap(page, alloc_size, alloc_size 990 drivers/iommu/dma-iommu.c memset(cpu_addr, 0, alloc_size); alloc_size 993 drivers/iommu/dma-iommu.c dma_free_contiguous(dev, page, alloc_size); alloc_size 672 drivers/md/dm-log-writes.c size_t alloc_size; alloc_size 700 drivers/md/dm-log-writes.c alloc_size = sizeof(struct pending_block); alloc_size 702 drivers/md/dm-log-writes.c alloc_size = struct_size(block, vecs, bio_segments(bio)); alloc_size 704 drivers/md/dm-log-writes.c block = kzalloc(alloc_size, GFP_NOIO); alloc_size 81 drivers/md/dm-stats.c static bool __check_shared_memory(size_t alloc_size) alloc_size 85 drivers/md/dm-stats.c a = shared_memory_amount + alloc_size; alloc_size 97 drivers/md/dm-stats.c static bool check_shared_memory(size_t alloc_size) alloc_size 103 drivers/md/dm-stats.c ret = __check_shared_memory(alloc_size); alloc_size 110 drivers/md/dm-stats.c static bool claim_shared_memory(size_t alloc_size) alloc_size 114 drivers/md/dm-stats.c if (!__check_shared_memory(alloc_size)) { alloc_size 119 drivers/md/dm-stats.c shared_memory_amount += alloc_size; alloc_size 126 drivers/md/dm-stats.c static void free_shared_memory(size_t alloc_size) alloc_size 132 drivers/md/dm-stats.c if (WARN_ON_ONCE(shared_memory_amount < alloc_size)) { alloc_size 138 drivers/md/dm-stats.c shared_memory_amount -= alloc_size; alloc_size 143 drivers/md/dm-stats.c static void *dm_kvzalloc(size_t alloc_size, int node) alloc_size 147 drivers/md/dm-stats.c if (!claim_shared_memory(alloc_size)) alloc_size 150 drivers/md/dm-stats.c p = kvzalloc_node(alloc_size, GFP_KERNEL | __GFP_NOMEMALLOC, node); alloc_size 154 drivers/md/dm-stats.c free_shared_memory(alloc_size); alloc_size 159 drivers/md/dm-stats.c static void dm_kvfree(void *ptr, size_t alloc_size) alloc_size 164 drivers/md/dm-stats.c free_shared_memory(alloc_size); alloc_size 168 drivers/mtd/parsers/cmdlinepart.c int alloc_size; alloc_size 171 drivers/mtd/parsers/cmdlinepart.c alloc_size = *num_parts * sizeof(struct mtd_partition) + alloc_size 174 drivers/mtd/parsers/cmdlinepart.c parts = kzalloc(alloc_size, GFP_KERNEL); alloc_size 1488 drivers/net/ethernet/broadcom/bcmsysport.c ring->alloc_size = ring->size; alloc_size 1576 drivers/net/ethernet/broadcom/bcmsysport.c ring->alloc_size = 0; alloc_size 714 drivers/net/ethernet/broadcom/bcmsysport.h unsigned int alloc_size; /* Ring one-time allocated size */ alloc_size 5473 drivers/net/ethernet/broadcom/cnic.c int alloc_size; alloc_size 5475 drivers/net/ethernet/broadcom/cnic.c alloc_size = sizeof(struct cnic_dev) + sizeof(struct cnic_local); alloc_size 5477 drivers/net/ethernet/broadcom/cnic.c cdev = kzalloc(alloc_size, GFP_KERNEL); alloc_size 346 drivers/net/ethernet/brocade/bna/bnad.c u32 page_offset, alloc_size; alloc_size 352 drivers/net/ethernet/brocade/bna/bnad.c alloc_size = PAGE_SIZE << unmap_q->alloc_order; alloc_size 390 drivers/net/ethernet/brocade/bna/bnad.c if (page_offset < alloc_size) alloc_size 113 drivers/net/ethernet/chelsio/cxgb3/adapter.h unsigned int alloc_size; /* size of allocated buffer */ alloc_size 360 drivers/net/ethernet/chelsio/cxgb3/sge.c q->alloc_size, PCI_DMA_FROMDEVICE); alloc_size 457 drivers/net/ethernet/chelsio/cxgb3/sge.c 0, q->alloc_size, PCI_DMA_FROMDEVICE); alloc_size 891 drivers/net/ethernet/chelsio/cxgb3/sge.c fl->alloc_size, alloc_size 2155 drivers/net/ethernet/chelsio/cxgb3/sge.c fl->alloc_size, alloc_size 3121 drivers/net/ethernet/chelsio/cxgb3/sge.c q->fl[0].alloc_size = FL0_PG_ALLOC_SIZE; alloc_size 3122 drivers/net/ethernet/chelsio/cxgb3/sge.c q->fl[1].alloc_size = FL1_PG_ALLOC_SIZE; alloc_size 1725 drivers/net/ethernet/freescale/enetc/enetc.c size_t alloc_size; alloc_size 1754 drivers/net/ethernet/freescale/enetc/enetc.c alloc_size = sizeof(struct enetc_si); alloc_size 1757 drivers/net/ethernet/freescale/enetc/enetc.c alloc_size = ALIGN(alloc_size, ENETC_SI_ALIGN); alloc_size 1758 drivers/net/ethernet/freescale/enetc/enetc.c alloc_size += sizeof_priv; alloc_size 1761 drivers/net/ethernet/freescale/enetc/enetc.c alloc_size += ENETC_SI_ALIGN - 1; alloc_size 1763 drivers/net/ethernet/freescale/enetc/enetc.c p = kzalloc(alloc_size, GFP_KERNEL); alloc_size 1885 drivers/net/ethernet/mellanox/mlx5/core/cmd.c cmd->alloc_size = MLX5_ADAPTER_PAGE_SIZE; alloc_size 1899 drivers/net/ethernet/mellanox/mlx5/core/cmd.c cmd->alloc_size = 2 * MLX5_ADAPTER_PAGE_SIZE - 1; alloc_size 1907 drivers/net/ethernet/mellanox/mlx5/core/cmd.c dma_free_coherent(ddev, cmd->alloc_size, cmd->cmd_alloc_buf, alloc_size 391 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c int alloc_size; alloc_size 397 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c alloc_size = *byte_size; alloc_size 402 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c alloc_size = *num_stes * DR_STE_SIZE; alloc_size 405 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c *data = kzalloc(alloc_size, GFP_KERNEL); alloc_size 1107 drivers/net/ethernet/mellanox/mlxsw/core.c size_t alloc_size; alloc_size 1115 drivers/net/ethernet/mellanox/mlxsw/core.c alloc_size = sizeof(*mlxsw_core) + mlxsw_driver->priv_size; alloc_size 1116 drivers/net/ethernet/mellanox/mlxsw/core.c devlink = devlink_alloc(&mlxsw_devlink_ops, alloc_size); alloc_size 1148 drivers/net/ethernet/mellanox/mlxsw/core.c alloc_size = sizeof(u8) * alloc_size 1151 drivers/net/ethernet/mellanox/mlxsw/core.c mlxsw_core->lag.mapping = kzalloc(alloc_size, GFP_KERNEL); alloc_size 190 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c size_t alloc_size; alloc_size 193 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c alloc_size = sizeof(picker->hits[0]) * mlxsw_afk->blocks_count; alloc_size 194 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c picker = kzalloc(alloc_size, GFP_KERNEL); alloc_size 3942 drivers/net/ethernet/mellanox/mlxsw/spectrum.c size_t alloc_size; alloc_size 3946 drivers/net/ethernet/mellanox/mlxsw/spectrum.c alloc_size = sizeof(struct mlxsw_sp_port *) * max_ports; alloc_size 3947 drivers/net/ethernet/mellanox/mlxsw/spectrum.c mlxsw_sp->ports = kzalloc(alloc_size, GFP_KERNEL); alloc_size 35 drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c unsigned int alloc_size; alloc_size 49 drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c .alloc_size = MLXSW_SP1_KVDL_##id##_ALLOC_SIZE, \ alloc_size 72 drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c unsigned int alloc_size) alloc_size 79 drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c if (alloc_size <= part->info.alloc_size && alloc_size 81 drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c part->info.alloc_size <= min_part->info.alloc_size)) alloc_size 108 drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c return info->start_index + entry_index * info->alloc_size; alloc_size 115 drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c return (kvdl_index - info->start_index) / info->alloc_size; alloc_size 125 drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c info->alloc_size; alloc_size 190 drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c *p_alloc_size = part->info.alloc_size; alloc_size 227 drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c nr_entries = div_u64(resource_size, info->alloc_size); alloc_size 287 drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c info->alloc_size; alloc_size 290 drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c occ += info->alloc_size; alloc_size 306 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c size_t alloc_size; alloc_size 309 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c alloc_size = sizeof(*ruleset) + ops->ruleset_priv_size; alloc_size 310 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c ruleset = kzalloc(alloc_size, GFP_KERNEL); alloc_size 858 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c size_t alloc_size; alloc_size 861 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c alloc_size = sizeof(*acl) + mlxsw_sp_acl_tcam_priv_size(mlxsw_sp); alloc_size 862 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c acl = kzalloc(alloc_size, GFP_KERNEL); alloc_size 122 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_atcam.c size_t alloc_size; alloc_size 134 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_atcam.c alloc_size = BITS_TO_LONGS(max_lkey_id) * sizeof(unsigned long); alloc_size 135 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_atcam.c region_12kb->used_lkey_id = kzalloc(alloc_size, GFP_KERNEL); alloc_size 39 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c size_t alloc_size; alloc_size 55 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c alloc_size = sizeof(tcam->used_regions[0]) * BITS_TO_LONGS(max_regions); alloc_size 56 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c tcam->used_regions = kzalloc(alloc_size, GFP_KERNEL); alloc_size 62 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c alloc_size = sizeof(tcam->used_groups[0]) * BITS_TO_LONGS(max_groups); alloc_size 63 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c tcam->used_groups = kzalloc(alloc_size, GFP_KERNEL); alloc_size 3251 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c unsigned int alloc_size) alloc_size 3253 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c if (alloc_size >= 4096) alloc_size 3255 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c else if (alloc_size >= 2048) alloc_size 3257 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c else if (alloc_size >= 1024) alloc_size 3259 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c else if (alloc_size >= 512) alloc_size 3266 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c unsigned int alloc_size; alloc_size 3275 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c *p_adj_grp_size, &alloc_size); alloc_size 3282 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c mlxsw_sp_adj_grp_size_round_down(p_adj_grp_size, alloc_size); alloc_size 1514 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c int alloc_size; alloc_size 1524 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c alloc_size = sizeof(long) * BITS_TO_LONGS(num_of_ports); alloc_size 1525 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c flood_bitmap = kzalloc(alloc_size, GFP_KERNEL); alloc_size 1568 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c size_t alloc_size; alloc_size 1574 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c alloc_size = sizeof(unsigned long) * alloc_size 1577 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c mid->ports_in_mid = kzalloc(alloc_size, GFP_KERNEL); alloc_size 331 drivers/net/ethernet/mellanox/mlxsw/switchib.c size_t alloc_size; alloc_size 336 drivers/net/ethernet/mellanox/mlxsw/switchib.c alloc_size = sizeof(struct mlxsw_sib_port *) * MLXSW_PORT_MAX_IB_PORTS; alloc_size 337 drivers/net/ethernet/mellanox/mlxsw/switchib.c mlxsw_sib->ports = kzalloc(alloc_size, GFP_KERNEL); alloc_size 1267 drivers/net/ethernet/mellanox/mlxsw/switchx2.c size_t alloc_size; alloc_size 1272 drivers/net/ethernet/mellanox/mlxsw/switchx2.c alloc_size = sizeof(struct mlxsw_sx_port *) * max_ports; alloc_size 1273 drivers/net/ethernet/mellanox/mlxsw/switchx2.c mlxsw_sx->ports = kzalloc(alloc_size, GFP_KERNEL); alloc_size 1373 drivers/net/ethernet/micrel/ksz884x.c uint alloc_size; alloc_size 4387 drivers/net/ethernet/micrel/ksz884x.c adapter->desc_pool.alloc_size = alloc_size 4394 drivers/net/ethernet/micrel/ksz884x.c adapter->desc_pool.alloc_size, alloc_size 4397 drivers/net/ethernet/micrel/ksz884x.c adapter->desc_pool.alloc_size = 0; alloc_size 4548 drivers/net/ethernet/micrel/ksz884x.c adapter->desc_pool.alloc_size, alloc_size 4553 drivers/net/ethernet/micrel/ksz884x.c adapter->desc_pool.alloc_size = 0; alloc_size 2658 drivers/net/ethernet/rocker/rocker_main.c size_t alloc_size; alloc_size 2661 drivers/net/ethernet/rocker/rocker_main.c alloc_size = sizeof(struct rocker_port *) * rocker->port_count; alloc_size 2662 drivers/net/ethernet/rocker/rocker_main.c rocker->ports = kzalloc(alloc_size, GFP_KERNEL); alloc_size 1520 drivers/net/ethernet/toshiba/ps3_gelic_net.c size_t alloc_size; alloc_size 1527 drivers/net/ethernet/toshiba/ps3_gelic_net.c alloc_size = alloc_size 1533 drivers/net/ethernet/toshiba/ps3_gelic_net.c p = kzalloc(alloc_size, GFP_KERNEL); alloc_size 308 drivers/net/ethernet/toshiba/spider_net.c size_t alloc_size; alloc_size 310 drivers/net/ethernet/toshiba/spider_net.c alloc_size = chain->num_desc * sizeof(struct spider_net_hw_descr); alloc_size 312 drivers/net/ethernet/toshiba/spider_net.c chain->hwring = dma_alloc_coherent(&card->pdev->dev, alloc_size, alloc_size 1087 drivers/net/ethernet/wiznet/w5100.c size_t alloc_size; alloc_size 1089 drivers/net/ethernet/wiznet/w5100.c alloc_size = sizeof(*priv); alloc_size 1091 drivers/net/ethernet/wiznet/w5100.c alloc_size = ALIGN(alloc_size, NETDEV_ALIGN); alloc_size 1092 drivers/net/ethernet/wiznet/w5100.c alloc_size += sizeof_ops_priv; alloc_size 1094 drivers/net/ethernet/wiznet/w5100.c alloc_size += NETDEV_ALIGN - 1; alloc_size 1096 drivers/net/ethernet/wiznet/w5100.c ndev = alloc_etherdev(alloc_size); alloc_size 538 drivers/net/fddi/defxx.c int alloc_size; /* total buffer size used */ alloc_size 647 drivers/net/fddi/defxx.c alloc_size = sizeof(PI_DESCR_BLOCK) + alloc_size 655 drivers/net/fddi/defxx.c dma_free_coherent(bdev, alloc_size, alloc_size 1045 drivers/net/fddi/defxx.c int alloc_size; /* total buffer size needed */ alloc_size 1134 drivers/net/fddi/defxx.c alloc_size = sizeof(PI_DESCR_BLOCK) + alloc_size 1142 drivers/net/fddi/defxx.c bp->kmalloced = top_v = dma_alloc_coherent(bp->bus_dev, alloc_size, alloc_size 3702 drivers/net/fddi/defxx.c int alloc_size; /* total buffer size used */ alloc_size 3706 drivers/net/fddi/defxx.c alloc_size = sizeof(PI_DESCR_BLOCK) + alloc_size 3714 drivers/net/fddi/defxx.c dma_free_coherent(bdev, alloc_size, alloc_size 150 drivers/net/phy/mdio_bus.c size_t alloc_size; alloc_size 155 drivers/net/phy/mdio_bus.c alloc_size = aligned_size + size; alloc_size 157 drivers/net/phy/mdio_bus.c alloc_size = sizeof(*bus); alloc_size 159 drivers/net/phy/mdio_bus.c bus = kzalloc(alloc_size, GFP_KERNEL); alloc_size 628 drivers/net/wireless/intel/iwlwifi/fw/dbg.c int alloc_size, nents, i; alloc_size 652 drivers/net/wireless/intel/iwlwifi/fw/dbg.c alloc_size = min_t(int, size, PAGE_SIZE); alloc_size 654 drivers/net/wireless/intel/iwlwifi/fw/dbg.c sg_set_page(iter, new_page, alloc_size, 0); alloc_size 327 drivers/net/wireless/intel/iwlwifi/iwl-drv.c size_t alloc_size = sizeof(*img->sec) * size; alloc_size 332 drivers/net/wireless/intel/iwlwifi/iwl-drv.c sec_memory = krealloc(img->sec, alloc_size, GFP_KERNEL); alloc_size 410 drivers/net/wireless/intel/iwlwifi/iwl-drv.c size_t alloc_size; alloc_size 419 drivers/net/wireless/intel/iwlwifi/iwl-drv.c alloc_size = sizeof(*img->sec) * (img->sec_counter + 1); alloc_size 420 drivers/net/wireless/intel/iwlwifi/iwl-drv.c sec = krealloc(img->sec, alloc_size, GFP_KERNEL); alloc_size 98 drivers/net/wireless/intel/iwlwifi/pcie/trans.c u32 i, pos, alloc_size, *ptr, *buf; alloc_size 110 drivers/net/wireless/intel/iwlwifi/pcie/trans.c alloc_size = PCI_ERR_ROOT_ERR_SRC + 4 + PREFIX_LEN; alloc_size 111 drivers/net/wireless/intel/iwlwifi/pcie/trans.c alloc_size = max_t(u32, alloc_size, PCI_DUMP_SIZE + PREFIX_LEN); alloc_size 112 drivers/net/wireless/intel/iwlwifi/pcie/trans.c alloc_size = max_t(u32, alloc_size, PCI_MEM_DUMP_SIZE + PREFIX_LEN); alloc_size 113 drivers/net/wireless/intel/iwlwifi/pcie/trans.c alloc_size = max_t(u32, alloc_size, PCI_PARENT_DUMP_SIZE + PREFIX_LEN); alloc_size 115 drivers/net/wireless/intel/iwlwifi/pcie/trans.c buf = kmalloc(alloc_size, GFP_ATOMIC); alloc_size 118 drivers/net/wireless/intel/iwlwifi/pcie/trans.c prefix = (char *)buf + alloc_size - PREFIX_LEN; alloc_size 210 drivers/ntb/ntb_transport.c size_t alloc_size; alloc_size 802 drivers/ntb/ntb_transport.c dma_free_coherent(&pdev->dev, mw->alloc_size, alloc_size 806 drivers/ntb/ntb_transport.c mw->alloc_size = 0; alloc_size 818 drivers/ntb/ntb_transport.c alloc_addr = dma_alloc_coherent(dma_dev, mw->alloc_size, alloc_size 822 drivers/ntb/ntb_transport.c mw->alloc_size); alloc_size 834 drivers/ntb/ntb_transport.c if (mw->alloc_size > mw->buff_size) { alloc_size 850 drivers/ntb/ntb_transport.c dma_free_coherent(dma_dev, mw->alloc_size, alloc_addr, dma_addr); alloc_size 886 drivers/ntb/ntb_transport.c mw->alloc_size = buff_size; alloc_size 890 drivers/ntb/ntb_transport.c mw->alloc_size *= 2; alloc_size 897 drivers/ntb/ntb_transport.c mw->alloc_size = 0; alloc_size 620 drivers/nvme/host/core.c static const size_t alloc_size = sizeof(*range) * NVME_DSM_MAX_RANGES; alloc_size 622 drivers/nvme/host/core.c range = kzalloc(alloc_size, GFP_ATOMIC | __GFP_NOWARN); alloc_size 662 drivers/nvme/host/core.c req->special_vec.bv_len = alloc_size; alloc_size 361 drivers/nvme/host/pci.c size_t alloc_size; alloc_size 364 drivers/nvme/host/pci.c alloc_size = sizeof(__le64 *) * nvme_pci_npages_sgl(nseg); alloc_size 366 drivers/nvme/host/pci.c alloc_size = sizeof(__le64 *) * nvme_npages(size, dev); alloc_size 368 drivers/nvme/host/pci.c return alloc_size + sizeof(struct scatterlist) * nseg; alloc_size 2787 drivers/nvme/host/pci.c size_t alloc_size; alloc_size 2823 drivers/nvme/host/pci.c alloc_size = nvme_pci_iod_alloc_size(dev, NVME_MAX_KB_SZ, alloc_size 2825 drivers/nvme/host/pci.c WARN_ON_ONCE(alloc_size > PAGE_SIZE); alloc_size 2829 drivers/nvme/host/pci.c (void *) alloc_size, alloc_size 4923 drivers/regulator/core.c size_t alloc_size; alloc_size 4930 drivers/regulator/core.c alloc_size = sizeof(*rdev) * (n_phandles + 1); alloc_size 4932 drivers/regulator/core.c rdev->coupling_desc.coupled_rdevs = kzalloc(alloc_size, GFP_KERNEL); alloc_size 84 drivers/scsi/aacraid/commsup.c size_t alloc_size; alloc_size 93 drivers/scsi/aacraid/commsup.c alloc_size = fib_size * num_fibs + ALIGN32 - 1; alloc_size 95 drivers/scsi/aacraid/commsup.c dma_free_coherent(&dev->pdev->dev, alloc_size, dev->hw_fib_va, alloc_size 2455 drivers/scsi/be2iscsi/be_main.c unsigned int i, j, alloc_size, curr_alloc_size; alloc_size 2499 drivers/scsi/be2iscsi/be_main.c alloc_size = phba->mem_req[i]; alloc_size 2502 drivers/scsi/be2iscsi/be_main.c curr_alloc_size = min(be_max_phys_size * 1024, alloc_size); alloc_size 2520 drivers/scsi/be2iscsi/be_main.c alloc_size -= curr_alloc_size; alloc_size 2522 drivers/scsi/be2iscsi/be_main.c 1024, alloc_size); alloc_size 2526 drivers/scsi/be2iscsi/be_main.c } while (alloc_size); alloc_size 354 drivers/soc/qcom/smem.c size_t alloc_size; alloc_size 371 drivers/soc/qcom/smem.c alloc_size = sizeof(*hdr) + ALIGN(size, 8); alloc_size 372 drivers/soc/qcom/smem.c if ((void *)hdr + alloc_size > cached) { alloc_size 389 drivers/soc/qcom/smem.c le32_add_cpu(&phdr->offset_free_uncached, alloc_size); alloc_size 269 drivers/staging/vc04_services/bcm2835-camera/mmal-msg.h u32 alloc_size; alloc_size 412 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c m.u.buffer_from_host.buffer_header.alloc_size = buf->buffer_size; alloc_size 765 drivers/staging/wusbcore/devconnect.c size_t alloc_size = 32, desc_size = 4; alloc_size 767 drivers/staging/wusbcore/devconnect.c bos = kmalloc(alloc_size, GFP_KERNEL); alloc_size 777 drivers/staging/wusbcore/devconnect.c if (desc_size >= alloc_size) { alloc_size 779 drivers/staging/wusbcore/devconnect.c alloc_size = desc_size; alloc_size 780 drivers/staging/wusbcore/devconnect.c bos = kmalloc(alloc_size, GFP_KERNEL); alloc_size 1162 drivers/staging/wusbcore/wa-xfer.c size_t alloc_size = sizeof(*xfer->seg[0]) alloc_size 1193 drivers/staging/wusbcore/wa-xfer.c seg = xfer->seg[cnt] = kmalloc(alloc_size + iso_pkt_descr_size, alloc_size 346 drivers/usb/class/cdc-acm.c unsigned int expected_size, copy_size, alloc_size; alloc_size 385 drivers/usb/class/cdc-acm.c alloc_size = roundup_pow_of_two(expected_size); alloc_size 392 drivers/usb/class/cdc-acm.c kmalloc(alloc_size, GFP_ATOMIC); alloc_size 395 drivers/usb/class/cdc-acm.c acm->nb_size = alloc_size; alloc_size 339 drivers/usb/host/ehci-dbg.c size_t alloc_size; alloc_size 482 drivers/usb/host/ehci-dbg.c size = buf->alloc_size; alloc_size 524 drivers/usb/host/ehci-dbg.c size = buf->alloc_size; alloc_size 640 drivers/usb/host/ehci-dbg.c size = buf->alloc_size; alloc_size 736 drivers/usb/host/ehci-dbg.c return buf->alloc_size - size; alloc_size 768 drivers/usb/host/ehci-dbg.c size = buf->alloc_size; alloc_size 912 drivers/usb/host/ehci-dbg.c return buf->alloc_size - size; alloc_size 926 drivers/usb/host/ehci-dbg.c buf->alloc_size = PAGE_SIZE; alloc_size 937 drivers/usb/host/ehci-dbg.c buf->output_buf = vmalloc(buf->alloc_size); alloc_size 1013 drivers/usb/host/ehci-dbg.c buf->alloc_size = (sizeof(void *) == 4 ? 6 : 8) * PAGE_SIZE; alloc_size 319 drivers/usb/host/fotg210-hcd.c size_t alloc_size; alloc_size 459 drivers/usb/host/fotg210-hcd.c size = buf->alloc_size; alloc_size 534 drivers/usb/host/fotg210-hcd.c size = buf->alloc_size; alloc_size 620 drivers/usb/host/fotg210-hcd.c return buf->alloc_size - size; alloc_size 652 drivers/usb/host/fotg210-hcd.c size = buf->alloc_size; alloc_size 740 drivers/usb/host/fotg210-hcd.c return buf->alloc_size - size; alloc_size 754 drivers/usb/host/fotg210-hcd.c buf->alloc_size = PAGE_SIZE; alloc_size 765 drivers/usb/host/fotg210-hcd.c buf->output_buf = vmalloc(buf->alloc_size); alloc_size 833 drivers/usb/host/fotg210-hcd.c buf->alloc_size = (sizeof(void *) == 4 ? 6 : 8)*PAGE_SIZE; alloc_size 4065 fs/btrfs/ioctl.c int alloc_size; alloc_size 4113 fs/btrfs/ioctl.c alloc_size = sizeof(*dest) * slot_count; alloc_size 4118 fs/btrfs/ioctl.c if (alloc_size > PAGE_SIZE) alloc_size 4122 fs/btrfs/ioctl.c dest = kmalloc(alloc_size, GFP_KERNEL); alloc_size 4181 fs/btrfs/ioctl.c if (copy_to_user(user_dest, dest_orig, alloc_size)) alloc_size 7058 fs/btrfs/send.c unsigned alloc_size; alloc_size 7158 fs/btrfs/send.c alloc_size = sizeof(struct clone_root) * (arg->clone_sources_count + 1); alloc_size 7160 fs/btrfs/send.c sctx->clone_roots = kzalloc(alloc_size, GFP_KERNEL); alloc_size 7166 fs/btrfs/send.c alloc_size = arg->clone_sources_count * sizeof(*arg->clone_sources); alloc_size 7169 fs/btrfs/send.c clone_sources_tmp = kvmalloc(alloc_size, GFP_KERNEL); alloc_size 7176 fs/btrfs/send.c alloc_size); alloc_size 1994 fs/btrfs/super.c u64 alloc_size; alloc_size 1997 fs/btrfs/super.c alloc_size = devices_info[i].max_avail; alloc_size 1999 fs/btrfs/super.c devices_info[j].max_avail -= alloc_size; alloc_size 945 fs/gfs2/bmap.c u64 alloc_size; alloc_size 951 fs/gfs2/bmap.c alloc_size = len << inode->i_blkbits; alloc_size 952 fs/gfs2/bmap.c if (alloc_size < iomap->length) alloc_size 953 fs/gfs2/bmap.c iomap->length = alloc_size; alloc_size 1433 fs/ocfs2/file.c u32 cpos, phys_cpos, clusters, alloc_size; alloc_size 1467 fs/ocfs2/file.c &alloc_size, NULL); alloc_size 1477 fs/ocfs2/file.c if (alloc_size > clusters) alloc_size 1478 fs/ocfs2/file.c alloc_size = clusters; alloc_size 1488 fs/ocfs2/file.c ret = ocfs2_extend_allocation(inode, cpos, alloc_size, 1); alloc_size 1496 fs/ocfs2/file.c cpos += alloc_size; alloc_size 1497 fs/ocfs2/file.c clusters -= alloc_size; alloc_size 742 fs/ocfs2/move_extents.c static void ocfs2_calc_extent_defrag_len(u32 *alloc_size, u32 *len_defraged, alloc_size 745 fs/ocfs2/move_extents.c if ((*alloc_size + *len_defraged) < threshold) { alloc_size 749 fs/ocfs2/move_extents.c *len_defraged += *alloc_size; alloc_size 764 fs/ocfs2/move_extents.c *alloc_size = threshold - *len_defraged; alloc_size 773 fs/ocfs2/move_extents.c u32 cpos, phys_cpos, move_start, len_to_move, alloc_size; alloc_size 830 fs/ocfs2/move_extents.c ret = ocfs2_get_clusters(inode, cpos, &phys_cpos, &alloc_size, alloc_size 837 fs/ocfs2/move_extents.c if (alloc_size > len_to_move) alloc_size 838 fs/ocfs2/move_extents.c alloc_size = len_to_move; alloc_size 854 fs/ocfs2/move_extents.c ocfs2_calc_extent_defrag_len(&alloc_size, &len_defraged, alloc_size 866 fs/ocfs2/move_extents.c cpos, phys_cpos, alloc_size, len_defraged); alloc_size 869 fs/ocfs2/move_extents.c &alloc_size, flags); alloc_size 872 fs/ocfs2/move_extents.c &new_phys_cpos, alloc_size, alloc_size 875 fs/ocfs2/move_extents.c new_phys_cpos += alloc_size; alloc_size 883 fs/ocfs2/move_extents.c context->clusters_moved += alloc_size; alloc_size 885 fs/ocfs2/move_extents.c cpos += alloc_size; alloc_size 886 fs/ocfs2/move_extents.c len_to_move -= alloc_size; alloc_size 818 fs/ocfs2/xattr.c u32 trunc_len, cpos, phys_cpos, alloc_size; alloc_size 828 fs/ocfs2/xattr.c &alloc_size, alloc_size 835 fs/ocfs2/xattr.c if (alloc_size > trunc_len) alloc_size 836 fs/ocfs2/xattr.c alloc_size = trunc_len; alloc_size 839 fs/ocfs2/xattr.c phys_cpos, alloc_size, alloc_size 848 fs/ocfs2/xattr.c block, alloc_size); alloc_size 849 fs/ocfs2/xattr.c cpos += alloc_size; alloc_size 850 fs/ocfs2/xattr.c trunc_len -= alloc_size; alloc_size 627 fs/select.c size_t size, alloc_size; alloc_size 657 fs/select.c alloc_size = 6 * size; alloc_size 658 fs/select.c bits = kvmalloc(alloc_size, GFP_KERNEL); alloc_size 1606 include/linux/efi.h unsigned long alloc_size, alloc_size 278 include/linux/mlx5/driver.h int alloc_size; alloc_size 81 include/linux/percpu.h size_t alloc_size; alloc_size 64 include/linux/relay.h size_t alloc_size; /* total buffer size allocated */ alloc_size 51 include/linux/swiotlb.h size_t alloc_size, alloc_size 58 include/linux/swiotlb.h size_t alloc_size, alloc_size 89 kernel/dma/direct.c size_t alloc_size = PAGE_ALIGN(size); alloc_size 101 kernel/dma/direct.c page = dma_alloc_contiguous(dev, alloc_size, gfp); alloc_size 103 kernel/dma/direct.c dma_free_contiguous(dev, page, alloc_size); alloc_size 108 kernel/dma/direct.c page = alloc_pages_node(node, gfp, get_order(alloc_size)); alloc_size 203 kernel/dma/swiotlb.c size_t alloc_size; alloc_size 216 kernel/dma/swiotlb.c alloc_size = PAGE_ALIGN(io_tlb_nslabs * sizeof(int)); alloc_size 217 kernel/dma/swiotlb.c io_tlb_list = memblock_alloc(alloc_size, PAGE_SIZE); alloc_size 220 kernel/dma/swiotlb.c __func__, alloc_size, PAGE_SIZE); alloc_size 222 kernel/dma/swiotlb.c alloc_size = PAGE_ALIGN(io_tlb_nslabs * sizeof(phys_addr_t)); alloc_size 223 kernel/dma/swiotlb.c io_tlb_orig_addr = memblock_alloc(alloc_size, PAGE_SIZE); alloc_size 226 kernel/dma/swiotlb.c __func__, alloc_size, PAGE_SIZE); alloc_size 449 kernel/dma/swiotlb.c size_t alloc_size, alloc_size 468 kernel/dma/swiotlb.c if (mapping_size > alloc_size) { alloc_size 470 kernel/dma/swiotlb.c mapping_size, alloc_size); alloc_size 491 kernel/dma/swiotlb.c nslots = ALIGN(alloc_size, 1 << IO_TLB_SHIFT) >> IO_TLB_SHIFT; alloc_size 492 kernel/dma/swiotlb.c if (alloc_size >= PAGE_SIZE) alloc_size 557 kernel/dma/swiotlb.c alloc_size, io_tlb_nslabs, tmp_io_tlb_used); alloc_size 581 kernel/dma/swiotlb.c size_t mapping_size, size_t alloc_size, alloc_size 585 kernel/dma/swiotlb.c int i, count, nslots = ALIGN(alloc_size, 1 << IO_TLB_SHIFT) >> IO_TLB_SHIFT; alloc_size 28 kernel/irq/matrix.c unsigned int alloc_size; alloc_size 65 kernel/irq/matrix.c m->alloc_size = alloc_end - alloc_start; alloc_size 85 kernel/irq/matrix.c cm->available = m->alloc_size; alloc_size 104 kernel/relay.c if (length != (unsigned long)buf->chan->alloc_size) alloc_size 177 kernel/relay.c buf->start = relay_alloc_buf(buf, &chan->alloc_size); alloc_size 592 kernel/relay.c chan->alloc_size = PAGE_ALIGN(subbuf_size * n_subbufs); alloc_size 1209 kernel/relay.c uint32_t alloc_size = (uint32_t) rbuf->chan->alloc_size; alloc_size 1210 kernel/relay.c size_t read_start = (size_t) do_div(pos, alloc_size); alloc_size 1237 kernel/relay.c subbuf_pages = rbuf->chan->alloc_size >> PAGE_SHIFT; alloc_size 784 lib/objagg.c size_t alloc_size; alloc_size 796 lib/objagg.c alloc_size = BITS_TO_LONGS(nodes_count * nodes_count) * alloc_size 798 lib/objagg.c graph->edges = kzalloc(alloc_size, GFP_KERNEL); alloc_size 203 lib/scatterlist.c unsigned int alloc_size = table->orig_nents; alloc_size 212 lib/scatterlist.c if (alloc_size > curr_max_ents) { alloc_size 214 lib/scatterlist.c alloc_size = curr_max_ents; alloc_size 215 lib/scatterlist.c sg_size = alloc_size - 1; alloc_size 217 lib/scatterlist.c sg_size = alloc_size; alloc_size 225 lib/scatterlist.c free_fn(sgl, alloc_size); alloc_size 288 lib/scatterlist.c unsigned int sg_size, alloc_size = left; alloc_size 290 lib/scatterlist.c if (alloc_size > curr_max_ents) { alloc_size 291 lib/scatterlist.c alloc_size = curr_max_ents; alloc_size 292 lib/scatterlist.c sg_size = alloc_size - 1; alloc_size 294 lib/scatterlist.c sg_size = alloc_size; alloc_size 302 lib/scatterlist.c sg = alloc_fn(alloc_size, gfp_mask); alloc_size 317 lib/scatterlist.c sg_init_table(sg, alloc_size); alloc_size 1601 mm/mempolicy.c unsigned long nr_bits, alloc_size; alloc_size 1605 mm/mempolicy.c alloc_size = ALIGN(nr_bits, BITS_PER_LONG) / 8; alloc_size 1608 mm/mempolicy.c nm = compat_alloc_user_space(alloc_size); alloc_size 1614 mm/mempolicy.c copy_size = min_t(unsigned long, sizeof(bm), alloc_size); alloc_size 1628 mm/mempolicy.c unsigned long nr_bits, alloc_size; alloc_size 1632 mm/mempolicy.c alloc_size = ALIGN(nr_bits, BITS_PER_LONG) / 8; alloc_size 1637 mm/mempolicy.c nm = compat_alloc_user_space(alloc_size); alloc_size 1638 mm/mempolicy.c if (copy_to_user(nm, bm, alloc_size)) alloc_size 1650 mm/mempolicy.c unsigned long nr_bits, alloc_size; alloc_size 1654 mm/mempolicy.c alloc_size = ALIGN(nr_bits, BITS_PER_LONG) / 8; alloc_size 1659 mm/mempolicy.c nm = compat_alloc_user_space(alloc_size); alloc_size 1660 mm/mempolicy.c if (copy_to_user(nm, nodes_addr(bm), alloc_size)) alloc_size 172 mm/percpu-stats.c PL(alloc_size); alloc_size 1314 mm/percpu.c size_t alloc_size; alloc_size 1330 mm/percpu.c alloc_size = sizeof(struct pcpu_chunk) + alloc_size 1332 mm/percpu.c chunk = memblock_alloc(alloc_size, SMP_CACHE_BYTES); alloc_size 1335 mm/percpu.c alloc_size); alloc_size 1346 mm/percpu.c alloc_size = BITS_TO_LONGS(region_bits) * sizeof(chunk->alloc_map[0]); alloc_size 1347 mm/percpu.c chunk->alloc_map = memblock_alloc(alloc_size, SMP_CACHE_BYTES); alloc_size 1350 mm/percpu.c alloc_size); alloc_size 1352 mm/percpu.c alloc_size = alloc_size 1354 mm/percpu.c chunk->bound_map = memblock_alloc(alloc_size, SMP_CACHE_BYTES); alloc_size 1357 mm/percpu.c alloc_size); alloc_size 1359 mm/percpu.c alloc_size = pcpu_chunk_nr_blocks(chunk) * sizeof(chunk->md_blocks[0]); alloc_size 1360 mm/percpu.c chunk->md_blocks = memblock_alloc(alloc_size, SMP_CACHE_BYTES); alloc_size 1363 mm/percpu.c alloc_size); alloc_size 2185 mm/percpu.c upa = ai->alloc_size / ai->unit_size; alloc_size 2191 mm/percpu.c ai->unit_size, ai->alloc_size / ai->atom_size, ai->atom_size); alloc_size 2285 mm/percpu.c size_t alloc_size; alloc_size 2317 mm/percpu.c alloc_size = ai->nr_groups * sizeof(group_offsets[0]); alloc_size 2318 mm/percpu.c group_offsets = memblock_alloc(alloc_size, SMP_CACHE_BYTES); alloc_size 2321 mm/percpu.c alloc_size); alloc_size 2323 mm/percpu.c alloc_size = ai->nr_groups * sizeof(group_sizes[0]); alloc_size 2324 mm/percpu.c group_sizes = memblock_alloc(alloc_size, SMP_CACHE_BYTES); alloc_size 2327 mm/percpu.c alloc_size); alloc_size 2329 mm/percpu.c alloc_size = nr_cpu_ids * sizeof(unit_map[0]); alloc_size 2330 mm/percpu.c unit_map = memblock_alloc(alloc_size, SMP_CACHE_BYTES); alloc_size 2333 mm/percpu.c alloc_size); alloc_size 2335 mm/percpu.c alloc_size = nr_cpu_ids * sizeof(unit_off[0]); alloc_size 2336 mm/percpu.c unit_off = memblock_alloc(alloc_size, SMP_CACHE_BYTES); alloc_size 2339 mm/percpu.c alloc_size); alloc_size 2538 mm/percpu.c size_t size_sum, min_unit_size, alloc_size; alloc_size 2563 mm/percpu.c alloc_size = roundup(min_unit_size, atom_size); alloc_size 2564 mm/percpu.c upa = alloc_size / min_unit_size; alloc_size 2565 mm/percpu.c while (alloc_size % upa || (offset_in_page(alloc_size / upa))) alloc_size 2597 mm/percpu.c if (alloc_size % upa || (offset_in_page(alloc_size / upa))) alloc_size 2639 mm/percpu.c ai->unit_size = alloc_size / upa; alloc_size 2641 mm/percpu.c ai->alloc_size = alloc_size; alloc_size 2848 mm/percpu.c upa = ai->alloc_size/ai->unit_size; alloc_size 3009 mm/percpu.c ai->alloc_size = unit_size; alloc_size 331 net/bluetooth/l2cap_core.c size_t alloc_size, i; alloc_size 337 net/bluetooth/l2cap_core.c alloc_size = roundup_pow_of_two(size); alloc_size 339 net/bluetooth/l2cap_core.c seq_list->list = kmalloc_array(alloc_size, sizeof(u16), GFP_KERNEL); alloc_size 343 net/bluetooth/l2cap_core.c seq_list->mask = alloc_size - 1; alloc_size 346 net/bluetooth/l2cap_core.c for (i = 0; i < alloc_size; i++) alloc_size 9474 net/core/dev.c unsigned int alloc_size; alloc_size 9489 net/core/dev.c alloc_size = sizeof(struct net_device); alloc_size 9492 net/core/dev.c alloc_size = ALIGN(alloc_size, NETDEV_ALIGN); alloc_size 9493 net/core/dev.c alloc_size += sizeof_priv; alloc_size 9496 net/core/dev.c alloc_size += NETDEV_ALIGN - 1; alloc_size 9498 net/core/dev.c p = kvzalloc(alloc_size, GFP_KERNEL | __GFP_RETRY_MAYFAIL); alloc_size 25 net/core/dev_addr_lists.c int alloc_size; alloc_size 27 net/core/dev_addr_lists.c alloc_size = sizeof(*ha); alloc_size 28 net/core/dev_addr_lists.c if (alloc_size < L1_CACHE_BYTES) alloc_size 29 net/core/dev_addr_lists.c alloc_size = L1_CACHE_BYTES; alloc_size 30 net/core/dev_addr_lists.c ha = kmalloc(alloc_size, GFP_ATOMIC); alloc_size 101 net/ieee802154/core.c size_t alloc_size; alloc_size 103 net/ieee802154/core.c alloc_size = sizeof(*rdev) + priv_size; alloc_size 104 net/ieee802154/core.c rdev = kzalloc(alloc_size, GFP_KERNEL); alloc_size 588 net/iucv/iucv.c size_t alloc_size; alloc_size 593 net/iucv/iucv.c alloc_size = iucv_max_pathid * sizeof(struct iucv_path); alloc_size 594 net/iucv/iucv.c iucv_path_table = kzalloc(alloc_size, GFP_KERNEL); alloc_size 2198 net/netlink/af_netlink.c int alloc_size; alloc_size 2218 net/netlink/af_netlink.c alloc_size = nlk->max_recvmsg_len; alloc_size 2219 net/netlink/af_netlink.c skb = alloc_skb(alloc_size, alloc_size 2224 net/netlink/af_netlink.c alloc_size = alloc_min_size; alloc_size 2225 net/netlink/af_netlink.c skb = alloc_skb(alloc_size, GFP_KERNEL); alloc_size 2240 net/netlink/af_netlink.c skb_reserve(skb, skb_tailroom(skb) - alloc_size); alloc_size 122 net/openvswitch/vport.c size_t alloc_size; alloc_size 124 net/openvswitch/vport.c alloc_size = sizeof(struct vport); alloc_size 126 net/openvswitch/vport.c alloc_size = ALIGN(alloc_size, VPORT_ALIGN); alloc_size 127 net/openvswitch/vport.c alloc_size += priv_size; alloc_size 130 net/openvswitch/vport.c vport = kzalloc(alloc_size, GFP_KERNEL); alloc_size 404 net/wireless/core.c int alloc_size; alloc_size 423 net/wireless/core.c alloc_size = sizeof(*rdev) + sizeof_priv; alloc_size 425 net/wireless/core.c rdev = kzalloc(alloc_size, GFP_KERNEL); alloc_size 387 security/apparmor/apparmorfs.c size_t alloc_size, alloc_size 393 security/apparmor/apparmorfs.c AA_BUG(copy_size > alloc_size); alloc_size 400 security/apparmor/apparmorfs.c data = aa_loaddata_alloc(alloc_size); alloc_size 399 sound/pci/emu10k1/emupcm.c size_t alloc_size; alloc_size 405 sound/pci/emu10k1/emupcm.c alloc_size = params_buffer_bytes(hw_params); alloc_size 407 sound/pci/emu10k1/emupcm.c alloc_size += EMUPAGESIZE; alloc_size 408 sound/pci/emu10k1/emupcm.c err = snd_pcm_lib_malloc_pages(substream, alloc_size); alloc_size 362 tools/lib/api/fs/fs.c size_t size = 0, alloc_size = 0; alloc_size 372 tools/lib/api/fs/fs.c if (size == alloc_size) { alloc_size 373 tools/lib/api/fs/fs.c alloc_size += BUFSIZ; alloc_size 374 tools/lib/api/fs/fs.c nbf = realloc(bf, alloc_size); alloc_size 383 tools/lib/api/fs/fs.c n = read(fd, bf + size, alloc_size - size); alloc_size 76 tools/testing/selftests/powerpc/stringloops/memcmp.c unsigned long alloc_size = comp_size + MAX_OFFSET_DIFF_S1_S2; alloc_size 79 tools/testing/selftests/powerpc/stringloops/memcmp.c s1 = memalign(128, alloc_size); alloc_size 85 tools/testing/selftests/powerpc/stringloops/memcmp.c s2 = memalign(128, alloc_size); alloc_size 99 tools/testing/selftests/powerpc/stringloops/memcmp.c for (j = 0; j < alloc_size; j++) alloc_size 125 tools/testing/selftests/powerpc/stringloops/memcmp.c for (j = 0; j < alloc_size; j++) alloc_size 138 tools/testing/selftests/vm/mlock-random-test.c int test_mlock_within_limit(char *p, int alloc_size) alloc_size 147 tools/testing/selftests/vm/mlock-random-test.c if (cur.rlim_cur < alloc_size) { alloc_size 149 tools/testing/selftests/vm/mlock-random-test.c alloc_size, (unsigned int)cur.rlim_cur); alloc_size 162 tools/testing/selftests/vm/mlock-random-test.c int lock_size = rand() % alloc_size; alloc_size 163 tools/testing/selftests/vm/mlock-random-test.c int start_offset = rand() % (alloc_size - lock_size); alloc_size 174 tools/testing/selftests/vm/mlock-random-test.c p, alloc_size, alloc_size 190 tools/testing/selftests/vm/mlock-random-test.c if (locked_vm_size > PAGE_ALIGN(alloc_size, page_size) + page_size) { alloc_size 192 tools/testing/selftests/vm/mlock-random-test.c locked_vm_size, alloc_size); alloc_size 215 tools/testing/selftests/vm/mlock-random-test.c int test_mlock_outof_limit(char *p, int alloc_size) alloc_size 223 tools/testing/selftests/vm/mlock-random-test.c if (cur.rlim_cur >= alloc_size) { alloc_size 225 tools/testing/selftests/vm/mlock-random-test.c alloc_size, (unsigned int)cur.rlim_cur); alloc_size 233 tools/testing/selftests/vm/mlock-random-test.c int lock_size = (rand() % (alloc_size - cur.rlim_cur)) alloc_size 235 tools/testing/selftests/vm/mlock-random-test.c int start_offset = rand() % (alloc_size - lock_size); alloc_size 245 tools/testing/selftests/vm/mlock-random-test.c p, alloc_size,