/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 | 115 image->arch.p4d = NULL; in free_transition_pgtable() 117 image->arch.pud = NULL; in free_transition_pgtable() 119 image->arch.pmd = NULL; in free_transition_pgtable() 121 image->arch.pte = NULL; in free_transition_pgtable() 141 image->arch.p4d = p4d; in init_transition_pgtable() 198 .context = image, in init_pgtable() 358 image->start = relocate_kernel((unsigned long)image->head, in machine_kexec() 380 if (!image->fops || !image->fops->load) in arch_kexec_kernel_image_load() 383 return image->fops->load(image, image->kernel_buf, in arch_kexec_kernel_image_load() 384 image->kernel_buf_len, image->initrd_buf, in arch_kexec_kernel_image_load() [all …]
|
/linux/kernel/ |
A D | kexec_core.c | 210 if (image->segment[i].bufsz > image->segment[i].memsz) in sanity_check_segment_list() 260 image = kzalloc(sizeof(*image), GFP_KERNEL); in do_kimage_alloc_init() 261 if (!image) in do_kimage_alloc_init() 264 image->head = 0; in do_kimage_alloc_init() 265 image->entry = &image->head; in do_kimage_alloc_init() 266 image->last_entry = &image->head; in do_kimage_alloc_init() 279 return image; in do_kimage_alloc_init() 540 if (image->entry == image->last_entry) { in kimage_add_entry() 555 image->entry++; in kimage_add_entry() 625 if (!image) in kimage_free() [all …]
|
A D | kexec_file.c | 65 if (!image->fops || !image->fops->load) in kexec_image_load_default() 68 return image->fops->load(image, image->kernel_buf, in kexec_image_load_default() 69 image->kernel_buf_len, image->initrd_buf, in kexec_image_load_default() 70 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() 84 return image->fops->cleanup(image->image_loader_data); in kexec_image_post_load_cleanup_default() 96 if (!image->fops || !image->fops->verify_sig) { in kexec_image_verify_sig_default() 307 if (!image) in kimage_file_alloc_init() 438 image = xchg(dest_image, image); in SYSCALL_DEFINE5() 451 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 40 if (!image) in kimage_alloc_init() 43 image->start = entry; in kimage_alloc_init() 63 image->control_code_page = kimage_alloc_control_pages(image, in kimage_alloc_init() 71 image->swap_page = kimage_alloc_control_pages(image, 0); in kimage_alloc_init() 72 if (!image->swap_page) { in kimage_alloc_init() 78 *rimage = image; in kimage_alloc_init() 83 kfree(image); in kimage_alloc_init() 148 ret = kimage_load_segment(image, &image->segment[i]); in do_kexec_load() 160 image = xchg(dest_image, image); in do_kexec_load() [all …]
|
/linux/drivers/staging/vme/devices/ |
A D | vme_user.c | 127 copied = vme_master_read(image[minor].resource, image[minor].kern_buf, in resource_to_user() 147 return vme_master_write(image[minor].resource, image[minor].kern_buf, in resource_from_user() 536 image[i].pci_buf = 0; in vme_user_probe() 538 image[i].device = NULL; in vme_user_probe() 579 image[i].kern_buf = vme_alloc_consistent(image[i].resource, in vme_user_probe() 585 image[i].pci_buf = 0; in vme_user_probe() 608 image[i].kern_buf = kmalloc(image[i].size_buf, GFP_KERNEL); in vme_user_probe() 679 vme_free_consistent(image[i].resource, image[i].size_buf, in vme_user_probe() 680 image[i].kern_buf, image[i].pci_buf); in vme_user_probe() 710 vme_free_consistent(image[i].resource, image[i].size_buf, in vme_user_remove() [all …]
|
/linux/arch/riscv/kernel/ |
A D | machine_kexec.c | 23 kexec_image_info(const struct kimage *image) in kexec_image_info() argument 33 for (i = 0; i < image->nr_segments; i++) { in kexec_image_info() 35 image->segment[i].mem, in kexec_image_info() 36 image->segment[i].mem + image->segment[i].memsz); in kexec_image_info() 38 (unsigned long) image->segment[i].memsz, in kexec_image_info() 53 machine_kexec_prepare(struct kimage *image) in machine_kexec_prepare() argument 61 kexec_image_info(image); in machine_kexec_prepare() 64 for (i = 0; i < image->nr_segments; i++) { in machine_kexec_prepare() 84 if (image->type != KEXEC_TYPE_CRASH) { in machine_kexec_prepare() 167 machine_kexec(struct kimage *image) in machine_kexec() argument [all …]
|
/linux/arch/x86/entry/vdso/ |
A D | vma.c | 51 apply_alternatives((struct alt_instr *)(image->data + image->alt), in init_vdso_image() 52 (struct alt_instr *)(image->data + image->alt + in init_vdso_image() 53 image->alt_len)); in init_vdso_image() 64 if (!image || (vmf->pgoff << PAGE_SHIFT) >= image->size) in vdso_fault() 94 vdso_fix_landing(image, new_vma); in vdso_mremap() 157 if (!image) in vvar_fault() 161 image->sym_vvar_start; in vvar_fault() 257 image->size - image->sym_vvar_start, 0, 0); in map_vdso() 270 image->size, in map_vdso() 349 return map_vdso(image, addr); in map_vdso_randomized() [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/arch/s390/kernel/ |
A D | machine_kexec_file.c | 125 buf.image = image; in kexec_file_add_purgatory() 146 buf.image = image; in kexec_file_add_initrd() 148 buf.buffer = image->initrd_buf; in kexec_file_add_initrd() 178 buf.image = image; in kexec_file_add_ipl_report() 238 ret = add_kernel(image, &data); in kexec_file_add_components() 260 image->cmdline_buf_len); in kexec_file_add_components() 267 if (image->initrd_buf) { in kexec_file_add_components() 279 restart_psw += image->start; in kexec_file_add_components() 281 image->start = 0; in kexec_file_add_components() 366 vfree(image->arch.ipl_buf); in arch_kimage_file_post_load_cleanup() [all …]
|
A D | machine_kexec.c | 42 static void __do_machine_kdump(void *image) in __do_machine_kdump() argument 109 store_status(__do_machine_kdump, image); in __machine_kdump() 114 struct kimage *image = (struct kimage *) addr; in do_start_kdump() local 136 unsigned long, (unsigned long)image); in kdump_csum_valid() 203 if (image->type == KEXEC_TYPE_CRASH) in machine_kexec_prepare() 207 if (image->type != KEXEC_TYPE_DEFAULT) in machine_kexec_prepare() 248 struct kimage *image = data; in __do_machine_kexec() local 255 (*data_mover)(&image->head, image->start); in __do_machine_kexec() 280 void machine_kexec(struct kimage *image) in machine_kexec() argument 282 if (image->type == KEXEC_TYPE_CRASH && !kdump_csum_valid(image)) in machine_kexec() [all …]
|
/linux/arch/powerpc/boot/ |
A D | Makefile | 266 image-$(CONFIG_PPC_MAPLE) += zImage.maple 268 image-$(CONFIG_PPC_PS3) += dtbImage.ps3 269 image-$(CONFIG_PPC_CHRP) += zImage.chrp 270 image-$(CONFIG_PPC_EFIKA) += zImage.chrp 271 image-$(CONFIG_PPC_PMAC) += zImage.pmac 273 image-$(CONFIG_DEFAULT_UIMAGE) += uImage 286 image-$(CONFIG_ACADIA) += cuImage.acadia 287 image-$(CONFIG_OBS600) += uImage.obs600 296 image-$(CONFIG_KATMAI) += cuImage.katmai 297 image-$(CONFIG_WARP) += cuImage.warp [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/drivers/video/fbdev/core/ |
A D | bitblit.c | 82 image->height); in bit_putcs_aligned() 142 image.fg_color = fg; in bit_putcs() 143 image.bg_color = bg; in bit_putcs() 147 image.depth = 1; in bit_putcs() 167 image.data = dst; in bit_putcs() 345 cursor.image.fg_color = ops->cursor_state.image.fg_color; in bit_cursor() 346 cursor.image.bg_color = ops->cursor_state.image.bg_color; in bit_cursor() 347 cursor.image.dx = ops->cursor_state.image.dx; in bit_cursor() 348 cursor.image.dy = ops->cursor_state.image.dy; in bit_cursor() 349 cursor.image.height = ops->cursor_state.image.height; in bit_cursor() [all …]
|
A D | fbcon_ud.c | 85 image->height); in ud_putcs_aligned() 151 image.fg_color = fg; in ud_putcs() 156 image.depth = 1; in ud_putcs() 178 image.data = dst; in ud_putcs() 188 image.dx += image.width; in ud_putcs() 367 cursor.image.fg_color = ops->cursor_state.image.fg_color; in ud_cursor() 368 cursor.image.bg_color = ops->cursor_state.image.bg_color; in ud_cursor() 369 cursor.image.dx = ops->cursor_state.image.dx; in ud_cursor() 370 cursor.image.dy = ops->cursor_state.image.dy; in ud_cursor() 371 cursor.image.height = ops->cursor_state.image.height; in ud_cursor() [all …]
|
A D | fbcon_ccw.c | 129 image.fg_color = fg; in ccw_putcs() 130 image.bg_color = bg; in ccw_putcs() 134 image.depth = 1; in ccw_putcs() 156 image.data = dst; in ccw_putcs() 159 image.dy += image.height; in ccw_putcs() 345 cursor.image.fg_color = ops->cursor_state.image.fg_color; in ccw_cursor() 346 cursor.image.bg_color = ops->cursor_state.image.bg_color; in ccw_cursor() 347 cursor.image.dx = ops->cursor_state.image.dx; in ccw_cursor() 348 cursor.image.dy = ops->cursor_state.image.dy; in ccw_cursor() 349 cursor.image.height = ops->cursor_state.image.height; in ccw_cursor() [all …]
|
A D | fbcon_cw.c | 114 image.fg_color = fg; in cw_putcs() 115 image.bg_color = bg; in cw_putcs() 119 image.depth = 1; in cw_putcs() 139 image.data = dst; in cw_putcs() 142 image.dy += image.height; in cw_putcs() 328 cursor.image.fg_color = ops->cursor_state.image.fg_color; in cw_cursor() 329 cursor.image.bg_color = ops->cursor_state.image.bg_color; in cw_cursor() 330 cursor.image.dx = ops->cursor_state.image.dx; in cw_cursor() 331 cursor.image.dy = ops->cursor_state.image.dy; in cw_cursor() 332 cursor.image.height = ops->cursor_state.image.height; in cw_cursor() [all …]
|
A D | sysimgblt.c | 61 const u8 *src = image->data; in color_imageblit() 64 for (i = image->height; i--; ) { in color_imageblit() 65 n = image->width; in color_imageblit() 119 u32 spitch = (image->width+7)/8; in slow_imageblit() 130 j = image->width; in slow_imageblit() 219 k = image->width/ppw; in fast_imageblit() 244 u32 width = image->width; in sys_imageblit() 245 u32 dx = image->dx, dy = image->dy; in sys_imageblit() 262 if (image->depth == 1) { in sys_imageblit() 268 fgcolor = image->fg_color; in sys_imageblit() [all …]
|
A D | cfbimgblt.c | 86 const u8 *src = image->data; in color_imageblit() 90 for (i = image->height; i--; ) { in color_imageblit() 91 n = image->width; in color_imageblit() 147 u32 spitch = (image->width+7)/8; in slow_imageblit() 159 j = image->width; in slow_imageblit() 249 k = image->width/ppw; in fast_imageblit() 269 u32 width = image->width; in cfb_imageblit() 270 u32 dx = image->dx, dy = image->dy; in cfb_imageblit() 287 if (image->depth == 1) { in cfb_imageblit() 293 fgcolor = image->fg_color; in cfb_imageblit() [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/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() 93 kbuf.image = image; in load_other_segments() 118 image->elf_headers = headers; in load_other_segments() 119 image->elf_load_addr = kbuf.mem; in load_other_segments() 171 image->arch.dtb = dtb; in load_other_segments() 172 image->arch.dtb_mem = kbuf.mem; in load_other_segments() [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/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 | 27 static void *elf64_load(struct kimage *image, char *kernel_buf, in elf64_load() argument 40 struct kexec_buf kbuf = { .image = image, .buf_min = 0, in elf64_load() 42 struct kexec_buf pbuf = { .image = image, .buf_min = 0, in elf64_load() 50 if (image->type == KEXEC_TYPE_CRASH) { in elf64_load() 64 ret = kexec_load_purgatory(image, &pbuf); in elf64_load() 73 if (image->type == KEXEC_TYPE_CRASH) { in elf64_load() 74 ret = load_crashdump_segments_ppc64(image, &kbuf); in elf64_load() 81 modified_cmdline = setup_kdump_cmdline(image, cmdline, in elf64_load() 107 kexec_extra_fdt_size_ppc64(image)); in elf64_load() 114 ret = setup_new_fdt_ppc64(image, fdt, initrd_load_addr, in elf64_load() [all …]
|
/linux/drivers/gpu/ipu-v3/ |
A D | ipu-cpmem.c | 781 offset = Y_OFFSET(pix, image->rect.left, image->rect.top); in ipu_cpmem_set_image() 783 image->u_offset : U_OFFSET(pix, image->rect.left, in ipu_cpmem_set_image() 786 image->v_offset : V_OFFSET(pix, image->rect.left, in ipu_cpmem_set_image() 795 image->u_offset : V_OFFSET(pix, image->rect.left, in ipu_cpmem_set_image() 798 image->v_offset : U_OFFSET(pix, image->rect.left, in ipu_cpmem_set_image() 807 image->u_offset : U2_OFFSET(pix, image->rect.left, in ipu_cpmem_set_image() 810 image->v_offset : V2_OFFSET(pix, image->rect.left, in ipu_cpmem_set_image() 819 image->u_offset : UV_OFFSET(pix, image->rect.left, in ipu_cpmem_set_image() 821 v_offset = image->v_offset ? image->v_offset : 0; in ipu_cpmem_set_image() 829 image->u_offset : UV2_OFFSET(pix, image->rect.left, in ipu_cpmem_set_image() [all …]
|