Home
last modified time | relevance | path

Searched refs:alloc_size (Results 1 – 25 of 99) sorted by relevance

1234

/drivers/firmware/efi/libstub/
A Dzboot.c10 static unsigned long alloc_preferred_address(unsigned long alloc_size) in alloc_preferred_address() argument
16 alloc_size / EFI_PAGE_SIZE, &efi_addr) == EFI_SUCCESS) in alloc_preferred_address()
23 unsigned long alloc_size) in efi_cache_sync_image() argument
38 unsigned long image_base, alloc_size; in efi_zboot_entry() local
57 status = efi_zboot_decompress_init(&alloc_size); in efi_zboot_entry()
63 image_base = alloc_preferred_address(alloc_size); in efi_zboot_entry()
86 status = efi_random_alloc(alloc_size, min_kimg_align, &image_base, in efi_zboot_entry()
95 status = efi_zboot_decompress((void *)image_base, alloc_size) ?: in efi_zboot_entry()
98 efi_free(alloc_size, image_base); in efi_zboot_entry()
A Dfile.c206 unsigned long alloc_size; in handle_cmdline_files() local
220 alloc_addr = alloc_size = 0; in handle_cmdline_files()
264 if (round_up(alloc_size + size, EFI_ALLOC_ALIGN) > in handle_cmdline_files()
265 round_up(alloc_size, EFI_ALLOC_ALIGN)) { in handle_cmdline_files()
270 status = efi_allocate_pages(alloc_size + size, in handle_cmdline_files()
274 status = efi_allocate_pages(alloc_size + size, in handle_cmdline_files()
290 efi_free(alloc_size, old_addr); in handle_cmdline_files()
294 addr = (void *)alloc_addr + alloc_size; in handle_cmdline_files()
295 alloc_size += size; in handle_cmdline_files()
316 *load_size = alloc_size; in handle_cmdline_files()
[all …]
A Drelocate.c113 unsigned long alloc_size, in efi_relocate_kernel() argument
124 if (!image_addr || !image_size || !alloc_size) in efi_relocate_kernel()
126 if (alloc_size < image_size) in efi_relocate_kernel()
139 nr_pages = round_up(alloc_size, EFI_ALLOC_ALIGN) / EFI_PAGE_SIZE; in efi_relocate_kernel()
148 status = efi_low_alloc_above(alloc_size, alignment, &new_addr, in efi_relocate_kernel()
A Darm32-stub.c87 int alloc_size = MAX_UNCOMP_KERNEL_SIZE + EFI_PHYS_ALIGN; in handle_kernel_image() local
97 status = efi_low_alloc_above(alloc_size, EFI_PAGE_SIZE, &alloc_base, 0x0); in handle_kernel_image()
122 alloc_size -= *reserve_addr - alloc_base; in handle_kernel_image()
125 (alloc_size - MAX_UNCOMP_KERNEL_SIZE) / EFI_PAGE_SIZE); in handle_kernel_image()
A Dzboot-decompress-zstd.c17 efi_status_t efi_zboot_decompress_init(unsigned long *alloc_size) in efi_zboot_decompress_init() argument
26 *alloc_size = payload_size; in efi_zboot_decompress_init()
A Dzboot-decompress-gzip.c19 efi_status_t efi_zboot_decompress_init(unsigned long *alloc_size) in efi_zboot_decompress_init() argument
41 *alloc_size = payload_size; in efi_zboot_decompress_init()
A Darm64.c94 unsigned long alloc_size) in efi_cache_sync_image() argument
116 efi_remap_image(image_base, alloc_size, code_size); in efi_cache_sync_image()
/drivers/net/wireless/intel/iwlwifi/pcie/
A Dutils.c20 u32 i, pos, alloc_size, *ptr, *buf; in iwl_trans_pcie_dump_regs() local
32 alloc_size = PCI_ERR_ROOT_ERR_SRC + 4 + PREFIX_LEN; in iwl_trans_pcie_dump_regs()
33 alloc_size = max_t(u32, alloc_size, PCI_DUMP_SIZE + PREFIX_LEN); in iwl_trans_pcie_dump_regs()
34 alloc_size = max_t(u32, alloc_size, PCI_MEM_DUMP_SIZE + PREFIX_LEN); in iwl_trans_pcie_dump_regs()
35 alloc_size = max_t(u32, alloc_size, PCI_PARENT_DUMP_SIZE + PREFIX_LEN); in iwl_trans_pcie_dump_regs()
37 buf = kmalloc(alloc_size, GFP_ATOMIC); in iwl_trans_pcie_dump_regs()
40 prefix = (char *)buf + alloc_size - PREFIX_LEN; in iwl_trans_pcie_dump_regs()
/drivers/net/ethernet/mellanox/mlxsw/
A Dspectrum1_kvdl.c35 unsigned int alloc_size; member
49 .alloc_size = MLXSW_SP1_KVDL_##id##_ALLOC_SIZE, \
72 unsigned int alloc_size) in mlxsw_sp1_kvdl_alloc_size_part() argument
79 if (alloc_size <= part->info.alloc_size && in mlxsw_sp1_kvdl_alloc_size_part()
81 part->info.alloc_size <= min_part->info.alloc_size)) in mlxsw_sp1_kvdl_alloc_size_part()
108 return info->start_index + entry_index * info->alloc_size; in mlxsw_sp1_kvdl_to_kvdl_index()
125 info->alloc_size; in mlxsw_sp1_kvdl_part_alloc()
190 *p_alloc_size = part->info.alloc_size; in mlxsw_sp1_kvdl_alloc_size_query()
226 nr_entries = div_u64(resource_size, info->alloc_size); in mlxsw_sp1_kvdl_part_init()
286 info->alloc_size; in mlxsw_sp1_kvdl_part_occ()
[all …]
/drivers/md/
A Ddm-stats.c88 a = shared_memory_amount + alloc_size; in __check_shared_memory()
100 static bool check_shared_memory(size_t alloc_size) in check_shared_memory() argument
106 ret = __check_shared_memory(alloc_size); in check_shared_memory()
113 static bool claim_shared_memory(size_t alloc_size) in claim_shared_memory() argument
117 if (!__check_shared_memory(alloc_size)) { in claim_shared_memory()
122 shared_memory_amount += alloc_size; in claim_shared_memory()
129 static void free_shared_memory(size_t alloc_size) in free_shared_memory() argument
141 shared_memory_amount -= alloc_size; in free_shared_memory()
150 if (!claim_shared_memory(alloc_size)) in dm_kvzalloc()
157 free_shared_memory(alloc_size); in dm_kvzalloc()
[all …]
/drivers/gpu/drm/vmwgfx/
A Dvmwgfx_simple_resource.c147 size_t alloc_size; in vmw_simple_resource_create_ioctl() local
150 alloc_size = offsetof(struct vmw_user_simple_resource, simple) + in vmw_simple_resource_create_ioctl()
153 usimple = kzalloc(alloc_size, GFP_KERNEL); in vmw_simple_resource_create_ioctl()
/drivers/cpufreq/
A Dcpufreq_stats.c214 unsigned int alloc_size; in cpufreq_stats_create_table() local
229 alloc_size = count * sizeof(int) + count * sizeof(u64); in cpufreq_stats_create_table()
231 alloc_size += count * count * sizeof(int); in cpufreq_stats_create_table()
234 stats->time_in_state = kzalloc(alloc_size, GFP_KERNEL); in cpufreq_stats_create_table()
/drivers/gpu/drm/xe/
A Dxe_guc_ads.c272 size_t total_size = 0, alloc_size, real_size; in calculate_golden_lrc_size() local
280 alloc_size = PAGE_ALIGN(real_size); in calculate_golden_lrc_size()
281 total_size += alloc_size; in calculate_golden_lrc_size()
510 size_t alloc_size, real_size; in guc_golden_lrc_init() local
527 alloc_size = PAGE_ALIGN(real_size); in guc_golden_lrc_init()
545 addr_ggtt += alloc_size; in guc_golden_lrc_init()
952 size_t total_size = 0, alloc_size, real_size; in guc_golden_lrc_populate() local
970 alloc_size = PAGE_ALIGN(real_size); in guc_golden_lrc_populate()
971 total_size += alloc_size; in guc_golden_lrc_populate()
976 offset += alloc_size; in guc_golden_lrc_populate()
/drivers/net/phy/
A Dmdio_bus_provider.c46 size_t alloc_size; in mdiobus_alloc_size() local
51 alloc_size = aligned_size + size; in mdiobus_alloc_size()
53 alloc_size = sizeof(*bus); in mdiobus_alloc_size()
55 bus = kzalloc(alloc_size, GFP_KERNEL); in mdiobus_alloc_size()
/drivers/of/
A Dof_reserved_mem.c76 size_t alloc_size, copy_size, memset_size; in alloc_reserved_mem_array() local
78 alloc_size = array_size(total_reserved_mem_cnt, sizeof(*new_array)); in alloc_reserved_mem_array()
79 if (alloc_size == SIZE_MAX) { in alloc_reserved_mem_array()
84 new_array = memblock_alloc(alloc_size, SMP_CACHE_BYTES); in alloc_reserved_mem_array()
92 memblock_free(new_array, alloc_size); in alloc_reserved_mem_array()
98 memset_size = alloc_size - copy_size; in alloc_reserved_mem_array()
/drivers/gpu/drm/ttm/tests/
A Dttm_mock_manager.c34 u64 lpfn, fpfn, alloc_size; in ttm_mock_manager_alloc() local
54 alloc_size = (uint64_t)mock_res->base.size; in ttm_mock_manager_alloc()
56 err = drm_buddy_alloc_blocks(mm, fpfn, lpfn, alloc_size, in ttm_mock_manager_alloc()
/drivers/gpu/drm/i915/gt/uc/
A Dintel_guc_ads.c533 u32 total_size = 0, alloc_size, real_size; in guc_prep_golden_context() local
568 alloc_size = PAGE_ALIGN(real_size); in guc_prep_golden_context()
569 total_size += alloc_size; in guc_prep_golden_context()
590 addr_ggtt += alloc_size; in guc_prep_golden_context()
623 u32 addr_ggtt, total_size = 0, alloc_size, real_size; in guc_init_golden_context() local
644 alloc_size = PAGE_ALIGN(real_size); in guc_init_golden_context()
645 total_size += alloc_size; in guc_init_golden_context()
660 addr_ggtt += alloc_size; in guc_init_golden_context()
664 offset += alloc_size; in guc_init_golden_context()
/drivers/usb/host/
A Dehci-dbg.c339 size_t alloc_size; member
482 size = buf->alloc_size; in fill_async_buffer()
524 size = buf->alloc_size; in fill_bandwidth_buffer()
640 size = buf->alloc_size; in fill_periodic_buffer()
736 return buf->alloc_size - size; in fill_periodic_buffer()
768 size = buf->alloc_size; in fill_registers_buffer()
912 return buf->alloc_size - size; in fill_registers_buffer()
926 buf->alloc_size = PAGE_SIZE; in alloc_buffer()
937 buf->output_buf = vmalloc(buf->alloc_size); in fill_buffer()
1013 buf->alloc_size = (sizeof(void *) == 4 ? 6 : 8) * PAGE_SIZE; in debug_periodic_open()
/drivers/net/ipa/
A Dgsi_trans.c90 size_t alloc_size; in gsi_trans_pool_init() local
107 alloc_size = size_mul(count + max_alloc - 1, size); in gsi_trans_pool_init()
108 alloc_size = kmalloc_size_roundup(alloc_size); in gsi_trans_pool_init()
109 virt = kzalloc(alloc_size, GFP_KERNEL); in gsi_trans_pool_init()
115 pool->count = alloc_size / size; in gsi_trans_pool_init()
/drivers/cxl/core/
A Dfeatures.c115 int retrieved, alloc_size, copy_feats; in get_supported_features() local
119 alloc_size = struct_size(mbox_out, ents, max_feats); in get_supported_features()
123 alloc_size = struct_size(mbox_out, ents, remain_feats); in get_supported_features()
129 mbox_in.count = cpu_to_le32(alloc_size); in get_supported_features()
131 memset(mbox_out, 0, alloc_size); in get_supported_features()
136 .size_out = alloc_size, in get_supported_features()
/drivers/mtd/parsers/
A Dcmdlinepart.c167 int alloc_size; in newpart() local
170 alloc_size = *num_parts * sizeof(struct mtd_partition) + in newpart()
173 parts = kzalloc(alloc_size, GFP_KERNEL); in newpart()
/drivers/i2c/busses/
A Di2c-cros-ec-tunnel.c182 int alloc_size; in ec_i2c_xfer() local
199 alloc_size = max(request_len, response_len); in ec_i2c_xfer()
200 msg = kmalloc(sizeof(*msg) + alloc_size, GFP_KERNEL); in ec_i2c_xfer()
/drivers/acpi/
A Dmipi-disco-img.c204 size_t alloc_size; in alloc_crs_csi2_swnodes() local
215 port_count, &alloc_size) || in alloc_crs_csi2_swnodes()
219 alloc_size, &alloc_size)) { in alloc_crs_csi2_swnodes()
226 swnodes = kmalloc(alloc_size, GFP_KERNEL); in alloc_crs_csi2_swnodes()
/drivers/dca/
A Ddca-core.c311 int alloc_size; in alloc_dca_provider() local
313 alloc_size = (sizeof(*dca) + priv_size); in alloc_dca_provider()
314 dca = kzalloc(alloc_size, GFP_KERNEL); in alloc_dca_provider()
/drivers/gpu/drm/amd/amdgpu/
A Damdgpu_ib.c135 uint32_t status = 0, alloc_size; in amdgpu_ib_schedule() local
189 alloc_size = ring->funcs->emit_frame_size + num_ibs * in amdgpu_ib_schedule()
192 r = amdgpu_ring_alloc(ring, alloc_size); in amdgpu_ib_schedule()

Completed in 51 milliseconds

1234