/kernel/linux/linux-5.10/arch/x86/boot/compressed/ |
D | kaslr.c | 496 static void store_slot_info(struct mem_vector *region, unsigned long image_size) in store_slot_info() argument 504 slot_area.num = 1 + (region->size - image_size) / CONFIG_PHYSICAL_ALIGN; in store_slot_info() 515 process_gb_huge_pages(struct mem_vector *region, unsigned long image_size) in process_gb_huge_pages() argument 522 store_slot_info(region, image_size); in process_gb_huge_pages() 532 store_slot_info(region, image_size); in process_gb_huge_pages() 537 if (pud_start >= region->start + image_size) { in process_gb_huge_pages() 540 store_slot_info(&tmp, image_size); in process_gb_huge_pages() 553 if (region->start + region->size >= pud_end + image_size) { in process_gb_huge_pages() 556 store_slot_info(&tmp, image_size); in process_gb_huge_pages() 586 unsigned long image_size) in __process_mem_region() argument [all …]
|
/kernel/linux/linux-5.10/scripts/ |
D | sorttable.c | 205 static void sort_relative_table(char *extab_image, int image_size) in sort_relative_table() argument 213 while (i < image_size) { in sort_relative_table() 219 qsort(extab_image, image_size / 8, 8, compare_relative_table); in sort_relative_table() 223 while (i < image_size) { in sort_relative_table() 230 static void x86_sort_relative_table(char *extab_image, int image_size) in x86_sort_relative_table() argument 234 while (i < image_size) { in x86_sort_relative_table() 244 qsort(extab_image, image_size / 12, 12, compare_relative_table); in x86_sort_relative_table() 247 while (i < image_size) { in x86_sort_relative_table() 258 static void s390_sort_relative_table(char *extab_image, int image_size) in s390_sort_relative_table() argument 262 for (i = 0; i < image_size; i += 16) { in s390_sort_relative_table() [all …]
|
/kernel/linux/linux-5.10/arch/riscv/net/ |
D | bpf_jit_core.c | 49 unsigned int image_size = 0; in bpf_int_jit_compile() local 76 image_size = sizeof(*ctx->insns) * ctx->ninsns; in bpf_int_jit_compile() 106 image_size = sizeof(*ctx->insns) * ctx->ninsns; in bpf_int_jit_compile() 108 bpf_jit_binary_alloc(image_size, in bpf_int_jit_compile() 147 bpf_jit_dump(prog->len, image_size, pass, ctx->insns); in bpf_int_jit_compile() 151 prog->jited_len = image_size; in bpf_int_jit_compile()
|
/kernel/linux/linux-5.10/drivers/firmware/efi/libstub/ |
D | riscv-stub.c | 80 unsigned long *image_size, in handle_kernel_image() argument 91 *image_size = kernel_size + (_end - _edata); in handle_kernel_image() 104 status = efi_relocate_kernel(image_addr, kernel_size, *image_size, in handle_kernel_image() 109 *image_size = 0; in handle_kernel_image()
|
D | relocate.c | 120 unsigned long image_size, in efi_relocate_kernel() argument 132 if (!image_addr || !image_size || !alloc_size) in efi_relocate_kernel() 134 if (alloc_size < image_size) in efi_relocate_kernel() 168 memcpy((void *)new_addr, (void *)cur_image_addr, image_size); in efi_relocate_kernel()
|
D | arm32-stub.c | 117 unsigned long *image_size, in handle_kernel_image() argument 164 *image_size = 0; in handle_kernel_image()
|
D | efi-stub.c | 123 unsigned long image_size = 0; in efi_pe_entry() local 197 status = handle_kernel_image(&image_addr, &image_size, in efi_pe_entry() 311 efi_free(image_size, image_addr); in efi_pe_entry()
|
/kernel/linux/linux-5.10/drivers/input/rmi4/ |
D | rmi_f34.c | 198 u32 image_size = le32_to_cpu(syn_fw->image_size); in rmi_f34_flash_firmware() local 203 f34->update_size = image_size + config_size; in rmi_f34_flash_firmware() 205 if (image_size) { in rmi_f34_flash_firmware() 213 image_size); in rmi_f34_flash_firmware() 224 if (!image_size) { in rmi_f34_flash_firmware() 234 ret = rmi_f34_write_config(f34, &syn_fw->data[image_size]); in rmi_f34_flash_firmware() 247 u32 image_size = le32_to_cpu(syn_fw->image_size); in rmi_f34_update_firmware() local 258 image_size, config_size); in rmi_f34_update_firmware() 266 if (image_size && image_size != f34->v5.fw_blocks * f34->v5.block_size) { in rmi_f34_update_firmware() 269 image_size, f34->v5.fw_blocks * f34->v5.block_size); in rmi_f34_update_firmware() [all …]
|
/kernel/linux/linux-5.10/Documentation/translations/zh_CN/arm64/ |
D | booting.txt | 96 u64 image_size; /* 映像实际大小, 小端模式 */ 116 - v3.17 之前,未明确指定 text_offset 的字节序。此时,image_size 为零, 118 当 image_size 非零,text_offset 为小端模式且是有效值,应被引导加载 119 程序使用。当 image_size 为零,text_offset 可假定为 0x80000。 134 - 当 image_size 为零时,引导装载程序应试图在内核映像末尾之后尽可能 141 从映像起始地址算起,最少必须准备 image_size 字节的空闲内存供内核使用。
|
/kernel/linux/linux-5.10/drivers/staging/vme/devices/ |
D | vme_user.c | 180 size_t image_size; in vme_user_read() local 188 image_size = vme_get_size(image[minor].resource); in vme_user_read() 191 if ((*ppos < 0) || (*ppos > (image_size - 1))) { in vme_user_read() 197 if (*ppos + count > image_size) in vme_user_read() 198 count = image_size - *ppos; in vme_user_read() 223 size_t image_size; in vme_user_write() local 230 image_size = vme_get_size(image[minor].resource); in vme_user_write() 233 if ((*ppos < 0) || (*ppos > (image_size - 1))) { in vme_user_write() 239 if (*ppos + count > image_size) in vme_user_write() 240 count = image_size - *ppos; in vme_user_write() [all …]
|
/kernel/linux/linux-5.10/arch/mips/boot/compressed/ |
D | decompress.c | 118 unsigned int image_size, dtb_size; in decompress_kernel() local 123 image_size = get_unaligned_le32((void *)&__image_end - 4); in decompress_kernel() 126 memcpy((void *)VMLINUX_LOAD_ADDRESS_ULL + image_size, in decompress_kernel()
|
/kernel/linux/linux-5.10/arch/s390/boot/ |
D | startup.c | 64 return vmlinux.default_lma + vmlinux.image_size + vmlinux.bss_size; in mem_safe_offset() 126 memset((void *)vmlinux.default_lma + vmlinux.image_size, 0, vmlinux.bss_size); in clear_bss_section() 164 memmove((void *)vmlinux.default_lma, img, vmlinux.image_size); in startup_kernel() 166 memcpy((void *)vmlinux.default_lma, img, vmlinux.image_size); in startup_kernel() 181 memset(img, 0, vmlinux.image_size); in startup_kernel()
|
/kernel/linux/linux-5.10/arch/arm/boot/compressed/ |
D | kaslr.c | 22 u32 image_size; member 170 pa + regions->image_size, in count_suitable_regions() 324 u32 kaslr_early_init(u32 *kaslr_offset, u32 image_base, u32 image_size, in kaslr_early_init() argument 358 regions.image_size = image_base % SZ_128M + round_up(image_size, SZ_2M); in kaslr_early_init() 417 regions.pa_end = min(regions.pa_end, mem_fdt) - regions.image_size; in kaslr_early_init() 419 regions.pa_end = regions.pa_end - regions.image_size; in kaslr_early_init() 421 puthex32(regions.image_size); in kaslr_early_init()
|
/kernel/linux/linux-5.10/drivers/thunderbolt/ |
D | retimer.c | 103 unsigned int image_size, hdr_size; in tb_retimer_nvm_validate_and_write() local 107 image_size = rt->nvm->buf_data_size; in tb_retimer_nvm_validate_and_write() 108 if (image_size < NVM_MIN_SIZE || image_size > NVM_MAX_SIZE) in tb_retimer_nvm_validate_and_write() 116 if (hdr_size + NVM_DEVID + 2 >= image_size) in tb_retimer_nvm_validate_and_write() 128 if (ds_size >= image_size) in tb_retimer_nvm_validate_and_write() 141 image_size -= hdr_size; in tb_retimer_nvm_validate_and_write() 144 image_size); in tb_retimer_nvm_validate_and_write()
|
/kernel/linux/linux-5.10/arch/powerpc/kernel/ |
D | rtas_flash.c | 167 unsigned long block_size, image_size; in flash_list_valid() local 170 image_size = 0; in flash_list_valid() 180 image_size += block_size; in flash_list_valid() 184 if (image_size < (256 << 10)) { in flash_list_valid() 185 if (image_size < 2) in flash_list_valid() 189 …k(KERN_INFO "FLASH: flash image with %ld bytes stored for hardware flash on reboot\n", image_size); in flash_list_valid() 559 unsigned long image_size; in rtas_flash_firmware() local 606 image_size = 0; in rtas_flash_firmware() 611 image_size += f->blocks[i].length; in rtas_flash_firmware() 625 printk(KERN_ALERT "FLASH: flash image is %ld bytes\n", image_size); in rtas_flash_firmware()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_uvd.c | 567 unsigned image_size, tmp, min_dpb_size, num_dpb_buffer; in amdgpu_uvd_cs_msg_decode() local 570 image_size = width * height; in amdgpu_uvd_cs_msg_decode() 571 image_size += image_size / 2; in amdgpu_uvd_cs_msg_decode() 572 image_size = ALIGN(image_size, 1024); in amdgpu_uvd_cs_msg_decode() 607 min_dpb_size = image_size * num_dpb_buffer; in amdgpu_uvd_cs_msg_decode() 619 min_dpb_size = image_size * 3; in amdgpu_uvd_cs_msg_decode() 638 min_dpb_size = image_size * 3; in amdgpu_uvd_cs_msg_decode() 644 min_dpb_size = image_size * 3; in amdgpu_uvd_cs_msg_decode() 685 min_dpb_size = image_size * num_dpb_buffer; in amdgpu_uvd_cs_msg_decode() 706 image_size = (ALIGN(width, 16) * ALIGN(height, 16) * 3) / 2; in amdgpu_uvd_cs_msg_decode() [all …]
|
/kernel/linux/linux-5.10/arch/s390/boot/compressed/ |
D | decompressor.c | 73 return max(decompress_offset + vmlinux.image_size, in mem_safe_offset() 74 vmlinux.default_lma + vmlinux.image_size + vmlinux.bss_size); in mem_safe_offset()
|
D | decompressor.h | 16 unsigned long image_size; /* does not include .bss */ member
|
/kernel/linux/linux-5.10/drivers/block/ |
D | rbd_types.h | 77 __le64 image_size; member 91 __le64 image_size; member
|
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/ |
D | radeon_uvd.c | 365 unsigned image_size, tmp, min_dpb_size; in radeon_uvd_cs_msg_decode() local 367 image_size = width * height; in radeon_uvd_cs_msg_decode() 368 image_size += image_size / 2; in radeon_uvd_cs_msg_decode() 369 image_size = ALIGN(image_size, 1024); in radeon_uvd_cs_msg_decode() 375 min_dpb_size = image_size * 17; in radeon_uvd_cs_msg_decode() 387 min_dpb_size = image_size * 3; in radeon_uvd_cs_msg_decode() 406 min_dpb_size = image_size * 3; in radeon_uvd_cs_msg_decode() 412 min_dpb_size = image_size * 3; in radeon_uvd_cs_msg_decode() 438 buf_sizes[0x2] = image_size; in radeon_uvd_cs_msg_decode()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
D | image.c | 52 image->size = pcir.image_size; in nvbios_imagen() 59 image->size = npde.image_size; in nvbios_imagen()
|
/kernel/linux/linux-5.10/arch/arm64/kernel/ |
D | kexec_image.c | 56 if (!h->image_size) in image_load() 84 kbuf.memsz = le64_to_cpu(h->image_size); in image_load()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/ |
D | npde.h | 5 u32 image_size; member
|
D | pcir.h | 8 u32 image_size; member
|
/kernel/linux/linux-5.10/drivers/nfc/s3fwrn5/ |
D | firmware.c | 424 u32 image_size, off; in s3fwrn5_fw_download() local 427 image_size = fw_info->sector_size * fw->image_sectors; in s3fwrn5_fw_download() 439 ret = crypto_shash_tfm_digest(tfm, fw->image, image_size, hash_data); in s3fwrn5_fw_download() 461 for (off = 0; off < image_size; off += fw_info->sector_size) { in s3fwrn5_fw_download()
|