/drivers/staging/vme/devices/ |
D | vme_user.c | 105 static struct image_desc image[VME_DEVS]; variable 128 if (count > image[minor].size_buf) in resource_to_user() 129 count = image[minor].size_buf; in resource_to_user() 131 copied = vme_master_read(image[minor].resource, image[minor].kern_buf, in resource_to_user() 136 if (__copy_to_user(buf, image[minor].kern_buf, (unsigned long)copied)) in resource_to_user() 145 if (count > image[minor].size_buf) in resource_from_user() 146 count = image[minor].size_buf; in resource_from_user() 148 if (__copy_from_user(image[minor].kern_buf, buf, (unsigned long)count)) in resource_from_user() 151 return vme_master_write(image[minor].resource, image[minor].kern_buf, in resource_from_user() 160 image_ptr = image[minor].kern_buf + *ppos; in buffer_to_user() [all …]
|
/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
D | image.c | 30 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 …]
|
D | shadow.c | 55 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.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/ |
D | qxl_image.c | 35 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 …]
|
D | qxl_fb.c | 52 const struct fb_image *image) in qxl_fb_image_init() argument 64 if (image->depth == 1) in qxl_fb_image_init() 69 if (image) { in qxl_fb_image_init() 70 memcpy(&qxl_fb_image->fb_image, image, in qxl_fb_image_init() 192 struct fb_image *image = &qxl_fb_image.fb_image; in qxlfb_framebuffer_dirty() local 202 image->dx = clips->x1; in qxlfb_framebuffer_dirty() 203 image->dy = clips->y1; in qxlfb_framebuffer_dirty() 204 image->width = clips->x2 - clips->x1; in qxlfb_framebuffer_dirty() 205 image->height = clips->y2 - clips->y1; in qxlfb_framebuffer_dirty() 206 image->fg_color = 0xffffffff; /* unused, just to avoid uninitialized in qxlfb_framebuffer_dirty() [all …]
|
/drivers/video/console/ |
D | bitblit.c | 80 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 …]
|
D | fbcon_ud.c | 88 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 …]
|
D | fbcon_cw.c | 86 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 …]
|
D | fbcon_ccw.c | 101 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 …]
|
D | softcursor.c | 28 struct fb_image *image; in soft_cursor() local 34 s_pitch = (cursor->image.width + 7) >> 3; in soft_cursor() 35 dsize = s_pitch * cursor->image.height; in soft_cursor() 49 image = (struct fb_image *)ops->cursor_src; in soft_cursor() 50 *image = cursor->image; in soft_cursor() 53 size = d_pitch * image->height + buf_align; in soft_cursor() 61 src[i] = image->data[i] ^ cursor->mask[i]; in soft_cursor() 66 src[i] = image->data[i] & cursor->mask[i]; in soft_cursor() 70 memcpy(src, image->data, dsize); in soft_cursor() 72 fb_pad_aligned_buffer(dst, d_pitch, src, s_pitch, image->height); in soft_cursor() [all …]
|
/drivers/video/fbdev/savage/ |
D | savagefb_accel.c | 92 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/video/fbdev/core/ |
D | sysimgblt.c | 52 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 …]
|
D | cfbimgblt.c | 75 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 …]
|
D | fbmem.c | 391 struct fb_image *image, int rotate) in fb_rotate_logo() argument 396 fb_rotate_logo_ud(image->data, dst, image->width, in fb_rotate_logo() 397 image->height); in fb_rotate_logo() 398 image->dx = info->var.xres - image->width - image->dx; in fb_rotate_logo() 399 image->dy = info->var.yres - image->height - image->dy; in fb_rotate_logo() 401 fb_rotate_logo_cw(image->data, dst, image->width, in fb_rotate_logo() 402 image->height); in fb_rotate_logo() 403 tmp = image->width; in fb_rotate_logo() 404 image->width = image->height; in fb_rotate_logo() 405 image->height = tmp; in fb_rotate_logo() [all …]
|
/drivers/video/fbdev/mb862xx/ |
D | mb862xxfb_accel.c | 77 u32 bgcolor, const struct fb_image *image, in mb86290fb_imageblit1() argument 96 line = image->data; in mb86290fb_imageblit1() 97 bytes = (image->width + 7) >> 3; in mb86290fb_imageblit1() 126 u32 bgcolor, const struct fb_image *image, in mb86290fb_imageblit8() argument 139 line = ptr = image->data; in mb86290fb_imageblit8() 140 bytes = image->width; in mb86290fb_imageblit8() 165 u32 bgcolor, const struct fb_image *image, in mb86290fb_imageblit16() argument 173 line = image->data; in mb86290fb_imageblit16() 174 bytes = image->width << 1; in mb86290fb_imageblit16() 189 const struct fb_image *image) in mb86290fb_imageblit() argument [all …]
|
/drivers/gpu/drm/nouveau/ |
D | nv04_fbcon.c | 77 nv04_fbcon_imageblit(struct fb_info *info, const struct fb_image *image) in nv04_fbcon_imageblit() argument 85 uint32_t *data = (uint32_t *)image->data; in nv04_fbcon_imageblit() 88 if (image->depth != 1) in nv04_fbcon_imageblit() 97 fg = ((uint32_t *) info->pseudo_palette)[image->fg_color]; in nv04_fbcon_imageblit() 98 bg = ((uint32_t *) info->pseudo_palette)[image->bg_color]; in nv04_fbcon_imageblit() 100 fg = image->fg_color; in nv04_fbcon_imageblit() 101 bg = image->bg_color; in nv04_fbcon_imageblit() 105 OUT_RING(chan, (image->dy << 16) | (image->dx & 0xffff)); in nv04_fbcon_imageblit() 106 OUT_RING(chan, ((image->dy + image->height) << 16) | in nv04_fbcon_imageblit() 107 ((image->dx + image->width) & 0xffff)); in nv04_fbcon_imageblit() [all …]
|
/drivers/video/fbdev/aty/ |
D | mach64_accel.c | 282 void atyfb_imageblit(struct fb_info *info, const struct fb_image *image) in atyfb_imageblit() argument 285 u32 src_bytes, dx = image->dx, dy = image->dy, width = image->width; in atyfb_imageblit() 290 if (!image->width || !image->height) in atyfb_imageblit() 293 (image->depth != 1 && info->var.bits_per_pixel != image->depth)) { in atyfb_imageblit() 294 cfb_imageblit(info, image); in atyfb_imageblit() 301 switch (image->depth) { in atyfb_imageblit() 347 if (M64_HAS(HW_TRIPLE) && image->width % 8 == 0) in atyfb_imageblit() 351 if (image->depth == 1) { in atyfb_imageblit() 355 fg = ((u32*)(info->pseudo_palette))[image->fg_color]; in atyfb_imageblit() 356 bg = ((u32*)(info->pseudo_palette))[image->bg_color]; in atyfb_imageblit() [all …]
|
D | mach64_cursor.c | 90 x = cursor->image.dx - cursor->hot.x - info->var.xoffset; in atyfb_cursor() 98 y = cursor->image.dy - cursor->hot.y - info->var.yoffset; in atyfb_cursor() 106 h = cursor->image.height; in atyfb_cursor() 127 fg_idx = cursor->image.fg_color; in atyfb_cursor() 128 bg_idx = cursor->image.bg_color; in atyfb_cursor() 144 u8 *src = (u8 *)cursor->image.data; in atyfb_cursor() 147 unsigned int width = (cursor->image.width + 7) >> 3; in atyfb_cursor() 148 unsigned int height = cursor->image.height; in atyfb_cursor() 182 if ((j + 1) * 8 > cursor->image.width) { in atyfb_cursor() 184 (1 << ((cursor->image.width & 7) * 2)) - 1); in atyfb_cursor()
|
/drivers/video/fbdev/nvidia/ |
D | nv_accel.c | 351 const struct fb_image *image) in nvidiafb_mono_color_expand() argument 355 u32 dsize, width, *data = (u32 *) image->data, tmp; in nvidiafb_mono_color_expand() 358 width = (image->width + 31) & ~31; in nvidiafb_mono_color_expand() 359 dsize = (width * image->height) >> 5; in nvidiafb_mono_color_expand() 362 fg = image->fg_color | mask; in nvidiafb_mono_color_expand() 363 bg = image->bg_color | mask; in nvidiafb_mono_color_expand() 365 fg = ((u32 *) info->pseudo_palette)[image->fg_color] | mask; in nvidiafb_mono_color_expand() 366 bg = ((u32 *) info->pseudo_palette)[image->bg_color] | mask; in nvidiafb_mono_color_expand() 370 NVDmaNext(par, (image->dy << 16) | (image->dx & 0xffff)); in nvidiafb_mono_color_expand() 371 NVDmaNext(par, ((image->dy + image->height) << 16) | in nvidiafb_mono_color_expand() [all …]
|
/drivers/vme/bridges/ |
D | vme_ca91cx42.c | 337 static int ca91cx42_slave_set(struct vme_slave_resource *image, int enabled, in ca91cx42_slave_set() argument 347 ca91cx42_bridge = image->parent; in ca91cx42_slave_set() 351 i = image->number; in ca91cx42_slave_set() 443 static int ca91cx42_slave_get(struct vme_slave_resource *image, int *enabled, in ca91cx42_slave_get() argument 451 bridge = image->parent->driver_priv; in ca91cx42_slave_get() 453 i = image->number; in ca91cx42_slave_get() 503 static int ca91cx42_alloc_resource(struct vme_master_resource *image, in ca91cx42_alloc_resource() argument 511 ca91cx42_bridge = image->parent; in ca91cx42_alloc_resource() 520 existing_size = (unsigned long long)(image->bus_resource.end - in ca91cx42_alloc_resource() 521 image->bus_resource.start); in ca91cx42_alloc_resource() [all …]
|
D | vme_tsi148.c | 475 static int tsi148_slave_set(struct vme_slave_resource *image, int enabled, in tsi148_slave_set() argument 488 tsi148_bridge = image->parent; in tsi148_slave_set() 491 i = image->number; in tsi148_slave_set() 620 static int tsi148_slave_get(struct vme_slave_resource *image, int *enabled, in tsi148_slave_get() argument 631 bridge = image->parent->driver_priv; in tsi148_slave_get() 633 i = image->number; in tsi148_slave_get() 720 static int tsi148_alloc_resource(struct vme_master_resource *image, in tsi148_alloc_resource() argument 728 tsi148_bridge = image->parent; in tsi148_alloc_resource() 732 existing_size = (unsigned long long)(image->bus_resource.end - in tsi148_alloc_resource() 733 image->bus_resource.start); in tsi148_alloc_resource() [all …]
|
/drivers/gpu/ipu-v3/ |
D | ipu-cpmem.c | 672 int ipu_cpmem_set_image(struct ipuv3_channel *ch, struct ipu_image *image) in ipu_cpmem_set_image() argument 674 struct v4l2_pix_format *pix = &image->pix; in ipu_cpmem_set_image() 681 ipu_cpmem_set_resolution(ch, image->rect.width, image->rect.height); in ipu_cpmem_set_image() 688 offset = Y_OFFSET(pix, image->rect.left, image->rect.top); in ipu_cpmem_set_image() 689 u_offset = U_OFFSET(pix, image->rect.left, in ipu_cpmem_set_image() 690 image->rect.top) - offset; in ipu_cpmem_set_image() 691 v_offset = V_OFFSET(pix, image->rect.left, in ipu_cpmem_set_image() 692 image->rect.top) - offset; in ipu_cpmem_set_image() 698 offset = Y_OFFSET(pix, image->rect.left, image->rect.top); in ipu_cpmem_set_image() 699 u_offset = U_OFFSET(pix, image->rect.left, in ipu_cpmem_set_image() [all …]
|
D | ipu-image-convert.c | 359 struct ipu_image_convert_image *image) in calc_tile_dimensions() argument 364 struct ipu_image_tile *tile = &image->tile[i]; in calc_tile_dimensions() 366 tile->height = image->base.pix.height / image->num_rows; in calc_tile_dimensions() 367 tile->width = image->base.pix.width / image->num_cols; in calc_tile_dimensions() 368 tile->size = ((tile->height * image->fmt->bpp) >> 3) * in calc_tile_dimensions() 371 if (image->fmt->planar) { in calc_tile_dimensions() 376 (image->fmt->bpp * tile->width) >> 3; in calc_tile_dimensions() 378 (image->fmt->bpp * tile->height) >> 3; in calc_tile_dimensions() 457 struct ipu_image_convert_image *image) in calc_tile_offsets_planar() argument 461 const struct ipu_image_pixfmt *fmt = image->fmt; in calc_tile_offsets_planar() [all …]
|
/drivers/pci/ |
D | rom.c | 86 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() 116 return min((size_t)(image - rom), size); in pci_get_rom_size()
|
/drivers/media/usb/pwc/ |
D | pwc-uncompress.c | 39 void *yuv, *image; in pwc_decompress() local 43 image = vb2_plane_vaddr(&fbuf->vb.vb2_buf, 0); in pwc_decompress() 50 struct pwc_raw_frame *raw_frame = image; in pwc_decompress() 74 dsty = (u16 *)(image); in pwc_decompress() 75 dstu = (u16 *)(image + n); in pwc_decompress() 76 dstv = (u16 *)(image + n + n / 4); in pwc_decompress() 104 pwc_dec23_decompress(pdev, yuv, image); in pwc_decompress()
|