Home
last modified time | relevance | path

Searched refs:image (Results 1 – 25 of 739) sorted by relevance

12345678910>>...30

/kernel/linux/linux-5.10/arch/x86/kernel/
Dmachine_kexec_32.c54 static void machine_kexec_free_page_tables(struct kimage *image) in machine_kexec_free_page_tables() argument
56 free_pages((unsigned long)image->arch.pgd, PGD_ALLOCATION_ORDER); in machine_kexec_free_page_tables()
57 image->arch.pgd = NULL; in machine_kexec_free_page_tables()
59 free_page((unsigned long)image->arch.pmd0); in machine_kexec_free_page_tables()
60 image->arch.pmd0 = NULL; in machine_kexec_free_page_tables()
61 free_page((unsigned long)image->arch.pmd1); in machine_kexec_free_page_tables()
62 image->arch.pmd1 = NULL; in machine_kexec_free_page_tables()
64 free_page((unsigned long)image->arch.pte0); in machine_kexec_free_page_tables()
65 image->arch.pte0 = NULL; in machine_kexec_free_page_tables()
66 free_page((unsigned long)image->arch.pte1); in machine_kexec_free_page_tables()
[all …]
Dmachine_kexec_64.c111 static void free_transition_pgtable(struct kimage *image) in free_transition_pgtable() argument
113 free_page((unsigned long)image->arch.p4d); in free_transition_pgtable()
114 image->arch.p4d = NULL; in free_transition_pgtable()
115 free_page((unsigned long)image->arch.pud); in free_transition_pgtable()
116 image->arch.pud = NULL; in free_transition_pgtable()
117 free_page((unsigned long)image->arch.pmd); in free_transition_pgtable()
118 image->arch.pmd = NULL; in free_transition_pgtable()
119 free_page((unsigned long)image->arch.pte); in free_transition_pgtable()
120 image->arch.pte = NULL; in free_transition_pgtable()
123 static int init_transition_pgtable(struct kimage *image, pgd_t *pgd) in init_transition_pgtable() argument
[all …]
/kernel/linux/linux-5.10/kernel/
Dkexec_core.c144 static struct page *kimage_alloc_page(struct kimage *image,
148 int sanity_check_segment_list(struct kimage *image) in sanity_check_segment_list() argument
151 unsigned long nr_segments = image->nr_segments; in sanity_check_segment_list()
171 mstart = image->segment[i].mem; in sanity_check_segment_list()
172 mend = mstart + image->segment[i].memsz; in sanity_check_segment_list()
190 mstart = image->segment[i].mem; in sanity_check_segment_list()
191 mend = mstart + image->segment[i].memsz; in sanity_check_segment_list()
195 pstart = image->segment[j].mem; in sanity_check_segment_list()
196 pend = pstart + image->segment[j].memsz; in sanity_check_segment_list()
209 if (image->segment[i].bufsz > image->segment[i].memsz) in sanity_check_segment_list()
[all …]
Dkexec_file.c41 static int kexec_calculate_store_digests(struct kimage *image);
48 int kexec_image_probe_default(struct kimage *image, void *buf, in kexec_image_probe_default() argument
57 image->fops = *fops; in kexec_image_probe_default()
66 int __weak arch_kexec_kernel_image_probe(struct kimage *image, void *buf, in arch_kexec_kernel_image_probe() argument
69 return kexec_image_probe_default(image, buf, buf_len); in arch_kexec_kernel_image_probe()
72 static void *kexec_image_load_default(struct kimage *image) in kexec_image_load_default() argument
74 if (!image->fops || !image->fops->load) in kexec_image_load_default()
77 return image->fops->load(image, image->kernel_buf, in kexec_image_load_default()
78 image->kernel_buf_len, image->initrd_buf, in kexec_image_load_default()
79 image->initrd_buf_len, image->cmdline_buf, in kexec_image_load_default()
[all …]
Dkexec.c22 static int copy_user_segment_list(struct kimage *image, in copy_user_segment_list() argument
30 image->nr_segments = nr_segments; in copy_user_segment_list()
32 ret = copy_from_user(image->segment, segments, segment_bytes); in copy_user_segment_list()
45 struct kimage *image; in kimage_alloc_init() local
56 image = do_kimage_alloc_init(); in kimage_alloc_init()
57 if (!image) in kimage_alloc_init()
60 image->start = entry; in kimage_alloc_init()
62 ret = copy_user_segment_list(image, nr_segments, segments); in kimage_alloc_init()
68 image->control_page = crashk_res.start; in kimage_alloc_init()
69 image->type = KEXEC_TYPE_CRASH; in kimage_alloc_init()
[all …]
/kernel/linux/linux-5.10/drivers/staging/vme/devices/
Dvme_user.c101 static struct image_desc image[VME_DEVS]; variable
124 if (count > image[minor].size_buf) in resource_to_user()
125 count = image[minor].size_buf; in resource_to_user()
127 copied = vme_master_read(image[minor].resource, image[minor].kern_buf, in resource_to_user()
132 if (copy_to_user(buf, image[minor].kern_buf, (unsigned long)copied)) in resource_to_user()
141 if (count > image[minor].size_buf) in resource_from_user()
142 count = image[minor].size_buf; in resource_from_user()
144 if (copy_from_user(image[minor].kern_buf, buf, (unsigned long)count)) in resource_from_user()
147 return vme_master_write(image[minor].resource, image[minor].kern_buf, in resource_from_user()
156 image_ptr = image[minor].kern_buf + *ppos; in buffer_to_user()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
Dimage.c30 nvbios_imagen(struct nvkm_bios *bios, struct nvbios_image *image) in nvbios_imagen() argument
39 switch ((data = nvbios_rd16(bios, image->base + 0x00))) { in nvbios_imagen()
46 image->base, data); in nvbios_imagen()
50 if (!(data = nvbios_pcirTp(bios, image->base, &ver, &hdr, &pcir))) 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()
57 if (!(data = nvbios_npdeTp(bios, image->base, &npde))) in nvbios_imagen()
59 image->size = npde.image_size; in nvbios_imagen()
[all …]
/kernel/linux/linux-5.10/arch/s390/kernel/
Dmachine_kexec_file.c82 static int kexec_file_update_purgatory(struct kimage *image, in kexec_file_update_purgatory() argument
88 if (image->type == KEXEC_TYPE_CRASH) { in kexec_file_update_purgatory()
96 ret = kexec_purgatory_get_set_symbol(image, "kernel_entry", &entry, in kexec_file_update_purgatory()
101 ret = kexec_purgatory_get_set_symbol(image, "kernel_type", &type, in kexec_file_update_purgatory()
106 if (image->type == KEXEC_TYPE_CRASH) { in kexec_file_update_purgatory()
109 ret = kexec_purgatory_get_set_symbol(image, "crash_start", in kexec_file_update_purgatory()
117 ret = kexec_purgatory_get_set_symbol(image, "crash_size", in kexec_file_update_purgatory()
125 static int kexec_file_add_purgatory(struct kimage *image, in kexec_file_add_purgatory() argument
131 buf.image = image; in kexec_file_add_purgatory()
135 if (image->type == KEXEC_TYPE_CRASH) in kexec_file_add_purgatory()
[all …]
Dmachine_kexec.c42 static void __do_machine_kdump(void *image) in __do_machine_kdump() argument
62 start_kdump = (void *)((struct kimage *) image)->start; in __do_machine_kdump()
73 static noinline void __machine_kdump(void *image) in __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
115 int (*start_kdump)(int) = (void *)image->start; in do_start_kdump()
129 static bool kdump_csum_valid(struct kimage *image) in kdump_csum_valid() argument
135 rc = CALL_ON_STACK(do_start_kdump, S390_lowcore.nodat_stack, 1, image); in kdump_csum_valid()
198 int machine_kexec_prepare(struct kimage *image) in machine_kexec_prepare() argument
202 if (image->type == KEXEC_TYPE_CRASH) in machine_kexec_prepare()
[all …]
Dkexec_image.c16 static int kexec_file_add_kernel_image(struct kimage *image, in kexec_file_add_kernel_image() argument
21 buf.image = image; in kexec_file_add_kernel_image()
23 buf.buffer = image->kernel_buf; in kexec_file_add_kernel_image()
24 buf.bufsz = image->kernel_buf_len; in kexec_file_add_kernel_image()
27 if (image->type == KEXEC_TYPE_CRASH) in kexec_file_add_kernel_image()
31 data->kernel_buf = image->kernel_buf; in kexec_file_add_kernel_image()
33 data->parm = image->kernel_buf + PARMAREA; in kexec_file_add_kernel_image()
43 static void *s390_image_load(struct kimage *image, in s390_image_load() argument
48 return kexec_file_add_components(image, kexec_file_add_kernel_image); in s390_image_load()
/kernel/linux/linux-5.10/arch/x86/entry/vdso/
Dvma.c47 void __init init_vdso_image(const struct vdso_image *image) in init_vdso_image() argument
49 BUG_ON(image->size % PAGE_SIZE != 0); in init_vdso_image()
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()
62 const struct vdso_image *image = vma->vm_mm->context.vdso_image; in vdso_fault() local
64 if (!image || (vmf->pgoff << PAGE_SHIFT) >= image->size) in vdso_fault()
67 vmf->page = virt_to_page(image->data + (vmf->pgoff << PAGE_SHIFT)); in vdso_fault()
72 static void vdso_fix_landing(const struct vdso_image *image, in vdso_fix_landing() argument
76 if (in_ia32_syscall() && image == &vdso_image_32) { in vdso_fix_landing()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/qxl/
Dqxl_image.c35 struct qxl_drm_image *image, in qxl_allocate_chunk() argument
51 list_add_tail(&chunk->head, &image->chunk_list); in qxl_allocate_chunk()
61 struct qxl_drm_image *image; in qxl_image_alloc_objects() local
64 image = kmalloc(sizeof(struct qxl_drm_image), GFP_KERNEL); in qxl_image_alloc_objects()
65 if (!image) in qxl_image_alloc_objects()
68 INIT_LIST_HEAD(&image->chunk_list); in qxl_image_alloc_objects()
70 ret = qxl_alloc_bo_reserved(qdev, release, sizeof(struct qxl_image), &image->bo); in qxl_image_alloc_objects()
72 kfree(image); in qxl_image_alloc_objects()
76 ret = qxl_allocate_chunk(qdev, release, image, sizeof(struct qxl_data_chunk) + stride * height); in qxl_image_alloc_objects()
78 qxl_bo_unref(&image->bo); in qxl_image_alloc_objects()
[all …]
/kernel/linux/linux-5.10/arch/powerpc/boot/
DMakefile258 image-$(CONFIG_PPC_PSERIES) += zImage.pseries
259 image-$(CONFIG_PPC_POWERNV) += zImage.pseries
260 image-$(CONFIG_PPC_MAPLE) += zImage.maple
261 image-$(CONFIG_PPC_IBM_CELL_BLADE) += zImage.pseries
262 image-$(CONFIG_PPC_PS3) += dtbImage.ps3
263 image-$(CONFIG_PPC_CHRP) += zImage.chrp
264 image-$(CONFIG_PPC_EFIKA) += zImage.chrp
265 image-$(CONFIG_PPC_PMAC) += zImage.pmac
266 image-$(CONFIG_PPC_HOLLY) += dtbImage.holly
267 image-$(CONFIG_DEFAULT_UIMAGE) += uImage
[all …]
/kernel/linux/linux-5.10/arch/sh/kernel/
Dmachine_kexec.c41 int machine_kexec_prepare(struct kimage *image) in machine_kexec_prepare() argument
46 void machine_kexec_cleanup(struct kimage *image) in machine_kexec_cleanup() 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()
60 (unsigned int)image->segment[i].memsz); in kexec_info()
62 printk(" start : 0x%08x\n\n", (unsigned int)image->start); in kexec_info()
69 void machine_kexec(struct kimage *image) in machine_kexec() argument
[all …]
/kernel/linux/linux-5.10/drivers/video/fbdev/core/
Dbitblit.c80 struct fb_image *image, u8 *buf, u8 *dst) in bit_putcs_aligned() argument
97 image->height); in bit_putcs_aligned()
100 image->height); in bit_putcs_aligned()
105 info->fbops->fb_imageblit(info, image); in bit_putcs_aligned()
112 struct fb_image *image, u8 *buf, in bit_putcs_unaligned() argument
131 image->height, shift_high, in bit_putcs_unaligned()
139 info->fbops->fb_imageblit(info, image); in bit_putcs_unaligned()
147 struct fb_image image; in bit_putcs() local
157 image.fg_color = fg; in bit_putcs()
158 image.bg_color = bg; in bit_putcs()
[all …]
Dfbcon_ud.c88 struct fb_image *image, u8 *buf, u8 *dst) in ud_putcs_aligned() argument
105 image->height); in ud_putcs_aligned()
108 image->height); in ud_putcs_aligned()
113 info->fbops->fb_imageblit(info, image); in ud_putcs_aligned()
120 struct fb_image *image, u8 *buf, in ud_putcs_unaligned() argument
139 image->height, shift_high, in ud_putcs_unaligned()
147 info->fbops->fb_imageblit(info, image); in ud_putcs_unaligned()
155 struct fb_image image; in ud_putcs() local
171 image.fg_color = fg; in ud_putcs()
172 image.bg_color = bg; in ud_putcs()
[all …]
Dsoftcursor.c28 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()
72 fb_pad_aligned_buffer(dst, d_pitch, src, s_pitch, image->height); in soft_cursor()
[all …]
Dfbcon_cw.c86 struct fb_image *image, u8 *buf, u8 *dst) in cw_putcs_aligned() argument
111 info->fbops->fb_imageblit(info, image); in cw_putcs_aligned()
118 struct fb_image image; in cw_putcs() local
133 image.fg_color = fg; in cw_putcs()
134 image.bg_color = bg; in cw_putcs()
135 image.dx = vxres - ((yy + 1) * vc->vc_font.height); in cw_putcs()
136 image.dy = xx * vc->vc_font.width; in cw_putcs()
137 image.width = vc->vc_font.height; in cw_putcs()
138 image.depth = 1; in cw_putcs()
152 image.height = vc->vc_font.width * cnt; in cw_putcs()
[all …]
Dsysimgblt.c52 static void color_imageblit(const struct fb_image *image, struct fb_info *p, in color_imageblit() argument
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()
111 static void slow_imageblit(const struct fb_image *image, struct fb_info *p, in slow_imageblit() argument
119 u32 spitch = (image->width+7)/8; in slow_imageblit()
120 const u8 *src = image->data, *s; in slow_imageblit()
127 for (i = image->height; i--; ) { in slow_imageblit()
130 j = image->width; in slow_imageblit()
186 static void fast_imageblit(const struct fb_image *image, struct fb_info *p, in fast_imageblit() argument
[all …]
Dfbcon_ccw.c101 struct fb_image *image, u8 *buf, u8 *dst) in ccw_putcs_aligned() argument
126 info->fbops->fb_imageblit(info, image); in ccw_putcs_aligned()
133 struct fb_image image; in ccw_putcs() local
148 image.fg_color = fg; in ccw_putcs()
149 image.bg_color = bg; in ccw_putcs()
150 image.dx = yy * vc->vc_font.height; in ccw_putcs()
151 image.dy = vyres - ((xx + count) * vc->vc_font.width); in ccw_putcs()
152 image.width = vc->vc_font.height; in ccw_putcs()
153 image.depth = 1; in ccw_putcs()
169 image.height = vc->vc_font.width * cnt; in ccw_putcs()
[all …]
Dcfbimgblt.c75 static inline void color_imageblit(const struct fb_image *image, in color_imageblit() argument
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()
137 static inline void slow_imageblit(const struct fb_image *image, struct fb_info *p, in slow_imageblit() argument
147 u32 spitch = (image->width+7)/8; in slow_imageblit()
148 const u8 *src = image->data, *s; in slow_imageblit()
156 for (i = image->height; i--; ) { in slow_imageblit()
159 j = image->width; in slow_imageblit()
215 static inline void fast_imageblit(const struct fb_image *image, struct fb_info *p, in fast_imageblit() argument
[all …]
/kernel/linux/linux-5.10/drivers/video/fbdev/savage/
Dsavagefb_accel.c92 void savagefb_imageblit(struct fb_info *info, const struct fb_image *image) in savagefb_imageblit() argument
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()
111 fg = ((u32 *)info->pseudo_palette)[image->fg_color]; in savagefb_imageblit()
112 bg = ((u32 *)info->pseudo_palette)[image->bg_color]; in savagefb_imageblit()
122 width = (image->width + 31) & ~31; in savagefb_imageblit()
[all …]
/kernel/linux/linux-5.10/arch/arm64/kernel/
Dmachine_kexec_file.c41 int arch_kimage_file_post_load_cleanup(struct kimage *image) in arch_kimage_file_post_load_cleanup() argument
43 vfree(image->arch.dtb); in arch_kimage_file_post_load_cleanup()
44 image->arch.dtb = NULL; in arch_kimage_file_post_load_cleanup()
46 vfree(image->arch.elf_headers); in arch_kimage_file_post_load_cleanup()
47 image->arch.elf_headers = NULL; in arch_kimage_file_post_load_cleanup()
48 image->arch.elf_headers_sz = 0; in arch_kimage_file_post_load_cleanup()
50 return kexec_image_post_load_cleanup_default(image); in arch_kimage_file_post_load_cleanup()
53 static int setup_dtb(struct kimage *image, in setup_dtb() argument
72 if (image->type == KEXEC_TYPE_CRASH) { in setup_dtb()
76 image->arch.elf_headers_mem, in setup_dtb()
[all …]
/kernel/linux/linux-5.10/arch/ia64/kernel/
Dmachine_kexec.c56 int machine_kexec_prepare(struct kimage *image) in machine_kexec_prepare() argument
63 control_code_buffer = page_address(image->control_code_page); in machine_kexec_prepare()
68 ia64_kimage = image; in machine_kexec_prepare()
73 void machine_kexec_cleanup(struct kimage *image) in machine_kexec_cleanup() argument
83 struct kimage *image = arg; in ia64_machine_kexec() local
91 BUG_ON(!image); in ia64_machine_kexec()
92 code_addr = (unsigned long)page_address(image->control_code_page); in ia64_machine_kexec()
93 if (image->type == KEXEC_TYPE_CRASH) { in ia64_machine_kexec()
131 (*rnk)(image->head, image->start, ia64_boot_param, in ia64_machine_kexec()
136 void machine_kexec(struct kimage *image) in machine_kexec() argument
[all …]
/kernel/linux/linux-5.10/arch/parisc/kernel/
Dkexec_file.c16 static void *elf_load(struct kimage *image, char *kernel_buf, in elf_load() argument
25 struct kexec_buf kbuf = { .image = image, .buf_min = 0, in elf_load()
32 ret = kexec_elf_load(image, &ehdr, &elf_info, &kbuf, &kernel_load_addr); in elf_load()
36 image->start = __pa(elf_info.ehdr->e_entry); in elf_load()
38 for (i = 0; i < image->nr_segments; i++) in elf_load()
39 image->segment[i].mem = __pa(image->segment[i].mem); in elf_load()
42 kernel_load_addr, image->start); in elf_load()
55 image->arch.initrd_start = kbuf.mem; in elf_load()
56 image->arch.initrd_end = kbuf.mem + initrd_len; in elf_load()
72 image->arch.cmdline = kbuf.mem; in elf_load()

12345678910>>...30