/linux-6.6.21/arch/x86/boot/compressed/ |
D | kaslr.c | 492 static void store_slot_info(struct mem_vector *region, unsigned long image_size) in store_slot_info() argument 500 slot_area.num = 1 + (region->size - image_size) / CONFIG_PHYSICAL_ALIGN; in store_slot_info() 511 process_gb_huge_pages(struct mem_vector *region, unsigned long image_size) in process_gb_huge_pages() argument 518 store_slot_info(region, image_size); in process_gb_huge_pages() 528 store_slot_info(region, image_size); in process_gb_huge_pages() 533 if (pud_start >= region->start + image_size) { in process_gb_huge_pages() 536 store_slot_info(&tmp, image_size); in process_gb_huge_pages() 549 if (region->start + region->size >= pud_end + image_size) { in process_gb_huge_pages() 552 store_slot_info(&tmp, image_size); in process_gb_huge_pages() 582 unsigned long image_size) in __process_mem_region() argument [all …]
|
/linux-6.6.21/arch/mips/boot/compressed/ |
D | decompress.c | 120 unsigned int image_size, dtb_size; in decompress_kernel() local 125 image_size = get_unaligned_le32((void *)__image_end - 4); in decompress_kernel() 128 image_size = ALIGN(image_size, STRUCT_ALIGNMENT); in decompress_kernel() 131 puthex(VMLINUX_LOAD_ADDRESS_ULL + image_size); in decompress_kernel() 135 memcpy((void *)VMLINUX_LOAD_ADDRESS_ULL + image_size, in decompress_kernel()
|
/linux-6.6.21/drivers/thunderbolt/ |
D | nvm.c | 92 unsigned int image_size, hdr_size; in intel_switch_nvm_validate() local 96 image_size = nvm->buf_data_size; in intel_switch_nvm_validate() 103 if (hdr_size + INTEL_NVM_DEVID + 2 >= image_size) in intel_switch_nvm_validate() 115 if (ds_size >= image_size) in intel_switch_nvm_validate() 131 nvm->buf_data_size = image_size - hdr_size; in intel_switch_nvm_validate() 226 unsigned int image_size, hdr_size; in intel_retimer_nvm_validate() local 230 image_size = nvm->buf_data_size; in intel_retimer_nvm_validate() 237 if (hdr_size + INTEL_NVM_DEVID + 2 >= image_size) in intel_retimer_nvm_validate() 249 if (ds_size >= image_size) in intel_retimer_nvm_validate() 262 nvm->buf_data_size = image_size - hdr_size; in intel_retimer_nvm_validate() [all …]
|
/linux-6.6.21/drivers/firmware/efi/libstub/ |
D | riscv-stub.c | 27 unsigned long *image_size, in handle_kernel_image() argument 40 *image_size = kernel_memsize; in handle_kernel_image() 41 *reserve_size = *image_size; in handle_kernel_image() 49 *image_size = 0; in handle_kernel_image()
|
D | relocate.c | 111 unsigned long image_size, in efi_relocate_kernel() argument 123 if (!image_addr || !image_size || !alloc_size) in efi_relocate_kernel() 125 if (alloc_size < image_size) in efi_relocate_kernel() 159 memcpy((void *)new_addr, (void *)cur_image_addr, image_size); in efi_relocate_kernel()
|
D | efi-stub-entry.c | 30 unsigned long image_size = 0; in efi_pe_entry() local 61 status = handle_kernel_image(&image_addr, &image_size, in efi_pe_entry() 74 efi_free(image_size, image_addr); in efi_pe_entry()
|
D | loongarch-stub.c | 18 unsigned long *image_size, in handle_kernel_image() argument 33 *image_size = kernel_asize; in handle_kernel_image()
|
D | arm32-stub.c | 80 unsigned long *image_size, in handle_kernel_image() argument 128 *image_size = 0; in handle_kernel_image()
|
/linux-6.6.21/scripts/ |
D | sorttable.c | 215 static void sort_relative_table(char *extab_image, int image_size) in sort_relative_table() argument 223 while (i < image_size) { in sort_relative_table() 229 qsort(extab_image, image_size / 8, 8, compare_relative_table); in sort_relative_table() 233 while (i < image_size) { in sort_relative_table() 240 static void sort_relative_table_with_data(char *extab_image, int image_size) in sort_relative_table_with_data() argument 244 while (i < image_size) { in sort_relative_table_with_data() 254 qsort(extab_image, image_size / 12, 12, compare_relative_table); in sort_relative_table_with_data() 257 while (i < image_size) { in sort_relative_table_with_data()
|
/linux-6.6.21/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 …]
|
/linux-6.6.21/Documentation/translations/zh_CN/arch/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 字节的空闲内存供内核使用。
|
/linux-6.6.21/drivers/accel/ivpu/ |
D | ivpu_fw.c | 112 u64 runtime_addr, image_load_addr, runtime_size, image_size; in ivpu_fw_parse() local 127 image_size = fw_hdr->image_size; in ivpu_fw_parse() 139 if (FW_FILE_IMAGE_OFFSET + image_size > fw->file->size) { in ivpu_fw_parse() 140 ivpu_err(vdev, "Invalid image size: %llu\n", image_size); in ivpu_fw_parse() 145 image_load_addr + image_size > runtime_addr + runtime_size) { in ivpu_fw_parse() 147 image_load_addr, image_size); in ivpu_fw_parse() 157 fw_hdr->entry_point >= image_load_addr + image_size) { in ivpu_fw_parse() 175 fw->image_size = image_size; in ivpu_fw_parse() 186 fw->file->size, fw->image_size, fw->runtime_size, fw->shave_nn_size); in ivpu_fw_parse() 320 u64 image_end_offset = fw->image_load_offset + fw->image_size; in ivpu_fw_load() [all …]
|
/linux-6.6.21/Documentation/translations/zh_TW/arch/arm64/ |
D | booting.txt | 100 u64 image_size; /* 映像實際大小, 小端模式 */ 120 - v3.17 之前,未明確指定 text_offset 的字節序。此時,image_size 爲零, 122 當 image_size 非零,text_offset 爲小端模式且是有效值,應被引導加載 123 程序使用。當 image_size 爲零,text_offset 可假定爲 0x80000。 138 - 當 image_size 爲零時,引導裝載程序應試圖在內核映像末尾之後儘可能 145 從映像起始地址算起,最少必須準備 image_size 字節的空閒內存供內核使用。
|
/linux-6.6.21/arch/s390/boot/ |
D | decompressor.c | 75 return max(decompress_offset + vmlinux.image_size, in mem_safe_offset() 76 vmlinux.default_lma + vmlinux.image_size + vmlinux.bss_size); in mem_safe_offset() 84 NULL, NULL, output, vmlinux.image_size, NULL, error); in decompress_kernel()
|
D | startup.c | 71 return vmlinux.default_lma + vmlinux.image_size + vmlinux.bss_size; in mem_safe_offset() 242 memset((void *)vmlinux_lma + vmlinux.image_size, 0, vmlinux.bss_size); in clear_bss_section() 322 vmlinux_lma = randomize_within_range(vmlinux.image_size + vmlinux.bss_size, in startup_kernel() 331 physmem_reserve(RR_VMLINUX, vmlinux_lma, vmlinux.image_size + vmlinux.bss_size); in startup_kernel() 335 memmove((void *)vmlinux_lma, img, vmlinux.image_size); in startup_kernel() 338 memmove((void *)vmlinux_lma, img, vmlinux.image_size); in startup_kernel() 339 memset(img, 0, vmlinux.image_size); in startup_kernel()
|
/linux-6.6.21/drivers/staging/vme_user/ |
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 …]
|
/linux-6.6.21/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()
|
/linux-6.6.21/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_uvd.c | 627 unsigned int image_size, tmp, min_dpb_size, num_dpb_buffer; in amdgpu_uvd_cs_msg_decode() local 630 image_size = width * height; in amdgpu_uvd_cs_msg_decode() 631 image_size += image_size / 2; in amdgpu_uvd_cs_msg_decode() 632 image_size = ALIGN(image_size, 1024); in amdgpu_uvd_cs_msg_decode() 667 min_dpb_size = image_size * num_dpb_buffer; in amdgpu_uvd_cs_msg_decode() 679 min_dpb_size = image_size * 3; in amdgpu_uvd_cs_msg_decode() 698 min_dpb_size = image_size * 3; in amdgpu_uvd_cs_msg_decode() 704 min_dpb_size = image_size * 3; in amdgpu_uvd_cs_msg_decode() 745 min_dpb_size = image_size * num_dpb_buffer; in amdgpu_uvd_cs_msg_decode() 766 image_size = (ALIGN(width, 16) * ALIGN(height, 16) * 3) / 2; in amdgpu_uvd_cs_msg_decode() [all …]
|
/linux-6.6.21/drivers/block/ |
D | rbd_types.h | 77 __le64 image_size; member 91 __le64 image_size; member
|
/linux-6.6.21/drivers/gpu/drm/radeon/ |
D | radeon_uvd.c | 367 unsigned image_size, tmp, min_dpb_size; in radeon_uvd_cs_msg_decode() local 369 image_size = width * height; in radeon_uvd_cs_msg_decode() 370 image_size += image_size / 2; in radeon_uvd_cs_msg_decode() 371 image_size = ALIGN(image_size, 1024); in radeon_uvd_cs_msg_decode() 377 min_dpb_size = image_size * 17; in radeon_uvd_cs_msg_decode() 389 min_dpb_size = image_size * 3; in radeon_uvd_cs_msg_decode() 408 min_dpb_size = image_size * 3; in radeon_uvd_cs_msg_decode() 414 min_dpb_size = image_size * 3; in radeon_uvd_cs_msg_decode() 440 buf_sizes[0x2] = image_size; in radeon_uvd_cs_msg_decode()
|
/linux-6.6.21/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()
|
/linux-6.6.21/Documentation/translations/zh_CN/riscv/ |
D | boot-image-header.rst | 28 u64 image_size; /* Effective Image size, little endian */ 68 - 对于引导加载程序加载内核映像来说,image_size成员对引导加载程序而言是必须的,否
|
/linux-6.6.21/drivers/gpu/drm/nouveau/include/nvfw/ |
D | ls.h | 9 u32 image_size; member 56 u32 image_size; member
|
/linux-6.6.21/arch/arm64/kernel/ |
D | kexec_image.c | 55 if (!h->image_size) in image_load() 83 kbuf.memsz = le64_to_cpu(h->image_size); in image_load()
|
/linux-6.6.21/drivers/gpu/drm/msm/disp/dpu1/ |
D | dpu_hw_wb.c | 126 u32 image_size, out_size, out_xy; in dpu_hw_wb_roi() local 128 image_size = (wb->dest.height << 16) | wb->dest.width; in dpu_hw_wb_roi() 132 DPU_REG_WRITE(c, WB_OUT_IMAGE_SIZE, image_size); in dpu_hw_wb_roi()
|