Home
last modified time | relevance | path

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

12345678

/drivers/staging/vme_user/
Dvme_user.c101 static struct image_desc image[VME_DEVS]; variable
124 if (count > image[minor].size_buf) in resource_to_user()
125 count = image[minor].size_buf; in resource_to_user()
127 copied = vme_master_read(image[minor].resource, image[minor].kern_buf, in resource_to_user()
132 if (copy_to_user(buf, image[minor].kern_buf, (unsigned long)copied)) in resource_to_user()
141 if (count > image[minor].size_buf) in resource_from_user()
142 count = image[minor].size_buf; in resource_from_user()
144 if (copy_from_user(image[minor].kern_buf, buf, (unsigned long)count)) in resource_from_user()
147 return vme_master_write(image[minor].resource, image[minor].kern_buf, in resource_from_user()
156 image_ptr = image[minor].kern_buf + *ppos; in buffer_to_user()
[all …]
Dvme_tsi148.c466 static int tsi148_slave_set(struct vme_slave_resource *image, int enabled, in tsi148_slave_set() argument
479 tsi148_bridge = image->parent; in tsi148_slave_set()
482 i = image->number; in tsi148_slave_set()
609 static int tsi148_slave_get(struct vme_slave_resource *image, int *enabled, in tsi148_slave_get() argument
620 bridge = image->parent->driver_priv; in tsi148_slave_get()
622 i = image->number; in tsi148_slave_get()
708 static int tsi148_alloc_resource(struct vme_master_resource *image, in tsi148_alloc_resource() argument
716 tsi148_bridge = image->parent; in tsi148_alloc_resource()
720 existing_size = (unsigned long long)(image->bus_resource.end - in tsi148_alloc_resource()
721 image->bus_resource.start); in tsi148_alloc_resource()
[all …]
/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
Dimage.c30 nvbios_imagen(struct nvkm_bios *bios, struct nvbios_image *image) in nvbios_imagen() argument
39 switch ((data = nvbios_rd16(bios, image->base + 0x00))) { in nvbios_imagen()
46 image->base, data); in nvbios_imagen()
50 if (!(data = nvbios_pcirTp(bios, image->base, &ver, &hdr, &pcir))) in nvbios_imagen()
52 image->size = pcir.image_size; in nvbios_imagen()
53 image->type = pcir.image_type; in nvbios_imagen()
54 image->last = pcir.last; in nvbios_imagen()
56 if (image->type != 0x70) { in nvbios_imagen()
57 if (!(data = nvbios_npdeTp(bios, image->base, &npde))) in nvbios_imagen()
59 image->size = npde.image_size; in nvbios_imagen()
[all …]
Dshadow.c55 struct nvbios_image image; in shadow_image() local
59 image.base = 0; in shadow_image()
60 image.type = 0; in shadow_image()
61 image.size = mthd->func->size(mthd->data); in shadow_image()
62 image.last = 1; in shadow_image()
70 if (!nvbios_image(bios, idx, &image)) { in shadow_image()
76 image.base, image.type, image.size); in shadow_image()
78 if (!shadow_fetch(bios, mthd, image.base + image.size)) { in shadow_image()
79 nvkm_debug(subdev, "%08x: fetch failed\n", image.base); in shadow_image()
83 switch (image.type) { in shadow_image()
[all …]
/drivers/gpu/drm/qxl/
Dqxl_image.c35 struct qxl_drm_image *image, in qxl_allocate_chunk() argument
51 list_add_tail(&chunk->head, &image->chunk_list); in qxl_allocate_chunk()
61 struct qxl_drm_image *image; in qxl_image_alloc_objects() local
64 image = kmalloc(sizeof(struct qxl_drm_image), GFP_KERNEL); in qxl_image_alloc_objects()
65 if (!image) in qxl_image_alloc_objects()
68 INIT_LIST_HEAD(&image->chunk_list); in qxl_image_alloc_objects()
70 ret = qxl_alloc_bo_reserved(qdev, release, sizeof(struct qxl_image), &image->bo); in qxl_image_alloc_objects()
72 kfree(image); in qxl_image_alloc_objects()
76 ret = qxl_allocate_chunk(qdev, release, image, sizeof(struct qxl_data_chunk) + stride * height); in qxl_image_alloc_objects()
78 qxl_bo_unref(&image->bo); in qxl_image_alloc_objects()
[all …]
/drivers/video/fbdev/core/
Dbitblit.c80 struct fb_image *image, u8 *buf, u8 *dst) in bit_putcs_aligned() argument
97 image->height); in bit_putcs_aligned()
100 image->height); in bit_putcs_aligned()
105 info->fbops->fb_imageblit(info, image); in bit_putcs_aligned()
112 struct fb_image *image, u8 *buf, in bit_putcs_unaligned() argument
131 image->height, shift_high, in bit_putcs_unaligned()
139 info->fbops->fb_imageblit(info, image); in bit_putcs_unaligned()
147 struct fb_image image; in bit_putcs() local
157 image.fg_color = fg; in bit_putcs()
158 image.bg_color = bg; in bit_putcs()
[all …]
Dfbcon_ud.c88 struct fb_image *image, u8 *buf, u8 *dst) in ud_putcs_aligned() argument
105 image->height); in ud_putcs_aligned()
108 image->height); in ud_putcs_aligned()
113 info->fbops->fb_imageblit(info, image); in ud_putcs_aligned()
120 struct fb_image *image, u8 *buf, in ud_putcs_unaligned() argument
139 image->height, shift_high, in ud_putcs_unaligned()
147 info->fbops->fb_imageblit(info, image); in ud_putcs_unaligned()
155 struct fb_image image; in ud_putcs() local
171 image.fg_color = fg; in ud_putcs()
172 image.bg_color = bg; in ud_putcs()
[all …]
Dfbcon_cw.c86 struct fb_image *image, u8 *buf, u8 *dst) in cw_putcs_aligned() argument
111 info->fbops->fb_imageblit(info, image); in cw_putcs_aligned()
118 struct fb_image image; in cw_putcs() local
133 image.fg_color = fg; in cw_putcs()
134 image.bg_color = bg; in cw_putcs()
135 image.dx = vxres - ((yy + 1) * vc->vc_font.height); in cw_putcs()
136 image.dy = xx * vc->vc_font.width; in cw_putcs()
137 image.width = vc->vc_font.height; in cw_putcs()
138 image.depth = 1; in cw_putcs()
152 image.height = vc->vc_font.width * cnt; in cw_putcs()
[all …]
Dfbcon_ccw.c101 struct fb_image *image, u8 *buf, u8 *dst) in ccw_putcs_aligned() argument
126 info->fbops->fb_imageblit(info, image); in ccw_putcs_aligned()
133 struct fb_image image; in ccw_putcs() local
148 image.fg_color = fg; in ccw_putcs()
149 image.bg_color = bg; in ccw_putcs()
150 image.dx = yy * vc->vc_font.height; in ccw_putcs()
151 image.dy = vyres - ((xx + count) * vc->vc_font.width); in ccw_putcs()
152 image.width = vc->vc_font.height; in ccw_putcs()
153 image.depth = 1; in ccw_putcs()
169 image.height = vc->vc_font.width * cnt; in ccw_putcs()
[all …]
Dsysimgblt.c52 static void color_imageblit(const struct fb_image *image, struct fb_info *p, in color_imageblit() argument
61 const u8 *src = image->data; in color_imageblit()
64 for (i = image->height; i--; ) { in color_imageblit()
65 n = image->width; in color_imageblit()
111 static void slow_imageblit(const struct fb_image *image, struct fb_info *p, in slow_imageblit() argument
119 u32 spitch = (image->width+7)/8; in slow_imageblit()
120 const u8 *src = image->data, *s; in slow_imageblit()
127 for (i = image->height; i--; ) { in slow_imageblit()
130 j = image->width; in slow_imageblit()
186 static void fast_imageblit(const struct fb_image *image, struct fb_info *p, in fast_imageblit() argument
[all …]
Dsoftcursor.c28 struct fb_image *image; in soft_cursor() local
34 s_pitch = (cursor->image.width + 7) >> 3; in soft_cursor()
35 dsize = s_pitch * cursor->image.height; in soft_cursor()
49 image = (struct fb_image *)ops->cursor_src; in soft_cursor()
50 *image = cursor->image; in soft_cursor()
53 size = d_pitch * image->height + buf_align; in soft_cursor()
61 src[i] = image->data[i] ^ cursor->mask[i]; in soft_cursor()
66 src[i] = image->data[i] & cursor->mask[i]; in soft_cursor()
70 memcpy(src, image->data, dsize); in soft_cursor()
72 fb_pad_aligned_buffer(dst, d_pitch, src, s_pitch, image->height); in soft_cursor()
[all …]
Dcfbimgblt.c75 static inline void color_imageblit(const struct fb_image *image, in color_imageblit() argument
86 const u8 *src = image->data; in color_imageblit()
90 for (i = image->height; i--; ) { in color_imageblit()
91 n = image->width; in color_imageblit()
137 static inline void slow_imageblit(const struct fb_image *image, struct fb_info *p, in slow_imageblit() argument
147 u32 spitch = (image->width+7)/8; in slow_imageblit()
148 const u8 *src = image->data, *s; in slow_imageblit()
156 for (i = image->height; i--; ) { in slow_imageblit()
159 j = image->width; in slow_imageblit()
215 static inline void fast_imageblit(const struct fb_image *image, struct fb_info *p, in fast_imageblit() argument
[all …]
Dfbmem.c387 struct fb_image *image, int rotate) in fb_rotate_logo() argument
392 fb_rotate_logo_ud(image->data, dst, image->width, in fb_rotate_logo()
393 image->height); in fb_rotate_logo()
394 image->dx = info->var.xres - image->width - image->dx; in fb_rotate_logo()
395 image->dy = info->var.yres - image->height - image->dy; in fb_rotate_logo()
397 fb_rotate_logo_cw(image->data, dst, image->width, in fb_rotate_logo()
398 image->height); in fb_rotate_logo()
399 swap(image->width, image->height); in fb_rotate_logo()
400 tmp = image->dy; in fb_rotate_logo()
401 image->dy = image->dx; in fb_rotate_logo()
[all …]
/drivers/video/fbdev/savage/
Dsavagefb_accel.c92 void savagefb_imageblit(struct fb_info *info, const struct fb_image *image) in savagefb_imageblit() argument
97 u32 *src = (u32 *) image->data; in savagefb_imageblit()
99 if (!image->width || !image->height) in savagefb_imageblit()
102 if (image->depth != 1) { in savagefb_imageblit()
103 cfb_imageblit(info, image); in savagefb_imageblit()
108 fg = image->fg_color; in savagefb_imageblit()
109 bg = image->bg_color; in savagefb_imageblit()
111 fg = ((u32 *)info->pseudo_palette)[image->fg_color]; in savagefb_imageblit()
112 bg = ((u32 *)info->pseudo_palette)[image->bg_color]; in savagefb_imageblit()
122 width = (image->width + 31) & ~31; in savagefb_imageblit()
[all …]
/drivers/gpu/ipu-v3/
Dipu-cpmem.c764 int ipu_cpmem_set_image(struct ipuv3_channel *ch, struct ipu_image *image) in ipu_cpmem_set_image() argument
766 struct v4l2_pix_format *pix = &image->pix; in ipu_cpmem_set_image()
774 ipu_cpmem_set_resolution(ch, image->rect.width, image->rect.height); in ipu_cpmem_set_image()
781 offset = Y_OFFSET(pix, image->rect.left, image->rect.top); in ipu_cpmem_set_image()
782 u_offset = image->u_offset ? in ipu_cpmem_set_image()
783 image->u_offset : U_OFFSET(pix, image->rect.left, in ipu_cpmem_set_image()
784 image->rect.top) - offset; in ipu_cpmem_set_image()
785 v_offset = image->v_offset ? in ipu_cpmem_set_image()
786 image->v_offset : V_OFFSET(pix, image->rect.left, in ipu_cpmem_set_image()
787 image->rect.top) - offset; in ipu_cpmem_set_image()
[all …]
/drivers/video/fbdev/mb862xx/
Dmb862xxfb_accel.c71 u32 bgcolor, const struct fb_image *image, in mb86290fb_imageblit1() argument
90 line = image->data; in mb86290fb_imageblit1()
91 bytes = (image->width + 7) >> 3; in mb86290fb_imageblit1()
120 u32 bgcolor, const struct fb_image *image, in mb86290fb_imageblit8() argument
133 line = image->data; in mb86290fb_imageblit8()
134 bytes = image->width; in mb86290fb_imageblit8()
159 u32 bgcolor, const struct fb_image *image, in mb86290fb_imageblit16() argument
167 line = image->data; in mb86290fb_imageblit16()
168 bytes = image->width << 1; in mb86290fb_imageblit16()
183 const struct fb_image *image) in mb86290fb_imageblit() argument
[all …]
/drivers/video/fbdev/aty/
Dmach64_accel.c287 void atyfb_imageblit(struct fb_info *info, const struct fb_image *image) in atyfb_imageblit() argument
290 u32 src_bytes, dx = image->dx, dy = image->dy, width = image->width; in atyfb_imageblit()
295 if (!image->width || !image->height) in atyfb_imageblit()
298 (image->depth != 1 && info->var.bits_per_pixel != image->depth)) { in atyfb_imageblit()
299 cfb_imageblit(info, image); in atyfb_imageblit()
305 switch (image->depth) { in atyfb_imageblit()
351 if (image->depth == 1 && M64_HAS(HW_TRIPLE) && image->width % 8 == 0) in atyfb_imageblit()
355 if (image->depth == 1) { in atyfb_imageblit()
359 fg = ((u32*)(info->pseudo_palette))[image->fg_color]; in atyfb_imageblit()
360 bg = ((u32*)(info->pseudo_palette))[image->bg_color]; in atyfb_imageblit()
[all …]
/drivers/gpu/drm/nouveau/dispnv50/
Dovly907e.c40 NVVAL(NV907E, SET_PRESENT_CONTROL, MIN_PRESENT_INTERVAL, asyw->image.interval)); in ovly907e_image_set()
42 PUSH_MTHD(push, NV907E, SET_CONTEXT_DMA_ISO, asyw->image.handle[0]); in ovly907e_image_set()
47 PUSH_MTHD(push, NV907E, SURFACE_SET_OFFSET, asyw->image.offset[0] >> 8); in ovly907e_image_set()
50 NVVAL(NV907E, SURFACE_SET_SIZE, WIDTH, asyw->image.w) | in ovly907e_image_set()
51 NVVAL(NV907E, SURFACE_SET_SIZE, HEIGHT, asyw->image.h), in ovly907e_image_set()
54 NVVAL(NV907E, SURFACE_SET_STORAGE, BLOCK_HEIGHT, asyw->image.blockh) | in ovly907e_image_set()
55 NVVAL(NV907E, SURFACE_SET_STORAGE, PITCH, (asyw->image.pitch[0] >> 8)) | in ovly907e_image_set()
56 NVVAL(NV907E, SURFACE_SET_STORAGE, PITCH, asyw->image.blocks[0]) | in ovly907e_image_set()
57 NVVAL(NV907E, SURFACE_SET_STORAGE, MEMORY_LAYOUT, asyw->image.layout), in ovly907e_image_set()
60 NVVAL(NV907E, SURFACE_SET_PARAMS, FORMAT, asyw->image.format) | in ovly907e_image_set()
[all …]
Dbase827c.c38 NVVAL(NV827C, SET_PRESENT_CONTROL, BEGIN_MODE, asyw->image.mode) | in base827c_image_set()
39 NVVAL(NV827C, SET_PRESENT_CONTROL, MIN_PRESENT_INTERVAL, asyw->image.interval)); in base827c_image_set()
41 PUSH_MTHD(push, NV827C, SET_CONTEXT_DMAS_ISO(0), asyw->image.handle, 1); in base827c_image_set()
43 if (asyw->image.format == NV827C_SURFACE_SET_PARAMS_FORMAT_RF16_GF16_BF16_AF16) { in base827c_image_set()
59 PUSH_MTHD(push, NV827C, SURFACE_SET_OFFSET(0, 0), asyw->image.offset[0] >> 8, in base827c_image_set()
63 NVVAL(NV827C, SURFACE_SET_SIZE, WIDTH, asyw->image.w) | in base827c_image_set()
64 NVVAL(NV827C, SURFACE_SET_SIZE, HEIGHT, asyw->image.h), in base827c_image_set()
67 NVVAL(NV827C, SURFACE_SET_STORAGE, BLOCK_HEIGHT, asyw->image.blockh) | in base827c_image_set()
68 NVVAL(NV827C, SURFACE_SET_STORAGE, PITCH, asyw->image.pitch[0] >> 8) | in base827c_image_set()
69 NVVAL(NV827C, SURFACE_SET_STORAGE, PITCH, asyw->image.blocks[0]) | in base827c_image_set()
[all …]
Dwndw.c137 if (clr.image) wndw->func->image_clr(wndw); in nv50_wndw_flush_clr()
147 asyw->image.mode = NV507C_SET_PRESENT_CONTROL_BEGIN_MODE_NON_TEARING; in nv50_wndw_flush_set()
148 asyw->image.interval = 1; in nv50_wndw_flush_set()
153 if (asyw->set.image) wndw->func->image_set(wndw, asyw); in nv50_wndw_flush_set()
204 memset(asyw->image.handle, 0x00, sizeof(asyw->image.handle)); in nv50_wndw_atomic_check_release()
212 asyw->image.format = NV507E_SURFACE_SET_PARAMS_FORMAT_VE8YO8UE8YE8; in nv50_wndw_atomic_check_acquire_yuv()
215 asyw->image.format = NV507E_SURFACE_SET_PARAMS_FORMAT_YO8VE8YE8UE8; in nv50_wndw_atomic_check_acquire_yuv()
222 asyw->image.colorspace = NV507E_SURFACE_SET_PARAMS_COLOR_SPACE_YUV_601; in nv50_wndw_atomic_check_acquire_yuv()
231 asyw->image.format = NV507C_SURFACE_SET_PARAMS_FORMAT_I8; in nv50_wndw_atomic_check_acquire_rgb()
235 asyw->image.format = NV507C_SURFACE_SET_PARAMS_FORMAT_A8R8G8B8; in nv50_wndw_atomic_check_acquire_rgb()
[all …]
Dovly827e.c43 NVVAL(NV827E, SET_PRESENT_CONTROL, MIN_PRESENT_INTERVAL, asyw->image.interval)); in ovly827e_image_set()
45 PUSH_MTHD(push, NV827E, SET_CONTEXT_DMA_ISO, asyw->image.handle[0]); in ovly827e_image_set()
50 PUSH_MTHD(push, NV827E, SURFACE_SET_OFFSET, asyw->image.offset[0] >> 8); in ovly827e_image_set()
53 NVVAL(NV827E, SURFACE_SET_SIZE, WIDTH, asyw->image.w) | in ovly827e_image_set()
54 NVVAL(NV827E, SURFACE_SET_SIZE, HEIGHT, asyw->image.h), in ovly827e_image_set()
57 NVVAL(NV827E, SURFACE_SET_STORAGE, BLOCK_HEIGHT, asyw->image.blockh) | in ovly827e_image_set()
58 NVVAL(NV827E, SURFACE_SET_STORAGE, PITCH, (asyw->image.pitch[0] >> 8)) | in ovly827e_image_set()
59 NVVAL(NV827E, SURFACE_SET_STORAGE, PITCH, asyw->image.blocks[0]) | in ovly827e_image_set()
60 NVVAL(NV827E, SURFACE_SET_STORAGE, MEMORY_LAYOUT, asyw->image.layout), in ovly827e_image_set()
63 NVVAL(NV827E, SURFACE_SET_PARAMS, FORMAT, asyw->image.format) | in ovly827e_image_set()
[all …]
/drivers/video/fbdev/nvidia/
Dnv_accel.c353 const struct fb_image *image) in nvidiafb_mono_color_expand() argument
357 u32 dsize, width, *data = (u32 *) image->data, tmp; in nvidiafb_mono_color_expand()
360 width = (image->width + 31) & ~31; in nvidiafb_mono_color_expand()
361 dsize = (width * image->height) >> 5; in nvidiafb_mono_color_expand()
364 fg = image->fg_color | mask; in nvidiafb_mono_color_expand()
365 bg = image->bg_color | mask; in nvidiafb_mono_color_expand()
367 fg = ((u32 *) info->pseudo_palette)[image->fg_color] | mask; in nvidiafb_mono_color_expand()
368 bg = ((u32 *) info->pseudo_palette)[image->bg_color] | mask; in nvidiafb_mono_color_expand()
372 NVDmaNext(par, (image->dy << 16) | (image->dx & 0xffff)); in nvidiafb_mono_color_expand()
373 NVDmaNext(par, ((image->dy + image->height) << 16) | in nvidiafb_mono_color_expand()
[all …]
/drivers/soc/ixp4xx/
Dixp4xx-npe.c525 } *image; in npe_load_firmware() local
544 image = (struct dl_image*)fw_entry->data; in npe_load_firmware()
548 image->magic, image->id, image->size, image->size * 4); in npe_load_firmware()
551 if (image->magic == swab32(FW_MAGIC)) { /* swapped file */ in npe_load_firmware()
552 image->id = swab32(image->id); in npe_load_firmware()
553 image->size = swab32(image->size); in npe_load_firmware()
554 } else if (image->magic != FW_MAGIC) { in npe_load_firmware()
556 image->magic); in npe_load_firmware()
559 if ((image->size * 4 + sizeof(struct dl_image)) != fw_entry->size) { in npe_load_firmware()
564 if (((image->id >> 24) & 0xF /* NPE ID */) != npe->id) { in npe_load_firmware()
[all …]
/drivers/pci/
Drom.c86 void __iomem *image; in pci_get_rom_size() local
90 image = rom; in pci_get_rom_size()
94 if (readw(image) != 0xAA55) { in pci_get_rom_size()
96 readw(image)); in pci_get_rom_size()
100 pds = image + readw(image + 24); in pci_get_rom_size()
108 image += length * 512; in pci_get_rom_size()
110 if (image >= rom + size) in pci_get_rom_size()
113 if (readw(image) != 0xAA55) { in pci_get_rom_size()
122 return min((size_t)(image - rom), size); in pci_get_rom_size()
/drivers/of/
Dkexec.c234 static int setup_ima_buffer(const struct kimage *image, void *fdt, in setup_ima_buffer() argument
239 if (!image->ima_buffer_size) in setup_ima_buffer()
244 image->ima_buffer_addr, in setup_ima_buffer()
245 image->ima_buffer_size); in setup_ima_buffer()
249 ret = fdt_add_mem_rsv(fdt, image->ima_buffer_addr, in setup_ima_buffer()
250 image->ima_buffer_size); in setup_ima_buffer()
255 image->ima_buffer_addr, image->ima_buffer_size); in setup_ima_buffer()
260 static inline int setup_ima_buffer(const struct kimage *image, void *fdt, in setup_ima_buffer() argument
279 void *of_kexec_alloc_and_setup_fdt(const struct kimage *image, in of_kexec_alloc_and_setup_fdt() argument
381 if (image->type == KEXEC_TYPE_CRASH) { in of_kexec_alloc_and_setup_fdt()
[all …]

12345678