/linux-master/drivers/firmware/efi/libstub/ |
H A D | zboot.c | 40 static unsigned long alloc_preferred_address(unsigned long alloc_size) argument 46 alloc_size / EFI_PAGE_SIZE, &efi_addr) == EFI_SUCCESS) 53 unsigned long alloc_size) 68 unsigned long image_base, alloc_size; local 93 alloc_size = round_up(get_unaligned_le32(_gzdata_end - 4), 98 image_base = alloc_preferred_address(alloc_size); 121 status = efi_random_alloc(alloc_size, min_kimg_align, &image_base, 131 (void *)image_base, alloc_size, NULL, error); 138 efi_cache_sync_image(image_base, alloc_size); 143 efi_free(alloc_size, image_bas 52 efi_cache_sync_image(unsigned long image_base, unsigned long alloc_size) argument [all...] |
H A D | relocate.c | 93 * @alloc_size: minimum size of memory to allocate, must be greater or 112 unsigned long alloc_size, 123 if (!image_addr || !image_size || !alloc_size) 125 if (alloc_size < image_size) 138 nr_pages = round_up(alloc_size, EFI_ALLOC_ALIGN) / EFI_PAGE_SIZE; 147 status = efi_low_alloc_above(alloc_size, alignment, &new_addr, 110 efi_relocate_kernel(unsigned long *image_addr, unsigned long image_size, unsigned long alloc_size, unsigned long preferred_addr, unsigned long alignment, unsigned long min_addr) argument
|
H A D | arm32-stub.c | 87 int alloc_size = MAX_UNCOMP_KERNEL_SIZE + EFI_PHYS_ALIGN; local 97 status = efi_low_alloc_above(alloc_size, EFI_PAGE_SIZE, &alloc_base, 0x0); 122 alloc_size -= *reserve_addr - alloc_base; 125 (alloc_size - MAX_UNCOMP_KERNEL_SIZE) / EFI_PAGE_SIZE);
|
H A D | file.c | 198 unsigned long alloc_size; local 211 alloc_addr = alloc_size = 0; 243 * alloc_size == 0 in that case. 245 if (round_up(alloc_size + size, EFI_ALLOC_ALIGN) > 246 round_up(alloc_size, EFI_ALLOC_ALIGN)) { 251 status = efi_allocate_pages(alloc_size + size, 255 status = efi_allocate_pages(alloc_size + size, 270 memcpy((void *)alloc_addr, (void *)old_addr, alloc_size); 271 efi_free(alloc_size, old_addr); 275 addr = (void *)alloc_addr + alloc_size; [all...] |
H A D | arm64.c | 95 unsigned long alloc_size) 117 efi_remap_image(image_base, alloc_size, code_size); 94 efi_cache_sync_image(unsigned long image_base, unsigned long alloc_size) argument
|
/linux-master/tools/testing/selftests/mm/ |
H A D | mlock-random-test.c | 119 * With allocated memory chunk [p, p + alloc_size), this 124 * The memory region size alloc_size is within the rlimit. 132 static void test_mlock_within_limit(char *p, int alloc_size) argument 141 if (cur.rlim_cur < alloc_size) 142 ksft_exit_fail_msg("alloc_size[%d] < %u rlimit,lead to mlock failure\n", 143 alloc_size, (unsigned int)cur.rlim_cur); 149 * - choose lock_size randomly but lock_size < alloc_size 151 * < p+alloc_size 154 int lock_size = rand() % alloc_size; 155 int start_offset = rand() % (alloc_size 199 test_mlock_outof_limit(char *p, int alloc_size) argument [all...] |
/linux-master/tools/testing/selftests/powerpc/stringloops/ |
H A D | memcmp.c | 76 unsigned long i, comp_size, alloc_size; local 81 alloc_size = comp_size + MAX_OFFSET_DIFF_S1_S2; 89 s1 = p + MAP_SIZE - alloc_size; 90 s2 = p + 3 * MAP_SIZE - alloc_size; 104 for (j = 0; j < alloc_size; j++) 130 for (j = 0; j < alloc_size; j++)
|
/linux-master/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum1_kvdl.c | 35 unsigned int alloc_size; member in struct:mlxsw_sp1_kvdl_part_info 49 .alloc_size = MLXSW_SP1_KVDL_##id##_ALLOC_SIZE, \ 72 unsigned int alloc_size) 79 if (alloc_size <= part->info.alloc_size && 81 part->info.alloc_size <= min_part->info.alloc_size)) 108 return info->start_index + entry_index * info->alloc_size; 115 return (kvdl_index - info->start_index) / info->alloc_size; 125 info->alloc_size; 71 mlxsw_sp1_kvdl_alloc_size_part(struct mlxsw_sp1_kvdl *kvdl, unsigned int alloc_size) argument [all...] |
/linux-master/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_simple_resource.c | 147 size_t alloc_size; local 150 alloc_size = offsetof(struct vmw_user_simple_resource, simple) + 153 usimple = kzalloc(alloc_size, GFP_KERNEL);
|
/linux-master/kernel/dma/ |
H A D | swiotlb.c | 69 * @alloc_size: Size of the allocated buffer. 77 size_t alloc_size; member in struct:io_tlb_slot 292 mem->slots[i].alloc_size = 0; 360 size_t alloc_size; local 398 alloc_size = PAGE_ALIGN(array_size(sizeof(*mem->slots), nslabs)); 399 mem->slots = memblock_alloc(alloc_size, PAGE_SIZE); 402 __func__, alloc_size, PAGE_SIZE); 863 size_t alloc_size = mem->slots[index].alloc_size; local 885 alloc_size 1015 swiotlb_search_pool_area(struct device *dev, struct io_tlb_pool *pool, int area_index, phys_addr_t orig_addr, size_t alloc_size, unsigned int alloc_align_mask) argument 1140 swiotlb_search_area(struct device *dev, int start_cpu, int cpu_offset, phys_addr_t orig_addr, size_t alloc_size, unsigned int alloc_align_mask, struct io_tlb_pool **retpool) argument 1180 swiotlb_find_slots(struct device *dev, phys_addr_t orig_addr, size_t alloc_size, unsigned int alloc_align_mask, struct io_tlb_pool **retpool) argument 1256 swiotlb_find_slots(struct device *dev, phys_addr_t orig_addr, size_t alloc_size, unsigned int alloc_align_mask, struct io_tlb_pool **retpool) argument 1343 swiotlb_tbl_map_single(struct device *dev, phys_addr_t orig_addr, size_t mapping_size, size_t alloc_size, unsigned int alloc_align_mask, enum dma_data_direction dir, unsigned long attrs) argument [all...] |
/linux-master/drivers/vfio/pci/pds/ |
H A D | lm.h | 19 u64 alloc_size; /* Total allocated size. Always >= len */ member in struct:pds_vfio_lm_file
|
/linux-master/lib/ |
H A D | fortify_kunit.c | 185 #define TEST_kmalloc(checker, expected_size, alloc_size) do { \ 190 checker(expected_size, kmalloc(alloc_size, gfp), \ 193 kmalloc_node(alloc_size, gfp, NUMA_NO_NODE), \ 195 checker(expected_size, kzalloc(alloc_size, gfp), \ 198 kzalloc_node(alloc_size, gfp, NUMA_NO_NODE), \ 200 checker(expected_size, kcalloc(1, alloc_size, gfp), \ 202 checker(expected_size, kcalloc(alloc_size, 1, gfp), \ 205 kcalloc_node(1, alloc_size, gfp, NUMA_NO_NODE), \ 208 kcalloc_node(alloc_size, 1, gfp, NUMA_NO_NODE), \ 210 checker(expected_size, kmalloc_array(1, alloc_size, gf [all...] |
H A D | scatterlist.c | 207 unsigned int alloc_size = num_ents; local 216 if (alloc_size > curr_max_ents) { 218 alloc_size = curr_max_ents; 219 sg_size = alloc_size - 1; 221 sg_size = alloc_size; 229 free_fn(sgl, alloc_size); 307 unsigned int sg_size, alloc_size = left; local 309 if (alloc_size > curr_max_ents) { 310 alloc_size = curr_max_ents; 311 sg_size = alloc_size 392 unsigned int alloc_size; local [all...] |
/linux-master/sound/soc/sof/ |
H A D | sof-client-ipc-kernel-injector.c | 98 size_t alloc_size; local 106 alloc_size = priv->max_msg_size; 107 priv->kernel_buffer = devm_kmalloc(dev, alloc_size, GFP_KERNEL);
|
H A D | sof-client-ipc-msg-injector.c | 259 size_t alloc_size; local 268 alloc_size = priv->max_msg_size; 271 alloc_size += sizeof(struct sof_ipc4_msg); 273 priv->tx_buffer = devm_kmalloc(dev, alloc_size, GFP_KERNEL); 274 priv->rx_buffer = devm_kzalloc(dev, alloc_size, GFP_KERNEL);
|
/linux-master/fs/smb/server/ |
H A D | xattr.h | 43 __u64 alloc_size; member in struct:xattr_dos_attrib
|
/linux-master/drivers/cpufreq/ |
H A D | cpufreq_stats.c | 214 unsigned int alloc_size; local 229 alloc_size = count * sizeof(int) + count * sizeof(u64); 231 alloc_size += count * count * sizeof(int); 234 stats->time_in_state = kzalloc(alloc_size, GFP_KERNEL);
|
/linux-master/fs/ocfs2/ |
H A D | move_extents.c | 731 static void ocfs2_calc_extent_defrag_len(u32 *alloc_size, u32 *len_defraged, argument 734 if ((*alloc_size + *len_defraged) < threshold) { 738 *len_defraged += *alloc_size; 753 *alloc_size = threshold - *len_defraged; 762 u32 cpos, phys_cpos, move_start, len_to_move, alloc_size; local 819 ret = ocfs2_get_clusters(inode, cpos, &phys_cpos, &alloc_size, 826 if (alloc_size > len_to_move) 827 alloc_size = len_to_move; 843 ocfs2_calc_extent_defrag_len(&alloc_size, &len_defraged, 854 "alloc_size [all...] |
/linux-master/drivers/gpu/drm/imagination/ |
H A D | pvr_fw_info.h | 115 /** @alloc_size: Allocation size of section, in bytes. */ 116 u32 alloc_size; member in struct:pvr_fw_layout_entry
|
/linux-master/mm/kasan/ |
H A D | report.c | 306 } else if (access_addr >= object_addr + info->alloc_size) { 308 rel_bytes = access_addr - (object_addr + info->alloc_size); 330 rel_bytes, rel_type, region_state, info->alloc_size, 331 (void *)object_addr, (void *)(object_addr + info->alloc_size)); 512 info->alloc_size = kasan_get_alloc_size(info->object, info->cache); 514 if (!info->alloc_size) 515 info->alloc_size = info->cache->object_size;
|
/linux-master/mm/ |
H A D | percpu.c | 1351 size_t alloc_size; local 1360 alloc_size = struct_size(chunk, populated, 1362 chunk = memblock_alloc(alloc_size, SMP_CACHE_BYTES); 1365 alloc_size); 1376 alloc_size = BITS_TO_LONGS(region_bits) * sizeof(chunk->alloc_map[0]); 1377 chunk->alloc_map = memblock_alloc(alloc_size, SMP_CACHE_BYTES); 1380 alloc_size); 1382 alloc_size = 1384 chunk->bound_map = memblock_alloc(alloc_size, SMP_CACHE_BYTES); 1387 alloc_size); 2620 size_t alloc_size; local 2874 size_t size_sum, min_unit_size, alloc_size; local [all...] |
/linux-master/fs/ntfs3/ |
H A D | attrib.c | 454 old_alloc = le64_to_cpu(attr_b->nres.alloc_size); 519 * - update attr_b->nres.data_size/attr_b->nres.alloc_size 599 attr_b->nres.alloc_size = cpu_to_le64(new_alloc_tmp); 612 attr_b->nres.data_size = attr_b->nres.alloc_size; 622 attr_b->nres.data_size = attr_b->nres.alloc_size; 685 attr_b->nres.alloc_size = cpu_to_le64(old_size); 696 * - update attr_b->nres.data_size/attr_b->nres.alloc_size 731 attr_b->nres.alloc_size = cpu_to_le64(new_alloc_tmp); 742 attr_b->nres.alloc_size; 746 attr_b->nres.alloc_size; 1857 u64 valid_size, data_size, alloc_size, total_size; local 2114 u64 total_size, alloc_size; local 2332 u64 data_size, alloc_size; local [all...] |
/linux-master/net/openvswitch/ |
H A D | vport.c | 126 size_t alloc_size; local 129 alloc_size = sizeof(struct vport); 131 alloc_size = ALIGN(alloc_size, VPORT_ALIGN); 132 alloc_size += priv_size; 135 vport = kzalloc(alloc_size, GFP_KERNEL);
|
/linux-master/arch/powerpc/kernel/ |
H A D | eeh_pe.c | 50 size_t alloc_size; local 52 alloc_size = sizeof(struct eeh_pe); 54 alloc_size = ALIGN(alloc_size, cache_line_size()); 55 alloc_size += eeh_pe_aux_size; 59 pe = kzalloc(alloc_size, GFP_KERNEL);
|
/linux-master/net/bluetooth/ |
H A D | coredump.c | 59 hdev->dump.alloc_size, state); 92 hdev->dump.alloc_size = 0; 115 hdev->dump.alloc_size = size; 257 hdev->dump.alloc_size); 276 hdev->dump.alloc_size); 392 hdev->dump.alloc_size);
|