/drivers/staging/vme/devices/ |
D | vme_user.c | 101 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 …]
|
/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.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/ |
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 …]
|
/drivers/video/fbdev/core/ |
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 | 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 | 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/gpu/ipu-v3/ |
D | ipu-cpmem.c | 764 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/ |
D | mb862xxfb_accel.c | 73 u32 bgcolor, const struct fb_image *image, in mb86290fb_imageblit1() argument 92 line = image->data; in mb86290fb_imageblit1() 93 bytes = (image->width + 7) >> 3; in mb86290fb_imageblit1() 122 u32 bgcolor, const struct fb_image *image, in mb86290fb_imageblit8() argument 135 line = ptr = image->data; in mb86290fb_imageblit8() 136 bytes = image->width; in mb86290fb_imageblit8() 161 u32 bgcolor, const struct fb_image *image, in mb86290fb_imageblit16() argument 169 line = image->data; in mb86290fb_imageblit16() 170 bytes = image->width << 1; in mb86290fb_imageblit16() 185 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 86 uint32_t *data = (uint32_t *)image->data; in nv04_fbcon_imageblit() 89 if (image->depth != 1) in nv04_fbcon_imageblit() 98 fg = ((uint32_t *) info->pseudo_palette)[image->fg_color]; in nv04_fbcon_imageblit() 99 bg = ((uint32_t *) info->pseudo_palette)[image->bg_color]; in nv04_fbcon_imageblit() 101 fg = image->fg_color; in nv04_fbcon_imageblit() 102 bg = image->bg_color; in nv04_fbcon_imageblit() 105 PUSH_NVSQ(push, NV04A, 0x0be4, (image->dy << 16) | (image->dx & 0xffff), in nv04_fbcon_imageblit() 106 0x0be8, ((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 | 287 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/ |
D | ovly907e.c | 40 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 …]
|
D | base827c.c | 38 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 …]
|
D | ovly827e.c | 43 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 …]
|
D | wndw.c | 135 if (clr.image) wndw->func->image_clr(wndw); in nv50_wndw_flush_clr() 145 asyw->image.mode = NV507C_SET_PRESENT_CONTROL_BEGIN_MODE_NON_TEARING; in nv50_wndw_flush_set() 146 asyw->image.interval = 1; in nv50_wndw_flush_set() 151 if (asyw->set.image) wndw->func->image_set(wndw, asyw); in nv50_wndw_flush_set() 202 memset(asyw->image.handle, 0x00, sizeof(asyw->image.handle)); in nv50_wndw_atomic_check_release() 210 asyw->image.format = NV507E_SURFACE_SET_PARAMS_FORMAT_VE8YO8UE8YE8; in nv50_wndw_atomic_check_acquire_yuv() 213 asyw->image.format = NV507E_SURFACE_SET_PARAMS_FORMAT_YO8VE8YE8UE8; in nv50_wndw_atomic_check_acquire_yuv() 220 asyw->image.colorspace = NV507E_SURFACE_SET_PARAMS_COLOR_SPACE_YUV_601; in nv50_wndw_atomic_check_acquire_yuv() 229 asyw->image.format = NV507C_SURFACE_SET_PARAMS_FORMAT_I8; in nv50_wndw_atomic_check_acquire_rgb() 233 asyw->image.format = NV507C_SURFACE_SET_PARAMS_FORMAT_A8R8G8B8; in nv50_wndw_atomic_check_acquire_rgb() [all …]
|
/drivers/vme/bridges/ |
D | vme_ca91cx42.c | 333 static int ca91cx42_slave_set(struct vme_slave_resource *image, int enabled, in ca91cx42_slave_set() argument 343 ca91cx42_bridge = image->parent; in ca91cx42_slave_set() 347 i = image->number; in ca91cx42_slave_set() 439 static int ca91cx42_slave_get(struct vme_slave_resource *image, int *enabled, in ca91cx42_slave_get() argument 447 bridge = image->parent->driver_priv; in ca91cx42_slave_get() 449 i = image->number; in ca91cx42_slave_get() 499 static int ca91cx42_alloc_resource(struct vme_master_resource *image, in ca91cx42_alloc_resource() argument 507 ca91cx42_bridge = image->parent; in ca91cx42_alloc_resource() 516 existing_size = (unsigned long long)(image->bus_resource.end - in ca91cx42_alloc_resource() 517 image->bus_resource.start); in ca91cx42_alloc_resource() [all …]
|
/drivers/video/fbdev/nvidia/ |
D | nv_accel.c | 353 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/ |
D | ixp4xx-npe.c | 520 } *image; in npe_load_firmware() local 539 image = (struct dl_image*)fw_entry->data; in npe_load_firmware() 543 image->magic, image->id, image->size, image->size * 4); in npe_load_firmware() 546 if (image->magic == swab32(FW_MAGIC)) { /* swapped file */ in npe_load_firmware() 547 image->id = swab32(image->id); in npe_load_firmware() 548 image->size = swab32(image->size); in npe_load_firmware() 549 } else if (image->magic != FW_MAGIC) { in npe_load_firmware() 551 image->magic); in npe_load_firmware() 554 if ((image->size * 4 + sizeof(struct dl_image)) != fw_entry->size) { in npe_load_firmware() 559 if (((image->id >> 24) & 0xF /* NPE ID */) != npe->id) { in npe_load_firmware() [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() 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/ |
D | kexec.c | 236 static int setup_ima_buffer(const struct kimage *image, void *fdt, in setup_ima_buffer() argument 241 if (!image->ima_buffer_size) in setup_ima_buffer() 246 image->ima_buffer_addr, in setup_ima_buffer() 247 image->ima_buffer_size); in setup_ima_buffer() 251 ret = fdt_add_mem_rsv(fdt, image->ima_buffer_addr, in setup_ima_buffer() 252 image->ima_buffer_size); in setup_ima_buffer() 257 image->ima_buffer_addr, image->ima_buffer_size); in setup_ima_buffer() 262 static inline int setup_ima_buffer(const struct kimage *image, void *fdt, in setup_ima_buffer() argument 281 void *of_kexec_alloc_and_setup_fdt(const struct kimage *image, in of_kexec_alloc_and_setup_fdt() argument 383 if (image->type == KEXEC_TYPE_CRASH) { in of_kexec_alloc_and_setup_fdt() [all …]
|