Home
last modified time | relevance | path

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

123456

/linux/drivers/staging/fbtft/
H A Dfb_uc1611.c221 int line_length = par->info->fix.line_length; in write_vmem() local
222 int y_start = offset / line_length; in write_vmem()
223 int y_end = (offset + len - 1) / line_length; in write_vmem()
232 i = y_start * line_length; in write_vmem()
234 for (x = 0; x < line_length; x += 2) { in write_vmem()
245 i = y_start * line_length; in write_vmem()
247 for (x = 0; x < line_length; x++) { in write_vmem()
249 *buf8 |= vmem8[i + line_length] & 0xF0; in write_vmem()
253 i += line_length; in write_vmem()
266 i = y_start * line_length; in write_vmem()
[all …]
/linux/drivers/media/platform/ti/omap/
H A 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/drivers/video/fbdev/
H A Dsunxvr500.c251 unsigned int line_length; in e3d_pci_register() local
334 line_length = (readl(ep->ramdac + RAMDAC_VID_CFG) >> 16) & 0xff; in e3d_pci_register()
335 line_length = 1 << line_length; in e3d_pci_register()
339 info->fix.line_length = line_length; in e3d_pci_register()
342 info->fix.line_length = line_length * 2; in e3d_pci_register()
345 info->fix.line_length = line_length * 3; in e3d_pci_register()
348 info->fix.line_length = line_length * 4; in e3d_pci_register()
351 ep->fb_size = info->fix.line_length * ep->height; in e3d_pci_register()
H A Dtgafb.c279 info->fix.line_length = par->xres * (par->bits_per_pixel >> 3);
636 unsigned long rincr, line_length, shift, pos, is8bpp; local
650 line_length = info->fix.line_length;
688 pos = dy * line_length;
731 pos += line_length;
760 pos += line_length;
779 pos += line_length;
809 pos += line_length;
829 pos += line_length;
850 unsigned long pos, line_length, i, j; local
[all …]
H A Dvga16fb.c95 .line_length = 640 / 8,
238 info->fix.line_length = info->var.xres_virtual / 2; in vga16fb_update_fix()
242 info->fix.line_length = info->var.xres_virtual / 8; in vga16fb_update_fix()
247 info->fix.line_length = info->var.xres_virtual / 4; in vga16fb_update_fix()
252 info->fix.line_length = info->var.xres_virtual / 4; in vga16fb_update_fix()
255 info->fix.line_length = info->var.xres_virtual; in vga16fb_update_fix()
853 where = info->screen_base + dx + rect->dy * info->fix.line_length; in vga_8planes_fillrect()
860 line_ofs = info->fix.line_length - width; in vga_8planes_fillrect()
885 where += info->fix.line_length; in vga_8planes_fillrect()
923 line_ofs = info->fix.line_length - width; in vga16fb_fillrect()
[all …]
H A Dsunxvr2500.c171 info->fix.line_length = sp->width; in s3d_pci_register()
174 info->fix.line_length = sp->width * 2; in s3d_pci_register()
177 info->fix.line_length = sp->width * 3; in s3d_pci_register()
180 info->fix.line_length = sp->width * 4; in s3d_pci_register()
183 sp->fb_size = info->fix.line_length * sp->height; in s3d_pci_register()
H A Ddnfb.c138 .line_length = 256,
161 src = (ushort *)(info->screen_base + area->sy * info->fix.line_length + in dnfb_copyarea()
163 dest = area->dy * (info->fix.line_length >> 1) + (area->dx >> 4); in dnfb_copyarea()
166 y_delta = (info->fix.line_length * 8) - area->sx - area->width; in dnfb_copyarea()
176 y_delta = -((info->fix.line_length * 8) - area->sx - area->width); in dnfb_copyarea()
H A 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()
H A Dcirrusfb.c401 u_short line_length);
406 u_short line_length, u_char blitmode);
678 info->fix.line_length = var->xres_virtual / 8; in cirrusfb_set_par_foo()
683 info->fix.line_length = var->xres_virtual; in cirrusfb_set_par_foo()
689 info->fix.line_length = var->xres_virtual * in cirrusfb_set_par_foo()
1205 pitch = info->fix.line_length >> 3; in cirrusfb_set_par_foo()
1329 base = var->yoffset * info->fix.line_length + xoffset; in cirrusfb_pan_display()
1767 info->fix.line_length, 0x40); in cirrusfb_fillrect()
1807 info->fix.line_length); in cirrusfb_copyarea()
1845 info->fix.line_length, 0x40); in cirrusfb_imageblit()
[all …]
H A Dpvr2fb.c359 unsigned long line_length; in pvr2fb_set_par() local
426 line_length = get_line_length(var->xres_virtual, var->bits_per_pixel); in pvr2fb_set_par()
427 par->disp_start = info->fix.smem_start + (line_length * var->yoffset) * line_length; in pvr2fb_set_par()
428 info->fix.line_length = line_length; in pvr2fb_set_par()
436 unsigned long line_length; in pvr2fb_check_var() local
528 line_length = get_line_length(var->xres_virtual, var->bits_per_pixel); in pvr2fb_check_var()
529 if (line_length * var->yres_virtual > info->fix.smem_len) in pvr2fb_check_var()
567 diw_modulo += info->fix.line_length / 4; in pvr2_init_display()
H A Dvt8623fb.c153 dst1 = info->screen_base + (image->dy * info->fix.line_length) in vt8623fb_iplan_imageblit()
165 dst1 += info->fix.line_length; in vt8623fb_iplan_imageblit()
177 dst1 = info->screen_base + (rect->dy * info->fix.line_length) in vt8623fb_iplan_fillrect()
185 dst1 += info->fix.line_length; in vt8623fb_iplan_fillrect()
209 dst1 = info->screen_base + (image->dy * info->fix.line_length) in vt8623fb_cfb4_imageblit()
221 dst1 += info->fix.line_length; in vt8623fb_cfb4_imageblit()
387 info->fix.line_length = (info->var.xres_virtual * bpp) / 8; in vt8623fb_set_par()
407 screen_size = info->var.yres_virtual * info->fix.line_length; in vt8623fb_set_par()
410 info->fix.line_length = 0; in vt8623fb_set_par()
633 offset = (var->yoffset * info->fix.line_length) + in vt8623fb_pan_display()
H A D68328fb.c132 u_long line_length; in mc68x328fb_check_var() local
177 line_length = in mc68x328fb_check_var()
179 if (line_length * var->yres_virtual > videomemorysize) in mc68x328fb_check_var()
264 info->fix.line_length = get_line_length(info->var.xres_virtual, in mc68x328fb_set_par()
441 fb_info.fix.line_length = in mc68x328fb_init()
H A Dvesafb.c76 offset = (var->yoffset * info->fix.line_length + var->xoffset) / 4; in vesafb_pan_display()
281 vesafb_fix.line_length = si->lfb_linelength; in vesafb_probe()
288 size_vmode = vesafb_defined.yres * vesafb_fix.line_length; in vesafb_probe()
338 vesafb_fix.line_length, si->pages); in vesafb_probe()
381 vesafb_defined.yres_virtual = vesafb_fix.smem_len / vesafb_fix.line_length; in vesafb_probe()
H A 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()
266 var->xres <= info->fix.line_length / (XENFB_DEPTH / 8) && in xenfb_check_var()
286 xenfb_info->resize.stride = info->fix.line_length; in xenfb_set_par()
429 fb_info->fix.line_length = fb_info->var.xres * XENFB_DEPTH / 8; in xenfb_probe()
543 info->page->line_length = fb_info->fix.line_length; in xenfb_init_shared_page()
H A Dhitfb.c181 hitfb_writew((yoffset*info->fix.line_length)>>10, HD64461_LCDCBAR); in hitfb_pan_display()
310 info->fix.line_length = info->var.xres; in hitfb_set_par()
315 info->fix.line_length = info->var.xres*2; in hitfb_set_par()
321 hitfb_writew(info->fix.line_length, HD64461_LCDCLOR); in hitfb_set_par()
373 hitfb_fix.line_length = lcdclor; in hitfb_probe()
H A Darkfb.c186 dst1 = info->screen_base + (image->dy * info->fix.line_length) in arkfb_iplan_imageblit()
198 dst1 += info->fix.line_length; in arkfb_iplan_imageblit()
211 dst1 = info->screen_base + (rect->dy * info->fix.line_length) in arkfb_iplan_fillrect()
219 dst1 += info->fix.line_length; in arkfb_iplan_fillrect()
244 dst1 = info->screen_base + (image->dy * info->fix.line_length) in arkfb_cfb4_imageblit()
256 dst1 += info->fix.line_length; in arkfb_cfb4_imageblit()
619 info->fix.line_length = (info->var.xres_virtual * bpp) / 8; in arkfb_set_par()
634 screen_size = info->var.yres_virtual * info->fix.line_length; in arkfb_set_par()
637 info->fix.line_length = 0; in arkfb_set_par()
913 offset = (var->yoffset * info->fix.line_length) + in arkfb_pan_display()
H A Dvfb.c117 u_long line_length; in vfb_check_var() local
162 line_length = in vfb_check_var()
164 if (line_length * var->yres_virtual > videomemorysize) in vfb_check_var()
254 info->fix.line_length = get_line_length(info->var.xres_virtual, in vfb_set_par()
H A Dtridentfb.c995 int line_length; in tridentfb_check_var() local
1023 line_length = var->xres_virtual * bpp / 8; in tridentfb_check_var()
1028 if (line_length <= 512) in tridentfb_check_var()
1030 else if (line_length <= 1024) in tridentfb_check_var()
1032 else if (line_length <= 2048) in tridentfb_check_var()
1034 else if (line_length <= 4096) in tridentfb_check_var()
1036 else if (line_length <= 8192) in tridentfb_check_var()
1041 line_length = var->xres_virtual * bpp / 8; in tridentfb_check_var()
1045 if (line_length * (var->yres_virtual - var->yres) > (4 << 20)) in tridentfb_check_var()
1046 var->yres_virtual = ((4 << 20) / line_length) + var->yres; in tridentfb_check_var()
[all …]
/linux/arch/microblaze/kernel/cpu/
H A 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/drivers/video/fbdev/i810/
H A 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/drivers/staging/sm750fb/
H A 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()
740 int ret, line_length; in lynxfb_set_fbinfo() local
842 line_length = ALIGN((var->xres_virtual * var->bits_per_pixel / 8), in lynxfb_set_fbinfo()
[all …]
/linux/drivers/video/fbdev/core/
H A 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()
302 bitstart = (dy * p->fix.line_length * 8) + (dx * bpp); in sys_imageblit()
304 pitch_index = (p->fix.line_length & (bpl - 1)) * 8; in sys_imageblit()
H A 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()
332 bitstart = (dy * p->fix.line_length * 8) + (dx * bpp); in cfb_imageblit()
334 pitch_index = (p->fix.line_length & (bpl - 1)) * 8; in cfb_imageblit()
H A Dsysfillrect.c258 dst_idx += rect->dy*p->fix.line_length*8+rect->dx*bpp; in sys_fillrect()
285 dst_idx += p->fix.line_length*8; in sys_fillrect()
319 dst_idx += p->fix.line_length*8; in sys_fillrect()
/linux/drivers/video/fbdev/omap2/omapfb/
H A Domapfb-main.c60 const unsigned line_len = fix->line_length / bytespp; in draw_pixel()
100 DBG("fill_fb %dx%d, line_len %d bytes\n", w, h, fbi->fix.line_length); in fill_fb()
561 fix->line_length = in setup_vrfb_rotation()
565 fix->line_length = in setup_vrfb_rotation()
570 fix->smem_len = var->yres_virtual * fix->line_length; in setup_vrfb_rotation()
607 fix->line_length = in set_fb_fix()
611 fix->line_length = in set_fb_fix()
616 fix->smem_len = var->yres_virtual * fix->line_length; in set_fb_fix()
618 fix->line_length = in set_fb_fix()
765 offset = var->yoffset * fix->line_length + in calc_rotation_offset_dma()
[all …]

123456