Home
last modified time | relevance | path

Searched refs:line_length (Results 1 – 25 of 163) sorted by relevance

1234567

/linux-5.19.10/drivers/staging/fbtft/
Dfb_uc1611.c224 int line_length = par->info->fix.line_length; in write_vmem() local
225 int y_start = offset / line_length; in write_vmem()
226 int y_end = (offset + len - 1) / line_length; in write_vmem()
235 i = y_start * line_length; in write_vmem()
237 for (x = 0; x < line_length; x += 2) { in write_vmem()
248 i = y_start * line_length; in write_vmem()
250 for (x = 0; x < line_length; x++) { in write_vmem()
252 *buf8 |= vmem8[i + line_length] & 0xF0; in write_vmem()
256 i += line_length; in write_vmem()
269 i = y_start * line_length; in write_vmem()
[all …]
/linux-5.19.10/drivers/media/platform/ti/omap/
Domap_vout_vrfb.c326 int offset = 0, ctop = 0, cleft = 0, line_length = 0; in omap_vout_calculate_vrfb_offset() local
353 line_length = MAX_PIXELS_PER_LINE; in omap_vout_calculate_vrfb_offset()
357 line_length = pix->width; in omap_vout_calculate_vrfb_offset()
359 vout->line_length = line_length; in omap_vout_calculate_vrfb_offset()
366 *cropped_offset = offset + line_length * in omap_vout_calculate_vrfb_offset()
369 *cropped_offset = offset + line_length * temp_ps * in omap_vout_calculate_vrfb_offset()
370 cleft + crop->top * temp_ps + (line_length * in omap_vout_calculate_vrfb_offset()
380 *cropped_offset = offset + (line_length * ps * ctop) + in omap_vout_calculate_vrfb_offset()
384 *cropped_offset = offset + (line_length * ps * ctop) + in omap_vout_calculate_vrfb_offset()
385 (cleft / vr_ps) * ps + (line_length * in omap_vout_calculate_vrfb_offset()
[all …]
/linux-5.19.10/drivers/video/fbdev/
Dsunxvr500.c249 unsigned int line_length; in e3d_pci_register() local
328 line_length = (readl(ep->ramdac + RAMDAC_VID_CFG) >> 16) & 0xff; in e3d_pci_register()
329 line_length = 1 << line_length; in e3d_pci_register()
333 info->fix.line_length = line_length; in e3d_pci_register()
336 info->fix.line_length = line_length * 2; in e3d_pci_register()
339 info->fix.line_length = line_length * 3; in e3d_pci_register()
342 info->fix.line_length = line_length * 4; in e3d_pci_register()
345 ep->fb_size = info->fix.line_length * ep->height; in e3d_pci_register()
Dtgafb.c267 info->fix.line_length = par->xres * (par->bits_per_pixel >> 3);
624 unsigned long rincr, line_length, shift, pos, is8bpp; local
638 line_length = info->fix.line_length;
676 pos = dy * line_length;
719 pos += line_length;
748 pos += line_length;
767 pos += line_length;
797 pos += line_length;
817 pos += line_length;
838 unsigned long pos, line_length, i, j; local
[all …]
Dvga16fb.c97 .line_length = 640 / 8,
242 info->fix.line_length = info->var.xres_virtual / 2; in vga16fb_update_fix()
246 info->fix.line_length = info->var.xres_virtual / 8; in vga16fb_update_fix()
251 info->fix.line_length = info->var.xres_virtual / 4; in vga16fb_update_fix()
256 info->fix.line_length = info->var.xres_virtual / 4; in vga16fb_update_fix()
259 info->fix.line_length = info->var.xres_virtual; in vga16fb_update_fix()
857 where = info->screen_base + dx + rect->dy * info->fix.line_length; in vga_8planes_fillrect()
864 line_ofs = info->fix.line_length - width; in vga_8planes_fillrect()
889 where += info->fix.line_length; in vga_8planes_fillrect()
927 line_ofs = info->fix.line_length - width; in vga16fb_fillrect()
[all …]
Dsunxvr2500.c169 info->fix.line_length = sp->width; in s3d_pci_register()
172 info->fix.line_length = sp->width * 2; in s3d_pci_register()
175 info->fix.line_length = sp->width * 3; in s3d_pci_register()
178 info->fix.line_length = sp->width * 4; in s3d_pci_register()
181 sp->fb_size = info->fix.line_length * sp->height; in s3d_pci_register()
Ddnfb.c136 .line_length = 256,
159 src = (ushort *)(info->screen_base + area->sy * info->fix.line_length + in dnfb_copyarea()
161 dest = area->dy * (info->fix.line_length >> 1) + (area->dx >> 4); in dnfb_copyarea()
164 y_delta = (info->fix.line_length * 8) - area->sx - area->width; in dnfb_copyarea()
174 y_delta = -((info->fix.line_length * 8) - area->sx - area->width); in dnfb_copyarea()
Dau1100fb.c168 info->fix.line_length = info->var.xres_virtual / in au1100fb_setmode()
179 info->fix.line_length = info->var.xres_virtual << 1; /* depth=16 */ in au1100fb_setmode()
184 info->fix.line_length = info->var.xres_virtual / 8; in au1100fb_setmode()
187 info->screen_size = info->fix.line_length * info->var.yres_virtual; in au1100fb_setmode()
205 (info->fix.line_length * in au1100fb_setmode()
212 words = info->fix.line_length / sizeof(u32); in au1100fb_setmode()
321 dmaaddr += (fbi->fix.line_length * dy); in au1100fb_fb_pan_display()
328 dmaaddr += (fbi->fix.line_length * dy); in au1100fb_fb_pan_display()
Dcirrusfb.c400 u_short line_length);
405 u_short line_length, u_char blitmode);
677 info->fix.line_length = var->xres_virtual / 8; in cirrusfb_set_par_foo()
682 info->fix.line_length = var->xres_virtual; in cirrusfb_set_par_foo()
688 info->fix.line_length = var->xres_virtual * in cirrusfb_set_par_foo()
1204 pitch = info->fix.line_length >> 3; in cirrusfb_set_par_foo()
1328 base = var->yoffset * info->fix.line_length + xoffset; in cirrusfb_pan_display()
1766 info->fix.line_length, 0x40); in cirrusfb_fillrect()
1806 info->fix.line_length); in cirrusfb_copyarea()
1844 info->fix.line_length, 0x40); in cirrusfb_imageblit()
[all …]
Dpvr2fb.c358 unsigned long line_length; in pvr2fb_set_par() local
425 line_length = get_line_length(var->xres_virtual, var->bits_per_pixel); in pvr2fb_set_par()
426 par->disp_start = info->fix.smem_start + (line_length * var->yoffset) * line_length; in pvr2fb_set_par()
427 info->fix.line_length = line_length; in pvr2fb_set_par()
435 unsigned long line_length; in pvr2fb_check_var() local
527 line_length = get_line_length(var->xres_virtual, var->bits_per_pixel); in pvr2fb_check_var()
528 if (line_length * var->yres_virtual > info->fix.smem_len) in pvr2fb_check_var()
566 diw_modulo += info->fix.line_length / 4; in pvr2_init_display()
D68328fb.c135 u_long line_length; in mc68x328fb_check_var() local
180 line_length = in mc68x328fb_check_var()
182 if (line_length * var->yres_virtual > videomemorysize) in mc68x328fb_check_var()
267 info->fix.line_length = get_line_length(info->var.xres_virtual, in mc68x328fb_set_par()
444 fb_info.fix.line_length = in mc68x328fb_init()
Dvt8623fb.c152 dst1 = info->screen_base + (image->dy * info->fix.line_length) in vt8623fb_iplan_imageblit()
164 dst1 += info->fix.line_length; in vt8623fb_iplan_imageblit()
176 dst1 = info->screen_base + (rect->dy * info->fix.line_length) in vt8623fb_iplan_fillrect()
184 dst1 += info->fix.line_length; in vt8623fb_iplan_fillrect()
208 dst1 = info->screen_base + (image->dy * info->fix.line_length) in vt8623fb_cfb4_imageblit()
220 dst1 += info->fix.line_length; in vt8623fb_cfb4_imageblit()
386 info->fix.line_length = (info->var.xres_virtual * bpp) / 8; in vt8623fb_set_par()
401 screen_size = info->var.yres_virtual * info->fix.line_length; in vt8623fb_set_par()
404 info->fix.line_length = 0; in vt8623fb_set_par()
625 offset = (var->yoffset * info->fix.line_length) + in vt8623fb_pan_display()
Dhitfb.c165 fb_writew((yoffset*info->fix.line_length)>>10, HD64461_LCDCBAR); in hitfb_pan_display()
294 info->fix.line_length = info->var.xres; in hitfb_set_par()
299 info->fix.line_length = info->var.xres*2; in hitfb_set_par()
305 fb_writew(info->fix.line_length, HD64461_LCDCLOR); in hitfb_set_par()
355 hitfb_fix.line_length = lcdclor; in hitfb_probe()
Dvesafb.c73 offset = (var->yoffset * info->fix.line_length + var->xoffset) / 4; in vesafb_pan_display()
267 vesafb_fix.line_length = screen_info.lfb_linelength; in vesafb_probe()
274 size_vmode = vesafb_defined.yres * vesafb_fix.line_length; in vesafb_probe()
329 …d.xres, vesafb_defined.yres, vesafb_defined.bits_per_pixel, vesafb_fix.line_length, screen_info.pa… in vesafb_probe()
370 vesafb_defined.yres_virtual = vesafb_fix.smem_len / vesafb_fix.line_length; in vesafb_probe()
Dxen-fbfront.c196 y1 = beg / fb_info->fix.line_length; in xenfb_deferred_io()
197 y2 = end / fb_info->fix.line_length; in xenfb_deferred_io()
301 var->xres <= info->fix.line_length / (XENFB_DEPTH / 8) && in xenfb_check_var()
321 xenfb_info->resize.stride = info->fix.line_length; in xenfb_set_par()
449 fb_info->fix.line_length = fb_info->var.xres * XENFB_DEPTH / 8; in xenfb_probe()
569 info->page->line_length = fb_info->fix.line_length; in xenfb_init_shared_page()
Darkfb.c185 dst1 = info->screen_base + (image->dy * info->fix.line_length) in arkfb_iplan_imageblit()
197 dst1 += info->fix.line_length; in arkfb_iplan_imageblit()
210 dst1 = info->screen_base + (rect->dy * info->fix.line_length) in arkfb_iplan_fillrect()
218 dst1 += info->fix.line_length; in arkfb_iplan_fillrect()
243 dst1 = info->screen_base + (image->dy * info->fix.line_length) in arkfb_cfb4_imageblit()
255 dst1 += info->fix.line_length; in arkfb_cfb4_imageblit()
626 info->fix.line_length = (info->var.xres_virtual * bpp) / 8; in arkfb_set_par()
636 screen_size = info->var.yres_virtual * info->fix.line_length; in arkfb_set_par()
639 info->fix.line_length = 0; in arkfb_set_par()
913 offset = (var->yoffset * info->fix.line_length) + in arkfb_pan_display()
Dvfb.c119 u_long line_length; in vfb_check_var() local
164 line_length = in vfb_check_var()
166 if (line_length * var->yres_virtual > videomemorysize) in vfb_check_var()
256 info->fix.line_length = get_line_length(info->var.xres_virtual, in vfb_set_par()
/linux-5.19.10/arch/microblaze/kernel/cpu/
Dcache.c104 #define CACHE_ALL_LOOP(cache_size, line_length, op) \ argument
106 unsigned int len = cache_size - line_length; \
107 int step = -line_length; \
125 #define CACHE_RANGE_LOOP_2(start, end, line_length, op) \ argument
127 int step = -line_length; \
128 int align = ~(line_length - 1); \
130 end = ((end & align) == end) ? end - line_length : end & align; \
142 #define CACHE_RANGE_LOOP_1(start, end, line_length, op) \ argument
145 unsigned int align = ~(line_length - 1); \
146 end = ((end & align) == end) ? end - line_length : end & align; \
[all …]
/linux-5.19.10/drivers/video/fbdev/i810/
Di810_accel.c321 dest = info->fix.smem_start + (dy * info->fix.line_length) + dx; in i810fb_fillrect()
322 color_blit(width, height, info->fix.line_length, dest, rop, color, in i810fb_fillrect()
353 pitch = info->fix.line_length; in i810fb_copyarea()
356 pitch = (-(info->fix.line_length)) & 0xFFFF; in i810fb_copyarea()
360 src = info->fix.smem_start + (sy * info->fix.line_length) + sx; in i810fb_copyarea()
361 dest = info->fix.smem_start + (dy * info->fix.line_length) + dx; in i810fb_copyarea()
390 dst = info->fix.smem_start + (image->dy * info->fix.line_length) + in i810fb_imageblit()
399 image->height, info->fix.line_length, in i810fb_imageblit()
/linux-5.19.10/drivers/video/fbdev/core/
Dsysimgblt.c100 dst1 += p->fix.line_length; in color_imageblit()
102 dst2 += p->fix.line_length; in color_imageblit()
117 u32 val, pitch = p->fix.line_length; in slow_imageblit()
283 dst1 += p->fix.line_length; in fast_imageblit()
299 bitstart = (dy * p->fix.line_length * 8) + (dx * bpp); in sys_imageblit()
301 pitch_index = (p->fix.line_length & (bpl - 1)) * 8; in sys_imageblit()
Dcfbimgblt.c126 dst1 += p->fix.line_length; in color_imageblit()
128 dst2 += p->fix.line_length; in color_imageblit()
145 u32 val, pitch = p->fix.line_length; in slow_imageblit()
313 dst1 += p->fix.line_length; in fast_imageblit()
329 bitstart = (dy * p->fix.line_length * 8) + (dx * bpp); in cfb_imageblit()
331 pitch_index = (p->fix.line_length & (bpl - 1)) * 8; in cfb_imageblit()
Dsysfillrect.c255 dst_idx += rect->dy*p->fix.line_length*8+rect->dx*bpp; in sys_fillrect()
282 dst_idx += p->fix.line_length*8; in sys_fillrect()
316 dst_idx += p->fix.line_length*8; in sys_fillrect()
/linux-5.19.10/drivers/staging/sm750fb/
Dsm750.c179 pitch = info->fix.line_length; in lynxfb_ops_fillrect()
217 pitch = info->fix.line_length; in lynxfb_ops_copyarea()
251 pitch = info->fix.line_length; in lynxfb_ops_imageblit()
364 unsigned int line_length; in lynxfb_ops_set_par() local
377 line_length = var->xres_virtual * var->bits_per_pixel / 8; in lynxfb_ops_set_par()
378 line_length = ALIGN(line_length, crtc->line_pad); in lynxfb_ops_set_par()
379 fix->line_length = line_length; in lynxfb_ops_set_par()
380 pr_info("fix->line_length = %d\n", fix->line_length); in lynxfb_ops_set_par()
701 int ret, line_length; in lynxfb_set_fbinfo() local
800 line_length = ALIGN((var->xres_virtual * var->bits_per_pixel / 8), in lynxfb_set_fbinfo()
[all …]
/linux-5.19.10/drivers/gpu/drm/via/
Dvia_dmablit.c122 line_len = xfer->line_length; in via_map_blit_for_device()
587 if (xfer->num_lines <= 0 || xfer->line_length <= 0) { in via_build_sg_info()
599 if ((xfer->mem_stride - xfer->line_length) > 2*PAGE_SIZE) { in via_build_sg_info()
601 "Length: %d\n", xfer->mem_stride, xfer->line_length); in via_build_sg_info()
605 if ((xfer->mem_stride == xfer->line_length) && in via_build_sg_info()
606 (xfer->fb_stride == xfer->line_length)) { in via_build_sg_info()
608 xfer->line_length = xfer->mem_stride; in via_build_sg_info()
628 if (xfer->mem_stride < xfer->line_length || in via_build_sg_info()
629 abs(xfer->fb_stride) < xfer->line_length) { in via_build_sg_info()
/linux-5.19.10/drivers/media/platform/ti/davinci/
Dvpbe_osd.c147 (fb_base_phys & ~0x1F) - lconfig->line_length, in _osd_dm6446_vid0_pingpong()
150 (fb_base_phys & ~0x1F) + lconfig->line_length, in _osd_dm6446_vid0_pingpong()
524 !cfg->line_length || in osd_enable_layer()
623 cbcr_offset_32 = win->lconfig.line_length * in _osd_start_layer()
876 if (!lconfig->line_length || !lconfig->xsize || !lconfig->ysize) { in try_layer_config()
882 lconfig->line_length = ((lconfig->line_length + 31) / 32) * 32; in try_layer_config()
883 lconfig->line_length = in try_layer_config()
884 min(lconfig->line_length, (unsigned)MAX_LINE_LENGTH); in try_layer_config()
1003 osd_write(sd, lconfig->line_length >> 5, OSD_OSDWIN0OFST); in _osd_set_layer_config()
1020 osd_write(sd, lconfig->line_length >> 5, OSD_VIDWIN0OFST); in _osd_set_layer_config()
[all …]

1234567