Searched refs:image (Results 1 - 200 of 1072) sorted by relevance

123456

/linux-4.1.27/arch/x86/include/asm/
H A Dcrash.h4 int crash_load_segments(struct kimage *image);
5 int crash_copy_backup_region(struct kimage *image);
6 int crash_setup_memmap_entries(struct kimage *image,
H A Dsuspend_32.h12 /* image of the saved processor state */
H A Dkgdb.h17 * Note that this register image is in a different order than
18 * the register image that Linux produces at interrupt time.
20 * Linux's register image is defined by struct pt_regs in ptrace.h.
H A Dpage_32_types.h40 * Kernel image size is limited to 512 MB (see in arch/x86/kernel/head_32.S)
H A Dvdso.h50 extern void __init init_vdso_image(const struct vdso_image *image);
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
H A Dimage.c25 #include <subdev/bios/image.h>
30 nvbios_imagen(struct nvkm_bios *bios, struct nvbios_image *image) nvbios_imagen() argument
38 switch ((data = nv_ro16(bios, image->base + 0x00))) { nvbios_imagen()
45 image->base, data); nvbios_imagen()
49 if (!(data = nvbios_pcirTp(bios, image->base, &ver, &hdr, &pcir))) nvbios_imagen()
51 image->size = pcir.image_size; nvbios_imagen()
52 image->type = pcir.image_type; nvbios_imagen()
53 image->last = pcir.last; nvbios_imagen()
55 if (image->type != 0x70) { nvbios_imagen()
56 if (!(data = nvbios_npdeTp(bios, image->base, &npde))) nvbios_imagen()
58 image->size = npde.image_size; nvbios_imagen()
59 image->last = npde.last; nvbios_imagen()
61 image->last = true; nvbios_imagen()
68 nvbios_image(struct nvkm_bios *bios, int idx, struct nvbios_image *image) nvbios_image() argument
70 memset(image, 0x00, sizeof(*image)); nvbios_image()
72 image->base += image->size; nvbios_image()
73 if (image->last || !nvbios_imagen(bios, image)) nvbios_image()
H A Dshadow.c29 #include <subdev/bios/image.h>
94 struct nvbios_image image; shadow_image() local
97 if (!nvbios_image(bios, idx, &image)) { shadow_image()
98 nv_debug(bios, "image %d invalid\n", idx); shadow_image()
102 image.base, image.type, image.size); shadow_image()
104 if (!shadow_fetch(bios, image.size)) { shadow_image()
105 nv_debug(bios, "%08x: fetch failed\n", image.base); shadow_image()
109 switch (image.type) { shadow_image()
111 if (nvbios_checksum(&bios->data[image.base], image.size)) { shadow_image()
112 nv_debug(bios, "%08x: checksum failed\n", image.base); shadow_image()
125 if (!image.last) shadow_image()
243 /* scan all potential bios sources, looking for best image */ nvbios_shadow()
262 nv_fatal(bios, "unable to locate usable image\n"); nvbios_shadow()
266 nv_info(bios, "using image from %s\n", best->func ? nvbios_shadow()
H A Dpmu.c26 #include <subdev/bios/image.h>
32 struct nvbios_image image; weirdo_pointer() local
34 if (nvbios_image(bios, idx++, &image)) { weirdo_pointer()
35 data -= image.size; weirdo_pointer()
36 while (nvbios_image(bios, idx++, &image)) { weirdo_pointer()
37 if (image.type == 0xe0) weirdo_pointer()
38 return image.base + data; weirdo_pointer()
/linux-4.1.27/drivers/video/console/
H A Dsoftcursor.c28 struct fb_image *image; soft_cursor() local
34 s_pitch = (cursor->image.width + 7) >> 3; soft_cursor()
35 dsize = s_pitch * cursor->image.height; soft_cursor()
49 image = (struct fb_image *)ops->cursor_src; soft_cursor()
50 *image = cursor->image; soft_cursor()
53 size = d_pitch * image->height + buf_align; soft_cursor()
61 src[i] = image->data[i] ^ cursor->mask[i]; soft_cursor()
66 src[i] = image->data[i] & cursor->mask[i]; soft_cursor()
70 memcpy(src, image->data, dsize); soft_cursor()
72 fb_pad_aligned_buffer(dst, d_pitch, src, s_pitch, image->height); soft_cursor()
73 image->data = dst; soft_cursor()
74 info->fbops->fb_imageblit(info, image); soft_cursor()
H A Dbitblit.c80 struct fb_image *image, u8 *buf, u8 *dst) bit_putcs_aligned()
97 image->height); bit_putcs_aligned()
100 image->height); bit_putcs_aligned()
105 info->fbops->fb_imageblit(info, image); bit_putcs_aligned()
112 struct fb_image *image, u8 *buf, bit_putcs_unaligned()
131 image->height, shift_high, bit_putcs_unaligned()
139 info->fbops->fb_imageblit(info, image); bit_putcs_unaligned()
147 struct fb_image image; bit_putcs() local
157 image.fg_color = fg; bit_putcs()
158 image.bg_color = bg; bit_putcs()
159 image.dx = xx * vc->vc_font.width; bit_putcs()
160 image.dy = yy * vc->vc_font.height; bit_putcs()
161 image.height = vc->vc_font.height; bit_putcs()
162 image.depth = 1; bit_putcs()
176 image.width = vc->vc_font.width * cnt; bit_putcs()
177 pitch = DIV_ROUND_UP(image.width, 8) + scan_align; bit_putcs()
179 size = pitch * image.height + buf_align; bit_putcs()
182 image.data = dst; bit_putcs()
186 width, cellsize, &image, buf, dst); bit_putcs()
189 pitch, width, cellsize, &image, bit_putcs()
192 image.dx += cnt * vc->vc_font.width; bit_putcs()
263 if (ops->cursor_state.image.data != src || bit_cursor()
265 ops->cursor_state.image.data = src; bit_cursor()
281 if (ops->cursor_state.image.fg_color != fg || bit_cursor()
282 ops->cursor_state.image.bg_color != bg || bit_cursor()
284 ops->cursor_state.image.fg_color = fg; bit_cursor()
285 ops->cursor_state.image.bg_color = bg; bit_cursor()
289 if ((ops->cursor_state.image.dx != (vc->vc_font.width * vc->vc_x)) || bit_cursor()
290 (ops->cursor_state.image.dy != (vc->vc_font.height * y)) || bit_cursor()
292 ops->cursor_state.image.dx = vc->vc_font.width * vc->vc_x; bit_cursor()
293 ops->cursor_state.image.dy = vc->vc_font.height * y; bit_cursor()
297 if (ops->cursor_state.image.height != vc->vc_font.height || bit_cursor()
298 ops->cursor_state.image.width != vc->vc_font.width || bit_cursor()
300 ops->cursor_state.image.height = vc->vc_font.height; bit_cursor()
301 ops->cursor_state.image.width = vc->vc_font.width; bit_cursor()
368 cursor.image.data = src; bit_cursor()
369 cursor.image.fg_color = ops->cursor_state.image.fg_color; bit_cursor()
370 cursor.image.bg_color = ops->cursor_state.image.bg_color; bit_cursor()
371 cursor.image.dx = ops->cursor_state.image.dx; bit_cursor()
372 cursor.image.dy = ops->cursor_state.image.dy; bit_cursor()
373 cursor.image.height = ops->cursor_state.image.height; bit_cursor()
374 cursor.image.width = ops->cursor_state.image.width; bit_cursor()
379 cursor.image.depth = 1; bit_cursor()
77 bit_putcs_aligned(struct vc_data *vc, struct fb_info *info, const u16 *s, u32 attr, u32 cnt, u32 d_pitch, u32 s_pitch, u32 cellsize, struct fb_image *image, u8 *buf, u8 *dst) bit_putcs_aligned() argument
108 bit_putcs_unaligned(struct vc_data *vc, struct fb_info *info, const u16 *s, u32 attr, u32 cnt, u32 d_pitch, u32 s_pitch, u32 cellsize, struct fb_image *image, u8 *buf, u8 *dst) bit_putcs_unaligned() argument
H A Dfbcon_ccw.c101 struct fb_image *image, u8 *buf, u8 *dst) ccw_putcs_aligned()
126 info->fbops->fb_imageblit(info, image); ccw_putcs_aligned()
133 struct fb_image image; ccw_putcs() local
148 image.fg_color = fg; ccw_putcs()
149 image.bg_color = bg; ccw_putcs()
150 image.dx = yy * vc->vc_font.height; ccw_putcs()
151 image.dy = vyres - ((xx + count) * vc->vc_font.width); ccw_putcs()
152 image.width = vc->vc_font.height; ccw_putcs()
153 image.depth = 1; ccw_putcs()
169 image.height = vc->vc_font.width * cnt; ccw_putcs()
170 pitch = ((image.width + 7) >> 3) + scan_align; ccw_putcs()
172 size = pitch * image.height + buf_align; ccw_putcs()
175 image.data = dst; ccw_putcs()
177 width, cellsize, &image, buf, dst); ccw_putcs()
178 image.dy += image.height; ccw_putcs()
252 if (ops->cursor_state.image.data != src || ccw_cursor()
254 ops->cursor_state.image.data = src; ccw_cursor()
270 if (ops->cursor_state.image.fg_color != fg || ccw_cursor()
271 ops->cursor_state.image.bg_color != bg || ccw_cursor()
273 ops->cursor_state.image.fg_color = fg; ccw_cursor()
274 ops->cursor_state.image.bg_color = bg; ccw_cursor()
278 if (ops->cursor_state.image.height != vc->vc_font.width || ccw_cursor()
279 ops->cursor_state.image.width != vc->vc_font.height || ccw_cursor()
281 ops->cursor_state.image.height = vc->vc_font.width; ccw_cursor()
282 ops->cursor_state.image.width = vc->vc_font.height; ccw_cursor()
289 if (ops->cursor_state.image.dx != dx || ccw_cursor()
290 ops->cursor_state.image.dy != dy || ccw_cursor()
292 ops->cursor_state.image.dx = dx; ccw_cursor()
293 ops->cursor_state.image.dy = dy; ccw_cursor()
371 cursor.image.data = src; ccw_cursor()
372 cursor.image.fg_color = ops->cursor_state.image.fg_color; ccw_cursor()
373 cursor.image.bg_color = ops->cursor_state.image.bg_color; ccw_cursor()
374 cursor.image.dx = ops->cursor_state.image.dx; ccw_cursor()
375 cursor.image.dy = ops->cursor_state.image.dy; ccw_cursor()
376 cursor.image.height = ops->cursor_state.image.height; ccw_cursor()
377 cursor.image.width = ops->cursor_state.image.width; ccw_cursor()
382 cursor.image.depth = 1; ccw_cursor()
98 ccw_putcs_aligned(struct vc_data *vc, struct fb_info *info, const u16 *s, u32 attr, u32 cnt, u32 d_pitch, u32 s_pitch, u32 cellsize, struct fb_image *image, u8 *buf, u8 *dst) ccw_putcs_aligned() argument
H A Dfbcon_cw.c86 struct fb_image *image, u8 *buf, u8 *dst) cw_putcs_aligned()
111 info->fbops->fb_imageblit(info, image); cw_putcs_aligned()
118 struct fb_image image; cw_putcs() local
133 image.fg_color = fg; cw_putcs()
134 image.bg_color = bg; cw_putcs()
135 image.dx = vxres - ((yy + 1) * vc->vc_font.height); cw_putcs()
136 image.dy = xx * vc->vc_font.width; cw_putcs()
137 image.width = vc->vc_font.height; cw_putcs()
138 image.depth = 1; cw_putcs()
152 image.height = vc->vc_font.width * cnt; cw_putcs()
153 pitch = ((image.width + 7) >> 3) + scan_align; cw_putcs()
155 size = pitch * image.height + buf_align; cw_putcs()
158 image.data = dst; cw_putcs()
160 width, cellsize, &image, buf, dst); cw_putcs()
161 image.dy += image.height; cw_putcs()
235 if (ops->cursor_state.image.data != src || cw_cursor()
237 ops->cursor_state.image.data = src; cw_cursor()
253 if (ops->cursor_state.image.fg_color != fg || cw_cursor()
254 ops->cursor_state.image.bg_color != bg || cw_cursor()
256 ops->cursor_state.image.fg_color = fg; cw_cursor()
257 ops->cursor_state.image.bg_color = bg; cw_cursor()
261 if (ops->cursor_state.image.height != vc->vc_font.width || cw_cursor()
262 ops->cursor_state.image.width != vc->vc_font.height || cw_cursor()
264 ops->cursor_state.image.height = vc->vc_font.width; cw_cursor()
265 ops->cursor_state.image.width = vc->vc_font.height; cw_cursor()
272 if (ops->cursor_state.image.dx != dx || cw_cursor()
273 ops->cursor_state.image.dy != dy || cw_cursor()
275 ops->cursor_state.image.dx = dx; cw_cursor()
276 ops->cursor_state.image.dy = dy; cw_cursor()
354 cursor.image.data = src; cw_cursor()
355 cursor.image.fg_color = ops->cursor_state.image.fg_color; cw_cursor()
356 cursor.image.bg_color = ops->cursor_state.image.bg_color; cw_cursor()
357 cursor.image.dx = ops->cursor_state.image.dx; cw_cursor()
358 cursor.image.dy = ops->cursor_state.image.dy; cw_cursor()
359 cursor.image.height = ops->cursor_state.image.height; cw_cursor()
360 cursor.image.width = ops->cursor_state.image.width; cw_cursor()
365 cursor.image.depth = 1; cw_cursor()
83 cw_putcs_aligned(struct vc_data *vc, struct fb_info *info, const u16 *s, u32 attr, u32 cnt, u32 d_pitch, u32 s_pitch, u32 cellsize, struct fb_image *image, u8 *buf, u8 *dst) cw_putcs_aligned() argument
H A Dfbcon_ud.c88 struct fb_image *image, u8 *buf, u8 *dst) ud_putcs_aligned()
105 image->height); ud_putcs_aligned()
108 image->height); ud_putcs_aligned()
113 info->fbops->fb_imageblit(info, image); ud_putcs_aligned()
120 struct fb_image *image, u8 *buf, ud_putcs_unaligned()
139 image->height, shift_high, ud_putcs_unaligned()
147 info->fbops->fb_imageblit(info, image); ud_putcs_unaligned()
155 struct fb_image image; ud_putcs() local
171 image.fg_color = fg; ud_putcs()
172 image.bg_color = bg; ud_putcs()
173 image.dy = vyres - ((yy * vc->vc_font.height) + vc->vc_font.height); ud_putcs()
174 image.dx = vxres - ((xx + count) * vc->vc_font.width); ud_putcs()
175 image.height = vc->vc_font.height; ud_putcs()
176 image.depth = 1; ud_putcs()
192 image.width = vc->vc_font.width * cnt; ud_putcs()
193 pitch = ((image.width + 7) >> 3) + scan_align; ud_putcs()
195 size = pitch * image.height + buf_align; ud_putcs()
198 image.data = dst; ud_putcs()
202 width, cellsize, &image, buf, dst); ud_putcs()
205 width, cellsize, &image, ud_putcs()
208 image.dx += image.width; ud_putcs()
283 if (ops->cursor_state.image.data != src || ud_cursor()
285 ops->cursor_state.image.data = src; ud_cursor()
301 if (ops->cursor_state.image.fg_color != fg || ud_cursor()
302 ops->cursor_state.image.bg_color != bg || ud_cursor()
304 ops->cursor_state.image.fg_color = fg; ud_cursor()
305 ops->cursor_state.image.bg_color = bg; ud_cursor()
309 if (ops->cursor_state.image.height != vc->vc_font.height || ud_cursor()
310 ops->cursor_state.image.width != vc->vc_font.width || ud_cursor()
312 ops->cursor_state.image.height = vc->vc_font.height; ud_cursor()
313 ops->cursor_state.image.width = vc->vc_font.width; ud_cursor()
320 if (ops->cursor_state.image.dx != dx || ud_cursor()
321 ops->cursor_state.image.dy != dy || ud_cursor()
323 ops->cursor_state.image.dx = dx; ud_cursor()
324 ops->cursor_state.image.dy = dy; ud_cursor()
395 cursor.image.data = src; ud_cursor()
396 cursor.image.fg_color = ops->cursor_state.image.fg_color; ud_cursor()
397 cursor.image.bg_color = ops->cursor_state.image.bg_color; ud_cursor()
398 cursor.image.dx = ops->cursor_state.image.dx; ud_cursor()
399 cursor.image.dy = ops->cursor_state.image.dy; ud_cursor()
400 cursor.image.height = ops->cursor_state.image.height; ud_cursor()
401 cursor.image.width = ops->cursor_state.image.width; ud_cursor()
406 cursor.image.depth = 1; ud_cursor()
85 ud_putcs_aligned(struct vc_data *vc, struct fb_info *info, const u16 *s, u32 attr, u32 cnt, u32 d_pitch, u32 s_pitch, u32 cellsize, struct fb_image *image, u8 *buf, u8 *dst) ud_putcs_aligned() argument
116 ud_putcs_unaligned(struct vc_data *vc, struct fb_info *info, const u16 *s, u32 attr, u32 cnt, u32 d_pitch, u32 s_pitch, u32 cellsize, struct fb_image *image, u8 *buf, u8 *dst) ud_putcs_unaligned() argument
/linux-4.1.27/arch/x86/platform/efi/
H A Defi-bgrt.c31 void __iomem *image; efi_bgrt_init() local
59 pr_err("Ignoring BGRT: invalid image type %u (expected 0)\n", efi_bgrt_init()
64 pr_err("Ignoring BGRT: null image address\n"); efi_bgrt_init()
68 image = efi_lookup_mapped_addr(bgrt_tab->image_address); efi_bgrt_init()
69 if (!image) { efi_bgrt_init()
70 image = early_ioremap(bgrt_tab->image_address, efi_bgrt_init()
73 if (!image) { efi_bgrt_init()
74 pr_err("Ignoring BGRT: failed to map image header memory\n"); efi_bgrt_init()
79 memcpy_fromio(&bmp_header, image, sizeof(bmp_header)); efi_bgrt_init()
81 early_iounmap(image, sizeof(bmp_header)); efi_bgrt_init()
86 pr_err("Ignoring BGRT: failed to allocate memory for image (wanted %zu bytes)\n", efi_bgrt_init()
92 image = early_ioremap(bgrt_tab->image_address, efi_bgrt_init()
94 if (!image) { efi_bgrt_init()
95 pr_err("Ignoring BGRT: failed to map image memory\n"); efi_bgrt_init()
102 memcpy_fromio(bgrt_image, image, bgrt_image_size); efi_bgrt_init()
104 early_iounmap(image, bmp_header.size); efi_bgrt_init()
/linux-4.1.27/arch/x86/kernel/
H A Dmachine_kexec_32.c71 static void machine_kexec_free_page_tables(struct kimage *image) machine_kexec_free_page_tables() argument
73 free_page((unsigned long)image->arch.pgd); machine_kexec_free_page_tables()
75 free_page((unsigned long)image->arch.pmd0); machine_kexec_free_page_tables()
76 free_page((unsigned long)image->arch.pmd1); machine_kexec_free_page_tables()
78 free_page((unsigned long)image->arch.pte0); machine_kexec_free_page_tables()
79 free_page((unsigned long)image->arch.pte1); machine_kexec_free_page_tables()
82 static int machine_kexec_alloc_page_tables(struct kimage *image) machine_kexec_alloc_page_tables() argument
84 image->arch.pgd = (pgd_t *)get_zeroed_page(GFP_KERNEL); machine_kexec_alloc_page_tables()
86 image->arch.pmd0 = (pmd_t *)get_zeroed_page(GFP_KERNEL); machine_kexec_alloc_page_tables()
87 image->arch.pmd1 = (pmd_t *)get_zeroed_page(GFP_KERNEL); machine_kexec_alloc_page_tables()
89 image->arch.pte0 = (pte_t *)get_zeroed_page(GFP_KERNEL); machine_kexec_alloc_page_tables()
90 image->arch.pte1 = (pte_t *)get_zeroed_page(GFP_KERNEL); machine_kexec_alloc_page_tables()
91 if (!image->arch.pgd || machine_kexec_alloc_page_tables()
93 !image->arch.pmd0 || !image->arch.pmd1 || machine_kexec_alloc_page_tables()
95 !image->arch.pte0 || !image->arch.pte1) { machine_kexec_alloc_page_tables()
96 machine_kexec_free_page_tables(image); machine_kexec_alloc_page_tables()
121 static void machine_kexec_prepare_page_tables(struct kimage *image) machine_kexec_prepare_page_tables() argument
126 control_page = page_address(image->control_code_page); machine_kexec_prepare_page_tables()
128 pmd = image->arch.pmd0; machine_kexec_prepare_page_tables()
131 image->arch.pgd, pmd, image->arch.pte0, machine_kexec_prepare_page_tables()
134 pmd = image->arch.pmd1; machine_kexec_prepare_page_tables()
137 image->arch.pgd, pmd, image->arch.pte1, machine_kexec_prepare_page_tables()
143 * proposed image and prepare the control pages
148 * Do what every setup is needed on image and the
156 int machine_kexec_prepare(struct kimage *image) machine_kexec_prepare() argument
160 set_pages_x(image->control_code_page, 1); machine_kexec_prepare()
161 error = machine_kexec_alloc_page_tables(image); machine_kexec_prepare()
164 machine_kexec_prepare_page_tables(image); machine_kexec_prepare()
170 * when an image is freed.
172 void machine_kexec_cleanup(struct kimage *image) machine_kexec_cleanup() argument
174 set_pages_nx(image->control_code_page, 1); machine_kexec_cleanup()
175 machine_kexec_free_page_tables(image); machine_kexec_cleanup()
182 void machine_kexec(struct kimage *image) machine_kexec() argument
195 if (image->preserve_context) machine_kexec()
205 if (image->preserve_context) { machine_kexec()
218 control_page = page_address(image->control_code_page); machine_kexec()
224 page_list[PA_PGD] = __pa(image->arch.pgd); machine_kexec()
226 if (image->type == KEXEC_TYPE_DEFAULT) machine_kexec()
227 page_list[PA_SWAP_PAGE] = (page_to_pfn(image->swap_page) machine_kexec()
249 image->start = relocate_kernel_ptr((unsigned long)image->head, machine_kexec()
251 image->start, machine_kexec()
253 image->preserve_context); machine_kexec()
256 if (image->preserve_context) machine_kexec()
H A Dmachine_kexec_64.c35 static void free_transition_pgtable(struct kimage *image) free_transition_pgtable() argument
37 free_page((unsigned long)image->arch.pud); free_transition_pgtable()
38 free_page((unsigned long)image->arch.pmd); free_transition_pgtable()
39 free_page((unsigned long)image->arch.pte); free_transition_pgtable()
42 static int init_transition_pgtable(struct kimage *image, pgd_t *pgd) init_transition_pgtable() argument
51 paddr = __pa(page_address(image->control_code_page)+PAGE_SIZE); init_transition_pgtable()
57 image->arch.pud = pud; init_transition_pgtable()
65 image->arch.pmd = pmd; init_transition_pgtable()
73 image->arch.pte = pte; init_transition_pgtable()
80 free_transition_pgtable(image); init_transition_pgtable()
86 struct kimage *image = (struct kimage *)data; alloc_pgt_page() local
90 page = kimage_alloc_control_pages(image, 0); alloc_pgt_page()
99 static int init_pgtable(struct kimage *image, unsigned long start_pgtable) init_pgtable() argument
103 .context = image, init_pgtable()
129 for (i = 0; i < image->nr_segments; i++) { init_pgtable()
130 mstart = image->segment[i].mem; init_pgtable()
131 mend = mstart + image->segment[i].memsz; init_pgtable()
140 return init_transition_pgtable(image, level4p); init_pgtable()
185 /* Update purgatory as needed after various image segments have been prepared */ arch_update_purgatory()
186 static int arch_update_purgatory(struct kimage *image) arch_update_purgatory() argument
190 if (!image->file_mode) arch_update_purgatory()
194 if (image->type == KEXEC_TYPE_CRASH) { arch_update_purgatory()
195 ret = kexec_purgatory_get_set_symbol(image, "backup_dest", arch_update_purgatory()
196 &image->arch.backup_load_addr, arch_update_purgatory()
197 sizeof(image->arch.backup_load_addr), 0); arch_update_purgatory()
201 ret = kexec_purgatory_get_set_symbol(image, "backup_src", arch_update_purgatory()
202 &image->arch.backup_src_start, arch_update_purgatory()
203 sizeof(image->arch.backup_src_start), 0); arch_update_purgatory()
207 ret = kexec_purgatory_get_set_symbol(image, "backup_sz", arch_update_purgatory()
208 &image->arch.backup_src_sz, arch_update_purgatory()
209 sizeof(image->arch.backup_src_sz), 0); arch_update_purgatory()
217 static inline int arch_update_purgatory(struct kimage *image) arch_update_purgatory() argument
223 int machine_kexec_prepare(struct kimage *image) machine_kexec_prepare() argument
229 start_pgtable = page_to_pfn(image->control_code_page) << PAGE_SHIFT; machine_kexec_prepare()
232 result = init_pgtable(image, start_pgtable); machine_kexec_prepare()
237 result = arch_update_purgatory(image); machine_kexec_prepare()
244 void machine_kexec_cleanup(struct kimage *image) machine_kexec_cleanup() argument
246 free_transition_pgtable(image); machine_kexec_cleanup()
253 void machine_kexec(struct kimage *image) machine_kexec() argument
260 if (image->preserve_context) machine_kexec()
270 if (image->preserve_context) { machine_kexec()
283 control_page = page_address(image->control_code_page) + PAGE_SIZE; machine_kexec()
289 (unsigned long)__pa(page_address(image->control_code_page)); machine_kexec()
291 if (image->type == KEXEC_TYPE_DEFAULT) machine_kexec()
292 page_list[PA_SWAP_PAGE] = (page_to_pfn(image->swap_page) machine_kexec()
314 image->start = relocate_kernel((unsigned long)image->head, machine_kexec()
316 image->start, machine_kexec()
317 image->preserve_context); machine_kexec()
320 if (image->preserve_context) machine_kexec()
343 int arch_kexec_kernel_image_probe(struct kimage *image, void *buf, arch_kexec_kernel_image_probe() argument
356 image->fops = fops; arch_kexec_kernel_image_probe()
364 void *arch_kexec_kernel_image_load(struct kimage *image) arch_kexec_kernel_image_load() argument
366 vfree(image->arch.elf_headers); arch_kexec_kernel_image_load()
367 image->arch.elf_headers = NULL; arch_kexec_kernel_image_load()
369 if (!image->fops || !image->fops->load) arch_kexec_kernel_image_load()
372 return image->fops->load(image, image->kernel_buf, arch_kexec_kernel_image_load()
373 image->kernel_buf_len, image->initrd_buf, arch_kexec_kernel_image_load()
374 image->initrd_buf_len, image->cmdline_buf, arch_kexec_kernel_image_load()
375 image->cmdline_buf_len); arch_kexec_kernel_image_load()
378 int arch_kimage_file_post_load_cleanup(struct kimage *image) arch_kimage_file_post_load_cleanup() argument
380 if (!image->fops || !image->fops->cleanup) arch_kimage_file_post_load_cleanup()
383 return image->fops->cleanup(image->image_loader_data); arch_kimage_file_post_load_cleanup()
386 int arch_kexec_kernel_verify_sig(struct kimage *image, void *kernel, arch_kexec_kernel_verify_sig() argument
389 if (!image->fops || !image->fops->verify_sig) { arch_kexec_kernel_verify_sig()
394 return image->fops->verify_sig(kernel, kernel_len); arch_kexec_kernel_verify_sig()
H A Dcrash.c55 struct kimage *image; member in struct:crash_elf_data
209 struct kimage *image) fill_up_crash_elf_data()
213 ced->image = image; fill_up_crash_elf_data()
360 struct kimage *image = ced->image; prepare_elf64_ram_headers_callback() local
389 if (mstart == image->arch.backup_src_start && prepare_elf64_ram_headers_callback()
390 (mend - mstart + 1) == image->arch.backup_src_sz) prepare_elf64_ram_headers_callback()
391 phdr->p_offset = image->arch.backup_load_addr; prepare_elf64_ram_headers_callback()
498 static int prepare_elf_headers(struct kimage *image, void **addr, prepare_elf_headers() argument
508 fill_up_crash_elf_data(ced, image); prepare_elf_headers()
544 static int memmap_exclude_ranges(struct kimage *image, struct crash_mem *cmem, memmap_exclude_ranges() argument
556 start = image->arch.backup_load_addr; memmap_exclude_ranges()
557 end = start + image->arch.backup_src_sz - 1; memmap_exclude_ranges()
563 start = image->arch.elf_load_addr; memmap_exclude_ranges()
564 end = start + image->arch.elf_headers_sz - 1; memmap_exclude_ranges()
569 int crash_setup_memmap_entries(struct kimage *image, struct boot_params *params) crash_setup_memmap_entries() argument
585 ei.addr = image->arch.backup_src_start; crash_setup_memmap_entries()
586 ei.size = image->arch.backup_src_sz; crash_setup_memmap_entries()
610 ret = memmap_exclude_ranges(image, cmem, crashk_res.start, crash_setup_memmap_entries()
633 struct kimage *image = arg; determine_backup_region() local
635 image->arch.backup_src_start = start; determine_backup_region()
636 image->arch.backup_src_sz = end - start + 1; determine_backup_region()
642 int crash_load_segments(struct kimage *image) crash_load_segments() argument
654 image, determine_backup_region); crash_load_segments()
660 src_start = image->arch.backup_src_start; crash_load_segments()
661 src_sz = image->arch.backup_src_sz; crash_load_segments()
670 ret = kexec_add_buffer(image, (char *)&crash_zero_bytes, crash_load_segments()
673 &image->arch.backup_load_addr); crash_load_segments()
677 image->arch.backup_load_addr, src_start, src_sz); crash_load_segments()
681 ret = prepare_elf_headers(image, &elf_addr, &elf_sz); crash_load_segments()
685 image->arch.elf_headers = elf_addr; crash_load_segments()
686 image->arch.elf_headers_sz = elf_sz; crash_load_segments()
688 ret = kexec_add_buffer(image, (char *)elf_addr, elf_sz, elf_sz, crash_load_segments()
690 &image->arch.elf_load_addr); crash_load_segments()
692 vfree((void *)image->arch.elf_headers); crash_load_segments()
696 image->arch.elf_load_addr, elf_sz, elf_sz); crash_load_segments()
208 fill_up_crash_elf_data(struct crash_elf_data *ced, struct kimage *image) fill_up_crash_elf_data() argument
H A Dkexec-bzimage64.c69 static int setup_cmdline(struct kimage *image, struct boot_params *params, setup_cmdline() argument
79 if (image->type == KEXEC_TYPE_CRASH) { setup_cmdline()
81 " elfcorehdr=0x%lx", image->arch.elf_load_addr); setup_cmdline()
198 setup_boot_parameters(struct kimage *image, struct boot_params *params, setup_boot_parameters() argument
228 if (image->type == KEXEC_TYPE_CRASH) { setup_boot_parameters()
229 ret = crash_setup_memmap_entries(image, params); setup_boot_parameters()
329 static void *bzImage64_load(struct kimage *image, char *kernel, bzImage64_load() argument
375 if (image->type == KEXEC_TYPE_CRASH) { bzImage64_load()
376 ret = crash_load_segments(image); bzImage64_load()
385 ret = kexec_load_purgatory(image, MIN_PURGATORY_ADDR, ULONG_MAX, 1, bzImage64_load()
424 ret = kexec_add_buffer(image, (char *)params, params_misc_sz, bzImage64_load()
438 ret = kexec_add_buffer(image, kernel_buf, bzImage64_load()
450 ret = kexec_add_buffer(image, initrd, initrd_len, initrd_len, bzImage64_load()
462 setup_cmdline(image, params, bootparam_load_addr, bzImage64_load()
470 ret = kexec_purgatory_get_set_symbol(image, "entry64_regs", &regs64, bzImage64_load()
478 stack = kexec_purgatory_get_symbol_addr(image, "stack_end"); bzImage64_load()
486 ret = kexec_purgatory_get_set_symbol(image, "entry64_regs", &regs64, bzImage64_load()
491 ret = setup_boot_parameters(image, params, bootparam_load_addr, bzImage64_load()
/linux-4.1.27/arch/sparc/boot/
H A DMakefile10 targets := tftpboot.img image zImage vmlinux.aout
14 cmd_elftoaout = $(ELFTOAOUT) $(obj)/image -o $@
24 $(obj)/zImage: $(obj)/image
33 $(obj)/zImage: $(obj)/image
37 # The following lines make a readable image for U-Boot.
43 $(obj)/image.bin: $(obj)/image FORCE
46 $(obj)/image.gz: $(obj)/image.bin
58 $(obj)/uImage: $(obj)/image.gz
65 $(obj)/image: vmlinux FORCE
69 $(obj)/tftpboot.img: $(obj)/image $(obj)/piggyback System.map $(ROOT_IMG) FORCE
H A Dpiggyback.c2 Simple utility to make a single-image install kernel with initial ramdisk
37 * as PROM looks for a.out image only.
76 /* fs_img.gz is an image of initial ramdisk. */ usage()
78 fprintf(stderr, "\tKernel image will be modified in place.\n"); usage()
191 int image, tail; main() local
205 if ((image = open(argv[2], O_RDWR)) < 0) main()
207 if (read(image, buffer, 512) != 512) main()
217 * in the image a little before the gokernel symbol. main()
221 offset = get_hdrs_offset(image, argv[2]); main()
225 if (lseek(image, offset, 0) < 0) main()
233 * sparc_ramdisk_size = size of image main()
240 if (write(image, buffer + 2, 14) != 14) main()
246 if (lseek(image, 4, 0) < 0) main()
255 if (write(image, buffer, 12) != 12) main()
259 /* seek page aligned boundary in the image file and add boot image */ main()
260 if (lseek(image, AOUT_TEXT_OFFSET - start + align(end + 32), 0) < 0) main()
265 if (write(image, buffer, i) != i) main()
267 if (close(image) < 0) main()
H A Dinstall.sh15 # $2 - kernel image file
/linux-4.1.27/arch/mips/lasat/image/
H A Dhead.S8 /* Magic words identifying a software image */
15 /* image start and size */
19 /* start of kernel and entrypoint in uncompressed image */
/linux-4.1.27/drivers/video/fbdev/savage/
H A Dsavagefb_accel.c92 void savagefb_imageblit(struct fb_info *info, const struct fb_image *image) savagefb_imageblit() argument
97 u32 *src = (u32 *) image->data; savagefb_imageblit()
99 if (!image->width || !image->height) savagefb_imageblit()
102 if (image->depth != 1) { savagefb_imageblit()
103 cfb_imageblit(info, image); savagefb_imageblit()
108 fg = image->fg_color; savagefb_imageblit()
109 bg = image->bg_color; savagefb_imageblit()
111 fg = ((u32 *)info->pseudo_palette)[image->fg_color]; savagefb_imageblit()
112 bg = ((u32 *)info->pseudo_palette)[image->bg_color]; savagefb_imageblit()
122 width = (image->width + 31) & ~31; savagefb_imageblit()
123 size = (width * image->height)/8; savagefb_imageblit()
128 BCI_SEND(BCI_CLIP_LR(image->dx, image->dx + image->width - 1)); savagefb_imageblit()
131 BCI_SEND(BCI_X_Y(image->dx, image->dy)); savagefb_imageblit()
132 BCI_SEND(BCI_W_H(width, image->height)); savagefb_imageblit()
/linux-4.1.27/arch/powerpc/boot/
H A DMakefile14 # needed to build the 32 bit image. That's normally the same
215 image-$(CONFIG_PPC_PSERIES) += zImage.pseries
216 image-$(CONFIG_PPC_POWERNV) += zImage.pseries
217 image-$(CONFIG_PPC_MAPLE) += zImage.maple
218 image-$(CONFIG_PPC_IBM_CELL_BLADE) += zImage.pseries
219 image-$(CONFIG_PPC_PS3) += dtbImage.ps3
220 image-$(CONFIG_PPC_CELL_QPACE) += zImage.pseries
221 image-$(CONFIG_PPC_CHRP) += zImage.chrp
222 image-$(CONFIG_PPC_EFIKA) += zImage.chrp
223 image-$(CONFIG_PPC_PMAC) += zImage.pmac
224 image-$(CONFIG_PPC_HOLLY) += dtbImage.holly
225 image-$(CONFIG_DEFAULT_UIMAGE) += uImage
226 image-$(CONFIG_EPAPR_BOOT) += zImage.epapr
237 image-$(CONFIG_EP405) += dtbImage.ep405
238 image-$(CONFIG_HOTFOOT) += cuImage.hotfoot
239 image-$(CONFIG_WALNUT) += treeImage.walnut
240 image-$(CONFIG_ACADIA) += cuImage.acadia
241 image-$(CONFIG_OBS600) += uImage.obs600
244 image-$(CONFIG_EBONY) += treeImage.ebony cuImage.ebony
245 image-$(CONFIG_BAMBOO) += treeImage.bamboo cuImage.bamboo
246 image-$(CONFIG_SAM440EP) += cuImage.sam440ep
247 image-$(CONFIG_SEQUOIA) += cuImage.sequoia
248 image-$(CONFIG_RAINIER) += cuImage.rainier
249 image-$(CONFIG_TAISHAN) += cuImage.taishan
250 image-$(CONFIG_KATMAI) += cuImage.katmai
251 image-$(CONFIG_WARP) += cuImage.warp
252 image-$(CONFIG_YOSEMITE) += cuImage.yosemite
253 image-$(CONFIG_ISS4xx) += treeImage.iss4xx \
255 image-$(CONFIG_CURRITUCK) += treeImage.currituck
256 image-$(CONFIG_AKEBONO) += treeImage.akebono
259 image-$(CONFIG_MPC86XADS) += cuImage.mpc866ads
260 image-$(CONFIG_MPC885ADS) += cuImage.mpc885ads
261 image-$(CONFIG_PPC_EP88XC) += dtbImage.ep88xc
262 image-$(CONFIG_PPC_ADDER875) += cuImage.adder875-uboot \
266 image-$(CONFIG_PPC_LITE5200) += cuImage.lite5200 lite5200.dtb
267 image-$(CONFIG_PPC_LITE5200) += cuImage.lite5200b lite5200b.dtb
268 image-$(CONFIG_PPC_MEDIA5200) += cuImage.media5200 media5200.dtb
271 image-$(CONFIG_MPC8272_ADS) += cuImage.mpc8272ads
272 image-$(CONFIG_PQ2FADS) += cuImage.pq2fads
273 image-$(CONFIG_EP8248E) += dtbImage.ep8248e
276 image-$(CONFIG_MPC832x_MDS) += cuImage.mpc832x_mds
277 image-$(CONFIG_MPC832x_RDB) += cuImage.mpc832x_rdb
278 image-$(CONFIG_MPC834x_ITX) += cuImage.mpc8349emitx \
280 image-$(CONFIG_MPC834x_MDS) += cuImage.mpc834x_mds
281 image-$(CONFIG_MPC836x_MDS) += cuImage.mpc836x_mds
282 image-$(CONFIG_ASP834x) += dtbImage.asp834x-redboot
285 image-$(CONFIG_MPC8540_ADS) += cuImage.mpc8540ads
286 image-$(CONFIG_MPC8560_ADS) += cuImage.mpc8560ads
287 image-$(CONFIG_MPC85xx_CDS) += cuImage.mpc8541cds \
290 image-$(CONFIG_MPC85xx_MDS) += cuImage.mpc8568mds
291 image-$(CONFIG_MPC85xx_DS) += cuImage.mpc8544ds \
293 image-$(CONFIG_TQM8540) += cuImage.tqm8540
294 image-$(CONFIG_TQM8541) += cuImage.tqm8541
295 image-$(CONFIG_TQM8548) += cuImage.tqm8548
296 image-$(CONFIG_TQM8555) += cuImage.tqm8555
297 image-$(CONFIG_TQM8560) += cuImage.tqm8560
298 image-$(CONFIG_SBC8548) += cuImage.sbc8548
299 image-$(CONFIG_KSI8560) += cuImage.ksi8560
302 image-$(CONFIG_STORCENTER) += cuImage.storcenter
303 image-$(CONFIG_MPC7448HPC2) += cuImage.mpc7448hpc2
304 image-$(CONFIG_PPC_C2K) += cuImage.c2k
305 image-$(CONFIG_GAMECUBE) += dtbImage.gamecube
306 image-$(CONFIG_WII) += dtbImage.wii
307 image-$(CONFIG_MVME5100) += dtbImage.mvme5100
310 image-$(CONFIG_AMIGAONE) += cuImage.amigaone
315 image-$(CONFIG_PPC_PMAC) += zImage.coff zImage.miboot
319 image-y += $(subst ",,$(CONFIG_EXTRA_TARGETS))
321 initrd- := $(patsubst zImage%, zImage.initrd%, $(image-))
325 $(patsubst treeImage%, treeImage.initrd%, $(image-y)))))
326 initrd-y := $(filter-out $(image-y), $(initrd-y))
327 targets += $(image-y) $(initrd-y)
329 $(addprefix $(obj)/, $(initrd-y)): $(obj)/ramdisk.image.gz
335 $(call if_changed,wrap,$*,,,$(obj)/ramdisk.image.gz)
337 $(addprefix $(obj)/, $(sort $(filter zImage.%, $(image-y)))): vmlinux $(wrapperbits)
342 $(call if_changed,wrap,$*,,$(obj)/$*.dtb,$(obj)/ramdisk.image.gz)
356 $(call if_changed,wrap,uboot-$*,,$(obj)/$*.dtb,$(obj)/ramdisk.image.gz)
362 $(call if_changed,wrap,cuboot-$*,,$(obj)/$*.dtb,$(obj)/ramdisk.image.gz)
368 $(call if_changed,wrap,simpleboot-$*,,$(obj)/$*.dtb,$(obj)/ramdisk.image.gz)
374 $(call if_changed,wrap,treeboot-$*,,$(obj)/$*.dtb,$(obj)/ramdisk.image.gz)
384 ifeq (,$(image-y))
385 image-y := vmlinux.strip
388 $(obj)/zImage: $(addprefix $(obj)/, $(image-y))
394 install: $(CONFIGURE) $(addprefix $(obj)/, $(image-y))
398 zInstall: $(CONFIGURE) $(addprefix $(obj)/, $(image-y))
402 clean-files += $(image-) $(initrd-) cuImage.* dtbImage.* treeImage.* \
H A Dmktree.c2 * Makes a tree bootable image for IBM Evaluation boards.
24 /* This gets tacked on the front of the image. There are also a few
30 uint32_t bb_dest; /* Target address of the image */
32 uint32_t bb_debug_flag; /* Run debugger or image after load */
33 uint32_t bb_entry_point; /* The image address to start */
50 fprintf(stderr, "usage: %s <zImage-file> <boot-image> <load address> <entry point>\n",argv[0]); main()
99 fprintf(stderr, "%s is too small to be an ELF image\n", main()
105 fprintf(stderr, "%s is not an ELF image\n", argv[1]); main()
110 fprintf(stderr, "%s failed to seek in ELF image\n", argv[1]); main()
119 perror("boot-image write"); main()
132 perror("boot-image write"); main()
145 perror("boot-image rewrite"); main()
H A Dgunzip_util.h17 * kernel images, initrd images or any other gzip compressed image,
18 * particularly if its useful to decompress part of the image (e.g. to
H A Dwrapper7 # This script takes a kernel binary and optionally an initrd image
193 ksection=image
330 # it in the image header
337 # physical offset of kernel image
352 # obs600 wants a multi image with an initrd, so we need to put a fake
353 # one in even when building a "normal" image.
435 # The ps3's loader supports loading a gzipped binary image from flash
438 # a binary image of the kernel to be at addr zero, and yet have a
440 # image 512 bytes from offset 0x100 is copied to the bootwrapper
H A Dcuboot-kilauea.c2 * Old U-boot compatibility for PPC405EX. This image is already included
H A Dps3-head.S31 * __system_reset_overlay to offset 0x100 of the rom image. This symbol
81 * of the rom image to the symbol __system_reset_kernel. At runtime
/linux-4.1.27/arch/ia64/kernel/
H A Dmachine_kexec.c54 * Do what every setup is needed on image and the
58 int machine_kexec_prepare(struct kimage *image) machine_kexec_prepare() argument
65 control_code_buffer = page_address(image->control_code_page); machine_kexec_prepare()
70 ia64_kimage = image; machine_kexec_prepare()
75 void machine_kexec_cleanup(struct kimage *image) machine_kexec_cleanup() argument
85 struct kimage *image = arg; ia64_machine_kexec() local
93 BUG_ON(!image); ia64_machine_kexec()
94 code_addr = (unsigned long)page_address(image->control_code_page); ia64_machine_kexec()
95 if (image->type == KEXEC_TYPE_CRASH) { ia64_machine_kexec()
134 (*rnk)(image->head, image->start, ia64_boot_param, ia64_machine_kexec()
139 void machine_kexec(struct kimage *image) machine_kexec() argument
141 BUG_ON(!image); machine_kexec()
142 unw_init_running(ia64_machine_kexec, image); machine_kexec()
/linux-4.1.27/arch/m68k/kernel/
H A Dmachine_kexec.c37 void machine_kexec(struct kimage *image) machine_kexec() argument
42 reboot_code_buffer = page_address(image->control_code_page); machine_kexec()
52 pr_info("Will call new kernel at 0x%08lx. Bye...\n", image->start); machine_kexec()
55 ((relocate_kernel_t) reboot_code_buffer)(image->head & PAGE_MASK, machine_kexec()
56 image->start, machine_kexec()
/linux-4.1.27/drivers/video/fbdev/core/
H A Dcfbimgblt.c12 * This function copys a image from system memory to video memory. The
13 * image can be a bitmap where each 0 represents the background color and
15 * also be a color image. This is determined by image_depth. The color image
75 static inline void color_imageblit(const struct fb_image *image, color_imageblit() argument
86 const u8 *src = image->data; color_imageblit()
90 for (i = image->height; i--; ) { color_imageblit()
91 n = image->width; color_imageblit()
137 static inline void slow_imageblit(const struct fb_image *image, struct fb_info *p, slow_imageblit() argument
147 u32 spitch = (image->width+7)/8; slow_imageblit()
148 const u8 *src = image->data, *s; slow_imageblit()
156 for (i = image->height; i--; ) { slow_imageblit()
159 j = image->width; slow_imageblit()
211 * image->width is divisible by pixel/dword (ppw);
215 static inline void fast_imageblit(const struct fb_image *image, struct fb_info *p, fast_imageblit() argument
220 u32 ppw = 32/bpp, spitch = (image->width + 7)/8; fast_imageblit()
222 const char *s = image->data, *src; fast_imageblit()
249 k = image->width/ppw; fast_imageblit()
251 for (i = image->height; i--; ) { fast_imageblit()
265 void cfb_imageblit(struct fb_info *p, const struct fb_image *image) cfb_imageblit() argument
269 u32 width = image->width; cfb_imageblit()
270 u32 dx = image->dx, dy = image->dy; cfb_imageblit()
287 if (image->depth == 1) { cfb_imageblit()
290 fgcolor = ((u32*)(p->pseudo_palette))[image->fg_color]; cfb_imageblit()
291 bgcolor = ((u32*)(p->pseudo_palette))[image->bg_color]; cfb_imageblit()
293 fgcolor = image->fg_color; cfb_imageblit()
294 bgcolor = image->bg_color; cfb_imageblit()
300 fast_imageblit(image, p, dst1, fgcolor, bgcolor); cfb_imageblit()
302 slow_imageblit(image, p, dst1, fgcolor, bgcolor, cfb_imageblit()
305 color_imageblit(image, p, dst1, start_index, pitch_index); cfb_imageblit()
H A Dsysimgblt.c52 static void color_imageblit(const struct fb_image *image, struct fb_info *p, color_imageblit() argument
61 const u8 *src = image->data; color_imageblit()
64 for (i = image->height; i--; ) { color_imageblit()
65 n = image->width; color_imageblit()
111 static void slow_imageblit(const struct fb_image *image, struct fb_info *p, slow_imageblit() argument
119 u32 spitch = (image->width+7)/8; slow_imageblit()
120 const u8 *src = image->data, *s; slow_imageblit()
127 for (i = image->height; i--; ) { slow_imageblit()
130 j = image->width; slow_imageblit()
182 * image->width is divisible by pixel/dword (ppw);
186 static void fast_imageblit(const struct fb_image *image, struct fb_info *p, fast_imageblit() argument
190 u32 ppw = 32/bpp, spitch = (image->width + 7)/8; fast_imageblit()
192 const char *s = image->data, *src; fast_imageblit()
219 k = image->width/ppw; fast_imageblit()
221 for (i = image->height; i--; ) { fast_imageblit()
240 void sys_imageblit(struct fb_info *p, const struct fb_image *image) sys_imageblit() argument
244 u32 width = image->width; sys_imageblit()
245 u32 dx = image->dx, dy = image->dy; sys_imageblit()
262 if (image->depth == 1) { sys_imageblit()
265 fgcolor = ((u32*)(p->pseudo_palette))[image->fg_color]; sys_imageblit()
266 bgcolor = ((u32*)(p->pseudo_palette))[image->bg_color]; sys_imageblit()
268 fgcolor = image->fg_color; sys_imageblit()
269 bgcolor = image->bg_color; sys_imageblit()
275 fast_imageblit(image, p, dst1, fgcolor, bgcolor); sys_imageblit()
277 slow_imageblit(image, p, dst1, fgcolor, bgcolor, sys_imageblit()
280 color_imageblit(image, p, dst1, start_index, pitch_index); sys_imageblit()
H A Dfbmem.c391 struct fb_image *image, int rotate) fb_rotate_logo()
396 fb_rotate_logo_ud(image->data, dst, image->width, fb_rotate_logo()
397 image->height); fb_rotate_logo()
398 image->dx = info->var.xres - image->width - image->dx; fb_rotate_logo()
399 image->dy = info->var.yres - image->height - image->dy; fb_rotate_logo()
401 fb_rotate_logo_cw(image->data, dst, image->width, fb_rotate_logo()
402 image->height); fb_rotate_logo()
403 tmp = image->width; fb_rotate_logo()
404 image->width = image->height; fb_rotate_logo()
405 image->height = tmp; fb_rotate_logo()
406 tmp = image->dy; fb_rotate_logo()
407 image->dy = image->dx; fb_rotate_logo()
408 image->dx = info->var.xres - image->width - tmp; fb_rotate_logo()
410 fb_rotate_logo_ccw(image->data, dst, image->width, fb_rotate_logo()
411 image->height); fb_rotate_logo()
412 tmp = image->width; fb_rotate_logo()
413 image->width = image->height; fb_rotate_logo()
414 image->height = tmp; fb_rotate_logo()
415 tmp = image->dx; fb_rotate_logo()
416 image->dx = image->dy; fb_rotate_logo()
417 image->dy = info->var.yres - image->height - tmp; fb_rotate_logo()
420 image->data = dst; fb_rotate_logo()
423 static void fb_do_show_logo(struct fb_info *info, struct fb_image *image, fb_do_show_logo() argument
430 x < num && image->dx + image->width <= info->var.xres; fb_do_show_logo()
432 info->fbops->fb_imageblit(info, image); fb_do_show_logo()
433 image->dx += image->width + 8; fb_do_show_logo()
437 info->fbops->fb_imageblit(info, image); fb_do_show_logo()
438 image->dx -= image->width + 8; fb_do_show_logo()
442 x < num && image->dy + image->height <= info->var.yres; fb_do_show_logo()
444 info->fbops->fb_imageblit(info, image); fb_do_show_logo()
445 image->dy += image->height + 8; fb_do_show_logo()
449 info->fbops->fb_imageblit(info, image); fb_do_show_logo()
450 image->dy -= image->height + 8; fb_do_show_logo()
461 struct fb_image image; fb_show_logo_line() local
468 image.depth = 8; fb_show_logo_line()
469 image.data = logo->data; fb_show_logo_line()
497 image.data = logo_new; fb_show_logo_line()
501 image.dx = 0; fb_show_logo_line()
502 image.dy = y; fb_show_logo_line()
503 image.width = logo->width; fb_show_logo_line()
504 image.height = logo->height; fb_show_logo_line()
510 fb_rotate_logo(info, logo_rotate, &image, rotate); fb_show_logo_line()
513 fb_do_show_logo(info, &image, rotate, n); fb_show_logo_line()
390 fb_rotate_logo(struct fb_info *info, u8 *dst, struct fb_image *image, int rotate) fb_rotate_logo() argument
/linux-4.1.27/drivers/video/fbdev/mb862xx/
H A Dmb862xxfb_accel.c72 * Fill in the cmd array /GDC FIFO commands/ to draw a 1bit image.
77 u32 bgcolor, const struct fb_image *image, mb86290fb_imageblit1()
96 line = image->data; mb86290fb_imageblit1()
97 bytes = (image->width + 7) >> 3; mb86290fb_imageblit1()
99 /* and the image */ mb86290fb_imageblit1()
121 * Fill in the cmd array /GDC FIFO commands/ to draw a 8bit image.
126 u32 bgcolor, const struct fb_image *image, mb86290fb_imageblit8()
139 line = ptr = image->data; mb86290fb_imageblit8()
140 bytes = image->width; mb86290fb_imageblit8()
160 * Fill in the cmd array /GDC FIFO commands/ to draw a 16bit image.
165 u32 bgcolor, const struct fb_image *image, mb86290fb_imageblit16()
173 line = image->data; mb86290fb_imageblit16()
174 bytes = image->width << 1; mb86290fb_imageblit16()
189 const struct fb_image *image) mb86290fb_imageblit()
199 u16 width = image->width, height = image->height; mb86290fb_imageblit()
200 u16 dx = image->dx, dy = image->dy; mb86290fb_imageblit()
204 x2 = image->dx + image->width; mb86290fb_imageblit()
205 y2 = image->dy + image->height; mb86290fb_imageblit()
213 switch (image->depth) { mb86290fb_imageblit()
221 ((u32 *) (info->pseudo_palette))[image->fg_color]; mb86290fb_imageblit()
223 ((u32 *) (info->pseudo_palette))[image->bg_color]; mb86290fb_imageblit()
225 fgcolor = image->fg_color; mb86290fb_imageblit()
226 bgcolor = image->bg_color; mb86290fb_imageblit()
244 cfb_imageblit(info, image); mb86290fb_imageblit()
250 return cfb_imageblit(info, image); mb86290fb_imageblit()
251 cmdfn(cmd, step, dx, dy, width, height, fgcolor, bgcolor, image, info); mb86290fb_imageblit()
75 mb86290fb_imageblit1(u32 *cmd, u16 step, u16 dx, u16 dy, u16 width, u16 height, u32 fgcolor, u32 bgcolor, const struct fb_image *image, struct fb_info *info) mb86290fb_imageblit1() argument
124 mb86290fb_imageblit8(u32 *cmd, u16 step, u16 dx, u16 dy, u16 width, u16 height, u32 fgcolor, u32 bgcolor, const struct fb_image *image, struct fb_info *info) mb86290fb_imageblit8() argument
163 mb86290fb_imageblit16(u32 *cmd, u16 step, u16 dx, u16 dy, u16 width, u16 height, u32 fgcolor, u32 bgcolor, const struct fb_image *image, struct fb_info *info) mb86290fb_imageblit16() argument
188 mb86290fb_imageblit(struct fb_info *info, const struct fb_image *image) mb86290fb_imageblit() argument
/linux-4.1.27/arch/sh/kernel/
H A Dmachine_kexec.c41 * Do what every setup is needed on image and the
45 int machine_kexec_prepare(struct kimage *image) machine_kexec_prepare() argument
50 void machine_kexec_cleanup(struct kimage *image) machine_kexec_cleanup() argument
54 static void kexec_info(struct kimage *image) kexec_info() argument
58 for (i = 0; i < image->nr_segments; i++) { kexec_info()
61 (unsigned int)image->segment[i].mem, kexec_info()
62 (unsigned int)image->segment[i].mem + kexec_info()
63 image->segment[i].memsz, kexec_info()
64 (unsigned int)image->segment[i].memsz); kexec_info()
66 printk(" start : 0x%08x\n\n", (unsigned int)image->start); kexec_info()
73 void machine_kexec(struct kimage *image) machine_kexec() argument
87 for (ptr = &image->head; (entry = *ptr) && !(entry & IND_DONE); machine_kexec()
96 if (image->preserve_context) machine_kexec()
105 page_list = image->head; machine_kexec()
109 (unsigned long)page_address(image->control_code_page); machine_kexec()
115 kexec_info(image); machine_kexec()
123 (unsigned long)phys_to_virt(image->start)); machine_kexec()
128 if (image->preserve_context) machine_kexec()
132 for (ptr = &image->head; (entry = *ptr) && !(entry & IND_DONE); machine_kexec()
/linux-4.1.27/arch/s390/kernel/
H A Dmachine_kexec.c110 static void __do_machine_kdump(void *image) __do_machine_kdump() argument
112 int (*start_kdump)(int) = (void *)((struct kimage *) image)->start; __do_machine_kdump()
122 static int kdump_csum_valid(struct kimage *image) kdump_csum_valid() argument
125 int (*start_kdump)(int) = (void *)image->start; kdump_csum_valid()
188 int machine_kexec_prepare(struct kimage *image) machine_kexec_prepare() argument
192 /* Can't replace kernel image since it is read-only. */ machine_kexec_prepare()
196 if (image->type == KEXEC_TYPE_CRASH) machine_kexec_prepare()
199 /* We don't support anything but the default image type for now. */ machine_kexec_prepare()
200 if (image->type != KEXEC_TYPE_DEFAULT) machine_kexec_prepare()
204 reboot_code_buffer = (void *) page_to_phys(image->control_code_page); machine_kexec_prepare()
211 void machine_kexec_cleanup(struct kimage *image) machine_kexec_cleanup() argument
236 struct kimage *image = data; __do_machine_kexec() local
238 data_mover = (relocate_kernel_t) page_to_phys(image->control_code_page); __do_machine_kexec()
241 (*data_mover)(&image->head, image->start); __do_machine_kexec()
268 void machine_kexec(struct kimage *image) machine_kexec() argument
270 if (image->type == KEXEC_TYPE_CRASH && !kdump_csum_valid(image)) machine_kexec()
274 smp_call_ipl_cpu(__machine_kexec, image); machine_kexec()
/linux-4.1.27/drivers/gpu/drm/qxl/
H A Dqxl_image.c35 struct qxl_drm_image *image, qxl_allocate_chunk()
51 list_add_tail(&chunk->head, &image->chunk_list); qxl_allocate_chunk()
61 struct qxl_drm_image *image; qxl_image_alloc_objects() local
64 image = kmalloc(sizeof(struct qxl_drm_image), GFP_KERNEL); qxl_image_alloc_objects()
65 if (!image) qxl_image_alloc_objects()
68 INIT_LIST_HEAD(&image->chunk_list); qxl_image_alloc_objects()
70 ret = qxl_alloc_bo_reserved(qdev, release, sizeof(struct qxl_image), &image->bo); qxl_image_alloc_objects()
72 kfree(image); qxl_image_alloc_objects()
76 ret = qxl_allocate_chunk(qdev, release, image, sizeof(struct qxl_data_chunk) + stride * height); qxl_image_alloc_objects()
78 qxl_bo_unref(&image->bo); qxl_image_alloc_objects()
79 kfree(image); qxl_image_alloc_objects()
82 *image_ptr = image; qxl_image_alloc_objects()
109 struct qxl_image *image; qxl_image_init_helper() local
191 image = ptr; qxl_image_init_helper()
193 image->descriptor.id = 0; qxl_image_init_helper()
194 image->descriptor.type = SPICE_IMAGE_TYPE_BITMAP; qxl_image_init_helper()
196 image->descriptor.flags = 0; qxl_image_init_helper()
197 image->descriptor.width = width; qxl_image_init_helper()
198 image->descriptor.height = height; qxl_image_init_helper()
203 image->u.bitmap.format = SPICE_BITMAP_FMT_1BIT_BE; qxl_image_init_helper()
206 image->u.bitmap.format = SPICE_BITMAP_FMT_24BIT; qxl_image_init_helper()
209 image->u.bitmap.format = SPICE_BITMAP_FMT_32BIT; qxl_image_init_helper()
212 DRM_ERROR("unsupported image bit depth\n"); qxl_image_init_helper()
215 image->u.bitmap.flags = QXL_BITMAP_TOP_DOWN; qxl_image_init_helper()
216 image->u.bitmap.x = width; qxl_image_init_helper()
217 image->u.bitmap.y = height; qxl_image_init_helper()
218 image->u.bitmap.stride = chunk_stride; qxl_image_init_helper()
219 image->u.bitmap.palette = 0; qxl_image_init_helper()
220 image->u.bitmap.data = qxl_bo_physical_address(qdev, chunk_bo, 0); qxl_image_init_helper()
33 qxl_allocate_chunk(struct qxl_device *qdev, struct qxl_release *release, struct qxl_drm_image *image, unsigned int chunk_size) qxl_allocate_chunk() argument
H A Dqxl_fb.c79 const struct fb_image *image) qxl_fb_image_init()
91 if (image->depth == 1) qxl_fb_image_init()
96 if (image) { qxl_fb_image_init()
97 memcpy(&qxl_fb_image->fb_image, image, qxl_fb_image_init()
107 struct fb_image *image = &qxl_fb_image.fb_image; qxl_fb_dirty_flush() local
121 image->dx = x1; qxl_fb_dirty_flush()
122 image->dy = y1; qxl_fb_dirty_flush()
123 image->width = x2 - x1; qxl_fb_dirty_flush()
124 image->height = y2 - y1; qxl_fb_dirty_flush()
125 image->fg_color = 0xffffffff; /* unused, just to avoid uninitialized qxl_fb_dirty_flush()
127 image->bg_color = 0; qxl_fb_dirty_flush()
128 image->depth = 32; /* TODO: take from somewhere? */ qxl_fb_dirty_flush()
129 image->cmap.start = 0; qxl_fb_dirty_flush()
130 image->cmap.len = 0; qxl_fb_dirty_flush()
131 image->cmap.red = NULL; qxl_fb_dirty_flush()
132 image->cmap.green = NULL; qxl_fb_dirty_flush()
133 image->cmap.blue = NULL; qxl_fb_dirty_flush()
134 image->cmap.transp = NULL; qxl_fb_dirty_flush()
135 image->data = qfbdev->shadow + (x1 * 4) + (stride * y1); qxl_fb_dirty_flush()
337 const struct fb_image *image) qxl_fb_imageblit_internal()
344 qxl_fb_image_init(&qxl_fb_image, qfbdev->qdev, info, image); qxl_fb_imageblit_internal()
349 const struct fb_image *image) qxl_fb_imageblit()
355 qxl_fb_delayed_imageblit(qfbdev, image); qxl_fb_imageblit()
361 qxl_fb_imageblit_internal(info, image); qxl_fb_imageblit()
77 qxl_fb_image_init(struct qxl_fb_image *qxl_fb_image, struct qxl_device *qdev, struct fb_info *info, const struct fb_image *image) qxl_fb_image_init() argument
336 qxl_fb_imageblit_internal(struct fb_info *info, const struct fb_image *image) qxl_fb_imageblit_internal() argument
348 qxl_fb_imageblit(struct fb_info *info, const struct fb_image *image) qxl_fb_imageblit() argument
/linux-4.1.27/arch/powerpc/platforms/powernv/
H A Dopal-flash.c31 /* Validate image status values */
35 /* Manage image status values */
38 /* Flash image status values */
40 #define FLASH_INVALID_IMG -1003 /* Flash image shorter than expected */
45 #define FLASH_REJECT_TMP_SIDE 0 /* Reject temporary fw image */
46 #define FLASH_COMMIT_TMP_SIDE 1 /* Commit temporary fw image */
52 /* Validate image update result tokens */
55 #define VALIDATE_INVALID_IMG 2 /* Candidate image is not valid */
59 * image, and the new image is downlevel from current image
64 * image
68 * T side will be updated with a downlevel image
72 * The candidate image's release date is later than the system's firmware
80 /* XXX: Assume candidate image size is <= 1GB */
90 /* Candidate image data */
97 /* Candidate image header */
106 void *buf; /* Candidate image buffer */
132 * Validate candidate image
151 * current image version details
152 * new image version details
160 /* Candidate image is not validated */ validate_show()
169 /* Current and candidate image version details */ validate_show()
188 * Validate candidate firmware image
192 * candidate image.
212 /* Copy first 4k bytes of candidate image */ validate_store()
218 /* Validate candidate image */ validate_store()
272 /* commit/reject temporary image */ manage_store()
348 * Show candidate image status
358 * Set update image flag
359 * 1 - Flash new image
394 * Free image buffer
414 * Allocate image buffer.
422 pr_warn("FLASH: Invalid candidate image\n"); alloc_image_buf()
428 pr_debug("FLASH: Candidate image size = %u\n", image_data.size); alloc_image_buf()
431 pr_warn("FLASH: Too large image\n"); alloc_image_buf()
459 * Copy candidate image
461 * Parse candidate image header to get total image size
472 /* New image ? */ image_data_write()
478 /* Cancel outstanding image update request */ image_data_write()
501 /* Set image status */ image_data_write()
503 pr_debug("FLASH: Candidate image loaded....\n"); image_data_write()
517 * image : Interface to load candidate firmware image
518 * validate_flash : Validate firmware image
519 * manage_flash : Commit/Reject firmware image
520 * update_flash : Flash new firmware image
524 .attr = {.name = "image", .mode = 0200},
525 .size = MAX_IMAGE_SIZE, /* Limit image size */
553 /* Allocate validate image buffer */ opal_flash_update_init()
/linux-4.1.27/drivers/staging/vme/devices/
H A Dvme_user.c53 * 0 = /dev/bus/vme/m0 First master image
54 * 1 = /dev/bus/vme/m1 Second master image
55 * 2 = /dev/bus/vme/m2 Third master image
56 * 3 = /dev/bus/vme/m3 Fourth master image
57 * 4 = /dev/bus/vme/s0 First slave image
58 * 5 = /dev/bus/vme/s1 Second slave image
59 * 6 = /dev/bus/vme/s2 Third slave image
60 * 7 = /dev/bus/vme/s3 Fourth slave image
90 #define PCI_BUF_SIZE 0x20000 /* Size of one slave image buffer */
93 * Structure to handle image related parameters.
99 struct mutex mutex; /* Mutex for locking image */
105 static struct image_desc image[VME_DEVS]; variable in typeref:struct:image_desc
189 mutex_lock(&image[minor].mutex); vme_user_open()
191 if (minor < CONTROL_MINOR && image[minor].resource == NULL) { vme_user_open()
198 image[minor].users++; vme_user_open()
200 mutex_unlock(&image[minor].mutex); vme_user_open()
205 mutex_unlock(&image[minor].mutex); vme_user_open()
214 mutex_lock(&image[minor].mutex); vme_user_release()
217 image[minor].users--; vme_user_release()
219 mutex_unlock(&image[minor].mutex); vme_user_release()
236 if (count <= image[minor].size_buf) { resource_to_user()
238 copied = vme_master_read(image[minor].resource, resource_to_user()
239 image[minor].kern_buf, count, *ppos); resource_to_user()
243 retval = __copy_to_user(buf, image[minor].kern_buf, resource_to_user()
275 if (count <= image[minor].size_buf) { resource_from_user()
276 retval = __copy_from_user(image[minor].kern_buf, buf, resource_from_user()
283 copied = vme_master_write(image[minor].resource, resource_from_user()
284 image[minor].kern_buf, copied, *ppos); resource_from_user()
303 image_ptr = image[minor].kern_buf + *ppos; buffer_to_user()
322 image_ptr = image[minor].kern_buf + *ppos; buffer_from_user()
346 mutex_lock(&image[minor].mutex); vme_user_read()
349 image_size = vme_get_size(image[minor].resource); vme_user_read()
353 mutex_unlock(&image[minor].mutex); vme_user_read()
357 /* Ensure not reading past end of the image */ vme_user_read()
374 mutex_unlock(&image[minor].mutex); vme_user_read()
392 mutex_lock(&image[minor].mutex); vme_user_write()
394 image_size = vme_get_size(image[minor].resource); vme_user_write()
398 mutex_unlock(&image[minor].mutex); vme_user_write()
402 /* Ensure not reading past end of the image */ vme_user_write()
419 mutex_unlock(&image[minor].mutex); vme_user_write()
436 mutex_lock(&image[minor].mutex); vme_user_llseek()
437 image_size = vme_get_size(image[minor].resource); vme_user_llseek()
439 mutex_unlock(&image[minor].mutex); vme_user_llseek()
492 retval = vme_master_get(image[minor].resource, vme_user_ioctl()
508 if (image[minor].mmap_count != 0) { vme_user_ioctl()
522 return vme_master_set(image[minor].resource, vme_user_ioctl()
537 retval = vme_slave_get(image[minor].resource, vme_user_ioctl()
562 return vme_slave_set(image[minor].resource, vme_user_ioctl()
564 image[minor].pci_buf, slave.aspace, vme_user_ioctl()
582 mutex_lock(&image[minor].mutex); vme_user_unlocked_ioctl()
584 mutex_unlock(&image[minor].mutex); vme_user_unlocked_ioctl()
604 mutex_lock(&image[minor].mutex); vme_user_vm_close()
605 image[minor].mmap_count--; vme_user_vm_close()
606 mutex_unlock(&image[minor].mutex); vme_user_vm_close()
616 mutex_lock(&image[minor].mutex); vme_user_master_mmap()
618 err = vme_master_mmap(image[minor].resource, vma); vme_user_master_mmap()
620 mutex_unlock(&image[minor].mutex); vme_user_master_mmap()
626 mutex_unlock(&image[minor].mutex); vme_user_master_mmap()
635 image[minor].mmap_count++; vme_user_master_mmap()
637 mutex_unlock(&image[minor].mutex); vme_user_master_mmap()
658 if (image[num].kern_buf) { buf_unalloc()
661 image[num].pci_buf); buf_unalloc()
664 vme_free_consistent(image[num].resource, image[num].size_buf, buf_unalloc()
665 image[num].kern_buf, image[num].pci_buf); buf_unalloc()
667 image[num].kern_buf = NULL; buf_unalloc()
668 image[num].pci_buf = 0; buf_unalloc()
669 image[num].size_buf = 0; buf_unalloc()
758 image[i].kern_buf = NULL; vme_user_probe()
759 image[i].pci_buf = 0; vme_user_probe()
760 mutex_init(&image[i].mutex); vme_user_probe()
761 image[i].device = NULL; vme_user_probe()
762 image[i].resource = NULL; vme_user_probe()
763 image[i].users = 0; vme_user_probe()
799 image[i].resource = vme_slave_request(vme_user_bridge, vme_user_probe()
801 if (image[i].resource == NULL) { vme_user_probe()
807 image[i].size_buf = PCI_BUF_SIZE; vme_user_probe()
808 image[i].kern_buf = vme_alloc_consistent(image[i].resource, vme_user_probe()
809 image[i].size_buf, &image[i].pci_buf); vme_user_probe()
810 if (image[i].kern_buf == NULL) { vme_user_probe()
813 image[i].pci_buf = 0; vme_user_probe()
814 vme_slave_free(image[i].resource); vme_user_probe()
826 image[i].resource = vme_master_request(vme_user_bridge, vme_user_probe()
828 if (image[i].resource == NULL) { vme_user_probe()
834 image[i].size_buf = PCI_BUF_SIZE; vme_user_probe()
835 image[i].kern_buf = kmalloc(image[i].size_buf, GFP_KERNEL); vme_user_probe()
836 if (image[i].kern_buf == NULL) { vme_user_probe()
838 vme_master_free(image[i].resource); vme_user_probe()
871 image[i].device = device_create(vme_user_sysfs_class, NULL, vme_user_probe()
873 if (IS_ERR(image[i].device)) { vme_user_probe()
875 err = PTR_ERR(image[i].device); vme_user_probe()
894 kfree(image[i].kern_buf); vme_user_probe()
895 vme_master_free(image[i].resource); vme_user_probe()
906 vme_slave_free(image[i].resource); vme_user_probe()
923 mutex_destroy(&image[i].mutex); vme_user_remove()
929 kfree(image[i].kern_buf); vme_user_remove()
930 vme_master_free(image[i].resource); vme_user_remove()
934 vme_slave_set(image[i].resource, 0, 0, 0, 0, VME_A32, 0); vme_user_remove()
936 vme_slave_free(image[i].resource); vme_user_remove()
/linux-4.1.27/arch/xtensa/boot/boot-elf/
H A Dboot.lds.S26 .image KERNELOFFSET: AT (LOAD_MEMORY_ADDRESS)
29 *(image)
34 .bss ((LOADADDR(.image) + SIZEOF(.image) + 3) & ~ 3):
H A DMakefile23 --add-section image=vmlinux.bin \
24 --set-section-flags image=contents,alloc,load,load,data \
/linux-4.1.27/kernel/
H A Dkexec.c68 static int kexec_calculate_store_digests(struct kimage *image);
138 static int kimage_is_destination_range(struct kimage *image,
140 static struct page *kimage_alloc_page(struct kimage *image,
144 static int copy_user_segment_list(struct kimage *image, copy_user_segment_list() argument
152 image->nr_segments = nr_segments; copy_user_segment_list()
154 ret = copy_from_user(image->segment, segments, segment_bytes); copy_user_segment_list()
161 static int sanity_check_segment_list(struct kimage *image) sanity_check_segment_list() argument
164 unsigned long nr_segments = image->nr_segments; sanity_check_segment_list()
169 * the new image into invalid or reserved areas of RAM. This sanity_check_segment_list()
183 mstart = image->segment[i].mem; sanity_check_segment_list()
184 mend = mstart + image->segment[i].memsz; sanity_check_segment_list()
201 mstart = image->segment[i].mem; sanity_check_segment_list()
202 mend = mstart + image->segment[i].memsz; sanity_check_segment_list()
205 pstart = image->segment[j].mem; sanity_check_segment_list()
206 pend = pstart + image->segment[j].memsz; sanity_check_segment_list()
220 if (image->segment[i].bufsz > image->segment[i].memsz) sanity_check_segment_list()
227 * attempt to load the new image into invalid or reserved sanity_check_segment_list()
234 if (image->type == KEXEC_TYPE_CRASH) { sanity_check_segment_list()
239 mstart = image->segment[i].mem; sanity_check_segment_list()
240 mend = mstart + image->segment[i].memsz - 1; sanity_check_segment_list()
253 struct kimage *image; do_kimage_alloc_init() local
256 image = kzalloc(sizeof(*image), GFP_KERNEL); do_kimage_alloc_init()
257 if (!image) do_kimage_alloc_init()
260 image->head = 0; do_kimage_alloc_init()
261 image->entry = &image->head; do_kimage_alloc_init()
262 image->last_entry = &image->head; do_kimage_alloc_init()
263 image->control_page = ~0; /* By default this does not apply */ do_kimage_alloc_init()
264 image->type = KEXEC_TYPE_DEFAULT; do_kimage_alloc_init()
267 INIT_LIST_HEAD(&image->control_pages); do_kimage_alloc_init()
270 INIT_LIST_HEAD(&image->dest_pages); do_kimage_alloc_init()
273 INIT_LIST_HEAD(&image->unusable_pages); do_kimage_alloc_init()
275 return image; do_kimage_alloc_init()
286 struct kimage *image; kimage_alloc_init() local
296 image = do_kimage_alloc_init(); kimage_alloc_init()
297 if (!image) kimage_alloc_init()
300 image->start = entry; kimage_alloc_init()
302 ret = copy_user_segment_list(image, nr_segments, segments); kimage_alloc_init()
306 ret = sanity_check_segment_list(image); kimage_alloc_init()
312 image->control_page = crashk_res.start; kimage_alloc_init()
313 image->type = KEXEC_TYPE_CRASH; kimage_alloc_init()
322 image->control_code_page = kimage_alloc_control_pages(image, kimage_alloc_init()
324 if (!image->control_code_page) { kimage_alloc_init()
330 image->swap_page = kimage_alloc_control_pages(image, 0); kimage_alloc_init()
331 if (!image->swap_page) { kimage_alloc_init()
337 *rimage = image; kimage_alloc_init()
340 kimage_free_page_list(&image->control_pages); kimage_alloc_init()
342 kfree(image); kimage_alloc_init()
407 int __weak arch_kexec_kernel_image_probe(struct kimage *image, void *buf, arch_kexec_kernel_image_probe() argument
413 void * __weak arch_kexec_kernel_image_load(struct kimage *image) arch_kexec_kernel_image_load() argument
418 void __weak arch_kimage_file_post_load_cleanup(struct kimage *image) arch_kimage_file_post_load_cleanup() argument
422 int __weak arch_kexec_kernel_verify_sig(struct kimage *image, void *buf, arch_kexec_kernel_verify_sig() argument
451 static void kimage_file_post_load_cleanup(struct kimage *image) kimage_file_post_load_cleanup() argument
453 struct purgatory_info *pi = &image->purgatory_info; kimage_file_post_load_cleanup()
455 vfree(image->kernel_buf); kimage_file_post_load_cleanup()
456 image->kernel_buf = NULL; kimage_file_post_load_cleanup()
458 vfree(image->initrd_buf); kimage_file_post_load_cleanup()
459 image->initrd_buf = NULL; kimage_file_post_load_cleanup()
461 kfree(image->cmdline_buf); kimage_file_post_load_cleanup()
462 image->cmdline_buf = NULL; kimage_file_post_load_cleanup()
471 arch_kimage_file_post_load_cleanup(image); kimage_file_post_load_cleanup()
478 kfree(image->image_loader_data); kimage_file_post_load_cleanup()
479 image->image_loader_data = NULL; kimage_file_post_load_cleanup()
487 kimage_file_prepare_segments(struct kimage *image, int kernel_fd, int initrd_fd, kimage_file_prepare_segments() argument
494 ret = copy_file_from_fd(kernel_fd, &image->kernel_buf, kimage_file_prepare_segments()
495 &image->kernel_buf_len); kimage_file_prepare_segments()
499 /* Call arch image probe handlers */ kimage_file_prepare_segments()
500 ret = arch_kexec_kernel_image_probe(image, image->kernel_buf, kimage_file_prepare_segments()
501 image->kernel_buf_len); kimage_file_prepare_segments()
507 ret = arch_kexec_kernel_verify_sig(image, image->kernel_buf, kimage_file_prepare_segments()
508 image->kernel_buf_len); kimage_file_prepare_segments()
517 ret = copy_file_from_fd(initrd_fd, &image->initrd_buf, kimage_file_prepare_segments()
518 &image->initrd_buf_len); kimage_file_prepare_segments()
524 image->cmdline_buf = kzalloc(cmdline_len, GFP_KERNEL); kimage_file_prepare_segments()
525 if (!image->cmdline_buf) { kimage_file_prepare_segments()
530 ret = copy_from_user(image->cmdline_buf, cmdline_ptr, kimage_file_prepare_segments()
537 image->cmdline_buf_len = cmdline_len; kimage_file_prepare_segments()
540 if (image->cmdline_buf[cmdline_len - 1] != '\0') { kimage_file_prepare_segments()
546 /* Call arch image load handlers */ kimage_file_prepare_segments()
547 ldata = arch_kexec_kernel_image_load(image); kimage_file_prepare_segments()
554 image->image_loader_data = ldata; kimage_file_prepare_segments()
558 kimage_file_post_load_cleanup(image); kimage_file_prepare_segments()
568 struct kimage *image; kimage_file_alloc_init() local
571 image = do_kimage_alloc_init(); kimage_file_alloc_init()
572 if (!image) kimage_file_alloc_init()
575 image->file_mode = 1; kimage_file_alloc_init()
579 image->control_page = crashk_res.start; kimage_file_alloc_init()
580 image->type = KEXEC_TYPE_CRASH; kimage_file_alloc_init()
583 ret = kimage_file_prepare_segments(image, kernel_fd, initrd_fd, kimage_file_alloc_init()
588 ret = sanity_check_segment_list(image); kimage_file_alloc_init()
593 image->control_code_page = kimage_alloc_control_pages(image, kimage_file_alloc_init()
595 if (!image->control_code_page) { kimage_file_alloc_init()
601 image->swap_page = kimage_alloc_control_pages(image, 0); kimage_file_alloc_init()
602 if (!image->swap_page) { kimage_file_alloc_init()
608 *rimage = image; kimage_file_alloc_init()
611 kimage_free_page_list(&image->control_pages); kimage_file_alloc_init()
613 kimage_file_post_load_cleanup(image); kimage_file_alloc_init()
615 kfree(image); kimage_file_alloc_init()
619 static inline void kimage_file_post_load_cleanup(struct kimage *image) { } kimage_file_post_load_cleanup() argument
622 static int kimage_is_destination_range(struct kimage *image, kimage_is_destination_range() argument
628 for (i = 0; i < image->nr_segments; i++) { kimage_is_destination_range()
631 mstart = image->segment[i].mem; kimage_is_destination_range()
632 mend = mstart + image->segment[i].memsz; kimage_is_destination_range()
681 static struct page *kimage_alloc_normal_control_pages(struct kimage *image, kimage_alloc_normal_control_pages() argument
695 * At worst this runs in O(N) of the image size. kimage_alloc_normal_control_pages()
718 kimage_is_destination_range(image, addr, eaddr)) { kimage_alloc_normal_control_pages()
726 list_add(&pages->lru, &image->control_pages); kimage_alloc_normal_control_pages()
732 * to give it an entry in image->segment[]. kimage_alloc_normal_control_pages()
738 * page allocations, and add everything to image->dest_pages. kimage_alloc_normal_control_pages()
747 static struct page *kimage_alloc_crash_control_pages(struct kimage *image, kimage_alloc_crash_control_pages() argument
776 hole_start = (image->control_page + (size - 1)) & ~(size - 1); kimage_alloc_crash_control_pages()
784 for (i = 0; i < image->nr_segments; i++) { kimage_alloc_crash_control_pages()
787 mstart = image->segment[i].mem; kimage_alloc_crash_control_pages()
788 mend = mstart + image->segment[i].memsz - 1; kimage_alloc_crash_control_pages()
797 if (i == image->nr_segments) { kimage_alloc_crash_control_pages()
803 image->control_page = hole_end; kimage_alloc_crash_control_pages()
809 struct page *kimage_alloc_control_pages(struct kimage *image, kimage_alloc_control_pages() argument
814 switch (image->type) { kimage_alloc_control_pages()
816 pages = kimage_alloc_normal_control_pages(image, order); kimage_alloc_control_pages()
819 pages = kimage_alloc_crash_control_pages(image, order); kimage_alloc_control_pages()
826 static int kimage_add_entry(struct kimage *image, kimage_entry_t entry) kimage_add_entry() argument
828 if (*image->entry != 0) kimage_add_entry()
829 image->entry++; kimage_add_entry()
831 if (image->entry == image->last_entry) { kimage_add_entry()
835 page = kimage_alloc_page(image, GFP_KERNEL, KIMAGE_NO_DEST); kimage_add_entry()
840 *image->entry = virt_to_phys(ind_page) | IND_INDIRECTION; kimage_add_entry()
841 image->entry = ind_page; kimage_add_entry()
842 image->last_entry = ind_page + kimage_add_entry()
845 *image->entry = entry; kimage_add_entry()
846 image->entry++; kimage_add_entry()
847 *image->entry = 0; kimage_add_entry()
852 static int kimage_set_destination(struct kimage *image, kimage_set_destination() argument
858 result = kimage_add_entry(image, destination | IND_DESTINATION); kimage_set_destination()
864 static int kimage_add_page(struct kimage *image, unsigned long page) kimage_add_page() argument
869 result = kimage_add_entry(image, page | IND_SOURCE); kimage_add_page()
875 static void kimage_free_extra_pages(struct kimage *image) kimage_free_extra_pages() argument
878 kimage_free_page_list(&image->dest_pages); kimage_free_extra_pages()
881 kimage_free_page_list(&image->unusable_pages); kimage_free_extra_pages()
884 static void kimage_terminate(struct kimage *image) kimage_terminate() argument
886 if (*image->entry != 0) kimage_terminate()
887 image->entry++; kimage_terminate()
889 *image->entry = IND_DONE; kimage_terminate()
892 #define for_each_kimage_entry(image, ptr, entry) \
893 for (ptr = &image->head; (entry = *ptr) && !(entry & IND_DONE); \
905 static void kimage_free(struct kimage *image) kimage_free() argument
910 if (!image) kimage_free()
913 kimage_free_extra_pages(image); for_each_kimage_entry()
914 for_each_kimage_entry(image, ptr, entry) { for_each_kimage_entry()
931 machine_kexec_cleanup(image);
934 kimage_free_page_list(&image->control_pages);
940 if (image->file_mode)
941 kimage_file_post_load_cleanup(image);
943 kfree(image);
946 static kimage_entry_t *kimage_dst_used(struct kimage *image, kimage_dst_used() argument
952 for_each_kimage_entry(image, ptr, entry) { for_each_kimage_entry()
965 static struct page *kimage_alloc_page(struct kimage *image, kimage_alloc_page() argument
994 list_for_each_entry(page, &image->dest_pages, lru) { kimage_alloc_page()
1012 list_add(&page->lru, &image->unusable_pages); kimage_alloc_page()
1022 if (!kimage_is_destination_range(image, addr, kimage_alloc_page()
1031 old = kimage_dst_used(image, addr); kimage_alloc_page()
1058 list_add(&page->lru, &image->dest_pages); kimage_alloc_page()
1065 static int kimage_load_normal_segment(struct kimage *image, kimage_load_normal_segment() argument
1075 if (image->file_mode) kimage_load_normal_segment()
1083 result = kimage_set_destination(image, maddr); kimage_load_normal_segment()
1092 page = kimage_alloc_page(image, GFP_HIGHUSER, maddr); kimage_load_normal_segment()
1097 result = kimage_add_page(image, page_to_pfn(page) kimage_load_normal_segment()
1111 if (image->file_mode) kimage_load_normal_segment()
1122 if (image->file_mode) kimage_load_normal_segment()
1132 static int kimage_load_crash_segment(struct kimage *image, kimage_load_crash_segment() argument
1146 if (image->file_mode) kimage_load_crash_segment()
1174 if (image->file_mode) kimage_load_crash_segment()
1186 if (image->file_mode) kimage_load_crash_segment()
1196 static int kimage_load_segment(struct kimage *image, kimage_load_segment() argument
1201 switch (image->type) { kimage_load_segment()
1203 result = kimage_load_normal_segment(image, segment); kimage_load_segment()
1206 result = kimage_load_crash_segment(image, segment); kimage_load_segment()
1227 * and then copies the image to it's final destination. And
1228 * jumps into the image at entry.
1242 struct kimage **dest_image, *image; SYSCALL_DEFINE4() local
1267 image = NULL; SYSCALL_DEFINE4()
1295 result = kimage_alloc_init(&image, entry, nr_segments, SYSCALL_DEFINE4()
1301 result = kimage_alloc_init(&image, entry, nr_segments, SYSCALL_DEFINE4()
1308 image->preserve_context = 1; SYSCALL_DEFINE4()
1309 result = machine_kexec_prepare(image); SYSCALL_DEFINE4()
1314 result = kimage_load_segment(image, &image->segment[i]); SYSCALL_DEFINE4()
1318 kimage_terminate(image); SYSCALL_DEFINE4()
1323 image = xchg(dest_image, image); SYSCALL_DEFINE4()
1327 kimage_free(image); SYSCALL_DEFINE4()
1389 struct kimage **dest_image, *image; SYSCALL_DEFINE5() local
1399 image = NULL; SYSCALL_DEFINE5()
1419 ret = kimage_file_alloc_init(&image, kernel_fd, initrd_fd, cmdline_ptr, SYSCALL_DEFINE5()
1424 ret = machine_kexec_prepare(image); SYSCALL_DEFINE5()
1428 ret = kexec_calculate_store_digests(image); SYSCALL_DEFINE5()
1432 for (i = 0; i < image->nr_segments; i++) { SYSCALL_DEFINE5()
1435 ksegment = &image->segment[i]; SYSCALL_DEFINE5()
1440 ret = kimage_load_segment(image, &image->segment[i]); SYSCALL_DEFINE5()
1445 kimage_terminate(image); SYSCALL_DEFINE5()
1449 * after image has been loaded SYSCALL_DEFINE5()
1451 kimage_file_post_load_cleanup(image); SYSCALL_DEFINE5()
1453 image = xchg(dest_image, image); SYSCALL_DEFINE5()
1456 kimage_free(image); SYSCALL_DEFINE5()
2020 struct kimage *image = kbuf->image; locate_mem_hole_top_down() local
2039 if (kimage_is_destination_range(image, temp_start, temp_end)) { locate_mem_hole_top_down()
2058 struct kimage *image = kbuf->image; locate_mem_hole_bottom_up() local
2073 if (kimage_is_destination_range(image, temp_start, temp_end)) { locate_mem_hole_bottom_up()
2114 int kexec_add_buffer(struct kimage *image, char *buffer, unsigned long bufsz, kexec_add_buffer() argument
2125 if (!image->file_mode) kexec_add_buffer()
2128 if (image->nr_segments >= KEXEC_SEGMENT_MAX) kexec_add_buffer()
2138 if (!list_empty(&image->control_pages)) { kexec_add_buffer()
2145 kbuf->image = image; kexec_add_buffer()
2156 if (image->type == KEXEC_TYPE_CRASH) kexec_add_buffer()
2170 ksegment = &image->segment[image->nr_segments]; kexec_add_buffer()
2175 image->nr_segments++; kexec_add_buffer()
2181 static int kexec_calculate_store_digests(struct kimage *image) kexec_calculate_store_digests() argument
2190 struct purgatory_info *pi = &image->purgatory_info; kexec_calculate_store_digests()
2226 for (j = i = 0; i < image->nr_segments; i++) { kexec_calculate_store_digests()
2229 ksegment = &image->segment[i]; kexec_calculate_store_digests()
2270 ret = kexec_purgatory_get_set_symbol(image, "sha_regions", kexec_calculate_store_digests()
2275 ret = kexec_purgatory_get_set_symbol(image, "sha256_digest", kexec_calculate_store_digests()
2294 static int __kexec_load_purgatory(struct kimage *image, unsigned long min, __kexec_load_purgatory() argument
2297 struct purgatory_info *pi = &image->purgatory_info; __kexec_load_purgatory()
2412 ret = kexec_add_buffer(image, purgatory_buf, buf_sz, memsz, __kexec_load_purgatory()
2458 image->start = entry; __kexec_load_purgatory()
2475 static int kexec_apply_relocations(struct kimage *image) kexec_apply_relocations() argument
2478 struct purgatory_info *pi = &image->purgatory_info; kexec_apply_relocations()
2531 int kexec_load_purgatory(struct kimage *image, unsigned long min, kexec_load_purgatory() argument
2535 struct purgatory_info *pi = &image->purgatory_info; kexec_load_purgatory()
2557 ret = __kexec_load_purgatory(image, min, max, top_down); kexec_load_purgatory()
2561 ret = kexec_apply_relocations(image); kexec_load_purgatory()
2621 void *kexec_purgatory_get_symbol_addr(struct kimage *image, const char *name) kexec_purgatory_get_symbol_addr() argument
2623 struct purgatory_info *pi = &image->purgatory_info; kexec_purgatory_get_symbol_addr()
2644 int kexec_purgatory_get_set_symbol(struct kimage *image, const char *name, kexec_purgatory_get_set_symbol() argument
2649 struct purgatory_info *pi = &image->purgatory_info; kexec_purgatory_get_set_symbol()
H A Dcrash_dump.c14 * stores the physical address of elf header of crash image
24 * stores the size of elf header of crash image
H A Dconfigs.c40 * extraction from a binary kernel image:
43 * <image>
/linux-4.1.27/arch/sparc/
H A DMakefile68 image zImage uImage tftpboot.img vmlinux.aout: vmlinux
77 # This is the image used for packaging
83 echo '* image - kernel image ($(boot)/image)'
84 echo '* zImage - stripped kernel image ($(boot)/zImage)'
86 echo ' tftpboot.img - image prepared for tftp'
93 echo ' tftpboot.img - image prepared for tftp'
/linux-4.1.27/arch/s390/boot/
H A DMakefile11 targets := image
15 $(obj)/image: vmlinux FORCE
/linux-4.1.27/arch/mips/kernel/
H A Dmachine_kexec.c62 machine_kexec(struct kimage *image) machine_kexec() argument
69 (unsigned long)page_address(image->control_code_page); machine_kexec()
72 (unsigned long) phys_to_virt(image->start); machine_kexec()
74 if (image->type == KEXEC_TYPE_DEFAULT) { machine_kexec()
76 (unsigned long) phys_to_virt(image->head & PAGE_MASK); machine_kexec()
78 kexec_indirection_page = (unsigned long)&image->head; machine_kexec()
90 for (ptr = &image->head; (entry = *ptr) && !(entry &IND_DONE); machine_kexec()
103 printk("Will call new kernel at %08lx\n", image->start); machine_kexec()
/linux-4.1.27/drivers/block/
H A Drbd_types.h18 /* For format version 2, rbd image 'foo' consists of objects
19 * rbd_id.foo - id of image
20 * rbd_header.<id> - image metadata
32 * For format version 1, rbd image 'foo' consists of objects
33 * foo.rbd - image metadata
37 * There is no notion of a persistent image id in rbd format 1.
H A Drbd.c111 /* This allows a single page to hold an image name sent by OSD */
138 * block device image metadata (in-memory version)
141 /* These six fields never change for a given rbd image */
158 * An rbd image specification.
161 * identify an image. Each rbd_dev structure includes a pointer to
165 * user-mapped image, the names are supplied and the id's associated
166 * with them are looked up. For a layered image, a parent image is
170 * non-null if the image it represents is a child in a layered
171 * image. This pointer will refer to the rbd_spec structure used
176 * phase of image construction, they are effectively immutable so
179 * Note that code herein does not assume the image name is known (it
224 OBJ_REQ_IMG_DATA, /* object usage: standalone = 0, image = 1 */
236 * An object request associated with an image will have its
242 * An object request initiated in support of a layered image
246 * Finally, an object request for rbd image data will have
260 u32 which; /* posn image request list */
286 IMG_REQ_CHILD, /* initiator: block = 0, child image = 1 */
293 u64 offset; /* starting image byte offset */
503 printk(KERN_WARNING "%s: image %s: %pV\n", rbd_warn()
908 * Fill an rbd image header with information from the given format 1
1223 * returns the size of an object in the image
1594 * count for the image request. We could instead use rbd_img_request_complete()
1614 * The default/initial value for all image request flags is 0. Each
1615 * is conditionally set to 1 at image request initialization time
1702 * ENOENT means a hole in the image. We zero-fill the entire rbd_img_obj_request_read_callback()
1795 * this is part of a write sequence for a layered image.
2091 * Parent image reference counting is used to determine when an
2092 * image's parent fields can be safely torn down--after there are no
2093 * more in-flight requests to the parent image. When the last
2116 * If an image has a non-zero parent overlap, get a reference to its
2143 * that comprises the image request, and the Linux request pointer
2415 * Split up an image request into one or more object requests, each
2420 * all data described by the image request.
2580 /* First get what we need from the image request */ rbd_img_obj_parent_read_full_callback()
2603 * image has been flattened) we need to free the pages rbd_img_obj_parent_read_full_callback()
2661 * Read from the parent image the range of data that covers the
2663 * satisfying a layered image write request when the target of an
2664 * object request from the image request does not exist.
2695 * child image to which the original request was to be sent. rbd_img_obj_parent_read_full()
2784 * image has been flattened) we need to free the pages rbd_img_obj_exists_callback()
2978 /* First get what we need from the image request and release it */ rbd_img_parent_read_callback()
2987 * image has been flattened) we need to re-submit the rbd_img_parent_read_callback()
3589 * information about the image.
3704 * mapped image getting flattened. rbd_dev_refresh()
3840 * necessarily the base image.
3917 * RBD_SNAP_HEAD_NAME for the base image).
3929 * For a v2 image, shows the chain of parent images, separated by empty
3931 * image)".
3941 return sprintf(buf, "(no parent image)\n"); rbd_parent_show()
4100 * Get the size and object order for an image snapshot, or if
4102 * image.
4263 * record of it but the image got flattened so it no rbd_dev_v2_parent_info()
4265 * layered image disappears we immediately set the rbd_dev_v2_parent_info()
4267 * requests will be treated as if the image had no rbd_dev_v2_parent_info()
4273 pr_info("%s: clone image has been flattened\n", rbd_dev_v2_parent_info()
4364 * out, and only fail if the image has non-default values. rbd_dev_v2_striping_info()
4494 * An image being mapped will have everything but the snap id.
4520 * A parent image will have all ids but none of the names.
4523 * can't figure out the name for an image id.
4549 /* Fetch the image name; tolerate failure here */ rbd_spec_fill_names()
4553 rbd_warn(rbd_dev, "unable to get image name"); rbd_spec_fill_names()
4834 * Parse the options provided for an "rbd add" (i.e., rbd image
4850 * Address of an rbd image specification pointer. Fully
4865 * The name of the rados pool containing the rbd image.
4867 * The name of the image in that pool to map.
4870 * present data from the image at the time that snapshot was
4871 * created. The image head is used if no snapshot id is
4925 rbd_warn(NULL, "no image name provided"); rbd_add_parse_args()
5012 * An rbd format 2 image has a unique identifier, distinct from the
5014 * what's used to specify the names of objects related to the image.
5016 * A special "rbd id" object is used to map an rbd image name to its
5017 * id. If that object doesn't exist, then there is no v2 rbd image
5034 * When probing a parent image, the image id is already rbd_dev_image_id()
5035 * known (and the image name likely is not). There's no rbd_dev_image_id()
5036 * need to fetch the image id again in this case. We rbd_dev_image_id()
5037 * do still need to set the image format though. rbd_dev_image_id()
5046 * First, see if the format 2 image id file exists, and if rbd_dev_image_id()
5047 * so, get the image's persistent id from it. rbd_dev_image_id()
5065 /* If it doesn't exist we'll assume it's a format 1 image */ rbd_dev_image_id()
5126 * Get the and check features for the image. Currently the rbd_dev_v2_header_onetime()
5133 /* If the image supports fancy striping, get its parameters */ rbd_dev_v2_header_onetime()
5272 /* Record the header object name for this rbd image. */ rbd_dev_header_name()
5308 * device. If this image is the one being mapped (i.e., not a
5310 * object to get detailed information about the rbd image.
5317 * Get the id from the image id object. Unless there's an rbd_dev_image_probe()
5334 pr_info("image %s/%s does not exist\n", rbd_dev_image_probe()
5346 * If this image is the one being mapped, we have pool name and rbd_dev_image_probe()
5347 * id, image name and id, and snap name - need to fill snap id. rbd_dev_image_probe()
5348 * Otherwise this is a parent image, identified by pool, image rbd_dev_image_probe()
5370 * Need to warn users if this image is the one being rbd_dev_image_probe()
5382 dout("discovered format %u image, header name is %s\n", rbd_dev_image_probe()
/linux-4.1.27/arch/powerpc/kernel/
H A Dmachine_kexec_32.c27 * It merely copies the image relocation code to the control page and
31 void default_machine_kexec(struct kimage *image) default_machine_kexec() argument
46 page_list = image->head; default_machine_kexec()
50 (unsigned long)page_address(image->control_code_page); default_machine_kexec()
63 (*rnk)(page_list, reboot_code_buffer_phys, image->start); default_machine_kexec()
66 int default_machine_kexec_prepare(struct kimage *image) default_machine_kexec_prepare() argument
H A Drtas_flash.c12 * image into the kernel. At reboot time rtas_restart() will see the
13 * firmware image and flash it as it reboots (see rtas.c).
38 /* Flash image status values */
41 #define FLASH_IMG_SHORT -1005 /* Flash image shorter than expected */
46 /* Manage image status values */
53 /* Validate image status values */
57 #define VALIDATE_READY -1001 /* Firmware image ready for validation */
61 /* ibm,validate-flash-image update result tokens */
64 #define VALIDATE_INVALID_IMG 2 /* Candidate image is not valid */
68 * image, and the new image is downlevel from current image
73 * image
77 * T side will be updated with a downlevel image
81 * The candidate image's release date is later than the system's firmware
86 /* ibm,manage-flash-image operation tokens */
154 char *buf; /* Candidate image buffer */
155 unsigned int buf_size; /* Size of image buf */
166 /* Do simple sanity checks on the flash image. */ flash_list_valid()
173 /* Paranoid self test here. We also collect the image size. */ flash_list_valid()
193 printk(KERN_INFO "FLASH: flash image with %ld bytes stored for hardware flash on reboot\n", image_size); flash_list_valid()
251 msg = "info: no firmware image for flash\n"; get_flash_status_msg()
254 msg = "error: flash image short\n"; get_flash_status_msg()
263 msg = "ready: firmware image ready for flash on reboot\n"; get_flash_status_msg()
327 /* In the case that the image is not ready for flashing, the memory rtas_flash_write()
383 rc = rtas_call(rtas_token("ibm,manage-flash-image"), 1, 1, manage_flash()
451 int token = rtas_token("ibm,validate-flash-image"); validate_flash()
511 * candidate image */ validate_flash_write()
573 printk(KERN_ALERT "FLASH: the firmware image will NOT be flashed\n"); rtas_flash_firmware()
607 printk(KERN_ALERT "FLASH: preparing saved firmware image for flash\n"); rtas_flash_firmware()
629 printk(KERN_ALERT "FLASH: flash image is %ld bytes\n", image_size); rtas_flash_firmware()
643 printk(KERN_ALERT "FLASH: image is corrupt or not correct for this platform. Firmware not flashed\n"); rtas_flash_firmware()
686 .rtas_call_name = "ibm,validate-flash-image",
695 .rtas_call_name = "ibm,manage-flash-image",
H A Dmachine_kexec_64.c33 int default_machine_kexec_prepare(struct kimage *image) default_machine_kexec_prepare() argument
50 for (i = 0; i < image->nr_segments; i++) default_machine_kexec_prepare()
51 if (image->segment[i].mem < __pa(_end)) default_machine_kexec_prepare()
68 for (i = 0; i < image->nr_segments; i++) { default_machine_kexec_prepare()
69 begin = image->segment[i].mem; default_machine_kexec_prepare()
70 end = begin + image->segment[i].memsz; default_machine_kexec_prepare()
87 for (i = 0; i < image->nr_segments; i++) { default_machine_kexec_prepare()
88 begin = image->segment[i].mem; default_machine_kexec_prepare()
89 end = begin + image->segment[i].memsz; default_machine_kexec_prepare()
132 void kexec_copy_flush(struct kimage *image) kexec_copy_flush() argument
134 long i, nr_segments = image->nr_segments; kexec_copy_flush()
138 memcpy(ranges, image->segment, sizeof(ranges)); kexec_copy_flush()
142 * memory, including *image. kexec_copy_flush()
146 copy_segments(image->head); kexec_copy_flush()
298 * overwritten when we copy the kexec image. We piggyback on the
315 void *image, void *control,
319 void default_machine_kexec(struct kimage *image) default_machine_kexec() argument
362 kexec_sequence(&kexec_stack, image->start, image, default_machine_kexec()
363 page_address(image->control_code_page), default_machine_kexec()
H A Dmachine_kexec.c53 * Do what every setup is needed on image and the
57 int machine_kexec_prepare(struct kimage *image) machine_kexec_prepare() argument
60 return ppc_md.machine_kexec_prepare(image); machine_kexec_prepare()
62 return default_machine_kexec_prepare(image); machine_kexec_prepare()
65 void machine_kexec_cleanup(struct kimage *image) machine_kexec_cleanup() argument
96 void machine_kexec(struct kimage *image) machine_kexec() argument
103 ppc_md.machine_kexec(image); machine_kexec()
105 default_machine_kexec(image); machine_kexec()
/linux-4.1.27/arch/x86/vdso/
H A Dvma.c27 void __init init_vdso_image(const struct vdso_image *image) init_vdso_image() argument
30 int npages = (image->size) / PAGE_SIZE; init_vdso_image()
32 BUG_ON(image->size % PAGE_SIZE != 0); init_vdso_image()
34 image->text_mapping.pages[i] = init_vdso_image()
35 virt_to_page(image->data + i*PAGE_SIZE); init_vdso_image()
37 apply_alternatives((struct alt_instr *)(image->data + image->alt), init_vdso_image()
38 (struct alt_instr *)(image->data + image->alt + init_vdso_image()
39 image->alt_len)); init_vdso_image()
92 static int map_vdso(const struct vdso_image *image, bool calculate_addr) map_vdso() argument
106 image->size - image->sym_vvar_start); map_vdso()
114 image->size - image->sym_vvar_start, 0, 0); map_vdso()
120 text_start = addr - image->sym_vvar_start; map_vdso()
128 image->size, map_vdso()
131 &image->text_mapping); map_vdso()
140 -image->sym_vvar_start, map_vdso()
149 if (image->sym_vvar_page) map_vdso()
151 text_start + image->sym_vvar_page, map_vdso()
160 if (hpet_address && image->sym_hpet_page) { map_vdso()
162 text_start + image->sym_hpet_page, map_vdso()
H A DMakefile34 # Build the vDSO image C files and link them in.
35 vdso_img_objs := $(vdso_img-y:%=vdso-image-%.o)
36 vdso_img_cfiles := $(vdso_img-y:%=vdso-image-%.c)
41 .SECONDARY: $(vdso_img-y:%=$(obj)/vdso-image-%.c) \
62 $(obj)/vdso-image-%.c: $(obj)/vdso%.so.dbg $(obj)/vdso%.so $(obj)/vdso2c FORCE
87 # Build x32 vDSO image:
90 # 3. Build x32 VDSO image with x32 objects, which contains 64bit codes
209 clean-files := vdso32-syscall* vdso32-sysenter* vdso32-int80* vdso64* vdso-image-*.c vdsox32.so*
/linux-4.1.27/tools/net/
H A Dbpf_jit_disasm.c2 * Minimal BPF JIT image disassembler
46 static void get_asm_insns(uint8_t *image, size_t len, int opcodes) get_asm_insns() argument
64 info.buffer = image; get_asm_insns()
80 printf("%02x ", (uint8_t) image[pc + i]); get_asm_insns()
109 uint8_t *image, size_t ilen) get_last_jit_image()
122 "pass=[[:digit:]]+ image=[[:xdigit:]]+", REG_EXTENDED); get_last_jit_image()
139 ret = sscanf(ptr, "flen=%d proglen=%d pass=%d image=%lx", get_last_jit_image()
154 image[ulen++] = (uint8_t) strtoul(pptr, &pptr, 16); get_last_jit_image()
176 static uint8_t image[32768]; main() local
188 memset(image, 0, sizeof(image)); main()
192 len = get_last_jit_image(kbuff, klen, image, sizeof(image)); main()
194 get_asm_insns(image, len, opcodes); main()
108 get_last_jit_image(char *haystack, size_t hlen, uint8_t *image, size_t ilen) get_last_jit_image() argument
/linux-4.1.27/arch/metag/
H A DMakefile81 echo '* vmlinux.bin - Binary kernel image (arch/$(ARCH)/boot/vmlinux.bin)'
82 @echo ' uImage - Alias to bootable U-Boot image'
83 @echo ' uImage.bin - Kernel-only image for U-Boot (bin)'
84 @echo ' uImage.gz - Kernel-only image for U-Boot (gzip)'
85 @echo ' uImage.bz2 - Kernel-only image for U-Boot (bzip2)'
86 @echo ' uImage.xz - Kernel-only image for U-Boot (xz)'
87 @echo ' uImage.lzo - Kernel-only image for U-Boot (lzo)'
/linux-4.1.27/drivers/gpu/drm/nouveau/
H A Dnv04_fbcon.c77 nv04_fbcon_imageblit(struct fb_info *info, const struct fb_image *image) nv04_fbcon_imageblit() argument
85 uint32_t *data = (uint32_t *)image->data; nv04_fbcon_imageblit()
88 if (image->depth != 1) nv04_fbcon_imageblit()
97 fg = ((uint32_t *) info->pseudo_palette)[image->fg_color]; nv04_fbcon_imageblit()
98 bg = ((uint32_t *) info->pseudo_palette)[image->bg_color]; nv04_fbcon_imageblit()
100 fg = image->fg_color; nv04_fbcon_imageblit()
101 bg = image->bg_color; nv04_fbcon_imageblit()
105 OUT_RING(chan, (image->dy << 16) | (image->dx & 0xffff)); nv04_fbcon_imageblit()
106 OUT_RING(chan, ((image->dy + image->height) << 16) | nv04_fbcon_imageblit()
107 ((image->dx + image->width) & 0xffff)); nv04_fbcon_imageblit()
110 OUT_RING(chan, (image->height << 16) | image->width); nv04_fbcon_imageblit()
111 OUT_RING(chan, (image->height << 16) | image->width); nv04_fbcon_imageblit()
112 OUT_RING(chan, (image->dy << 16) | (image->dx & 0xffff)); nv04_fbcon_imageblit()
114 dsize = ALIGN(image->width * image->height, 32) >> 5; nv04_fbcon_imageblit()
H A Dnv50_fbcon.c93 nv50_fbcon_imageblit(struct fb_info *info, const struct fb_image *image) nv50_fbcon_imageblit() argument
98 uint32_t dwords, *data = (uint32_t *)image->data; nv50_fbcon_imageblit()
103 if (image->depth != 1) nv50_fbcon_imageblit()
113 OUT_RING(chan, palette[image->bg_color] | mask); nv50_fbcon_imageblit()
114 OUT_RING(chan, palette[image->fg_color] | mask); nv50_fbcon_imageblit()
116 OUT_RING(chan, image->bg_color); nv50_fbcon_imageblit()
117 OUT_RING(chan, image->fg_color); nv50_fbcon_imageblit()
120 OUT_RING(chan, image->width); nv50_fbcon_imageblit()
121 OUT_RING(chan, image->height); nv50_fbcon_imageblit()
124 OUT_RING(chan, image->dx); nv50_fbcon_imageblit()
126 OUT_RING(chan, image->dy); nv50_fbcon_imageblit()
128 dwords = ALIGN(image->width * image->height, 32) >> 5; nv50_fbcon_imageblit()
H A Dnvc0_fbcon.c93 nvc0_fbcon_imageblit(struct fb_info *info, const struct fb_image *image) nvc0_fbcon_imageblit() argument
98 uint32_t dwords, *data = (uint32_t *)image->data; nvc0_fbcon_imageblit()
103 if (image->depth != 1) nvc0_fbcon_imageblit()
113 OUT_RING (chan, palette[image->bg_color] | mask); nvc0_fbcon_imageblit()
114 OUT_RING (chan, palette[image->fg_color] | mask); nvc0_fbcon_imageblit()
116 OUT_RING (chan, image->bg_color); nvc0_fbcon_imageblit()
117 OUT_RING (chan, image->fg_color); nvc0_fbcon_imageblit()
120 OUT_RING (chan, image->width); nvc0_fbcon_imageblit()
121 OUT_RING (chan, image->height); nvc0_fbcon_imageblit()
124 OUT_RING (chan, image->dx); nvc0_fbcon_imageblit()
126 OUT_RING (chan, image->dy); nvc0_fbcon_imageblit()
128 dwords = ALIGN(image->width * image->height, 32) >> 5; nvc0_fbcon_imageblit()
H A Dnouveau_fbcon.h53 int nv04_fbcon_imageblit(struct fb_info *info, const struct fb_image *image);
58 int nv50_fbcon_imageblit(struct fb_info *info, const struct fb_image *image);
63 int nvc0_fbcon_imageblit(struct fb_info *info, const struct fb_image *image);
H A Dnouveau_fbcon.c91 nouveau_fbcon_copyarea(struct fb_info *info, const struct fb_copyarea *image) nouveau_fbcon_copyarea() argument
105 ret = nv04_fbcon_copyarea(info, image); nouveau_fbcon_copyarea()
108 ret = nv50_fbcon_copyarea(info, image); nouveau_fbcon_copyarea()
110 ret = nvc0_fbcon_copyarea(info, image); nouveau_fbcon_copyarea()
119 cfb_copyarea(info, image); nouveau_fbcon_copyarea()
123 nouveau_fbcon_imageblit(struct fb_info *info, const struct fb_image *image) nouveau_fbcon_imageblit() argument
137 ret = nv04_fbcon_imageblit(info, image); nouveau_fbcon_imageblit()
140 ret = nv50_fbcon_imageblit(info, image); nouveau_fbcon_imageblit()
142 ret = nvc0_fbcon_imageblit(info, image); nouveau_fbcon_imageblit()
151 cfb_imageblit(info, image); nouveau_fbcon_imageblit()
/linux-4.1.27/drivers/isdn/hardware/eicon/
H A Dsdp_hdr.h29 The soft DSP image is described by binary header contained on begin of this
30 image:
33 DIVA_MIPS_TASK_IMAGE_LINK_OFFS | link to the next image
35 DIVA_MIPS_TASK_IMAGE_GP_OFFS | image gp register value, void*
39 DIVA_MIPS_TASK_IMAGE_LOAD_ADDR_OFFS | image image start address (void*)
41 DIVA_MIPS_TASK_IMAGE_END_ADDR_OFFS | image image end address (void*)
43 DIVA_MIPS_TASK_IMAGE_ID_STRING_OFFS | image id string char[...];
H A Dhelpers.h38 Return pointer to the image of the requested file,
39 write image length to 'FileLength'
44 to the image of appropriate protocol file
/linux-4.1.27/drivers/video/fbdev/aty/
H A Dmach64_accel.c282 void atyfb_imageblit(struct fb_info *info, const struct fb_image *image) atyfb_imageblit() argument
285 u32 src_bytes, dx = image->dx, dy = image->dy, width = image->width; atyfb_imageblit()
290 if (!image->width || !image->height) atyfb_imageblit()
293 (image->depth != 1 && info->var.bits_per_pixel != image->depth)) { atyfb_imageblit()
294 cfb_imageblit(info, image); atyfb_imageblit()
301 switch (image->depth) { atyfb_imageblit()
347 if (M64_HAS(HW_TRIPLE) && image->width % 8 == 0) atyfb_imageblit()
351 if (image->depth == 1) { atyfb_imageblit()
355 fg = ((u32*)(info->pseudo_palette))[image->fg_color]; atyfb_imageblit()
356 bg = ((u32*)(info->pseudo_palette))[image->bg_color]; atyfb_imageblit()
358 fg = image->fg_color; atyfb_imageblit()
359 bg = image->bg_color; atyfb_imageblit()
380 draw_rect(dx, dy, width, image->height, par); atyfb_imageblit()
381 src_bytes = (((image->width * image->depth) + 7) / 8) * image->height; atyfb_imageblit()
386 u8 *pbitmapin = (u8*)image->data, *pbitmapout; atyfb_imageblit()
389 for (width = image->width, inbit = 7, mult24 = 0; src_bytes; ) { atyfb_imageblit()
410 width = image->width; atyfb_imageblit()
421 for (pbitmap = (u32*)(image->data); dwords; dwords--, pbitmap++) { atyfb_imageblit()
H A Dmach64_cursor.c90 x = cursor->image.dx - cursor->hot.x - info->var.xoffset; atyfb_cursor()
98 y = cursor->image.dy - cursor->hot.y - info->var.yoffset; atyfb_cursor()
106 h = cursor->image.height; atyfb_cursor()
127 fg_idx = cursor->image.fg_color; atyfb_cursor()
128 bg_idx = cursor->image.bg_color; atyfb_cursor()
144 u8 *src = (u8 *)cursor->image.data; atyfb_cursor()
147 unsigned int width = (cursor->image.width + 7) >> 3; atyfb_cursor()
148 unsigned int height = cursor->image.height; atyfb_cursor()
154 // Clear cursor image with 1010101010... atyfb_cursor()
182 if ((j + 1) * 8 > cursor->image.width) { atyfb_cursor()
184 (1 << ((cursor->image.width & 7) * 2)) - 1); atyfb_cursor()
/linux-4.1.27/arch/mips/include/asm/mach-bcm63xx/
H A Dbcm963xx_tag.h30 * The broadcom firmware assumes the rootfs starts the image,
32 * to determine where to flash the image. Since we have the kernel first
35 * length (kernel_length) to determine the length of image to flash and thus
40 /* 0-3: Version of the image tag */
46 /* 38-43: Chip this image is for */
52 /* 62-71: Total length of image */
58 /* 94-105: Address in memory of image start
82 /* 216-219: CRC32 of image less imagetag (kernel for Alice Gate) */
/linux-4.1.27/drivers/video/fbdev/nvidia/
H A Dnv_accel.c351 const struct fb_image *image) nvidiafb_mono_color_expand()
355 u32 dsize, width, *data = (u32 *) image->data, tmp; nvidiafb_mono_color_expand()
358 width = (image->width + 31) & ~31; nvidiafb_mono_color_expand()
359 dsize = (width * image->height) >> 5; nvidiafb_mono_color_expand()
362 fg = image->fg_color | mask; nvidiafb_mono_color_expand()
363 bg = image->bg_color | mask; nvidiafb_mono_color_expand()
365 fg = ((u32 *) info->pseudo_palette)[image->fg_color] | mask; nvidiafb_mono_color_expand()
366 bg = ((u32 *) info->pseudo_palette)[image->bg_color] | mask; nvidiafb_mono_color_expand()
370 NVDmaNext(par, (image->dy << 16) | (image->dx & 0xffff)); nvidiafb_mono_color_expand()
371 NVDmaNext(par, ((image->dy + image->height) << 16) | nvidiafb_mono_color_expand()
372 ((image->dx + image->width) & 0xffff)); nvidiafb_mono_color_expand()
375 NVDmaNext(par, (image->height << 16) | width); nvidiafb_mono_color_expand()
376 NVDmaNext(par, (image->height << 16) | width); nvidiafb_mono_color_expand()
377 NVDmaNext(par, (image->dy << 16) | (image->dx & 0xffff)); nvidiafb_mono_color_expand()
405 void nvidiafb_imageblit(struct fb_info *info, const struct fb_image *image) nvidiafb_imageblit() argument
412 if (image->depth == 1 && !par->lockup) nvidiafb_imageblit()
413 nvidiafb_mono_color_expand(info, image); nvidiafb_imageblit()
415 cfb_imageblit(info, image); nvidiafb_imageblit()
350 nvidiafb_mono_color_expand(struct fb_info *info, const struct fb_image *image) nvidiafb_mono_color_expand() argument
/linux-4.1.27/arch/nios2/boot/compressed/
H A DMakefile2 # create a compressed vmlinux image from the original vmlinux
/linux-4.1.27/drivers/media/usb/pwc/
H A Dpwc-uncompress.c39 void *yuv, *image; pwc_decompress() local
43 image = vb2_plane_vaddr(&fbuf->vb, 0); pwc_decompress()
50 struct pwc_raw_frame *raw_frame = image; pwc_decompress()
74 dsty = (u16 *)(image); pwc_decompress()
75 dstu = (u16 *)(image + n); pwc_decompress()
76 dstv = (u16 *)(image + n + n / 4); pwc_decompress()
104 pwc_dec23_decompress(pdev, yuv, image); pwc_decompress()
/linux-4.1.27/arch/s390/
H A DMakefile48 KBUILD_IMAGE :=arch/s390/boot/image
108 all: image bzImage
113 image bzImage: vmlinux
128 echo '* image - Kernel image for IPL ($(boot)/image)'
129 echo '* bzImage - Compressed kernel image for IPL ($(boot)/bzImage)'
/linux-4.1.27/arch/arm/kernel/
H A Dmachine_kexec.c38 int machine_kexec_prepare(struct kimage *image) machine_kexec_prepare() argument
57 for (i = 0; i < image->nr_segments; i++) { machine_kexec_prepare()
58 current_segment = &image->segment[i]; machine_kexec_prepare()
74 void machine_kexec_cleanup(struct kimage *image) machine_kexec_cleanup() argument
144 void machine_kexec(struct kimage *image) machine_kexec() argument
160 page_list = image->head & PAGE_MASK; machine_kexec()
164 page_to_pfn(image->control_code_page) << PAGE_SHIFT; machine_kexec()
165 reboot_code_buffer = page_address(image->control_code_page); machine_kexec()
169 kexec_start_address = image->start; machine_kexec()
172 kexec_boot_atags = dt_mem ?: image->start - KEXEC_ARM_ZIMAGE_OFFSET machine_kexec()
H A Dhibernate.c50 * context pointer and memory are part of the saved image, which is
51 * required by the resume kernel image to restart execution from
79 * hibernation image. Switch to idmap_pgd so the physical page tables
96 * Resume from the hibernation image.
/linux-4.1.27/include/uapi/linux/
H A Dcycx_cfm.h27 #define CFM_IMAGE_SIZE 0x20000 /* max size of CYCX code image file */
80 * @checksum - info + image
84 * @image - code image (variable size)
93 unsigned char image[0]; member in struct:cycx_firmware
H A Dhysdn_if.h22 #define EPOF_BAD_IMG_SIZE 1004 /* POF boot image size invalid */
23 #define ERR_BOOTIMG_FAIL 1005 /* 1. stage boot image did not start */
H A Db1lli.h63 #define AVMB1_LOAD 0 /* load image to card */
66 #define AVMB1_LOAD_AND_CONFIG 3 /* load image and config to card */
H A Dkexec.h18 * KEXEC_FILE_UNLOAD : Unload already loaded kexec/kdump image.
19 * KEXEC_FILE_ON_CRASH : Load/unload operation belongs to kdump image.
/linux-4.1.27/drivers/pci/
H A Drom.c60 * pci_get_rom_size - obtain the actual size of the ROM image
62 * @rom: kernel virtual pointer to image of ROM
64 * return: size of actual ROM image
66 * Determine the actual length of the ROM image.
68 * actual image size.
72 void __iomem *image; pci_get_rom_size() local
76 image = rom; pci_get_rom_size()
80 if (readb(image) != 0x55) { pci_get_rom_size()
84 if (readb(image + 1) != 0xAA) pci_get_rom_size()
87 pds = image + readw(image + 24); pci_get_rom_size()
98 image += length * 512; pci_get_rom_size()
103 return min((size_t)(image - rom), size); pci_get_rom_size()
111 * Return: kernel virtual pointer to image of ROM
216 * pci_platform_rom - provides a pointer to any ROM image provided by the
/linux-4.1.27/sound/isa/wss/
H A Dwss_lib.c209 chip->image[reg] = value; snd_wss_out()
235 reg | (chip->image[CS4236_EXT_REG] & 0x01)); snd_cs4236_ext_out()
248 reg | (chip->image[CS4236_EXT_REG] & 0x01)); snd_cs4236_ext_in()
512 chip->image[CS4231_IFACE_CTRL] |= what;
516 chip->image[CS4231_IFACE_CTRL] &= ~what;
520 snd_wss_out(chip, CS4231_IFACE_CTRL, chip->image[CS4231_IFACE_CTRL]);
577 chip->image[CS4231_LEFT_INPUT]); snd_wss_calibrate_mute()
579 chip->image[CS4231_RIGHT_INPUT]); snd_wss_calibrate_mute()
581 chip->image[CS4231_LOOPBACK]); snd_wss_calibrate_mute()
592 mute | chip->image[CS4231_AUX1_LEFT_INPUT]); snd_wss_calibrate_mute()
594 mute | chip->image[CS4231_AUX1_RIGHT_INPUT]); snd_wss_calibrate_mute()
596 mute | chip->image[CS4231_AUX2_LEFT_INPUT]); snd_wss_calibrate_mute()
598 mute | chip->image[CS4231_AUX2_RIGHT_INPUT]); snd_wss_calibrate_mute()
600 mute | chip->image[CS4231_LEFT_OUTPUT]); snd_wss_calibrate_mute()
602 mute | chip->image[CS4231_RIGHT_OUTPUT]); snd_wss_calibrate_mute()
605 mute | chip->image[CS4231_LEFT_LINE_IN]); snd_wss_calibrate_mute()
607 mute | chip->image[CS4231_RIGHT_LINE_IN]); snd_wss_calibrate_mute()
609 mute ? 0xc0 : chip->image[CS4231_MONO_CTRL]); snd_wss_calibrate_mute()
613 mute | chip->image[CS4231_LEFT_MIC_INPUT]); snd_wss_calibrate_mute()
615 mute | chip->image[CS4231_RIGHT_MIC_INPUT]); snd_wss_calibrate_mute()
617 mute | chip->image[CS4231_LINE_LEFT_OUTPUT]); snd_wss_calibrate_mute()
619 mute | chip->image[CS4231_LINE_RIGHT_OUTPUT]); snd_wss_calibrate_mute()
636 if ((chip->image[CS4231_PLAYBK_FORMAT] & 0x0f) == (pdfr & 0x0f)) { /* rate is same? */ snd_wss_playback_format()
638 chip->image[CS4231_ALT_FEATURE_1] | 0x10); snd_wss_playback_format()
639 chip->image[CS4231_PLAYBK_FORMAT] = pdfr; snd_wss_playback_format()
641 chip->image[CS4231_PLAYBK_FORMAT]); snd_wss_playback_format()
643 chip->image[CS4231_ALT_FEATURE_1] &= ~0x10); snd_wss_playback_format()
671 if (chip->image[CS4231_IFACE_CTRL] & CS4231_RECORD_ENABLE) snd_wss_playback_format()
673 (chip->image[CS4231_REC_FORMAT] & 0x0f); snd_wss_playback_format()
675 chip->image[CS4231_PLAYBK_FORMAT] = pdfr; snd_wss_playback_format()
697 if ((chip->image[CS4231_PLAYBK_FORMAT] & 0x0f) == (cdfr & 0x0f) || /* rate is same? */ snd_wss_capture_format()
698 (chip->image[CS4231_IFACE_CTRL] & CS4231_PLAYBACK_ENABLE)) { snd_wss_capture_format()
700 chip->image[CS4231_ALT_FEATURE_1] | 0x20); snd_wss_capture_format()
702 chip->image[CS4231_REC_FORMAT] = cdfr); snd_wss_capture_format()
704 chip->image[CS4231_ALT_FEATURE_1] &= ~0x20); snd_wss_capture_format()
731 !(chip->image[CS4231_IFACE_CTRL] & CS4231_PLAYBACK_ENABLE)) { snd_wss_capture_format()
736 (chip->image[CS4231_PLAYBK_FORMAT] & 0xf0) | snd_wss_capture_format()
763 return chip->image[CS4231_PLAYBK_FORMAT] & 1 ? 9969 : 9920; snd_wss_timer_resolution()
773 if ((chip->image[CS4231_ALT_FEATURE_1] & CS4231_TIMER_ENABLE) == 0 || snd_wss_timer_start()
774 (unsigned char)(ticks >> 8) != chip->image[CS4231_TIMER_HIGH] || snd_wss_timer_start()
775 (unsigned char)ticks != chip->image[CS4231_TIMER_LOW]) { snd_wss_timer_start()
776 chip->image[CS4231_TIMER_HIGH] = (unsigned char) (ticks >> 8); snd_wss_timer_start()
778 chip->image[CS4231_TIMER_HIGH]); snd_wss_timer_start()
779 chip->image[CS4231_TIMER_LOW] = (unsigned char) ticks; snd_wss_timer_start()
781 chip->image[CS4231_TIMER_LOW]); snd_wss_timer_start()
783 chip->image[CS4231_ALT_FEATURE_1] | snd_wss_timer_start()
795 chip->image[CS4231_ALT_FEATURE_1] &= ~CS4231_TIMER_ENABLE; snd_wss_timer_stop()
797 chip->image[CS4231_ALT_FEATURE_1]); snd_wss_timer_stop()
814 chip->image[CS4231_IFACE_CTRL] &= ~(CS4231_PLAYBACK_ENABLE | snd_wss_init()
819 chip->image[CS4231_IFACE_CTRL] |= CS4231_AUTOCALIB; snd_wss_init()
820 snd_wss_out(chip, CS4231_IFACE_CTRL, chip->image[CS4231_IFACE_CTRL]); snd_wss_init()
830 chip->image[CS4231_IFACE_CTRL] &= ~CS4231_AUTOCALIB; snd_wss_init()
831 snd_wss_out(chip, CS4231_IFACE_CTRL, chip->image[CS4231_IFACE_CTRL]); snd_wss_init()
833 CS4231_ALT_FEATURE_1, chip->image[CS4231_ALT_FEATURE_1]); snd_wss_init()
839 chip->image[CS4231_ALT_FEATURE_1]); snd_wss_init()
844 chip->image[CS4231_ALT_FEATURE_2]); snd_wss_init()
850 chip->image[CS4231_PLAYBK_FORMAT]); snd_wss_init()
862 chip->image[CS4231_REC_FORMAT]); snd_wss_init()
898 chip->image[CS4231_PIN_CTRL] |= CS4231_IRQ_ENABLE; snd_wss_open()
899 snd_wss_out(chip, CS4231_PIN_CTRL, chip->image[CS4231_PIN_CTRL]); snd_wss_open()
930 chip->image[CS4231_PIN_CTRL] &= ~CS4231_IRQ_ENABLE; snd_wss_close()
931 snd_wss_out(chip, CS4231_PIN_CTRL, chip->image[CS4231_PIN_CTRL]); snd_wss_close()
935 if (chip->image[CS4231_IFACE_CTRL] & (CS4231_PLAYBACK_ENABLE | CS4231_PLAYBACK_PIO | snd_wss_close()
940 chip->image[CS4231_IFACE_CTRL] &= ~(CS4231_PLAYBACK_ENABLE | CS4231_PLAYBACK_PIO | snd_wss_close()
943 chip->image[CS4231_IFACE_CTRL]); snd_wss_close()
1025 chip->image[CS4231_IFACE_CTRL] &= ~(CS4231_PLAYBACK_ENABLE | CS4231_PLAYBACK_PIO); snd_wss_playback_prepare()
1027 count = snd_wss_get_count(chip->image[CS4231_PLAYBK_FORMAT], count) - 1; snd_wss_playback_prepare()
1068 chip->image[CS4231_IFACE_CTRL] &= ~(CS4231_RECORD_ENABLE | CS4231_RECORD_PIO); snd_wss_capture_prepare()
1071 count = snd_wss_get_count(chip->image[CS4231_PLAYBK_FORMAT], snd_wss_capture_prepare()
1074 count = snd_wss_get_count(chip->image[CS4231_REC_FORMAT], snd_wss_capture_prepare()
1159 if (!(chip->image[CS4231_IFACE_CTRL] & CS4231_PLAYBACK_ENABLE)) snd_wss_playback_pointer()
1170 if (!(chip->image[CS4231_IFACE_CTRL] & CS4231_RECORD_ENABLE)) snd_wss_capture_pointer()
1325 chip->image[CS4231_MISC_INFO] = CS4231_MODE2; snd_wss_probe()
1328 chip->image[CS4231_MISC_INFO] = CS4231_IW_MODE3; snd_wss_probe()
1336 chip->image[CS4231_MISC_INFO] = CS4231_4236_MODE3; snd_wss_probe()
1342 chip->image[CS4231_IFACE_CTRL] = snd_wss_probe()
1343 (chip->image[CS4231_IFACE_CTRL] & ~CS4231_SINGLE_DMA) | snd_wss_probe()
1346 chip->image[CS4231_ALT_FEATURE_1] = 0x80; snd_wss_probe()
1347 chip->image[CS4231_ALT_FEATURE_2] = snd_wss_probe()
1352 chip->image[AD1845_PWR_DOWN] = 8; snd_wss_probe()
1354 ptr = (unsigned char *) &chip->image; snd_wss_probe()
1633 chip->image[reg] = snd_wss_in(chip, reg); snd_wss_suspend()
1655 snd_wss_out(chip, reg, chip->image[reg]); snd_wss_resume()
1662 chip->image[CS4231_PLAYBK_FORMAT]); snd_wss_resume()
1786 memcpy(&chip->image, &snd_opti93x_original_image, snd_wss_new()
1789 memcpy(&chip->image, &snd_wss_original_image, snd_wss_new()
1792 chip->image[CS4231_PIN_CTRL] = 0; snd_wss_new()
1793 chip->image[CS4231_TEST_INIT] = 0; snd_wss_new()
2027 ucontrol->value.enumerated.item[0] = (chip->image[CS4231_LEFT_INPUT] & CS4231_MIXS_ALL) >> 6; snd_wss_get_mux()
2028 ucontrol->value.enumerated.item[1] = (chip->image[CS4231_RIGHT_INPUT] & CS4231_MIXS_ALL) >> 6; snd_wss_get_mux()
2047 left = (chip->image[CS4231_LEFT_INPUT] & ~CS4231_MIXS_ALL) | left; snd_wss_put_mux()
2048 right = (chip->image[CS4231_RIGHT_INPUT] & ~CS4231_MIXS_ALL) | right; snd_wss_put_mux()
2049 change = left != chip->image[CS4231_LEFT_INPUT] || snd_wss_put_mux()
2050 right != chip->image[CS4231_RIGHT_INPUT]; snd_wss_put_mux()
2081 ucontrol->value.integer.value[0] = (chip->image[reg] >> shift) & mask; snd_wss_get_single()
2106 val = (chip->image[reg] & ~(mask << shift)) | val; snd_wss_put_single()
2107 change = val != chip->image[reg]; snd_wss_put_single()
2140 ucontrol->value.integer.value[0] = (chip->image[left_reg] >> shift_left) & mask; snd_wss_get_double()
2141 ucontrol->value.integer.value[1] = (chip->image[right_reg] >> shift_right) & mask; snd_wss_get_double()
2175 val1 = (chip->image[left_reg] & ~(mask << shift_left)) | val1; snd_wss_put_double()
2176 val2 = (chip->image[right_reg] & ~(mask << shift_right)) | val2; snd_wss_put_double()
2177 change = val1 != chip->image[left_reg] || snd_wss_put_double()
2178 val2 != chip->image[right_reg]; snd_wss_put_double()
2183 val1 = (chip->image[left_reg] & ~mask) | val1 | val2; snd_wss_put_double()
2184 change = val1 != chip->image[left_reg]; snd_wss_put_double()
/linux-4.1.27/drivers/vme/bridges/
H A Dvme_ca91cx42.c341 static int ca91cx42_slave_set(struct vme_slave_resource *image, int enabled, ca91cx42_slave_set() argument
351 ca91cx42_bridge = image->parent; ca91cx42_slave_set()
355 i = image->number; ca91cx42_slave_set()
447 static int ca91cx42_slave_get(struct vme_slave_resource *image, int *enabled, ca91cx42_slave_get() argument
455 bridge = image->parent->driver_priv; ca91cx42_slave_get()
457 i = image->number; ca91cx42_slave_get()
507 static int ca91cx42_alloc_resource(struct vme_master_resource *image, ca91cx42_alloc_resource() argument
515 ca91cx42_bridge = image->parent; ca91cx42_alloc_resource()
524 existing_size = (unsigned long long)(image->bus_resource.end - ca91cx42_alloc_resource()
525 image->bus_resource.start); ca91cx42_alloc_resource()
532 iounmap(image->kern_base); ca91cx42_alloc_resource()
533 image->kern_base = NULL; ca91cx42_alloc_resource()
534 kfree(image->bus_resource.name); ca91cx42_alloc_resource()
535 release_resource(&image->bus_resource); ca91cx42_alloc_resource()
536 memset(&image->bus_resource, 0, sizeof(struct resource)); ca91cx42_alloc_resource()
539 if (image->bus_resource.name == NULL) { ca91cx42_alloc_resource()
540 image->bus_resource.name = kmalloc(VMENAMSIZ+3, GFP_ATOMIC); ca91cx42_alloc_resource()
541 if (image->bus_resource.name == NULL) { ca91cx42_alloc_resource()
549 sprintf((char *)image->bus_resource.name, "%s.%d", ca91cx42_alloc_resource()
550 ca91cx42_bridge->name, image->number); ca91cx42_alloc_resource()
552 image->bus_resource.start = 0; ca91cx42_alloc_resource()
553 image->bus_resource.end = (unsigned long)size; ca91cx42_alloc_resource()
554 image->bus_resource.flags = IORESOURCE_MEM; ca91cx42_alloc_resource()
557 &image->bus_resource, size, size, PCIBIOS_MIN_MEM, ca91cx42_alloc_resource()
562 image->number, (unsigned long)size, ca91cx42_alloc_resource()
563 (unsigned long)image->bus_resource.start); ca91cx42_alloc_resource()
567 image->kern_base = ioremap_nocache( ca91cx42_alloc_resource()
568 image->bus_resource.start, size); ca91cx42_alloc_resource()
569 if (image->kern_base == NULL) { ca91cx42_alloc_resource()
578 release_resource(&image->bus_resource); ca91cx42_alloc_resource()
580 kfree(image->bus_resource.name); ca91cx42_alloc_resource()
581 memset(&image->bus_resource, 0, sizeof(struct resource)); ca91cx42_alloc_resource()
589 static void ca91cx42_free_resource(struct vme_master_resource *image) ca91cx42_free_resource() argument
591 iounmap(image->kern_base); ca91cx42_free_resource()
592 image->kern_base = NULL; ca91cx42_free_resource()
593 release_resource(&image->bus_resource); ca91cx42_free_resource()
594 kfree(image->bus_resource.name); ca91cx42_free_resource()
595 memset(&image->bus_resource, 0, sizeof(struct resource)); ca91cx42_free_resource()
599 static int ca91cx42_master_set(struct vme_master_resource *image, int enabled, ca91cx42_master_set() argument
610 ca91cx42_bridge = image->parent; ca91cx42_master_set()
614 i = image->number; ca91cx42_master_set()
635 spin_lock(&image->lock); ca91cx42_master_set()
641 retval = ca91cx42_alloc_resource(image, size); ca91cx42_master_set()
643 spin_unlock(&image->lock); ca91cx42_master_set()
650 pci_base = (unsigned long long)image->bus_resource.start; ca91cx42_master_set()
687 spin_unlock(&image->lock); ca91cx42_master_set()
719 spin_unlock(&image->lock); ca91cx42_master_set()
745 spin_unlock(&image->lock); ca91cx42_master_set()
750 ca91cx42_free_resource(image); ca91cx42_master_set()
756 static int __ca91cx42_master_get(struct vme_master_resource *image, __ca91cx42_master_get() argument
764 bridge = image->parent->driver_priv; __ca91cx42_master_get()
766 i = image->number; __ca91cx42_master_get()
843 static int ca91cx42_master_get(struct vme_master_resource *image, int *enabled, ca91cx42_master_get() argument
849 spin_lock(&image->lock); ca91cx42_master_get()
851 retval = __ca91cx42_master_get(image, enabled, vme_base, size, aspace, ca91cx42_master_get()
854 spin_unlock(&image->lock); ca91cx42_master_get()
859 static ssize_t ca91cx42_master_read(struct vme_master_resource *image, ca91cx42_master_read() argument
863 void __iomem *addr = image->kern_base + offset; ca91cx42_master_read()
870 spin_lock(&image->lock); ca91cx42_master_read()
913 spin_unlock(&image->lock); ca91cx42_master_read()
918 static ssize_t ca91cx42_master_write(struct vme_master_resource *image, ca91cx42_master_write() argument
922 void __iomem *addr = image->kern_base + offset; ca91cx42_master_write()
929 spin_lock(&image->lock); ca91cx42_master_write()
968 spin_unlock(&image->lock); ca91cx42_master_write()
973 static unsigned int ca91cx42_master_rmw(struct vme_master_resource *image, ca91cx42_master_rmw() argument
983 bridge = image->parent->driver_priv; ca91cx42_master_rmw()
984 dev = image->parent->parent; ca91cx42_master_rmw()
987 i = image->number; ca91cx42_master_rmw()
992 /* Lock image */ ca91cx42_master_rmw()
993 spin_lock(&image->lock); ca91cx42_master_rmw()
995 pci_addr = (uintptr_t)image->kern_base + offset; ca91cx42_master_rmw()
1017 result = ioread32(image->kern_base + offset); ca91cx42_master_rmw()
1023 spin_unlock(&image->lock); ca91cx42_master_rmw()
1557 /* Allocate mem for CR/CSR image */ ca91cx42_crcsr_init()
1562 "image\n"); ca91cx42_crcsr_init()
1589 /* Free image */ ca91cx42_crcsr_exit()
H A Dvme_tsi148.c555 static int tsi148_slave_set(struct vme_slave_resource *image, int enabled, tsi148_slave_set() argument
568 tsi148_bridge = image->parent; tsi148_slave_set()
571 i = image->number; tsi148_slave_set()
700 static int tsi148_slave_get(struct vme_slave_resource *image, int *enabled, tsi148_slave_get() argument
711 bridge = image->parent->driver_priv; tsi148_slave_get()
713 i = image->number; tsi148_slave_get()
800 static int tsi148_alloc_resource(struct vme_master_resource *image, tsi148_alloc_resource() argument
808 tsi148_bridge = image->parent; tsi148_alloc_resource()
812 existing_size = (unsigned long long)(image->bus_resource.end - tsi148_alloc_resource()
813 image->bus_resource.start); tsi148_alloc_resource()
820 iounmap(image->kern_base); tsi148_alloc_resource()
821 image->kern_base = NULL; tsi148_alloc_resource()
822 kfree(image->bus_resource.name); tsi148_alloc_resource()
823 release_resource(&image->bus_resource); tsi148_alloc_resource()
824 memset(&image->bus_resource, 0, sizeof(struct resource)); tsi148_alloc_resource()
831 if (image->bus_resource.name == NULL) { tsi148_alloc_resource()
832 image->bus_resource.name = kmalloc(VMENAMSIZ+3, GFP_ATOMIC); tsi148_alloc_resource()
833 if (image->bus_resource.name == NULL) { tsi148_alloc_resource()
841 sprintf((char *)image->bus_resource.name, "%s.%d", tsi148_bridge->name, tsi148_alloc_resource()
842 image->number); tsi148_alloc_resource()
844 image->bus_resource.start = 0; tsi148_alloc_resource()
845 image->bus_resource.end = (unsigned long)size; tsi148_alloc_resource()
846 image->bus_resource.flags = IORESOURCE_MEM; tsi148_alloc_resource()
849 &image->bus_resource, size, size, PCIBIOS_MIN_MEM, tsi148_alloc_resource()
854 image->number, (unsigned long)size, tsi148_alloc_resource()
855 (unsigned long)image->bus_resource.start); tsi148_alloc_resource()
859 image->kern_base = ioremap_nocache( tsi148_alloc_resource()
860 image->bus_resource.start, size); tsi148_alloc_resource()
861 if (image->kern_base == NULL) { tsi148_alloc_resource()
870 release_resource(&image->bus_resource); tsi148_alloc_resource()
872 kfree(image->bus_resource.name); tsi148_alloc_resource()
873 memset(&image->bus_resource, 0, sizeof(struct resource)); tsi148_alloc_resource()
881 static void tsi148_free_resource(struct vme_master_resource *image) tsi148_free_resource() argument
883 iounmap(image->kern_base); tsi148_free_resource()
884 image->kern_base = NULL; tsi148_free_resource()
885 release_resource(&image->bus_resource); tsi148_free_resource()
886 kfree(image->bus_resource.name); tsi148_free_resource()
887 memset(&image->bus_resource, 0, sizeof(struct resource)); tsi148_free_resource()
893 static int tsi148_master_set(struct vme_master_resource *image, int enabled, tsi148_master_set() argument
909 tsi148_bridge = image->parent; tsi148_master_set()
930 spin_lock(&image->lock); tsi148_master_set()
936 retval = tsi148_alloc_resource(image, size); tsi148_master_set()
938 spin_unlock(&image->lock); tsi148_master_set()
950 &image->bus_resource); tsi148_master_set()
967 spin_unlock(&image->lock); tsi148_master_set()
973 spin_unlock(&image->lock); tsi148_master_set()
979 spin_unlock(&image->lock); tsi148_master_set()
986 i = image->number; tsi148_master_set()
1043 spin_unlock(&image->lock); tsi148_master_set()
1080 spin_unlock(&image->lock); tsi148_master_set()
1117 spin_unlock(&image->lock); tsi148_master_set()
1123 tsi148_free_resource(image); tsi148_master_set()
1135 static int __tsi148_master_get(struct vme_master_resource *image, int *enabled, __tsi148_master_get() argument
1147 bridge = image->parent->driver_priv; __tsi148_master_get()
1149 i = image->number; __tsi148_master_get()
1245 static int tsi148_master_get(struct vme_master_resource *image, int *enabled, tsi148_master_get() argument
1251 spin_lock(&image->lock); tsi148_master_get()
1253 retval = __tsi148_master_get(image, enabled, vme_base, size, aspace, tsi148_master_get()
1256 spin_unlock(&image->lock); tsi148_master_get()
1261 static ssize_t tsi148_master_read(struct vme_master_resource *image, void *buf, tsi148_master_read() argument
1269 void __iomem *addr = image->kern_base + offset; tsi148_master_read()
1273 tsi148_bridge = image->parent; tsi148_master_read()
1275 spin_lock(&image->lock); tsi148_master_read()
1323 __tsi148_master_get(image, &enabled, &vme_base, &size, &aspace, &cycle, tsi148_master_read()
1329 dev_err(image->parent->parent, "First VME read error detected " tsi148_master_read()
1338 spin_unlock(&image->lock); tsi148_master_read()
1344 static ssize_t tsi148_master_write(struct vme_master_resource *image, void *buf, tsi148_master_write() argument
1350 void __iomem *addr = image->kern_base + offset; tsi148_master_write()
1358 tsi148_bridge = image->parent; tsi148_master_write()
1362 spin_lock(&image->lock); tsi148_master_write()
1420 __tsi148_master_get(image, &enabled, &vme_base, &size, &aspace, &cycle, tsi148_master_write()
1437 spin_unlock(&image->lock); tsi148_master_write()
1447 static unsigned int tsi148_master_rmw(struct vme_master_resource *image, tsi148_master_rmw() argument
1457 bridge = image->parent->driver_priv; tsi148_master_rmw()
1460 i = image->number; tsi148_master_rmw()
1465 /* Lock image */ tsi148_master_rmw()
1466 spin_lock(&image->lock); tsi148_master_rmw()
1489 result = ioread32be(image->kern_base + offset); tsi148_master_rmw()
1496 spin_unlock(&image->lock); tsi148_master_rmw()
2272 /* Allocate mem for CR/CSR image */ tsi148_crcsr_init()
2277 "CR/CSR image\n"); tsi148_crcsr_init()
2317 dev_err(tsi148_bridge->parent, "Configuring flush image" tsi148_crcsr_init()
2338 /* Free image */ tsi148_crcsr_exit()
/linux-4.1.27/sound/sparc/
H A Dcs4231.c108 unsigned char image[32]; /* registers image */ member in struct:snd_cs4231
308 unsigned char tmp = (chip->image[reg] & mask) | value; snd_cs4231_outm()
310 chip->image[reg] = tmp; snd_cs4231_outm()
319 chip->image[reg] = value; snd_cs4231_out()
500 chip->image[CS4231_IFACE_CTRL] |= what;
503 chip->image[CS4231_IFACE_CTRL] &= ~what;
506 chip->image[CS4231_IFACE_CTRL]);
573 chip->image[CS4231_LEFT_INPUT]); snd_cs4231_calibrate_mute()
575 chip->image[CS4231_RIGHT_INPUT]); snd_cs4231_calibrate_mute()
577 chip->image[CS4231_LOOPBACK]); snd_cs4231_calibrate_mute()
580 mute ? 0x80 : chip->image[CS4231_AUX1_LEFT_INPUT]); snd_cs4231_calibrate_mute()
582 mute ? 0x80 : chip->image[CS4231_AUX1_RIGHT_INPUT]); snd_cs4231_calibrate_mute()
584 mute ? 0x80 : chip->image[CS4231_AUX2_LEFT_INPUT]); snd_cs4231_calibrate_mute()
586 mute ? 0x80 : chip->image[CS4231_AUX2_RIGHT_INPUT]); snd_cs4231_calibrate_mute()
588 mute ? 0x80 : chip->image[CS4231_LEFT_OUTPUT]); snd_cs4231_calibrate_mute()
590 mute ? 0x80 : chip->image[CS4231_RIGHT_OUTPUT]); snd_cs4231_calibrate_mute()
592 mute ? 0x80 : chip->image[CS4231_LEFT_LINE_IN]); snd_cs4231_calibrate_mute()
594 mute ? 0x80 : chip->image[CS4231_RIGHT_LINE_IN]); snd_cs4231_calibrate_mute()
596 mute ? 0xc0 : chip->image[CS4231_MONO_CTRL]); snd_cs4231_calibrate_mute()
614 (chip->image[CS4231_IFACE_CTRL] & CS4231_RECORD_ENABLE) ? snd_cs4231_playback_format()
615 (pdfr & 0xf0) | (chip->image[CS4231_REC_FORMAT] & 0x0f) : snd_cs4231_playback_format()
637 if (!(chip->image[CS4231_IFACE_CTRL] & CS4231_PLAYBACK_ENABLE)) { snd_cs4231_capture_format()
639 ((chip->image[CS4231_PLAYBK_FORMAT]) & 0xf0) | snd_cs4231_capture_format()
663 return chip->image[CS4231_PLAYBK_FORMAT] & 1 ? 9969 : 9920; snd_cs4231_timer_resolution()
674 if ((chip->image[CS4231_ALT_FEATURE_1] & CS4231_TIMER_ENABLE) == 0 || snd_cs4231_timer_start()
675 (unsigned char)(ticks >> 8) != chip->image[CS4231_TIMER_HIGH] || snd_cs4231_timer_start()
676 (unsigned char)ticks != chip->image[CS4231_TIMER_LOW]) { snd_cs4231_timer_start()
678 chip->image[CS4231_TIMER_HIGH] = snd_cs4231_timer_start()
681 chip->image[CS4231_TIMER_LOW] = snd_cs4231_timer_start()
684 chip->image[CS4231_ALT_FEATURE_1] | snd_cs4231_timer_start()
698 chip->image[CS4231_ALT_FEATURE_1] &= ~CS4231_TIMER_ENABLE; snd_cs4231_timer_stop()
700 chip->image[CS4231_ALT_FEATURE_1]); snd_cs4231_timer_stop()
717 chip->image[CS4231_IFACE_CTRL] &= ~(CS4231_PLAYBACK_ENABLE | snd_cs4231_init()
722 chip->image[CS4231_IFACE_CTRL] |= CS4231_AUTOCALIB; snd_cs4231_init()
723 snd_cs4231_out(chip, CS4231_IFACE_CTRL, chip->image[CS4231_IFACE_CTRL]); snd_cs4231_init()
734 chip->image[CS4231_ALT_FEATURE_1]); snd_cs4231_init()
740 chip->image[CS4231_ALT_FEATURE_1]); snd_cs4231_init()
745 chip->image[CS4231_ALT_FEATURE_2]); snd_cs4231_init()
751 chip->image[CS4231_PLAYBK_FORMAT]); snd_cs4231_init()
761 snd_cs4231_out(chip, CS4231_REC_FORMAT, chip->image[CS4231_REC_FORMAT]); snd_cs4231_init()
825 if (chip->image[CS4231_IFACE_CTRL] & snd_cs4231_close()
831 chip->image[CS4231_IFACE_CTRL] &= snd_cs4231_close()
835 chip->image[CS4231_IFACE_CTRL]); snd_cs4231_close()
914 chip->image[CS4231_IFACE_CTRL] &= ~(CS4231_PLAYBACK_ENABLE | snd_cs4231_playback_prepare()
955 chip->image[CS4231_IFACE_CTRL] &= ~(CS4231_RECORD_ENABLE | snd_cs4231_capture_prepare()
981 if (chip->image[CS4231_IFACE_CTRL] & CS4231_PLAYBACK_ENABLE) { snd_cs4231_play_callback()
990 if (chip->image[CS4231_IFACE_CTRL] & CS4231_RECORD_ENABLE) { snd_cs4231_capture_callback()
1004 if (!(chip->image[CS4231_IFACE_CTRL] & CS4231_PLAYBACK_ENABLE)) snd_cs4231_playback_pointer()
1020 if (!(chip->image[CS4231_IFACE_CTRL] & CS4231_RECORD_ENABLE)) snd_cs4231_capture_pointer()
1064 chip->image[CS4231_MISC_INFO] = CS4231_MODE2; snd_cs4231_probe()
1065 chip->image[CS4231_IFACE_CTRL] = snd_cs4231_probe()
1066 chip->image[CS4231_IFACE_CTRL] & ~CS4231_SINGLE_DMA; snd_cs4231_probe()
1067 chip->image[CS4231_ALT_FEATURE_1] = 0x80; snd_cs4231_probe()
1068 chip->image[CS4231_ALT_FEATURE_2] = 0x01; snd_cs4231_probe()
1070 chip->image[CS4231_ALT_FEATURE_2] |= 0x02; snd_cs4231_probe()
1072 ptr = (unsigned char *) &chip->image; snd_cs4231_probe()
1303 (chip->image[CS4231_LEFT_INPUT] & CS4231_MIXS_ALL) >> 6; snd_cs4231_get_mux()
1305 (chip->image[CS4231_RIGHT_INPUT] & CS4231_MIXS_ALL) >> 6; snd_cs4231_get_mux()
1327 left = (chip->image[CS4231_LEFT_INPUT] & ~CS4231_MIXS_ALL) | left; snd_cs4231_put_mux()
1328 right = (chip->image[CS4231_RIGHT_INPUT] & ~CS4231_MIXS_ALL) | right; snd_cs4231_put_mux()
1329 change = left != chip->image[CS4231_LEFT_INPUT] || snd_cs4231_put_mux()
1330 right != chip->image[CS4231_RIGHT_INPUT]; snd_cs4231_put_mux()
1365 ucontrol->value.integer.value[0] = (chip->image[reg] >> shift) & mask; snd_cs4231_get_single()
1395 val = (chip->image[reg] & ~(mask << shift)) | val; snd_cs4231_put_single()
1396 change = val != chip->image[reg]; snd_cs4231_put_single()
1433 (chip->image[left_reg] >> shift_left) & mask; snd_cs4231_get_double()
1435 (chip->image[right_reg] >> shift_right) & mask; snd_cs4231_get_double()
1474 val1 = (chip->image[left_reg] & ~(mask << shift_left)) | val1; snd_cs4231_put_double()
1475 val2 = (chip->image[right_reg] & ~(mask << shift_right)) | val2; snd_cs4231_put_double()
1476 change = val1 != chip->image[left_reg]; snd_cs4231_put_double()
1477 change |= val2 != chip->image[right_reg]; snd_cs4231_put_double()
1810 memcpy(&chip->image, &snd_cs4231_original_image, snd_cs4231_sbus_create()
1976 memcpy(&chip->image, &snd_cs4231_original_image, snd_cs4231_ebus_create()
/linux-4.1.27/arch/x86/power/
H A Dhibernate_asm_64.S13 * Its rewriting one kernel image with another. What is stack in "old"
14 * image could very well be data page in "new" image, and overwriting
70 /* prepare to jump to the image kernel */
74 /* prepare to copy image data to their original locations */
96 /* jump to the restore_registers address from the image header */
100 * image kernel's page containing restore_registers and the address of
101 * this page is the same as in the image kernel's text mapping (it
106 * code below belongs to the image kernel
H A Dhibernate_asm_32.S4 * Its rewriting one kernel image with another. What is stack in "old"
5 * image could very well be data page in "new" image, and overwriting
H A Dhibernate_64.c27 * Address to jump to in the last phase of restore in order to get to the image
28 * kernel's text (this value is passed in the image header).
34 * in the image header).
120 * of a hibernation image header
137 * from the hibernation image header
/linux-4.1.27/drivers/media/platform/exynos-gsc/
H A Dgsc-regs.h68 /* G-Scaler source image size */
73 /* G-Scaler source image offset */
78 /* G-Scaler cropped source image size */
113 /* G-Scaler scaled destination image size */
132 /* G-Scaler destination image size */
137 /* G-Scaler destination image offset */
/linux-4.1.27/arch/alpha/boot/
H A DMakefile20 # SRM bootable image. Copy to offset 512 of a partition.
26 # BOOTP bootable image. Define INITRD during make to append initrd image.
33 # Compressed kernel BOOTP bootable image.
34 # Define INITRD during make to append initrd image.
41 # Compressed kernel image
H A Dbootpz.c36 kernel image corruption due to stack usage to do the printing.
175 /* Calculate the kernel image address based on the end of the BOOTP
194 the BOOTP image.
211 /* Virtual addresses for the BOOTP image. Note that this includes the
212 bootstrapper code as well as the compressed kernel image, and
213 possibly the INITRD image.
216 beyond the end of the loaded image.
221 /* Virtual addresses for just the bootstrapper part of the BOOTP image. */
226 image. This may also include the INITRD image, but always
238 just before jumping to the kernel image at START_ADDR.
244 /* Define to where we may have to decompress the kernel image, before
248 Regardless of overlap, we move the INITRD image to the end of this
325 /* Since all the SRM consoles load the BOOTP image at virtual start_kernel()
327 * pages occupied by that image do NOT overlap the physical start_kernel()
332 * So, we may have to decompress/move the kernel/INITRD image start_kernel()
340 the bootstrapper part of the BOOTP image include any of the start_kernel()
344 We only need check on the final kernel image range, since we start_kernel()
357 image include any of the physical pages into which the start_kernel()
373 the BOOTP image include any of the physical pages start_kernel()
386 /* Keep as close as possible to end of BOOTP image. */ start_kernel()
413 /* First, we always move the INITRD image, if present. */ start_kernel()
415 srm_printk("Moving the INITRD image...\n" start_kernel()
439 * overwritten by kernel image. start_kernel()
/linux-4.1.27/arch/xtensa/boot/boot-redboot/
H A DMakefile24 --add-section image=vmlinux.bin.gz \
25 --set-section-flags image=contents,alloc,load,load,data \
H A Dbootstrap.S10 * The Linux-Kernel image including the loader must be loaded
70 * that the kernel image is out of the way. Usually, when the
71 * load address of this image is not at an arbitrary address,
172 # a8(a4) Load address of the image
/linux-4.1.27/drivers/gpu/ipu-v3/
H A Dipu-cpmem.c592 int ipu_cpmem_set_image(struct ipuv3_channel *ch, struct ipu_image *image) ipu_cpmem_set_image() argument
594 struct v4l2_pix_format *pix = &image->pix; ipu_cpmem_set_image()
601 ipu_cpmem_set_resolution(ch, image->rect.width, image->rect.height); ipu_cpmem_set_image()
609 offset = Y_OFFSET(pix, image->rect.left, image->rect.top); ipu_cpmem_set_image()
610 u_offset = U_OFFSET(pix, image->rect.left, ipu_cpmem_set_image()
611 image->rect.top) - offset; ipu_cpmem_set_image()
612 v_offset = V_OFFSET(pix, image->rect.left, ipu_cpmem_set_image()
613 image->rect.top) - offset; ipu_cpmem_set_image()
620 offset = Y_OFFSET(pix, image->rect.left, image->rect.top); ipu_cpmem_set_image()
621 u_offset = U2_OFFSET(pix, image->rect.left, ipu_cpmem_set_image()
622 image->rect.top) - offset; ipu_cpmem_set_image()
623 v_offset = V2_OFFSET(pix, image->rect.left, ipu_cpmem_set_image()
624 image->rect.top) - offset; ipu_cpmem_set_image()
631 offset = Y_OFFSET(pix, image->rect.left, image->rect.top); ipu_cpmem_set_image()
632 u_offset = UV_OFFSET(pix, image->rect.left, ipu_cpmem_set_image()
633 image->rect.top) - offset; ipu_cpmem_set_image()
641 offset = Y_OFFSET(pix, image->rect.left, image->rect.top); ipu_cpmem_set_image()
642 u_offset = UV2_OFFSET(pix, image->rect.left, ipu_cpmem_set_image()
643 image->rect.top) - offset; ipu_cpmem_set_image()
653 offset = image->rect.left * 2 + ipu_cpmem_set_image()
654 image->rect.top * pix->bytesperline; ipu_cpmem_set_image()
658 offset = image->rect.left * 4 + ipu_cpmem_set_image()
659 image->rect.top * pix->bytesperline; ipu_cpmem_set_image()
663 offset = image->rect.left * 3 + ipu_cpmem_set_image()
664 image->rect.top * pix->bytesperline; ipu_cpmem_set_image()
670 ipu_cpmem_set_buffer(ch, 0, image->phys0 + offset); ipu_cpmem_set_image()
671 ipu_cpmem_set_buffer(ch, 1, image->phys1 + offset); ipu_cpmem_set_image()
/linux-4.1.27/include/media/
H A Dov772x.h16 #define OV772X_FLAG_VFLIP (1 << 0) /* Vertical flip image */
17 #define OV772X_FLAG_HFLIP (1 << 1) /* Horizontal flip image */
H A Ds5k4ecgx.h2 * S5K4ECGX image sensor header file
H A Dv4l2-image-sizes.h2 * Standard image size definitions
H A Ds5c73m3.h39 * @horiz_flip: default horizontal image flip value, non zero to enable
40 * @vert_flip: default vertical image flip value, non zero to enable
H A Ds5k6aa.h36 * @horiz_flip: default horizontal image flip value, non zero to enable
37 * @vert_flip: default vertical image flip value, non zero to enable
H A Ds3c_camif.h18 * struct s3c_camif_sensor_info - an image sensor description
/linux-4.1.27/arch/arm64/kernel/
H A Defi-stub.c22 efi_loaded_image_t *image) handle_kernel_image()
27 /* Relocate the image, if required. */ handle_kernel_image()
16 handle_kernel_image(efi_system_table_t *sys_table, unsigned long *image_addr, unsigned long *image_size, unsigned long *reserve_addr, unsigned long *reserve_size, unsigned long dram_base, efi_loaded_image_t *image) handle_kernel_image() argument
H A Defi-entry.S29 * we want to be. The kernel image wants to be placed at TEXT_OFFSET
42 * address of image is calculated and passed via *image_addr.
57 * efi_entry() will have copied the kernel image if necessary and we
86 * entries for the VA range of the current image, so no maintenance is
/linux-4.1.27/include/sound/
H A Dwm2000.h15 /** Filename for system-specific image to download to device. */
/linux-4.1.27/arch/sh/kernel/cpu/
H A Dadc.c4 * Copyright (C) 2004 Andriy Skulysh <askulysh@image.kiev.ua>
/linux-4.1.27/arch/mn10300/boot/compressed/
H A DMakefile2 # Create a compressed vmlinux image from the original vmlinux
/linux-4.1.27/arch/alpha/
H A DMakefile65 echo '* boot - Compressed kernel image (arch/alpha/boot/vmlinux.gz)'
66 echo ' bootimage - SRM bootable image (arch/alpha/boot/bootimage)'
67 echo ' bootpfile - BOOTP bootable image (arch/alpha/boot/bootpfile)'
68 echo ' bootpzfile - compressed kernel BOOTP image (arch/alpha/boot/bootpzfile)'
/linux-4.1.27/include/linux/
H A Dinitrd.h10 /* starting block # of image */
H A Dkexec.h125 * This memory can be freed post image load
174 /* File operations provided by image loader */
189 struct kimage *image; member in struct:kexec_buf
201 typedef void *(kexec_load_t)(struct kimage *image, char *kernel_buf,
217 extern void machine_kexec(struct kimage *image);
218 extern int machine_kexec_prepare(struct kimage *image);
219 extern void machine_kexec_cleanup(struct kimage *image);
225 extern int kexec_add_buffer(struct kimage *image, char *buffer,
230 extern struct page *kimage_alloc_control_pages(struct kimage *image,
232 extern int kexec_load_purgatory(struct kimage *image, unsigned long min,
235 extern int kexec_purgatory_get_set_symbol(struct kimage *image,
238 extern void *kexec_purgatory_get_symbol_addr(struct kimage *image,
/linux-4.1.27/arch/arm/mach-ixp4xx/
H A Dixp4xx_npe.c525 } *image; npe_load_firmware() local
544 image = (struct dl_image*)fw_entry->data; npe_load_firmware()
548 image->magic, image->id, image->size, image->size * 4); npe_load_firmware()
551 if (image->magic == swab32(FW_MAGIC)) { /* swapped file */ npe_load_firmware()
552 image->id = swab32(image->id); npe_load_firmware()
553 image->size = swab32(image->size); npe_load_firmware()
554 } else if (image->magic != FW_MAGIC) { npe_load_firmware()
556 image->magic); npe_load_firmware()
559 if ((image->size * 4 + sizeof(struct dl_image)) != fw_entry->size) { npe_load_firmware()
564 if (((image->id >> 24) & 0xF /* NPE ID */) != npe->id) { npe_load_firmware()
568 if (image->magic == swab32(FW_MAGIC)) npe_load_firmware()
569 for (i = 0; i < image->size; i++) npe_load_firmware()
570 image->data[i] = swab32(image->data[i]); npe_load_firmware()
572 if (cpu_is_ixp42x() && ((image->id >> 28) & 0xF /* device ID */)) { npe_load_firmware()
590 "revision 0x%X:%X\n", (image->id >> 16) & 0xFF, npe_load_firmware()
591 (image->id >> 8) & 0xFF, image->id & 0xFF); npe_load_firmware()
604 for (blocks = 0; blocks * sizeof(struct dl_block) / 4 < image->size; npe_load_firmware()
606 if (image->blocks[blocks].type == FW_BLOCK_TYPE_EOF) npe_load_firmware()
608 if (blocks * sizeof(struct dl_block) / 4 >= image->size) { npe_load_firmware()
619 for (i = 0, blk = image->blocks; i < blocks; i++, blk++) { npe_load_firmware()
620 if (blk->offset > image->size - sizeof(struct dl_codeblock) / 4 npe_load_firmware()
627 cb = (struct dl_codeblock*)&image->data[blk->offset]; npe_load_firmware()
641 if (blk->offset + sizeof(*cb) / 4 + cb->size > image->size) { npe_load_firmware()
643 "fit in firmware image: type %c, start 0x%X," npe_load_firmware()
/linux-4.1.27/arch/tile/kernel/
H A Dmachine_kexec.c77 int machine_kexec_prepare(struct kimage *image) machine_kexec_prepare() argument
84 if (image->type != KEXEC_TYPE_DEFAULT) { machine_kexec_prepare()
86 __func__, image->type); machine_kexec_prepare()
92 void machine_kexec_cleanup(struct kimage *image) machine_kexec_cleanup() argument
168 static void kexec_find_and_set_command_line(struct kimage *image) kexec_find_and_set_command_line() argument
176 for (ptr = &image->head; kexec_find_and_set_command_line()
264 void machine_kexec(struct kimage *image) machine_kexec() argument
274 kexec_find_and_set_command_line(image); machine_kexec()
281 homecache_change_page_home(image->control_code_page, 0, machine_kexec()
283 reboot_code_buffer = page_address(image->control_code_page); machine_kexec()
297 (*rnk)(image->head, reboot_code_buffer, image->start); machine_kexec()
/linux-4.1.27/arch/um/kernel/
H A Dinitrd.c60 "initrd=<initrd image>\n"
61 " This is used to boot UML from an initrd image. The argument is the\n"
62 " name of the file containing the image.\n\n"
H A Dphysmem.c63 * i.e start address of the executable image.
70 * it on the last executable image address (uml_reserved).
73 * (len + highmem) includes the size of the memory used be the executable image,
74 * but the mapped-to address is the last address of the executable image
75 * (uml_reserved == end address of executable image).
/linux-4.1.27/usr/
H A DMakefile2 # kbuild file for usr/ - including initramfs image
32 # initramfs_data.o contains the compressed initramfs_data.cpio image.
33 # The image is included using .incbin, a dependency which is not
/linux-4.1.27/init/
H A Ddo_mounts_rd.c36 int __initdata rd_image_start; /* starting block # of image */
48 * This routine tries to find a RAM disk image to load, and returns the
49 * number of blocks to read for a non-compressed image, 0 if the image
50 * is a compressed image, and -1 if an image with the right magic
97 printk(KERN_NOTICE "RAMDISK: %s image found at block %d\n", identify_ramdisk_image()
176 "RAMDISK: Couldn't find valid RAM disk image starting at %d.\n", identify_ramdisk_image()
233 printk("RAMDISK: image too big! (%dKiB/%ldKiB)\n", rd_load_image()
246 if (strcmp(from, "/initrd.image") == 0) rd_load_image()
354 panic("Could not decompress initial ramdisk image."); crd_load()
H A Ddo_mounts_initrd.c129 if (rd_load_image("/initrd.image") && ROOT_DEV != Root_RAM0) { initrd_load()
130 sys_unlink("/initrd.image"); initrd_load()
135 sys_unlink("/initrd.image"); initrd_load()
/linux-4.1.27/arch/sh/
H A DMakefile83 # Give the various platforms the opportunity to set default image types
226 @echo ' zImage - Compressed kernel image'
227 @echo ' romImage - Compressed ROM image, if supported'
229 @echo ' vmlinux.bin - Create an uncompressed binary image'
230 @echo '* uImage - Alias to bootable U-Boot image'
232 @echo ' uImage.bin - Kernel-only image for U-Boot (bin)'
233 @echo '* uImage.gz - Kernel-only image for U-Boot (gzip)'
234 @echo ' uImage.bz2 - Kernel-only image for U-Boot (bzip2)'
235 @echo ' uImage.lzma - Kernel-only image for U-Boot (lzma)'
236 @echo ' uImage.xz - Kernel-only image for U-Boot (xz)'
237 @echo ' uImage.lzo - Kernel-only image for U-Boot (lzo)'
/linux-4.1.27/drivers/video/fbdev/
H A Dvt8623fb.c144 /* image data is MSB-first, fb structure is MSB-first too */ expand_color()
151 static void vt8623fb_iplan_imageblit(struct fb_info *info, const struct fb_image *image) vt8623fb_iplan_imageblit() argument
153 u32 fg = expand_color(image->fg_color); vt8623fb_iplan_imageblit()
154 u32 bg = expand_color(image->bg_color); vt8623fb_iplan_imageblit()
161 src1 = image->data; vt8623fb_iplan_imageblit()
162 dst1 = info->screen_base + (image->dy * info->fix.line_length) vt8623fb_iplan_imageblit()
163 + ((image->dx / 8) * 4); vt8623fb_iplan_imageblit()
165 for (y = 0; y < image->height; y++) { vt8623fb_iplan_imageblit()
168 for (x = 0; x < image->width; x += 8) { vt8623fb_iplan_imageblit()
173 src1 += image->width / 8; vt8623fb_iplan_imageblit()
199 /* image data is MSB-first, fb structure is high-nibble-in-low-byte-first */ expand_pixel()
207 static void vt8623fb_cfb4_imageblit(struct fb_info *info, const struct fb_image *image) vt8623fb_cfb4_imageblit() argument
209 u32 fg = image->fg_color * 0x11111111; vt8623fb_cfb4_imageblit()
210 u32 bg = image->bg_color * 0x11111111; vt8623fb_cfb4_imageblit()
217 src1 = image->data; vt8623fb_cfb4_imageblit()
218 dst1 = info->screen_base + (image->dy * info->fix.line_length) vt8623fb_cfb4_imageblit()
219 + ((image->dx / 8) * 4); vt8623fb_cfb4_imageblit()
221 for (y = 0; y < image->height; y++) { vt8623fb_cfb4_imageblit()
224 for (x = 0; x < image->width; x += 8) { vt8623fb_cfb4_imageblit()
229 src1 += image->width / 8; vt8623fb_cfb4_imageblit()
234 static void vt8623fb_imageblit(struct fb_info *info, const struct fb_image *image) vt8623fb_imageblit() argument
236 if ((info->var.bits_per_pixel == 4) && (image->depth == 1) vt8623fb_imageblit()
237 && ((image->width % 8) == 0) && ((image->dx % 8) == 0)) { vt8623fb_imageblit()
239 vt8623fb_iplan_imageblit(info, image); vt8623fb_imageblit()
241 vt8623fb_cfb4_imageblit(info, image); vt8623fb_imageblit()
243 cfb_imageblit(info, image); vt8623fb_imageblit()
H A Dvga16fb.c1118 static void vga_8planes_imageblit(struct fb_info *info, const struct fb_image *image) vga_8planes_imageblit() argument
1125 const char *cdat = image->data; vga_8planes_imageblit()
1126 u32 dx = image->dx; vga_8planes_imageblit()
1131 where = info->screen_base + dx + image->dy * info->fix.line_length; vga_8planes_imageblit()
1134 writeb(image->bg_color, where); vga_8planes_imageblit()
1137 setmask(image->fg_color ^ image->bg_color); vga_8planes_imageblit()
1140 for (y = 0; y < image->height; y++, where += info->fix.line_length) vga_8planes_imageblit()
1149 static void vga_imageblit_expand(struct fb_info *info, const struct fb_image *image) vga_imageblit_expand() argument
1151 char __iomem *where = info->screen_base + (image->dx/8) + vga_imageblit_expand()
1152 image->dy * info->fix.line_length; vga_imageblit_expand()
1154 char *cdat = (char *) image->data; vga_imageblit_expand()
1165 setcolor(image->fg_color); vga_imageblit_expand()
1169 writeb(image->bg_color, where); vga_imageblit_expand()
1174 for (y = 0; y < image->height; y++) { vga_imageblit_expand()
1176 for (x = image->width/8; x--;) vga_imageblit_expand()
1185 setcolor(image->bg_color); vga_imageblit_expand()
1189 for (y = 0; y < image->height; y++) { vga_imageblit_expand()
1191 for (x=image->width/8; x--;){ vga_imageblit_expand()
1193 setcolor(image->fg_color); vga_imageblit_expand()
1204 vga_8planes_imageblit(info, image); vga_imageblit_expand()
1208 cfb_imageblit(info, image); vga_imageblit_expand()
1213 static void vga_imageblit_color(struct fb_info *info, const struct fb_image *image) vga_imageblit_color() argument
1220 info->screen_base + image->dy * info->fix.line_length + vga_imageblit_color()
1221 image->dx/8; vga_imageblit_color()
1222 const char *cdat = image->data; vga_imageblit_color()
1234 for (y = 0; y < image->height; y++) { vga_imageblit_color()
1235 for (x = 0; x < image->width; x++) { vga_imageblit_color()
1251 cfb_imageblit(info, image); vga_imageblit_color()
1258 static void vga16fb_imageblit(struct fb_info *info, const struct fb_image *image) vga16fb_imageblit() argument
1260 if (image->depth == 1) vga16fb_imageblit()
1261 vga_imageblit_expand(info, image); vga16fb_imageblit()
1263 vga_imageblit_color(info, image); vga16fb_imageblit()
H A Dpm3fb.c518 static void pm3fb_imageblit(struct fb_info *info, const struct fb_image *image) pm3fb_imageblit() argument
521 u32 height = image->height; pm3fb_imageblit()
523 const u32 *src = (const u32 *)image->data; pm3fb_imageblit()
528 cfb_imageblit(info, image); pm3fb_imageblit()
533 fgx = image->fg_color; pm3fb_imageblit()
534 bgx = image->bg_color; pm3fb_imageblit()
538 fgx = par->palette[image->fg_color]; pm3fb_imageblit()
539 bgx = par->palette[image->bg_color]; pm3fb_imageblit()
542 if (image->depth != 1) { pm3fb_imageblit()
543 cfb_imageblit(info, image); pm3fb_imageblit()
570 ((image->dy & 0x0fff) << 16) | (image->dx & 0x0fff)); pm3fb_imageblit()
572 (((image->dy + image->height) & 0x0fff) << 16) | pm3fb_imageblit()
573 ((image->dx + image->width) & 0x0fff)); pm3fb_imageblit()
575 PM3RectanglePosition_XOffset(image->dx) | pm3fb_imageblit()
576 PM3RectanglePosition_YOffset(image->dy)); pm3fb_imageblit()
582 PM3Render2D_Width(image->width) | pm3fb_imageblit()
583 PM3Render2D_Height(image->height)); pm3fb_imageblit()
587 int width = ((image->width + 7) >> 3) pm3fb_imageblit()
628 if (cursor->image.width > 64 || pm3fb_cursor()
629 cursor->image.height > 64 || pm3fb_cursor()
630 cursor->image.depth > 1) pm3fb_cursor()
648 int x = cursor->image.dx - info->var.xoffset; pm3fb_cursor()
649 int y = cursor->image.dy - info->var.yoffset; pm3fb_cursor()
665 u32 fg_idx = cursor->image.fg_color; pm3fb_cursor()
666 u32 bg_idx = cursor->image.bg_color; pm3fb_cursor()
686 u8 *bitmap = (u8 *)cursor->image.data; pm3fb_cursor()
691 for (i = 0; i < cursor->image.height; i++) { pm3fb_cursor()
692 int j = (cursor->image.width + 7) >> 3; pm3fb_cursor()
H A Dpm2fb.c1155 static void pm2fb_imageblit(struct fb_info *info, const struct fb_image *image) pm2fb_imageblit() argument
1158 u32 height = image->height; pm2fb_imageblit()
1160 const u32 *src = (const u32 *)image->data; pm2fb_imageblit()
1170 if (info->flags & FBINFO_HWACCEL_DISABLED || image->depth != 1) { pm2fb_imageblit()
1171 cfb_imageblit(info, image); pm2fb_imageblit()
1176 fgx = image->fg_color; pm2fb_imageblit()
1177 bgx = image->bg_color; pm2fb_imageblit()
1181 fgx = par->palette[image->fg_color]; pm2fb_imageblit()
1182 bgx = par->palette[image->bg_color]; pm2fb_imageblit()
1197 ((image->dy & 0xfff) << 16) | (image->dx & 0x0fff)); pm2fb_imageblit()
1199 (((image->dy + image->height) & 0x0fff) << 16) | pm2fb_imageblit()
1200 ((image->dx + image->width) & 0x0fff)); pm2fb_imageblit()
1205 ((image->dy & 0xfff) << 16) | (image->dx & 0x0fff)); pm2fb_imageblit()
1207 ((image->height & 0x0fff) << 16) | pm2fb_imageblit()
1208 ((image->width) & 0x0fff)); pm2fb_imageblit()
1241 int width = ((image->width + 7) >> 3) pm2fb_imageblit()
1268 int x = cursor->image.dx - info->var.xoffset; pm2vfb_cursor()
1269 int y = cursor->image.dy - info->var.yoffset; pm2vfb_cursor()
1299 u32 fg_idx = cursor->image.fg_color; pm2vfb_cursor()
1300 u32 bg_idx = cursor->image.bg_color; pm2vfb_cursor()
1322 u8 *bitmap = (u8 *)cursor->image.data; pm2vfb_cursor()
1327 for (i = 0; i < cursor->image.height; i++) { pm2vfb_cursor()
1328 int j = (cursor->image.width + 7) >> 3; pm2vfb_cursor()
1374 if (cursor->image.width > 64 || pm2fb_cursor()
1375 cursor->image.height > 64 || pm2fb_cursor()
1376 cursor->image.depth > 1) pm2fb_cursor()
1397 int x = cursor->image.dx - info->var.xoffset + 63; pm2fb_cursor()
1398 int y = cursor->image.dy - info->var.yoffset + 63; pm2fb_cursor()
1408 u32 fg_idx = cursor->image.fg_color; pm2fb_cursor()
1409 u32 bg_idx = cursor->image.bg_color; pm2fb_cursor()
1429 u8 *bitmap = (u8 *)cursor->image.data; pm2fb_cursor()
1436 for (i = 0; i < cursor->image.height; i++) { pm2fb_cursor()
1437 int j = (cursor->image.width + 7) >> 3; pm2fb_cursor()
1462 for (i = 0; i < cursor->image.height; i++) { pm2fb_cursor()
1463 int j = (cursor->image.width + 7) >> 3; pm2fb_cursor()
H A Darkfb.c180 /* image data is MSB-first, fb structure is MSB-first too */ expand_color()
187 static void arkfb_iplan_imageblit(struct fb_info *info, const struct fb_image *image) arkfb_iplan_imageblit() argument
189 u32 fg = expand_color(image->fg_color); arkfb_iplan_imageblit()
190 u32 bg = expand_color(image->bg_color); arkfb_iplan_imageblit()
197 src1 = image->data; arkfb_iplan_imageblit()
198 dst1 = info->screen_base + (image->dy * info->fix.line_length) arkfb_iplan_imageblit()
199 + ((image->dx / 8) * 4); arkfb_iplan_imageblit()
201 for (y = 0; y < image->height; y++) { arkfb_iplan_imageblit()
204 for (x = 0; x < image->width; x += 8) { arkfb_iplan_imageblit()
209 src1 += image->width / 8; arkfb_iplan_imageblit()
237 /* image data is MSB-first, fb structure is high-nibble-in-low-byte-first */ expand_pixel()
245 static void arkfb_cfb4_imageblit(struct fb_info *info, const struct fb_image *image) arkfb_cfb4_imageblit() argument
247 u32 fg = image->fg_color * 0x11111111; arkfb_cfb4_imageblit()
248 u32 bg = image->bg_color * 0x11111111; arkfb_cfb4_imageblit()
255 src1 = image->data; arkfb_cfb4_imageblit()
256 dst1 = info->screen_base + (image->dy * info->fix.line_length) arkfb_cfb4_imageblit()
257 + ((image->dx / 8) * 4); arkfb_cfb4_imageblit()
259 for (y = 0; y < image->height; y++) { arkfb_cfb4_imageblit()
262 for (x = 0; x < image->width; x += 8) { arkfb_cfb4_imageblit()
267 src1 += image->width / 8; arkfb_cfb4_imageblit()
273 static void arkfb_imageblit(struct fb_info *info, const struct fb_image *image) arkfb_imageblit() argument
275 if ((info->var.bits_per_pixel == 4) && (image->depth == 1) arkfb_imageblit()
276 && ((image->width % 8) == 0) && ((image->dx % 8) == 0)) { arkfb_imageblit()
278 arkfb_iplan_imageblit(info, image); arkfb_imageblit()
280 arkfb_cfb4_imageblit(info, image); arkfb_imageblit()
282 cfb_imageblit(info, image); arkfb_imageblit()
H A Dtgafb.c620 tgafb_mono_imageblit(struct fb_info *info, const struct fb_image *image) tgafb_mono_imageblit() argument
632 dx = image->dx; tgafb_mono_imageblit()
633 dy = image->dy; tgafb_mono_imageblit()
634 width = image->width; tgafb_mono_imageblit()
635 height = image->height; tgafb_mono_imageblit()
644 /* Crop the image to the screen. */ tgafb_mono_imageblit()
658 fgcolor = image->fg_color; tgafb_mono_imageblit()
659 bgcolor = image->bg_color; tgafb_mono_imageblit()
687 data = (const unsigned char *) image->data; tgafb_mono_imageblit()
712 /* The image data is bit big endian; we need tgafb_mono_imageblit()
833 tgafb_clut_imageblit(struct fb_info *info, const struct fb_image *image) tgafb_clut_imageblit() argument
842 dx = image->dx; tgafb_clut_imageblit()
843 dy = image->dy; tgafb_clut_imageblit()
844 width = image->width; tgafb_clut_imageblit()
845 height = image->height; tgafb_clut_imageblit()
850 /* Crop the image to the screen. */ tgafb_clut_imageblit()
862 data = image->data; tgafb_clut_imageblit()
864 /* Now copy the image, color_expanding via the palette. */ tgafb_clut_imageblit()
877 * Copies a image from system memory to the screen.
880 * @image: structure defining the image.
883 tgafb_imageblit(struct fb_info *info, const struct fb_image *image) tgafb_imageblit() argument
887 /* If a mono image, regardless of FB depth, go do it. */ tgafb_imageblit()
888 if (image->depth == 1) { tgafb_imageblit()
889 tgafb_mono_imageblit(info, image); tgafb_imageblit()
896 made to pull the data from the image buffer... */ tgafb_imageblit()
897 if (image->depth == info->var.bits_per_pixel) { tgafb_imageblit()
898 cfb_imageblit(info, image); tgafb_imageblit()
902 /* If 24-plane FB and the image is 8-plane with CLUT, we can do it. */ tgafb_imageblit()
903 if (!is8bpp && image->depth == 8) { tgafb_imageblit()
904 tgafb_clut_imageblit(info, image); tgafb_imageblit()
H A Dtdfxfb.c963 static void tdfxfb_imageblit(struct fb_info *info, const struct fb_image *image) tdfxfb_imageblit() argument
966 int size = image->height * ((image->width * image->depth + 7) >> 3); tdfxfb_imageblit()
971 u8 *chardata = (u8 *) image->data; tdfxfb_imageblit()
973 u32 dx = image->dx; tdfxfb_imageblit()
974 u32 dy = image->dy; tdfxfb_imageblit()
977 if (image->depth != 1) { tdfxfb_imageblit()
983 cfb_imageblit(info, image); tdfxfb_imageblit()
990 tdfx_outl(par, COLORFORE, image->fg_color); tdfxfb_imageblit()
991 tdfx_outl(par, COLORBACK, image->bg_color); tdfxfb_imageblit()
996 par->palette[image->fg_color]); tdfxfb_imageblit()
998 par->palette[image->bg_color]); tdfxfb_imageblit()
1005 /* assume always image->height < 4096 */ tdfxfb_imageblit()
1006 if (dy + image->height > 4095) { tdfxfb_imageblit()
1010 /* assume always image->width < 4096 */ tdfxfb_imageblit()
1011 if (dx + image->width > 4095) { tdfxfb_imageblit()
1023 tdfx_outl(par, DSTSIZE, image->width | (image->height << 16)); tdfxfb_imageblit()
1067 if (cursor->image.width > 64 || tdfxfb_cursor()
1068 cursor->image.height > 64 || tdfxfb_cursor()
1069 cursor->image.depth > 1) tdfxfb_cursor()
1089 u32 bg_idx = cursor->image.bg_color; tdfxfb_cursor()
1090 u32 fg_idx = cursor->image.fg_color; tdfxfb_cursor()
1105 int x = cursor->image.dx; tdfxfb_cursor()
1106 int y = cursor->image.dy - info->var.yoffset; tdfxfb_cursor()
1125 * the cursor image the graphics card uses then from the tdfxfb_cursor()
1133 u8 *bitmap = (u8 *)cursor->image.data; tdfxfb_cursor()
1139 for (i = 0; i < cursor->image.height; i++) { tdfxfb_cursor()
1141 int j = (cursor->image.width + 7) >> 3; tdfxfb_cursor()
H A Dneofb.c1434 neo2200_imageblit(struct fb_info *info, const struct fb_image *image) neo2200_imageblit() argument
1437 int s_pitch = (image->width * image->depth + 7) >> 3; neo2200_imageblit()
1444 data_len = ((d_pitch * image->height) + buf_align) & ~buf_align; neo2200_imageblit()
1448 if (image->depth == 1) { neo2200_imageblit()
1449 if (info->var.bits_per_pixel == 24 && image->width < 16) { neo2200_imageblit()
1451 * transfers in 24 bit mode if the image being transferred neo2200_imageblit()
1453 * padding when writing the image. We need to adjust neo2200_imageblit()
1455 cfb_imageblit(info, image); neo2200_imageblit()
1459 } else if (image->depth == info->var.bits_per_pixel) { neo2200_imageblit()
1462 /* We don't currently support hardware acceleration if image neo2200_imageblit()
1464 cfb_imageblit(info, image); neo2200_imageblit()
1470 writel(image->fg_color, &par->neo2200->fgColor); neo2200_imageblit()
1471 writel(image->bg_color, &par->neo2200->bgColor); neo2200_imageblit()
1475 writel(((u32 *) (info->pseudo_palette))[image->fg_color], neo2200_imageblit()
1477 writel(((u32 *) (info->pseudo_palette))[image->bg_color], neo2200_imageblit()
1488 // par->neo2200->dstStart = (image->dy << 16) | (image->dx & 0xffff); neo2200_imageblit()
1489 writel(((image->dx & 0xffff) * (info->var.bits_per_pixel >> 3) + neo2200_imageblit()
1490 image->dy * info->fix.line_length), &par->neo2200->dstStart); neo2200_imageblit()
1491 writel((image->height << 16) | (image->width & 0xffff), neo2200_imageblit()
1494 memcpy_toio(par->mmio_vbase + 0x100000, image->data, data_len); neo2200_imageblit()
1530 neofb_imageblit(struct fb_info *info, const struct fb_image *image) neofb_imageblit() argument
1537 neo2200_imageblit(info, image); neofb_imageblit()
1540 cfb_imageblit(info, image); neofb_imageblit()
1577 u32 x = cursor->image.dx;
1578 u32 y = cursor->image.dy;
1580 info->cursor.image.dx = x;
1581 info->cursor.image.dy = y;
1587 info->cursor.image.height = cursor->image.height;
1588 info->cursor.image.width = cursor->image.width;
1595 if (cursor->image.depth == 1) {
1596 u32 fg = cursor->image.fg_color;
1597 u32 bg = cursor->image.bg_color;
1599 info->cursor.image.fg_color = fg;
1600 info->cursor.image.bg_color = bg;
H A Dcg6.c388 * cg6_imageblit - Copies a image from system memory to the screen.
391 * @image: structure defining the image.
393 static void cg6_imageblit(struct fb_info *info, const struct fb_image *image) cg6_imageblit() argument
397 const u8 *data = image->data; cg6_imageblit()
402 if (image->depth > 1) { cg6_imageblit()
403 cfb_imageblit(info, image); cg6_imageblit()
411 sbus_writel(image->fg_color, &fbc->fg); cg6_imageblit()
412 sbus_writel(image->bg_color, &fbc->bg); cg6_imageblit()
422 x = image->dx; cg6_imageblit()
423 y = image->dy; cg6_imageblit()
424 for (i = 0; i < image->height; i++) { cg6_imageblit()
425 width = image->width; cg6_imageblit()
467 x = image->dx; cg6_imageblit()
H A Dffb.c544 * ffb_imageblit - Copies a image from system memory to the screen.
547 * @image: structure defining the image.
549 static void ffb_imageblit(struct fb_info *info, const struct fb_image *image) ffb_imageblit() argument
553 const u8 *data = image->data; ffb_imageblit()
559 if (image->depth > 1) { ffb_imageblit()
560 cfb_imageblit(info, image); ffb_imageblit()
564 fg = ((u32 *)info->pseudo_palette)[image->fg_color]; ffb_imageblit()
565 bg = ((u32 *)info->pseudo_palette)[image->bg_color]; ffb_imageblit()
567 xy = (image->dy << 16) | image->dx; ffb_imageblit()
568 width = image->width; ffb_imageblit()
591 for (i = 0; i < image->height; i++) { ffb_imageblit()
611 for (i = 0; i < image->height; i++) { ffb_imageblit()
H A Ds3fb.c351 /* image data is MSB-first, fb structure is MSB-first too */ expand_color()
358 static void s3fb_iplan_imageblit(struct fb_info *info, const struct fb_image *image) s3fb_iplan_imageblit() argument
360 u32 fg = expand_color(image->fg_color); s3fb_iplan_imageblit()
361 u32 bg = expand_color(image->bg_color); s3fb_iplan_imageblit()
368 src1 = image->data; s3fb_iplan_imageblit()
369 dst1 = info->screen_base + (image->dy * info->fix.line_length) s3fb_iplan_imageblit()
370 + ((image->dx / 8) * 4); s3fb_iplan_imageblit()
372 for (y = 0; y < image->height; y++) { s3fb_iplan_imageblit()
375 for (x = 0; x < image->width; x += 8) { s3fb_iplan_imageblit()
380 src1 += image->width / 8; s3fb_iplan_imageblit()
407 /* image data is MSB-first, fb structure is high-nibble-in-low-byte-first */ expand_pixel()
415 static void s3fb_cfb4_imageblit(struct fb_info *info, const struct fb_image *image) s3fb_cfb4_imageblit() argument
417 u32 fg = image->fg_color * 0x11111111; s3fb_cfb4_imageblit()
418 u32 bg = image->bg_color * 0x11111111; s3fb_cfb4_imageblit()
425 src1 = image->data; s3fb_cfb4_imageblit()
426 dst1 = info->screen_base + (image->dy * info->fix.line_length) s3fb_cfb4_imageblit()
427 + ((image->dx / 8) * 4); s3fb_cfb4_imageblit()
429 for (y = 0; y < image->height; y++) { s3fb_cfb4_imageblit()
432 for (x = 0; x < image->width; x += 8) { s3fb_cfb4_imageblit()
437 src1 += image->width / 8; s3fb_cfb4_imageblit()
442 static void s3fb_imageblit(struct fb_info *info, const struct fb_image *image) s3fb_imageblit() argument
444 if ((info->var.bits_per_pixel == 4) && (image->depth == 1) s3fb_imageblit()
445 && ((image->width % 8) == 0) && ((image->dx % 8) == 0)) { s3fb_imageblit()
447 s3fb_iplan_imageblit(info, image); s3fb_imageblit()
449 s3fb_cfb4_imageblit(info, image); s3fb_imageblit()
451 cfb_imageblit(info, image); s3fb_imageblit()
/linux-4.1.27/drivers/scsi/esas2r/
H A Desas2r_flash.c242 /* boot image fixer uppers called before downloading the image. */ fix_bios()
339 * then we just read back part of the image we just wrote. verify the fw_download_proc()
340 * section and continue reading until the entire image is verified. fw_download_proc()
348 + ch->image_offset /* start of the current image */ fw_download_proc()
349 + ch->length /* end of the current image */ fw_download_proc()
383 /* the BIOS image is written next */ fw_download_proc()
399 * The BIOS image has been written - read it and fw_download_proc()
415 * Mark the component header status for the image fw_download_proc()
420 /* The MAC image is written next */ fw_download_proc()
436 /* The MAC image has been written - read and verify */ fw_download_proc()
450 * Mark the component header status for the image fw_download_proc()
455 /* The EFI image is written next */ fw_download_proc()
472 /* The EFI image has been written - read and verify */ fw_download_proc()
486 * Mark the component header status for the image fw_download_proc()
491 /* The CFG image is written next */ fw_download_proc()
506 /* The CFG image has been written - read and verify */ fw_download_proc()
520 * Mark the component header status for the image fw_download_proc()
535 /* Update the type of boot image on the card */ fw_download_proc()
560 /* Determine the flash image adaptyp for this adapter */ get_fi_adap_type()
629 /* Verify that the boot image is valid */ chk_boot()
663 /* The sum of all the WORDS of the image */ calc_fi_checksum()
682 * Verify the flash image structure. The following verifications will
685 * 2) verify the checksum of the entire image.
689 * 5) validate each component image. validate signatures and
711 /* Get adapter type and verify type in flash image */ verify_fi()
732 * image type. The headers must be ordered correctly verify_fi()
765 /* Test if component image is present */ verify_fi()
769 /* Image is present - verify the image */ verify_fi()
778 /* Test if component image is present */ verify_fi()
784 /* Image is present - verify the image */ verify_fi()
1102 * Find the type of boot image type that is currently in the flash.
1104 * size so only one image can be flashed at a time.
1115 /* Start at the base of the boot images and look for a valid image */ esas2r_read_image_type()
1141 * So we have an EFI image. There are several types esas2r_read_image_type()
1169 /* jump to the next image */ esas2r_read_image_type()
1425 /* Verify the format of the flash image */ esas2r_fm_api()
1442 * Since the image was just modified, compute the checksum on esas2r_fm_api()
1443 * the modified image. First update the CRC for the composite esas2r_fm_api()
1444 * expansion ROM image. esas2r_fm_api()
1469 /* Report the type of boot image in the rel_version string */ esas2r_fm_api()
/linux-4.1.27/drivers/vme/
H A Dvme.c228 * Request a slave image with specific attributes, return some unique
256 /* Find an unlocked and compatible image */ vme_slave_request()
270 /* No free image */ vme_slave_request()
285 /* Unlock image */ vme_slave_request()
300 struct vme_slave_resource *image; vme_slave_set() local
308 image = list_entry(resource->entry, struct vme_slave_resource, list); vme_slave_set()
315 if (!(((image->address_attr & aspace) == aspace) && vme_slave_set()
316 ((image->cycle_attr & cycle) == cycle))) { vme_slave_set()
325 return bridge->slave_set(image, enabled, vme_base, size, buf_base, vme_slave_set()
335 struct vme_slave_resource *image; vme_slave_get() local
342 image = list_entry(resource->entry, struct vme_slave_resource, list); vme_slave_get()
349 return bridge->slave_get(image, enabled, vme_base, size, buf_base, vme_slave_get()
370 /* Unlock image */ vme_slave_free()
384 * Request a master image with specific attributes, return some unique
412 /* Find an unlocked and compatible image */ vme_master_request()
444 /* Unlock image */ vme_master_request()
459 struct vme_master_resource *image; vme_master_set() local
467 image = list_entry(resource->entry, struct vme_master_resource, list); vme_master_set()
474 if (!(((image->address_attr & aspace) == aspace) && vme_master_set()
475 ((image->cycle_attr & cycle) == cycle) && vme_master_set()
476 ((image->width_attr & dwidth) == dwidth))) { vme_master_set()
485 return bridge->master_set(image, enabled, vme_base, size, aspace, vme_master_set()
495 struct vme_master_resource *image; vme_master_get() local
502 image = list_entry(resource->entry, struct vme_master_resource, list); vme_master_get()
509 return bridge->master_get(image, enabled, vme_base, size, aspace, vme_master_get()
521 struct vme_master_resource *image; vme_master_read() local
534 image = list_entry(resource->entry, struct vme_master_resource, list); vme_master_read()
546 return bridge->master_read(image, buf, count, offset); vme_master_read()
558 struct vme_master_resource *image; vme_master_write() local
571 image = list_entry(resource->entry, struct vme_master_resource, list); vme_master_write()
583 return bridge->master_write(image, buf, count, offset); vme_master_write()
594 struct vme_master_resource *image; vme_master_rmw() local
606 image = list_entry(resource->entry, struct vme_master_resource, list); vme_master_rmw()
608 return bridge->master_rmw(image, mask, compare, swap, offset); vme_master_rmw()
614 struct vme_master_resource *image; vme_master_mmap() local
623 image = list_entry(resource->entry, struct vme_master_resource, list); vme_master_mmap()
624 phys_addr = image->bus_resource.start + (vma->vm_pgoff << PAGE_SHIFT); vme_master_mmap()
627 if (phys_addr + vma_size > image->bus_resource.end + 1) { vme_master_mmap()
654 /* Unlock image */ vme_master_free()
726 /* Unlock image */ vme_dma_request()
1165 /* Unlock image */ vme_lm_request()
/linux-4.1.27/drivers/firmware/efi/libstub/
H A Darm-stub.c49 efi_loaded_image_t *image = __image; efi_open_volume() local
53 void *handle = (void *)(unsigned long)image->device_handle; efi_open_volume()
151 * arm64 regarding where the kernel image must be loaded and any memory that
161 efi_loaded_image_t *image);
171 efi_loaded_image_t *image; efi_entry() local
194 * Get a handle to the loaded image protocol. This is used to get efi_entry()
195 * information about the running image, such as size and the command efi_entry()
199 &loaded_image_proto, (void *)&image); efi_entry()
201 pr_efi_err(sys_table, "Failed to get loaded image protocol\n"); efi_entry()
213 dram_base, image); efi_entry()
224 cmdline_ptr = efi_convert_cmdline(sys_table, image, &cmdline_size); efi_entry()
241 status = handle_cmdline_files(sys_table, image, cmdline_ptr, efi_entry()
263 status = handle_cmdline_files(sys_table, image, cmdline_ptr, efi_entry()
H A Defi-stub-helper.c356 * the kernel image.
359 efi_loaded_image_t *image, handle_cmdline_files()
450 status = efi_open_volume(sys_table_arg, image, handle_cmdline_files()
536 * Relocate a kernel image, either compressed or uncompressed.
566 * The EFI firmware loader could have placed the kernel image efi_relocate_kernel()
597 /* Return the new address of the relocated image. */ efi_relocate_kernel()
658 efi_loaded_image_t *image, efi_convert_cmdline()
664 int load_options_chars = image->load_options_size / 2; /* UTF-16 */ efi_convert_cmdline()
665 const u16 *options = image->load_options; efi_convert_cmdline()
358 handle_cmdline_files(efi_system_table_t *sys_table_arg, efi_loaded_image_t *image, char *cmd_line, char *option_string, unsigned long max_addr, unsigned long *load_addr, unsigned long *load_size) handle_cmdline_files() argument
657 efi_convert_cmdline(efi_system_table_t *sys_table_arg, efi_loaded_image_t *image, int *cmd_line_len) efi_convert_cmdline() argument
/linux-4.1.27/arch/mips/
H A DMakefile301 # boot image targets (arch/mips/boot/)
314 # compressed boot image targets (arch/mips/boot/compressed/)
322 $(Q)$(MAKE) $(build)=arch/mips/lasat/image \
405 echo ' vmlinux.ecoff - ECOFF boot image'
406 echo ' vmlinux.bin - Raw binary boot image'
407 echo ' vmlinux.srec - SREC boot image'
408 echo ' vmlinux.32 - 64-bit boot image wrapped in 32bits (IP22/IP32)'
409 echo ' vmlinuz - Compressed boot(zboot) image'
410 echo ' vmlinuz.ecoff - ECOFF zboot image'
411 echo ' vmlinuz.bin - Raw binary zboot image'
412 echo ' vmlinuz.srec - SREC zboot image'
413 echo ' uImage - U-Boot image'
414 echo ' uImage.bin - U-Boot image (uncompressed)'
415 echo ' uImage.bz2 - U-Boot image (bz2)'
416 echo ' uImage.gz - U-Boot image (gzip)'
417 echo ' uImage.lzma - U-Boot image (lzma)'
418 echo ' uImage.lzo - U-Boot image (lzo)'
/linux-4.1.27/arch/blackfin/
H A DMakefile158 echo ' vmImage.bin - Uncompressed Kernel-only image for U-Boot (arch/$(ARCH)/boot/vmImage.bin)'
159 echo ' vmImage.bz2 - Kernel-only image for U-Boot (arch/$(ARCH)/boot/vmImage.bz2)'
160 echo '* vmImage.gz - Kernel-only image for U-Boot (arch/$(ARCH)/boot/vmImage.gz)'
161 echo ' vmImage.lzma - Kernel-only image for U-Boot (arch/$(ARCH)/boot/vmImage.lzma)'
162 echo ' vmImage.lzo - Kernel-only image for U-Boot (arch/$(ARCH)/boot/vmImage.lzo)'
163 echo ' vmImage.xip - XIP Kernel-only image for U-Boot (arch/$(ARCH)/boot/vmImage.xip)'
/linux-4.1.27/arch/powerpc/platforms/85xx/
H A Dsmp.c375 static void mpc85xx_smp_flush_dcache_kexec(struct kimage *image) mpc85xx_smp_flush_dcache_kexec() argument
381 if (image->type == KEXEC_TYPE_DEFAULT) { mpc85xx_smp_flush_dcache_kexec()
383 for (ptr = &image->head; (entry = *ptr) && !(entry & IND_DONE); mpc85xx_smp_flush_dcache_kexec()
394 for (i = 0; i < image->nr_segments; i++) { mpc85xx_smp_flush_dcache_kexec()
395 struct kexec_segment *seg = &image->segment[i]; mpc85xx_smp_flush_dcache_kexec()
404 flush_dcache_range((unsigned long)image, mpc85xx_smp_flush_dcache_kexec()
405 (unsigned long)image + sizeof(*image)); mpc85xx_smp_flush_dcache_kexec()
408 static void mpc85xx_smp_machine_kexec(struct kimage *image) mpc85xx_smp_machine_kexec() argument
413 mpc85xx_smp_flush_dcache_kexec(image); mpc85xx_smp_machine_kexec()
415 if (image->type == KEXEC_TYPE_DEFAULT) mpc85xx_smp_machine_kexec()
433 default_machine_kexec(image);
/linux-4.1.27/arch/avr32/
H A DMakefile81 @echo '* vmlinux.elf - ELF image with load address 0'
82 @echo ' vmlinux.cso - PathFinder CSO image'
83 @echo '* uImage - Create a bootable image for U-Boot'
/linux-4.1.27/sound/core/
H A Dhwdep_compat.c28 u32 image; /* pointer */ member in struct:snd_hwdep_dsp_image32
45 if (get_user(ptr, &src->image) || snd_hwdep_dsp_load_compat()
46 put_user(compat_ptr(ptr), &dst->image)) snd_hwdep_dsp_load_compat()
/linux-4.1.27/arch/mips/boot/compressed/
H A DMakefile64 OBJCOPYFLAGS_piggy.o := --add-section=.image=$(obj)/vmlinux.bin.z \
65 --set-section-flags=.image=contents,alloc,load,readonly,data
69 # Calculate the load address of the compressed kernel image
96 # elf2ecoff can only handle 32bit image
/linux-4.1.27/arch/arm/include/uapi/asm/
H A Dsetup.h67 __u32 start; /* starting block of floppy-based RAM disk image */
70 /* describes where the compressed ramdisk image lives (virtual address) */
77 /* describes where the compressed ramdisk image lives (physical address) */
82 __u32 size; /* size of compressed ramdisk image in bytes */
/linux-4.1.27/arch/arm/boot/bootp/
H A DMakefile22 # kernel.o and initrd.o includes a binary image using
/linux-4.1.27/drivers/media/platform/exynos4-is/
H A Dfimc-core.h235 * @f_width: image full width (virtual screen size)
236 * @f_height: image full height (virtual screen size)
237 * @o_width: original image width as set by S_FMT
238 * @o_height: original image height as set by S_FMT
239 * @offs_h: image horizontal pixel offset
240 * @offs_v: image vertical pixel offset
241 * @width: image pixel width
242 * @height: image pixel weight
243 * @payload: image size in bytes (w x h x bpp)
245 * @paddr: image frame buffer physical addresses
292 * @ci_fmt: image format at the FIMC camera input (and the scaler output)
293 * @wb_fmt: image format at the FIMC ISP Writeback input
294 * @source_config: external image source related configuration structure
306 * an image sensor subdev
333 * struct fimc_pix_limit - image pixel size limits in various IP configurations
445 * @colorfx: image effect control
447 * @rotate: image rotation control
476 * @scaler: image scaler properties
477 * @effect: image effect
478 * @rotation: image clockwise rotation in degrees
479 * @hflip: indicates image horizontal flip if set
480 * @vflip: indicates image vertical flip if set
481 * @flags: additional flags for image conversion
H A Dmedia-dev.h57 * source entity (e.g. an image sensor subdevice), a data capture entity
81 * struct fimc_sensor_info - image data source subdev information
84 * @subdev: image sensor v4l2 subdev
87 * This data structure applies to image sensor and the writeback subdevs.
H A Dfimc-reg.h77 /* Target image format */
202 /* Real input DMA image size */
249 /* Input DMA original image size */
252 /* Output DMA original image size */
255 /* Real output DMA image size (extension register) */
269 /* MIPI CSI image format */
H A Dfimc-isp.h59 * @width: full image width
60 * @height: full image height
100 /* ISP image effect */
/linux-4.1.27/drivers/gpu/drm/radeon/
H A Dradeon_ioc32.c162 int width; /* Texture image coordinates */
164 u32 image; member in struct:drm_radeon_texture32
173 drm_radeon_tex_image_t __user *image; compat_radeon_cp_texture() local
177 if (req32.image == 0) compat_radeon_cp_texture()
179 if (copy_from_user(&img32, (void __user *)(unsigned long)req32.image, compat_radeon_cp_texture()
183 request = compat_alloc_user_space(sizeof(*request) + sizeof(*image)); compat_radeon_cp_texture()
185 sizeof(*request) + sizeof(*image))) compat_radeon_cp_texture()
187 image = (drm_radeon_tex_image_t __user *) (request + 1); compat_radeon_cp_texture()
194 || __put_user(image, &request->image) compat_radeon_cp_texture()
195 || __put_user(img32.x, &image->x) compat_radeon_cp_texture()
196 || __put_user(img32.y, &image->y) compat_radeon_cp_texture()
197 || __put_user(img32.width, &image->width) compat_radeon_cp_texture()
198 || __put_user(img32.height, &image->height) compat_radeon_cp_texture()
200 &image->data)) compat_radeon_cp_texture()
/linux-4.1.27/drivers/video/fbdev/i810/
H A Di810_accel.c223 * @src: address of image data
367 void i810fb_imageblit(struct fb_info *info, const struct fb_image *image) i810fb_imageblit() argument
373 par->depth == 4 || image->depth != 1) { i810fb_imageblit()
374 cfb_imageblit(info, image); i810fb_imageblit()
380 fg = image->fg_color; i810fb_imageblit()
381 bg = image->bg_color; i810fb_imageblit()
385 fg = ((u32 *)(info->pseudo_palette))[image->fg_color]; i810fb_imageblit()
386 bg = ((u32 *)(info->pseudo_palette))[image->bg_color]; i810fb_imageblit()
390 dst = info->fix.smem_start + (image->dy * info->fix.line_length) + i810fb_imageblit()
391 (image->dx * par->depth); i810fb_imageblit()
393 size = (image->width+7)/8 + 1; i810fb_imageblit()
395 size *= image->height; i810fb_imageblit()
398 mono_src_copy_imm_blit(image->width * par->depth, i810fb_imageblit()
399 image->height, info->fix.line_length, i810fb_imageblit()
401 PAT_COPY_ROP, dst, (u32 *) image->data, i810fb_imageblit()
/linux-4.1.27/arch/sparc/include/asm/
H A Dfbio.h66 u32 image; /* cursor image bits */ member in struct:fbcursor32
/linux-4.1.27/arch/unicore32/
H A DMakefile57 echo '* zImage - Compressed kernel image (arch/$(ARCH)/boot/zImage)'
58 echo ' Image - Uncompressed kernel image (arch/$(ARCH)/boot/Image)'
/linux-4.1.27/arch/mn10300/include/asm/
H A Dkgdb.h23 * Note that this register image is in a different order than the register
24 * image that Linux produces at interrupt time.
/linux-4.1.27/arch/arm64/kernel/vdso/
H A DMakefile2 # Building a vDSO image for AArch64.
19 # down to collect2, resulting in silent corruption of the vDSO image.
/linux-4.1.27/arch/c6x/
H A DMakefile59 @echo ' vmlinux.bin - Binary kernel image (arch/$(ARCH)/boot/vmlinux.bin)'
60 @echo ' dtbImage.<dt> - ELF image with $(arch)/boot/dts/<dt>.dts linked in'
/linux-4.1.27/kernel/power/
H A Dpower.h80 /* Preferred image size in bytes (default 500 MB) */
96 * Auxiliary structure used for reading the snapshot image data and
100 * Using struct snapshot_handle we can transfer the image, including its
104 * The code that writes the image to a storage or transfers it to
107 * structure of the image. Similarly, the code that reads the image from
111 * This may allow us to change the internal structure of the image
150 * the image header.
H A Dhibernate.c146 * Use the platform driver to prepare the system for creating a hibernate image,
187 * platform_pre_restore - Prepare for hibernate image restoration.
191 * image.
259 * create_image - Create a hibernation image.
263 * hibernation image and run the drivers' "noirq" and "early" thaw callbacks.
304 printk(KERN_ERR "PM: Error %d creating hibernation image\n", create_image()
332 * hibernation_snapshot - Quiesce devices and create a hibernation image.
346 /* Preallocate image memory before shutting down devices. */ hibernation_snapshot()
383 * returns here (1) after the image has been created or the hibernation_snapshot()
384 * image creation has failed and (2) after a successful restore. hibernation_snapshot()
387 /* We may need to release the preallocated image pages here. */ hibernation_snapshot()
412 * resume_target_kernel - Restore system state from a hibernation image.
416 * contents of highmem that have not been restored yet from the image and run
487 * hibernation_restore - Quiesce devices and restore from a hibernation image.
529 * hibernation_ops->finish() before saving the image, so we should let hibernation_platform_enter()
634 * Valid image is on the disk, if we continue we risk serious data power_down()
643 * hibernate - Carry out system hibernation, including saving the image.
694 pr_debug("PM: writing image.\n"); hibernate()
724 * software_resume - Resume from a saved hibernation image.
729 * The image reading code is called to see if there is a hibernation image
731 * contents of memory is restored from the saved image.
769 pr_debug("PM: Checking hibernation image partition %s\n", resume_file); software_resume()
811 pr_debug("PM: Hibernation image partition %d:%d present\n", software_resume()
814 pr_debug("PM: Looking for hibernation image.\n"); software_resume()
836 pr_debug("PM: Loading hibernation image.\n"); software_resume()
848 printk(KERN_ERR "PM: Failed to load hibernation image, recovering.\n"); software_resume()
861 pr_debug("PM: Hibernation image not present or could not be loaded.\n"); software_resume()
H A Dswap.c4 * This file provides functions for reading the suspend image from
64 * Number of pages required to be kept free while writing the image. Always
101 sector_t image; member in struct:swsusp_header
183 * free_all_swap_pages - free swap pages allocated for saving image data.
230 swsusp_header->image = handle->first_sector; mark_swapfiles()
247 * This is called before saving image
437 * save_image - save the suspend image data
452 printk(KERN_INFO "PM: Saving image data pages (%u pages)...\n", save_image()
570 * save_image_lzo - Save the suspend image data compressed with LZO.
571 * @handle: Swap map handle to use for saving the image.
671 "PM: Compressing and saving image data (%u pages)...\n", save_image_lzo()
787 * enough_swap - Make sure we have enough swap to save the image.
805 * swsusp_write - Write entire image and metadata.
806 * @flags: flags to pass to the "boot" kernel in the image header
883 if (!swsusp_header->image) /* how can this happen? */ get_swap_reader()
888 offset = swsusp_header->image; get_swap_reader()
958 * load_image - load the image using the swap map handle
975 printk(KERN_INFO "PM: Loading image data pages (%u pages)...\n", load_image()
1058 * load_image_lzo - Load compressed image data and decompress them with LZO.
1158 * during the image load phase. We'll assume the worst case and load_image_lzo()
1159 * say that none of the image pages are from high memory. load_image_lzo()
1187 "PM: Loading and decompressing image data (%u pages)...\n", load_image_lzo()
1357 "PM: Invalid image CRC32!\n"); load_image_lzo()
1384 * swsusp_read - read the hibernation image.
1385 * @flags_p: flags passed by the "frozen" kernel in the image header should
1496 * We just returned from suspend, we don't need the image any more. swsusp_unmark()
H A Dsnapshot.c48 * cause image creation to fail (tunable via /sys/power/reserved_size).
58 * Preferred image size in bytes (tunable via /sys/power/image_size).
59 * When it is set to N, swsusp will do its best to ensure the image
61 * try to create the smallest image possible.
71 * the suspend and included in the suspend image, but have also been
81 * @safe_needed - on resume, for storing the PBE list and the image,
86 * Each allocated image page is marked as PageNosave and PageNosaveFree
885 * Each page frame allocated for creating the image is marked by setting the
1037 * be needed for setting up the suspend image data structures for given
1076 * included in the suspend image.
1137 * in the suspend image.
1293 /* Total number of image pages */
1295 /* Number of pages needed for saving the original pfns of the image pages */
1298 * Numbers of normal and highmem page frames allocated for hibernation image
1304 * hibernation image pages (during restore)
1310 * for marking hibernation image pages, but then the set bits from it are
1372 * preallocate_image_pages - Allocate a number of pages for hibernation image
1454 * free_unnecessary_pages - Release preallocated pages not needed for the image
1508 * minimum_image_size - Estimate the minimum acceptable size of an image
1512 * minimum acceptable size of a hibernation image to use as the lower limit for
1515 * We assume that the minimum image size should be proportional to
1538 * hibernate_preallocate_memory - Preallocate memory for hibernation image
1540 * To create a hibernation image it is necessary to make a copy of every page
1542 * hibernation for allocations made while saving the image and for device
1552 * of them, which corresponds to the maximum size of a hibernation image.
1556 * pages in the system is below the requested image size or the minimum
1557 * acceptable image size returned by minimum_image_size(), whichever is greater.
1567 printk(KERN_INFO "PM: Preallocating image memory... "); hibernate_preallocate_memory()
1587 * number of pages needed for image metadata (size). hibernate_preallocate_memory()
1610 /* Compute the desired number of image pages specified by image_size. */
1615 * If the desired number of image pages is at least as large as the
1617 * the image and we're done.
1625 /* Estimate the minimum size of the image. */
1629 * accommodate an image of the minimum size (unless it's already too
1650 * image and fail if that doesn't work. Next, try to decrease the size
1651 * of the image as much as indicated by 'size' using allocations from
1690 * We only need as many page frames for the image as there are saveable
1733 * snapshot image. count_pages_for_highmem()
1755 * image, we may need the buffer to copy them and/or load their data.
1765 * alloc_highmem_image_pages - allocate some highmem pages for the image.
1795 * swsusp_alloc - allocate memory for the suspend image alloc_highmem_pages()
1841 printk(KERN_INFO "PM: Creating hibernation image:\n"); swsusp_save()
1867 * touch swap space! Except we must write out our image of course. swsusp_save()
1874 printk(KERN_INFO "PM: Hibernation image created (%d pages copied)\n", swsusp_save()
2004 * the image during resume, because they conflict with the pages that
2066 * load header - check the image header and copy data from it
2108 * image
2124 * allocated before the suspend and included in the suspend image, but have
2132 * suspend image. The bits in the memory bitmap @bm that correspond to the
2133 * image pages are assumed to be set.
2154 * there are highmem image pages (@nr_highmem_p points to the variable
2155 * containing the number of highmem image pages). The pages that are
2156 * "safe" (ie. will not be overwritten when the suspend image is
2161 * image pages.
2205 * get_highmem_page_buffer - for given highmem image page find the buffer
2266 * copy_last_highmem_page - copy the contents of a highmem image from
2320 * from the suspend image ("unsafe" pages) and allocate memory for the free_highmem_data()
2321 * image. free_highmem_data()
2324 * as many pages as needed for the image data, but not to assign these free_highmem_data()
2380 /* Preallocate memory for the image */ prepare_image()
2474 /* Check if we have already loaded the entire image */ snapshot_write_next()
2537 * snapshot_write_next() in case the last page in the image happens
2549 /* Free only if we have loaded the image entirely */ snapshot_write_finalize()
2580 * the suspend and included in the suspend image, and also has been
/linux-4.1.27/scripts/
H A Dextract-ikconfig3 # extract-ikconfig - Extract the .config file from a kernel image
46 echo "Usage: $me <kernel-image>" >&2
H A Dextract-vmlinux3 # extract-vmlinux - Extract uncompressed vmlinux from a kernel image
43 echo "Usage: $me <kernel-image>" >&2
H A Dpnmtologo.c132 /* open image file */ read_image()
162 /* allocate image data */ read_image()
172 /* read image data */ read_image()
288 /* validate image */ write_logo_mono()
316 /* validate image */ write_logo_vga16()
355 /* validate image */ write_logo_clut224()
401 /* validate image */ write_logo_gray256()
/linux-4.1.27/drivers/mtd/maps/
H A Dnetsc520.c38 ** store the kernel image loaded by the bootstrap loader. The second
39 ** partition is 256 KiB and holds the BIOS image. The third
41 ** image. The last partition is 512 KiB and contains another copy
42 ** of the BIOS image and the reset vector.
47 ** not be touched - it is possible to corrupt the BIOS image by
/linux-4.1.27/drivers/scsi/aic94xx/
H A Daic94xx_sds.h92 u32 ImageId; /* Identifies the image */
94 u32 ImageLength; /* length of the image */
96 u32 ImageVersion; /* Version of the image, could be build number */
106 u32 total_chunks; /*Total number of chunks/parts in the image file */
108 u32 build_num; /* Build number of this image */
/linux-4.1.27/drivers/video/fbdev/intelfb/
H A Dintelfbdrv.c156 const struct fb_image *image);
1544 const struct fb_image *image) intelfb_imageblit()
1554 || image->depth != 1) { intelfb_imageblit()
1555 cfb_imageblit(info, image); intelfb_imageblit()
1560 fgcolor = dinfo->pseudo_palette[image->fg_color]; intelfb_imageblit()
1561 bgcolor = dinfo->pseudo_palette[image->bg_color]; intelfb_imageblit()
1563 fgcolor = image->fg_color; intelfb_imageblit()
1564 bgcolor = image->bg_color; intelfb_imageblit()
1567 if (!intelfbhw_do_drawglyph(dinfo, fgcolor, bgcolor, image->width, intelfb_imageblit()
1568 image->height, image->data, intelfb_imageblit()
1569 image->dx, image->dy, intelfb_imageblit()
1571 cfb_imageblit(info, image); intelfb_imageblit()
1598 cursor->image.width, cursor->image.height, intelfb_cursor()
1599 cursor->image.dx, cursor->image.dy); intelfb_cursor()
1603 intelfbhw_cursor_setpos(dinfo, cursor->image.dx, intelfb_cursor()
1604 cursor->image.dy); intelfb_cursor()
1607 fg =dinfo->pseudo_palette[cursor->image.fg_color]; intelfb_cursor()
1608 bg =dinfo->pseudo_palette[cursor->image.bg_color]; intelfb_cursor()
1610 fg = cursor->image.fg_color; intelfb_cursor()
1611 bg = cursor->image.bg_color; intelfb_cursor()
1614 intelfbhw_cursor_load(dinfo, cursor->image.width, intelfb_cursor()
1615 cursor->image.height, intelfb_cursor()
1626 dx = cursor->image.dx - info->var.xoffset; intelfb_cursor()
1627 dy = cursor->image.dy - info->var.yoffset; intelfb_cursor()
1633 if (cursor->image.width > 64 || cursor->image.height > 64) intelfb_cursor()
1643 fg = dinfo->pseudo_palette[cursor->image.fg_color]; intelfb_cursor()
1644 bg = dinfo->pseudo_palette[cursor->image.bg_color]; intelfb_cursor()
1646 fg = cursor->image.fg_color; intelfb_cursor()
1647 bg = cursor->image.bg_color; intelfb_cursor()
1654 u32 s_pitch = (ROUND_UP_TO(cursor->image.width, 8) / 8); intelfb_cursor()
1655 u32 size = s_pitch * cursor->image.height; intelfb_cursor()
1656 u8 *dat = (u8 *) cursor->image.data; intelfb_cursor()
1661 if (cursor->image.depth != 1) intelfb_cursor()
1680 intelfbhw_cursor_load(dinfo, cursor->image.width, intelfb_cursor()
1681 cursor->image.height, src); intelfb_cursor()
1543 intelfb_imageblit(struct fb_info *info, const struct fb_image *image) intelfb_imageblit() argument
/linux-4.1.27/drivers/crypto/qat/qat_common/
H A Dqat_uclo.c401 struct icp_qat_uclo_encapme *image) qat_uclo_init_ustore()
412 uof_image = image->img_ptr; qat_uclo_init_ustore()
420 page = image->page; qat_uclo_init_ustore()
549 struct icp_qat_uof_image *image) qat_uclo_check_image_compat()
556 ((char *)image + sizeof(struct icp_qat_uof_image)); qat_uclo_check_image_compat()
576 if (image->numpages > 1) { qat_uclo_check_image_compat()
580 if (ICP_QAT_SHARED_USTORE_MODE(image->ae_mode)) { qat_uclo_check_image_compat()
584 if (RELOADABLE_CTX_SHARED_MODE(image->ae_mode)) { qat_uclo_check_image_compat()
629 struct icp_qat_uof_image *image; qat_uclo_map_uimage() local
641 image = (struct icp_qat_uof_image *)(encap_uof_obj->beg_uof + qat_uclo_map_uimage()
644 (image->reg_tab_offset + qat_uclo_map_uimage()
651 (image->init_reg_sym_tab + qat_uclo_map_uimage()
658 (image->sbreak_tab + obj_handle->obj_hdr->file_buff); qat_uclo_map_uimage()
663 ae_uimage[j].img_ptr = image; qat_uclo_map_uimage()
664 if (qat_uclo_check_image_compat(encap_uof_obj, image)) qat_uclo_map_uimage()
671 qat_uclo_map_image_page(encap_uof_obj, image, qat_uclo_map_uimage()
933 struct icp_qat_uclo_encapme *image; qat_uclo_init_uword_num() local
937 image = &obj_handle->ae_uimage[a]; qat_uclo_init_uword_num()
938 image->uwords_num = image->page->beg_addr_p + qat_uclo_init_uword_num()
939 image->page->micro_words_num; qat_uclo_init_uword_num()
1093 /* get fill-pattern from an image -- they are all the same */ qat_uclo_wr_uimage_raw_page()
1124 struct icp_qat_uof_image *image) qat_uclo_wr_uimage_page()
1132 if (ICP_QAT_CTX_MODE(image->ae_mode) == ICP_QAT_UCLO_MAX_CTX) qat_uclo_wr_uimage_page()
1139 if (!test_bit(ae, (unsigned long *)&image->ae_assigned)) qat_uclo_wr_uimage_page()
1141 /* find the slice to which this image is assigned */ qat_uclo_wr_uimage_page()
1143 if (image->ctx_assigned & obj_handle->ae_data[ae]. qat_uclo_wr_uimage_page()
1159 image->ctx_assigned); qat_uclo_wr_uimage_page()
1160 qat_hal_set_pc(handle, (unsigned char)ae, image->ctx_assigned, qat_uclo_wr_uimage_page()
1161 image->entry_address); qat_uclo_wr_uimage_page()
400 qat_uclo_init_ustore(struct icp_qat_fw_loader_handle *handle, struct icp_qat_uclo_encapme *image) qat_uclo_init_ustore() argument
548 qat_uclo_check_image_compat(struct icp_qat_uof_encap_obj *encap_uof_obj, struct icp_qat_uof_image *image) qat_uclo_check_image_compat() argument
1123 qat_uclo_wr_uimage_page(struct icp_qat_fw_loader_handle *handle, struct icp_qat_uof_image *image) qat_uclo_wr_uimage_page() argument
/linux-4.1.27/drivers/staging/ft1000/ft1000-usb/
H A Dft1000_download.c85 long version_id; /* Version ID of this image format. */
100 long coff_date; /* Date/time when DSP Coff image was built. */
101 long begin_offset; /* Offset in file where image begins. */
102 long end_offset; /* Offset in file where image begins. */
104 long image_size; /* Size of image. */
441 /* writes a block of DSP image to DPRAM
443 * u16 **pUsFile - DSP image file pointer in u16
444 * u8 **pUcFile - DSP image file pointer in u8
515 /* writes a block of DSP image to DPRAM
517 * u16 **pUsFile - DSP image file pointer in u16
518 * u8 **pUcFile - DSP image file pointer in u8
632 int image; scram_dnldr() local
763 pr_debug("Download error: Got Run address request before image offset request\n"); scram_dnldr()
776 pr_debug("Download error: Got Size request before image offset request\n"); scram_dnldr()
795 pr_debug("Download error: Got Code Segment request before image offset request\n"); scram_dnldr()
888 for (image = 0; scram_dnldr()
889 image < file_hdr->nDspImages; scram_dnldr()
890 image++) { scram_dnldr()
/linux-4.1.27/drivers/media/usb/gspca/
H A Dgspca.h35 /* image transfers */
50 u32 bulk_size; /* buffer size when image transfer by bulk */
58 u8 bulk; /* image transfer by 0:isoc / 1:bulk */
62 * code that the cam fills all image buffers to
179 u8 *image; /* image beeing filled */ member in struct:gspca_dev
181 u32 image_len; /* current length of image */
H A Dstk1135.h32 #define STK1135_REG_CISPO 0x110 /* Capture image starting position */
33 #define STK1135_REG_CIEPO 0x114 /* Capture image ending position */
H A Dbenq.c211 * - 80 ba/bb 00 00 = start of image followed by 'ff d8' sd_isoc_irq()
212 * - 04 ba/bb oo oo = image piece sd_isoc_irq()
213 * where 'oo oo' is the image offset sd_isoc_irq()
218 * The end of image ('ff d9') may occur in any URB. sd_isoc_irq()
225 /* new image */ sd_isoc_irq()
/linux-4.1.27/drivers/media/platform/omap/
H A Domap_voutlib.c37 /* Return the default overlay cropping rectangle in crop given the image
41 * the image. All dimensions and offsets are rounded down to even numbers.
104 * nearest supported configuration. The image cropping window in crop
137 * pixels wide. If the cropped image is wider than omap_vout_new_window()
156 * the nearest supported configuration. The image render window in win will
175 /* adjust the cropping rectangle so it fits in the image */ omap_vout_new_crop()
255 * 768 pixels wide. If the cropped image is wider omap_vout_new_crop()
277 * crop window is centered in the image. win is initialized to
285 /* crop defines the preview source window in the image capture omap_vout_new_format()
/linux-4.1.27/drivers/media/platform/s5p-jpeg/
H A Djpeg-regs.h95 /* Raw image data r/w address register */
315 /* JPEG Decoded image format Register bit */
444 * of the raw input or output image.
449 /* Stride of source or destination luma raw image buffer */
452 /* Horizontal/vertical offset of active region in luma raw image buffer */
461 * of the raw input or output image.
465 /* Stride of source or destination chroma(Cb) raw image buffer */
468 /* Horizontal/vertical offset of active region in chroma(Cb) raw image buffer */
477 * of the raw input or output image.
481 /* Stride of source or destination chroma(Cr) raw image buffer */
484 /* Horizontal/vertical offset of active region in chroma(Cb) raw image buffer */
491 /* Raw image data r/w address register */
/linux-4.1.27/arch/microblaze/
H A DMakefile86 echo ' simpleImage.<dt> - ELF image with $(arch)/boot/dts/<dt>.dts linked in'
88 echo ' simpleImage.<dt>.unstrip - full ELF image with fdt blob'
91 echo ' Targets with <dt> embed a device tree blob inside the image'
/linux-4.1.27/drivers/video/fbdev/matrox/
H A Dmatroxfb_accel.c106 static void matroxfb_imageblit(struct fb_info* info, const struct fb_image* image);
498 static void matroxfb_imageblit(struct fb_info* info, const struct fb_image* image) { matroxfb_imageblit() argument
503 if (image->depth == 1) { matroxfb_imageblit()
506 fgx = ((u_int32_t*)info->pseudo_palette)[image->fg_color]; matroxfb_imageblit()
507 bgx = ((u_int32_t*)info->pseudo_palette)[image->bg_color]; matroxfb_imageblit()
508 matroxfb_1bpp_imageblit(minfo, fgx, bgx, image->data, image->width, image->height, image->dy, image->dx); matroxfb_imageblit()
510 /* Danger! image->depth is useless: logo painting code always matroxfb_imageblit()
515 cfb_imageblit(info, image); matroxfb_imageblit()
/linux-4.1.27/arch/arm64/
H A DMakefile42 # The byte offset of the kernel image in RAM from the start of RAM.
94 echo '* Image.gz - Compressed kernel image (arch/$(ARCH)/boot/Image.gz)'
95 echo ' Image - Uncompressed kernel image (arch/$(ARCH)/boot/Image)'
/linux-4.1.27/arch/blackfin/include/asm/
H A Dkgdb.h21 * Note that this register image is different from
22 * the register image that Linux produces at interrupt time.
24 * Linux's register image is defined by struct pt_regs in ptrace.h.
H A Dflat.h25 /* The amount by which a relocation can exceed the program image limits
/linux-4.1.27/drivers/net/wireless/iwlegacy/
H A D4965.c43 * il_verify_inst_sparse - verify runtime uCode image in card vs. host,
48 il4965_verify_inst_sparse(struct il_priv *il, __le32 * image, u32 len) il4965_verify_inst_sparse() argument
55 D_INFO("ucode inst image size is %u\n", len); il4965_verify_inst_sparse()
57 for (i = 0; i < len; i += 100, image += 100 / sizeof(u32)) { il4965_verify_inst_sparse()
63 if (val != le32_to_cpu(*image)) { il4965_verify_inst_sparse()
75 * il4965_verify_inst_full - verify runtime uCode image in card vs. host,
79 il4965_verify_inst_full(struct il_priv *il, __le32 * image, u32 len) il4965_verify_inst_full() argument
86 D_INFO("ucode inst image size is %u\n", len); il4965_verify_inst_full()
91 for (; len > 0; len -= sizeof(u32), image++) { il4965_verify_inst_full()
96 if (val != le32_to_cpu(*image)) { il4965_verify_inst_full()
99 save_len - len, val, le32_to_cpu(*image)); il4965_verify_inst_full()
108 D_INFO("ucode image in INSTRUCTION memory is good\n"); il4965_verify_inst_full()
114 * il4965_verify_ucode - determine which instruction image is in SRAM,
120 __le32 *image; il4965_verify_ucode() local
125 image = (__le32 *) il->ucode_boot.v_addr; il4965_verify_ucode()
127 ret = il4965_verify_inst_sparse(il, image, len); il4965_verify_ucode()
134 image = (__le32 *) il->ucode_init.v_addr; il4965_verify_ucode()
136 ret = il4965_verify_inst_sparse(il, image, len); il4965_verify_ucode()
143 image = (__le32 *) il->ucode_code.v_addr; il4965_verify_ucode()
145 ret = il4965_verify_inst_sparse(il, image, len); il4965_verify_ucode()
155 * Selection of bootstrap image (vs. other images) is arbitrary. */ il4965_verify_ucode()
156 image = (__le32 *) il->ucode_boot.v_addr; il4965_verify_ucode()
158 ret = il4965_verify_inst_full(il, image, len); il4965_verify_ucode()
283 __le32 *image = il->ucode_boot.v_addr; il4965_verify_bsm() local
293 reg += sizeof(u32), image++) { il4965_verify_bsm()
295 if (val != le32_to_cpu(*image)) { il4965_verify_bsm()
299 len, val, le32_to_cpu(*image)); il4965_verify_bsm()
304 D_INFO("BSM bootstrap uCode image OK\n"); il4965_verify_bsm()
325 * "initialize" uCode image. This uCode sets up some internal data, then
344 __le32 *image = il->ucode_boot.v_addr; il4965_load_bsm() local
382 reg_offset += sizeof(u32), image++) il4965_load_bsm()
383 _il_wr_prph(il, reg_offset, le32_to_cpu(*image)); il4965_load_bsm()
439 /* Tell bootstrap uCode where to find image to load */ il4965_set_ucode_ptrs()
467 /* Bootstrap uCode has loaded initialize uCode ... verify inst image. il4965_init_alive_start()
480 /* Send pointers to protocol/runtime uCode image ... init code will il4965_init_alive_start()
/linux-4.1.27/drivers/staging/sm750fb/
H A Dsm750.c139 if (fbcursor->image.width > cursor->maxW || lynxfb_ops_cursor()
140 fbcursor->image.height > cursor->maxH || lynxfb_ops_cursor()
141 fbcursor->image.depth > 1) { lynxfb_ops_cursor()
148 fbcursor->image.width, lynxfb_ops_cursor()
149 fbcursor->image.height); lynxfb_ops_cursor()
153 fbcursor->image.dx - info->var.xoffset, lynxfb_ops_cursor()
154 fbcursor->image.dy - info->var.yoffset); lynxfb_ops_cursor()
160 fg = ((info->cmap.red[fbcursor->image.fg_color] & 0xf800))| lynxfb_ops_cursor()
161 ((info->cmap.green[fbcursor->image.fg_color] & 0xfc00) >> 5)| lynxfb_ops_cursor()
162 ((info->cmap.blue[fbcursor->image.fg_color] & 0xf800) >> 11); lynxfb_ops_cursor()
164 bg = ((info->cmap.red[fbcursor->image.bg_color] & 0xf800))| lynxfb_ops_cursor()
165 ((info->cmap.green[fbcursor->image.bg_color] & 0xfc00) >> 5)| lynxfb_ops_cursor()
166 ((info->cmap.blue[fbcursor->image.bg_color] & 0xf800) >> 11); lynxfb_ops_cursor()
175 fbcursor->image.data, lynxfb_ops_cursor()
256 const struct fb_image *image) lynxfb_ops_imageblit()
271 if (image->depth == 1) { lynxfb_ops_imageblit()
274 fgcol = ((u32 *)info->pseudo_palette)[image->fg_color]; lynxfb_ops_imageblit()
275 bgcol = ((u32 *)info->pseudo_palette)[image->bg_color]; lynxfb_ops_imageblit()
277 fgcol = image->fg_color; lynxfb_ops_imageblit()
278 bgcol = image->bg_color; lynxfb_ops_imageblit()
292 image->data, image->width>>3, 0, lynxfb_ops_imageblit()
294 image->dx, image->dy, lynxfb_ops_imageblit()
295 image->width, image->height, lynxfb_ops_imageblit()
255 lynxfb_ops_imageblit(struct fb_info *info, const struct fb_image *image) lynxfb_ops_imageblit() argument
/linux-4.1.27/drivers/video/fbdev/riva/
H A Dfbdev.c475 * rivafb_load_cursor_image - load cursor image to hardware
478 * @w: width of cursor image in pixels
479 * @h: height of cursor image in scanlines
484 * Loads cursor image based on a monochrome source and mask bitmap. The
485 * image bits determines the color of the pixel, 0 for background, 1 for
1483 * @image: pointer to fb_image structure
1497 const struct fb_image *image) rivafb_imageblit()
1501 u8 *cdat = (u8 *) image->data; rivafb_imageblit()
1505 if ((info->flags & FBINFO_HWACCEL_DISABLED) || image->depth != 1) { rivafb_imageblit()
1506 cfb_imageblit(info, image); rivafb_imageblit()
1512 fgx = image->fg_color; rivafb_imageblit()
1513 bgx = image->bg_color; rivafb_imageblit()
1518 fgx = ((u32 *)info->pseudo_palette)[image->fg_color]; rivafb_imageblit()
1519 bgx = ((u32 *)info->pseudo_palette)[image->bg_color]; rivafb_imageblit()
1521 fgx = par->palette[image->fg_color]; rivafb_imageblit()
1522 bgx = par->palette[image->bg_color]; rivafb_imageblit()
1531 (image->dy << 16) | (image->dx & 0xFFFF)); rivafb_imageblit()
1533 (((image->dy + image->height) << 16) | rivafb_imageblit()
1534 ((image->dx + image->width) & 0xffff))); rivafb_imageblit()
1538 (image->height << 16) | ((image->width + 31) & ~31)); rivafb_imageblit()
1540 (image->height << 16) | ((image->width + 31) & ~31)); rivafb_imageblit()
1542 (image->dy << 16) | (image->dx & 0xFFFF)); rivafb_imageblit()
1546 width = (image->width + 31)/32; rivafb_imageblit()
1547 size = width * image->height; rivafb_imageblit()
1575 * A cursor function that supports displaying a cursor image via hardware.
1589 if (cursor->image.width > MAX_CURS || cursor->image.height > MAX_CURS) rivafb_cursor()
1605 yy = cursor->image.dy - info->var.yoffset; rivafb_cursor()
1606 xx = cursor->image.dx - info->var.xoffset; rivafb_cursor()
1615 u32 bg_idx = cursor->image.bg_color; rivafb_cursor()
1616 u32 fg_idx = cursor->image.fg_color; rivafb_cursor()
1617 u32 s_pitch = (cursor->image.width+7) >> 3; rivafb_cursor()
1619 u8 *dat = (u8 *) cursor->image.data; rivafb_cursor()
1623 src = kmalloc(s_pitch * cursor->image.height, GFP_ATOMIC); rivafb_cursor()
1628 for (i = 0; i < s_pitch * cursor->image.height; i++) rivafb_cursor()
1633 for (i = 0; i < s_pitch * cursor->image.height; i++) rivafb_cursor()
1639 cursor->image.height); rivafb_cursor()
1654 cursor->image.width, rivafb_cursor()
1655 cursor->image.height); rivafb_cursor()
1496 rivafb_imageblit(struct fb_info *info, const struct fb_image *image) rivafb_imageblit() argument
/linux-4.1.27/arch/unicore32/boot/compressed/
H A Dhead.S106 * r5 = start of this image
107 * r6 = size of decompressed image
108 * r2 = end of malloc space (and therefore this image)
111 * r4 + image length <= r5 -> OK
/linux-4.1.27/arch/s390/boot/compressed/
H A Dhead.S33 # decompress image is started at 0x11000
/linux-4.1.27/arch/score/
H A DMakefile41 echo ' vmlinux.bin - Raw binary boot image'
/linux-4.1.27/arch/nios2/boot/
H A Dinstall.sh15 # $2 - kernel image file
/linux-4.1.27/arch/cris/boot/compressed/
H A DMakefile35 $(call if_changed,image)
H A Dhead_v32.S48 ;; Figure out where the compressed piggyback image is.
52 ;; The piggyback image is at _edata, but relative to where the
53 ;; image is actually located in memory, not where it is linked
117 cmp.d 0x40000000, $r9 ; image in DRAM ?
/linux-4.1.27/arch/m32r/
H A DMakefile61 echo '* zImage - Compressed kernel image (arch/$(ARCH)/boot/zImage)'
/linux-4.1.27/arch/m32r/boot/compressed/
H A DMakefile4 # create a compressed vmlinux image from the original vmlinux
/linux-4.1.27/arch/m68k/
H A Dinstall.sh15 # $2 - kernel image file
/linux-4.1.27/drivers/isdn/hysdn/
H A Dhysdn_pof.h25 /* defines for 1.stage boot image */
28 /* the POF file record containing the boot loader image
/linux-4.1.27/drivers/media/platform/s5p-tv/
H A Dmixer.h60 /** number of planes in image data */
64 /** number of subframes in image data */
72 /** description of crop configuration for image */
101 /** description of transformation from source to destination image */
103 /** cropping for source image */
105 /** cropping for destination image */
182 /** current image format */
184 /** current geometry of image */
/linux-4.1.27/drivers/remoteproc/
H A Dremoteproc_elf_loader.c36 * rproc_elf_sanity_check() - Sanity Check ELF firmware image
38 * @fw: the ELF firmware image
40 * Make sure this fw image is sane.
105 * @fw: the ELF firmware image
108 * image.
124 * @fw: the ELF firmware image
273 * @fw: the ELF firmware image
310 * @fw: the ELF firmware image
/linux-4.1.27/arch/powerpc/include/asm/
H A Dkexec.h78 extern void default_machine_kexec(struct kimage *image);
79 extern int default_machine_kexec_prepare(struct kimage *image);
/linux-4.1.27/arch/cris/
H A DMakefile102 echo '* zImage - Compressed kernel image (arch/cris/boot/zImage)'
103 echo '* Image - Uncompressed kernel image (arch/cris/boot/Image)'
/linux-4.1.27/drivers/gpu/drm/cirrus/
H A Dcirrus_fbdev.c116 const struct fb_image *image) cirrus_imageblit()
119 sys_imageblit(info, image); cirrus_imageblit()
120 cirrus_dirty_update(afbdev, image->dx, image->dy, image->width, cirrus_imageblit()
121 image->height); cirrus_imageblit()
115 cirrus_imageblit(struct fb_info *info, const struct fb_image *image) cirrus_imageblit() argument
/linux-4.1.27/drivers/gpu/drm/exynos/
H A Dregs-gsc.h94 /* G-Scaler source image size */
101 /* G-Scaler source image offset */
108 /* G-Scaler cropped source image size */
150 /* G-Scaler scaled destination image size */
181 /* G-Scaler destination image size */
188 /* G-Scaler destination image offset */
/linux-4.1.27/drivers/gpu/drm/mgag200/
H A Dmgag200_fb.c119 const struct fb_image *image) mga_imageblit()
122 sys_imageblit(info, image); mga_imageblit()
123 mga_dirty_update(mfbdev, image->dx, image->dy, image->width, mga_imageblit()
124 image->height); mga_imageblit()
118 mga_imageblit(struct fb_info *info, const struct fb_image *image) mga_imageblit() argument
/linux-4.1.27/fs/romfs/
H A Dstorage.c25 * read data from an romfs image on an MTD device
38 * determine the length of a string in a romfs image on an MTD device
67 * compare a string to one in a romfs image on MTD
105 * read data from an romfs image on a block device
164 * compare a string to one in a romfs image on a block device
216 * read data from the romfs image
/linux-4.1.27/arch/x86/net/
H A Dbpf_jit_comp.c189 static int do_jit(struct bpf_prog *bpf_prog, int *addrs, u8 *image, do_jit() argument
721 jmp_offset = func - (image + addrs[i]); do_jit()
731 pr_err("unsupported bpf func %d addr %p image %p\n", do_jit()
732 imm32, func, image); do_jit()
843 jmp_offset = func - (image + addrs[i]); do_jit()
845 pr_err("unsupported bpf func %d addr %p image %p\n", do_jit()
846 imm32, func, image); do_jit()
922 if (image) { do_jit()
927 memcpy(image + proglen, temp, ilen); do_jit()
945 u8 *image = NULL; bpf_int_jit_compile() local
969 /* JITed image shrinks with every pass and the loop iterates bpf_int_jit_compile()
970 * until the image stops shrinking. Very large bpf programs bpf_int_jit_compile()
972 * pass to emit the final image bpf_int_jit_compile()
974 for (pass = 0; pass < 10 || image; pass++) { bpf_int_jit_compile()
975 proglen = do_jit(prog, addrs, image, oldproglen, &ctx); bpf_int_jit_compile()
977 image = NULL; bpf_int_jit_compile()
982 if (image) { bpf_int_jit_compile()
991 header = bpf_jit_binary_alloc(proglen, &image, bpf_int_jit_compile()
1000 bpf_jit_dump(prog->len, proglen, 0, image); bpf_int_jit_compile()
1002 if (image) { bpf_int_jit_compile()
1003 bpf_flush_icache(header, image + proglen); bpf_int_jit_compile()
1005 prog->bpf_func = (void *)image; bpf_int_jit_compile()
/linux-4.1.27/arch/sparc/net/
H A Dbpf_jit_comp.c278 do { void *_here = image + addrs[i] - 8; \
370 void *image; bpf_jit_compile() local
387 image = NULL; bpf_jit_compile()
762 if (image) { bpf_jit_compile()
766 module_memfree(image); bpf_jit_compile()
769 memcpy(image + proglen, temp, ilen); bpf_jit_compile()
782 if (image) { bpf_jit_compile()
789 image = module_alloc(proglen); bpf_jit_compile()
790 if (!image) bpf_jit_compile()
797 bpf_jit_dump(flen, proglen, pass, image); bpf_jit_compile()
799 if (image) { bpf_jit_compile()
800 bpf_flush_icache(image, image + proglen); bpf_jit_compile()
801 fp->bpf_func = (void *)image; bpf_jit_compile()
/linux-4.1.27/arch/x86/
H A DMakefile224 # KBUILD_IMAGE specify target image being built
254 echo '* bzImage - Compressed kernel image (arch/x86/boot/bzImage)'
259 echo ' fdimage - Create 1.4MB boot floppy image (arch/x86/boot/fdimage)'
260 echo ' fdimage144 - Create 1.4MB boot floppy image (arch/x86/boot/fdimage)'
261 echo ' fdimage288 - Create 2.8MB boot floppy image (arch/x86/boot/fdimage)'
262 echo ' isoimage - Create a boot CD-ROM image (arch/x86/boot/image.iso)'
/linux-4.1.27/drivers/staging/wlan-ng/
H A Dprism2fw.c123 /* s-record image processing */
144 /* Load image chunks */
234 * rfptr firmware image in kernel memory
324 netdev_err(wlandev->netdev, "Incompatible firmware image.\n"); prism2_fwapply()
330 "Can't RAM download a Flash image!\n"); prism2_fwapply()
334 /* Make the image chunks */ prism2_fwapply()
350 /* Write the image */ prism2_fwapply()
353 netdev_err(wlandev->netdev, "Failed to ramwrite image data.\n"); prism2_fwapply()
374 * fchunk Array of image chunks
375 * nfchunks Number of image chunks
542 pr_err("failed to allocate image space, exitting.\n"); mkimage()
644 * Plugs the given image using the given plug records from the given
648 * fchunk Array of image chunks
649 * nfchunks Number of image chunks
694 * image. Therefore, missing PDRs in the card plugimage()
719 pr_err("error: Failed to find image chunk for plugrec 0x%04x.\n", plugimage()
828 * a - Address in load image to plug (little endian)
847 * a - Address in load image to plug (little endian)
850 * record firmware image (ihex record structure) in kernel memory
969 * fchunk Array of image chunks
970 * nfchunks Number of image chunks
/linux-4.1.27/arch/parisc/kernel/
H A Dperf.c28 * of a bad image halting the CPU. Also, there are different
225 * Configure the cpu with a given data image. First turn off the counters,
226 * then download the image, then turn the counters back on.
240 printk("Preparing to write image\n"); perf_config()
241 /* Write the image to the chip */ perf_config()
297 * This routine downloads the image to the chip. It must be
333 the requested image */ perf_write()
340 /* Next check to make sure the requested image perf_write()
348 /* Copy the image into the processor */ perf_write()
364 * NOTE: this routine is VERY specific to the current TLB image. perf_patch_images()
365 * If the image is changed, this routine might also need to be changed. perf_patch_images()
621 * Write back the zeroed bytes + the image given perf_stop_counters()
748 * Write the given image out to the processor
/linux-4.1.27/drivers/mtd/
H A Dafs.c49 u32 length; /* Actual size of image */
112 * Check the image info base. This can not afs_read_footer()
119 * Check the start of this image. The image afs_read_footer()
228 /* Read the image info block */ parse_afs_partitions()
/linux-4.1.27/drivers/staging/rtl8192u/
H A Dr819xU_firmware.c236 * Download boot, main, and data image for System reset. init_firmware()
237 * Download data image for firmware reset init_firmware()
241 * Open image file, and map file to continuous memory if open file success. init_firmware()
242 * or read image file from array. Default load from IMG file init_firmware()
273 /* Download image file */ init_firmware()
/linux-4.1.27/arch/mn10300/boot/tools/
H A Dbuild.c7 * This file builds a disk-image from three different files:
66 die("Usage: build [-b] bootsect setup system [rootdev] [> image]"); usage()
187 die("Write of image length failed"); main()

Completed in 3008 milliseconds

123456