| /linux/arch/x86/kernel/ |
| A D | machine_kexec_32.c | 46 image->arch.pgd = NULL; in machine_kexec_free_page_tables() 49 image->arch.pmd0 = NULL; in machine_kexec_free_page_tables() 51 image->arch.pmd1 = NULL; in machine_kexec_free_page_tables() 54 image->arch.pte0 = NULL; in machine_kexec_free_page_tables() 69 if (!image->arch.pgd || in machine_kexec_alloc_page_tables() 71 !image->arch.pmd0 || !image->arch.pmd1 || in machine_kexec_alloc_page_tables() 73 !image->arch.pte0 || !image->arch.pte1) { in machine_kexec_alloc_page_tables() 110 image->arch.pgd, pmd, image->arch.pte0, in machine_kexec_prepare_page_tables() 116 image->arch.pgd, pmd, image->arch.pte1, in machine_kexec_prepare_page_tables() 228 image->start = relocate_kernel_ptr((unsigned long)image->head, in machine_kexec() [all …]
|
| A D | machine_kexec_64.c | 140 image->arch.p4d = NULL; in free_transition_pgtable() 142 image->arch.pud = NULL; in free_transition_pgtable() 144 image->arch.pmd = NULL; in free_transition_pgtable() 146 image->arch.pte = NULL; in free_transition_pgtable() 166 image->arch.p4d = p4d; in init_transition_pgtable() 174 image->arch.pud = pud; in init_transition_pgtable() 182 image->arch.pmd = pmd; in init_transition_pgtable() 190 image->arch.pte = pte; in init_transition_pgtable() 223 .context = image, in init_pgtable() 391 image->start = relocate_kernel((unsigned long)image->head, in machine_kexec() [all …]
|
| A D | crash.c | 287 start = image->elf_load_addr; in memmap_exclude_ranges() 364 struct kexec_buf kbuf = { .image = image, .buf_min = 0, in crash_load_segments() 372 image->elf_headers = kbuf.buffer; in crash_load_segments() 373 image->elf_headers_sz = kbuf.bufsz; in crash_load_segments() 390 image->elfcorehdr_index = image->nr_segments; in crash_load_segments() 404 image->elf_load_addr = kbuf.mem; in crash_load_segments() 421 if (image->file_mode) in arch_crash_hotplug_support() 470 if ((image->file_mode || image->elfcorehdr_updated) && in arch_crash_handle_hotplug_event() 488 mem = image->segment[image->elfcorehdr_index].mem; in arch_crash_handle_hotplug_event() 489 memsz = image->segment[image->elfcorehdr_index].memsz; in arch_crash_handle_hotplug_event() [all …]
|
| /linux/kernel/ |
| A D | kexec_core.c | 169 if (image->segment[i].bufsz > image->segment[i].memsz) in sanity_check_segment_list() 221 image = kzalloc(sizeof(*image), GFP_KERNEL); in do_kimage_alloc_init() 222 if (!image) in do_kimage_alloc_init() 225 image->head = 0; in do_kimage_alloc_init() 226 image->entry = &image->head; in do_kimage_alloc_init() 227 image->last_entry = &image->head; in do_kimage_alloc_init() 246 return image; in do_kimage_alloc_init() 477 if (image->entry == image->last_entry) { in kimage_add_entry() 492 image->entry++; in kimage_add_entry() 551 if (!image) in kimage_free() [all …]
|
| A D | kexec_file.c | 70 if (!image->fops || !image->fops->load) in kexec_image_load_default() 73 return image->fops->load(image, image->kernel_buf, in kexec_image_load_default() 74 image->kernel_buf_len, image->initrd_buf, in kexec_image_load_default() 75 image->initrd_buf_len, image->cmdline_buf, in kexec_image_load_default() 81 if (!image->fops || !image->fops->cleanup) in kexec_image_post_load_cleanup_default() 151 if (!image->fops || !image->fops->verify_sig) { in kexec_image_verify_sig() 208 image->kernel_buf, image->kernel_buf_len); in kimage_file_prepare_segments() 421 image->type, image->start, image->head, flags); in SYSCALL_DEFINE5() 428 image = xchg(dest_image, image); in SYSCALL_DEFINE5() 443 struct kimage *image = kbuf->image; in locate_mem_hole_top_down() local [all …]
|
| A D | kexec.c | 28 struct kimage *image; in kimage_alloc_init() local 42 if (!image) in kimage_alloc_init() 45 image->start = entry; in kimage_alloc_init() 67 image->control_code_page = kimage_alloc_control_pages(image, in kimage_alloc_init() 75 image->swap_page = kimage_alloc_control_pages(image, 0); in kimage_alloc_init() 76 if (!image->swap_page) { in kimage_alloc_init() 82 *rimage = image; in kimage_alloc_init() 87 kfree(image); in kimage_alloc_init() 155 ret = kimage_load_segment(image, &image->segment[i]); in do_kexec_load() 167 image = xchg(dest_image, image); in do_kexec_load() [all …]
|
| /linux/drivers/staging/vme_user/ |
| A D | vme_user.c | 130 copied = vme_master_read(image[minor].resource, image[minor].kern_buf, in resource_to_user() 150 return vme_master_write(image[minor].resource, image[minor].kern_buf, in resource_from_user() 539 image[i].pci_buf = 0; in vme_user_probe() 541 image[i].device = NULL; in vme_user_probe() 581 image[i].kern_buf = vme_alloc_consistent(image[i].resource, in vme_user_probe() 587 image[i].pci_buf = 0; in vme_user_probe() 610 image[i].kern_buf = kmalloc(image[i].size_buf, GFP_KERNEL); in vme_user_probe() 680 vme_free_consistent(image[i].resource, image[i].size_buf, in vme_user_probe() 681 image[i].kern_buf, image[i].pci_buf); in vme_user_probe() 711 vme_free_consistent(image[i].resource, image[i].size_buf, in vme_user_remove() [all …]
|
| /linux/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
| A D | image.c | 46 image->base, data); in nvbios_imagen() 52 image->size = pcir.image_size; in nvbios_imagen() 53 image->type = pcir.image_type; in nvbios_imagen() 54 image->last = pcir.last; in nvbios_imagen() 56 if (image->type != 0x70) { in nvbios_imagen() 59 image->size = npde.image_size; in nvbios_imagen() 60 image->last = npde.last; in nvbios_imagen() 62 image->last = true; in nvbios_imagen() 72 memset(image, 0x00, sizeof(*image)); in nvbios_image() 75 image->base += image->size; in nvbios_image() [all …]
|
| /linux/drivers/video/fbdev/core/ |
| A D | fb_logo.c | 218 image->dx = info->var.xres - image->width - image->dx; in fb_rotate_logo() 219 image->dy = info->var.yres - image->height - image->dy; in fb_rotate_logo() 223 swap(image->width, image->height); in fb_rotate_logo() 225 image->dy = image->dx; in fb_rotate_logo() 226 image->dx = info->var.xres - image->width - tmp; in fb_rotate_logo() 230 swap(image->width, image->height); in fb_rotate_logo() 232 image->dx = image->dy; in fb_rotate_logo() 252 image->dx += image->width + 8; in fb_do_show_logo() 259 image->dx -= image->width + 8; in fb_do_show_logo() 266 image->dy += image->height + 8; in fb_do_show_logo() [all …]
|
| A D | bitblit.c | 97 image->height); in bit_putcs_aligned() 157 image.fg_color = fg; in bit_putcs() 158 image.bg_color = bg; in bit_putcs() 162 image.depth = 1; in bit_putcs() 182 image.data = dst; in bit_putcs() 354 cursor.image.fg_color = ops->cursor_state.image.fg_color; in bit_cursor() 355 cursor.image.bg_color = ops->cursor_state.image.bg_color; in bit_cursor() 356 cursor.image.dx = ops->cursor_state.image.dx; in bit_cursor() 357 cursor.image.dy = ops->cursor_state.image.dy; in bit_cursor() 358 cursor.image.height = ops->cursor_state.image.height; in bit_cursor() [all …]
|
| A D | fbcon_ud.c | 105 image->height); in ud_putcs_aligned() 171 image.fg_color = fg; in ud_putcs() 176 image.depth = 1; in ud_putcs() 198 image.data = dst; in ud_putcs() 208 image.dx += image.width; in ud_putcs() 378 cursor.image.fg_color = ops->cursor_state.image.fg_color; in ud_cursor() 379 cursor.image.bg_color = ops->cursor_state.image.bg_color; in ud_cursor() 380 cursor.image.dx = ops->cursor_state.image.dx; in ud_cursor() 381 cursor.image.dy = ops->cursor_state.image.dy; in ud_cursor() 382 cursor.image.height = ops->cursor_state.image.height; in ud_cursor() [all …]
|
| A D | fbcon_ccw.c | 148 image.fg_color = fg; in ccw_putcs() 149 image.bg_color = bg; in ccw_putcs() 153 image.depth = 1; in ccw_putcs() 175 image.data = dst; in ccw_putcs() 178 image.dy += image.height; in ccw_putcs() 355 cursor.image.fg_color = ops->cursor_state.image.fg_color; in ccw_cursor() 356 cursor.image.bg_color = ops->cursor_state.image.bg_color; in ccw_cursor() 357 cursor.image.dx = ops->cursor_state.image.dx; in ccw_cursor() 358 cursor.image.dy = ops->cursor_state.image.dy; in ccw_cursor() 359 cursor.image.height = ops->cursor_state.image.height; in ccw_cursor() [all …]
|
| A D | fbcon_cw.c | 133 image.fg_color = fg; in cw_putcs() 134 image.bg_color = bg; in cw_putcs() 138 image.depth = 1; in cw_putcs() 158 image.data = dst; in cw_putcs() 161 image.dy += image.height; in cw_putcs() 338 cursor.image.fg_color = ops->cursor_state.image.fg_color; in cw_cursor() 339 cursor.image.bg_color = ops->cursor_state.image.bg_color; in cw_cursor() 340 cursor.image.dx = ops->cursor_state.image.dx; in cw_cursor() 341 cursor.image.dy = ops->cursor_state.image.dy; in cw_cursor() 342 cursor.image.height = ops->cursor_state.image.height; in cw_cursor() [all …]
|
| A D | softcursor.c | 28 struct fb_image *image; in soft_cursor() local 34 s_pitch = (cursor->image.width + 7) >> 3; in soft_cursor() 35 dsize = s_pitch * cursor->image.height; in soft_cursor() 49 image = (struct fb_image *)ops->cursor_src; in soft_cursor() 50 *image = cursor->image; in soft_cursor() 53 size = d_pitch * image->height + buf_align; in soft_cursor() 61 src[i] = image->data[i] ^ cursor->mask[i]; in soft_cursor() 66 src[i] = image->data[i] & cursor->mask[i]; in soft_cursor() 70 memcpy(src, image->data, dsize); in soft_cursor() 73 image->data = dst; in soft_cursor() [all …]
|
| /linux/arch/x86/entry/vdso/ |
| A D | vma.c | 55 apply_alternatives((struct alt_instr *)(image->data + image->alt), in init_vdso_image() 56 (struct alt_instr *)(image->data + image->alt + in init_vdso_image() 57 image->alt_len)); in init_vdso_image() 70 if (!image || (vmf->pgoff << PAGE_SHIFT) >= image->size) in vdso_fault() 100 vdso_fix_landing(image, new_vma); in vdso_mremap() 138 if (!image) in vvar_fault() 142 image->sym_vvar_start; in vvar_fault() 237 image->size - image->sym_vvar_start, 0, 0); in map_vdso() 250 image->size, in map_vdso() 262 -image->sym_vvar_start, in map_vdso() [all …]
|
| /linux/arch/s390/kernel/ |
| A D | machine_kexec_file.c | 135 buf.image = image; in kexec_file_add_purgatory() 158 buf.image = image; in kexec_file_add_initrd() 160 buf.buffer = image->initrd_buf; in kexec_file_add_initrd() 192 buf.image = image; in kexec_file_add_ipl_report() 255 ret = add_kernel(image, &data); in kexec_file_add_components() 277 image->cmdline_buf_len); in kexec_file_add_components() 286 if (image->initrd_buf) { in kexec_file_add_components() 298 restart_psw += image->start; in kexec_file_add_components() 300 image->start = 0; in kexec_file_add_components() 385 vfree(image->arch.ipl_buf); in arch_kimage_file_post_load_cleanup() [all …]
|
| A D | machine_kexec.c | 48 struct kimage *image = data; in __do_machine_kdump() local 52 purgatory = (purgatory_t)image->start; in __do_machine_kdump() 114 store_status(__do_machine_kdump, image); in __machine_kdump() 194 if (image->type == KEXEC_TYPE_CRASH) in machine_kexec_prepare() 198 if (image->type != KEXEC_TYPE_DEFAULT) in machine_kexec_prepare() 228 struct kimage *image = data; in __do_machine_kexec() local 231 entry = virt_to_phys(&image->head); in __do_machine_kexec() 239 unsigned long, image->start, in __do_machine_kexec() 265 void machine_kexec(struct kimage *image) in machine_kexec() argument 267 if (image->type == KEXEC_TYPE_CRASH && !kdump_csum_valid(image)) in machine_kexec() [all …]
|
| /linux/drivers/gpu/drm/qxl/ |
| A D | qxl_image.c | 61 struct qxl_drm_image *image; in qxl_image_alloc_objects() local 65 if (!image) in qxl_image_alloc_objects() 72 kfree(image); in qxl_image_alloc_objects() 78 qxl_bo_unref(&image->bo); in qxl_image_alloc_objects() 79 kfree(image); in qxl_image_alloc_objects() 82 *image_ptr = image; in qxl_image_alloc_objects() 109 struct qxl_image *image; in qxl_image_init_helper() local 193 image = ptr; in qxl_image_init_helper() 195 image->descriptor.id = 0; in qxl_image_init_helper() 219 image->u.bitmap.x = width; in qxl_image_init_helper() [all …]
|
| /linux/arch/riscv/kernel/ |
| A D | machine_kexec.c | 31 machine_kexec_prepare(struct kimage *image) in machine_kexec_prepare() argument 33 struct kimage_arch *internal = &image->arch; in machine_kexec_prepare() 40 for (i = 0; i < image->nr_segments; i++) { in machine_kexec_prepare() 41 if (image->segment[i].memsz <= sizeof(fdt)) in machine_kexec_prepare() 44 if (image->file_mode) in machine_kexec_prepare() 45 memcpy(&fdt, image->segment[i].buf, sizeof(fdt)); in machine_kexec_prepare() 62 if (image->type != KEXEC_TYPE_CRASH) { in machine_kexec_prepare() 92 machine_kexec_cleanup(struct kimage *image) in machine_kexec_cleanup() argument 172 machine_kexec(struct kimage *image) in machine_kexec() argument 174 struct kimage_arch *internal = &image->arch; in machine_kexec() [all …]
|
| /linux/arch/sh/kernel/ |
| A D | machine_kexec.c | 41 int machine_kexec_prepare(struct kimage *image) in machine_kexec_prepare() argument 50 static void kexec_info(struct kimage *image) in kexec_info() argument 54 for (i = 0; i < image->nr_segments; i++) { in kexec_info() 57 (unsigned int)image->segment[i].mem, in kexec_info() 58 (unsigned int)image->segment[i].mem + in kexec_info() 59 image->segment[i].memsz, in kexec_info() 69 void machine_kexec(struct kimage *image) in machine_kexec() argument 92 if (image->preserve_context) in machine_kexec() 101 page_list = image->head; in machine_kexec() 111 kexec_info(image); in machine_kexec() [all …]
|
| /linux/arch/arm64/kernel/ |
| A D | machine_kexec_file.c | 32 kvfree(image->arch.dtb); in arch_kimage_file_post_load_cleanup() 33 image->arch.dtb = NULL; in arch_kimage_file_post_load_cleanup() 35 vfree(image->elf_headers); in arch_kimage_file_post_load_cleanup() 36 image->elf_headers = NULL; in arch_kimage_file_post_load_cleanup() 37 image->elf_headers_sz = 0; in arch_kimage_file_post_load_cleanup() 103 kbuf.image = image; in load_other_segments() 131 image->elf_headers = headers; in load_other_segments() 132 image->elf_load_addr = kbuf.mem; in load_other_segments() 185 image->arch.dtb = dtb; in load_other_segments() 186 image->arch.dtb_mem = kbuf.mem; in load_other_segments() [all …]
|
| /linux/arch/powerpc/boot/ |
| A D | Makefile | 281 image-$(CONFIG_PPC_PS3) += dtbImage.ps3 282 image-$(CONFIG_PPC_CHRP) += zImage.chrp 283 image-$(CONFIG_PPC_EFIKA) += zImage.chrp 284 image-$(CONFIG_PPC_PMAC) += zImage.pmac 286 image-$(CONFIG_DEFAULT_UIMAGE) += uImage 305 image-$(CONFIG_WARP) += cuImage.warp 350 image-$(CONFIG_WII) += dtbImage.wii 365 image-y += $(CONFIG_EXTRA_TARGETS) 373 targets += $(image-y) $(initrd-y) 434 ifeq (,$(image-y)) [all …]
|
| /linux/drivers/video/fbdev/savage/ |
| A D | savagefb_accel.c | 97 u32 *src = (u32 *) image->data; in savagefb_imageblit() 99 if (!image->width || !image->height) in savagefb_imageblit() 102 if (image->depth != 1) { in savagefb_imageblit() 103 cfb_imageblit(info, image); in savagefb_imageblit() 108 fg = image->fg_color; in savagefb_imageblit() 109 bg = image->bg_color; in savagefb_imageblit() 122 width = (image->width + 31) & ~31; in savagefb_imageblit() 123 size = (width * image->height)/8; in savagefb_imageblit() 128 BCI_SEND(BCI_CLIP_LR(image->dx, image->dx + image->width - 1)); in savagefb_imageblit() 131 BCI_SEND(BCI_X_Y(image->dx, image->dy)); in savagefb_imageblit() [all …]
|
| /linux/arch/powerpc/kexec/ |
| A D | elf_64.c | 28 static void *elf64_load(struct kimage *image, char *kernel_buf, in elf64_load() argument 42 struct kexec_buf kbuf = { .image = image, .buf_min = 0, in elf64_load() 44 struct kexec_buf pbuf = { .image = image, .buf_min = 0, in elf64_load() 52 if (IS_ENABLED(CONFIG_CRASH_DUMP) && image->type == KEXEC_TYPE_CRASH) { in elf64_load() 66 ret = kexec_load_purgatory(image, &pbuf); in elf64_load() 76 ret = load_crashdump_segments_ppc64(image, &kbuf); in elf64_load() 83 modified_cmdline = setup_kdump_cmdline(image, cmdline, in elf64_load() 111 fdt = of_kexec_alloc_and_setup_fdt(image, initrd_load_addr, in elf64_load() 113 kexec_extra_fdt_size_ppc64(image, rmem)); in elf64_load() 120 ret = setup_new_fdt_ppc64(image, fdt, rmem); in elf64_load() [all …]
|
| A D | file_load_64.c | 555 image->arch.backup_buf = buf; in load_backup_segment() 645 image->elf_load_addr = kbuf->mem; in load_elfcorehdr_segment() 647 image->elf_headers = headers; in load_elfcorehdr_segment() 1093 kfree(image->arch.exclude_ranges); in arch_kimage_file_post_load_cleanup() 1096 vfree(image->arch.backup_buf); in arch_kimage_file_post_load_cleanup() 1097 image->arch.backup_buf = NULL; in arch_kimage_file_post_load_cleanup() 1099 vfree(image->elf_headers); in arch_kimage_file_post_load_cleanup() 1100 image->elf_headers = NULL; in arch_kimage_file_post_load_cleanup() 1101 image->elf_headers_sz = 0; in arch_kimage_file_post_load_cleanup() 1103 kvfree(image->arch.fdt); in arch_kimage_file_post_load_cleanup() [all …]
|