Home
last modified time | relevance | path

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

1234567

/openbmc/linux/drivers/staging/fbtft/
H A 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()
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()
256 i += line_length; in write_vmem()
269 i = y_start * line_length; in write_vmem()
283 i = y_start * line_length; in write_vmem()
285 for (x = 0; x < line_length; x++) { in write_vmem()
[all …]
/openbmc/u-boot/drivers/video/
H A Dconsole_rotate.c55 line += vid_priv->line_length; in console_set_row_1()
77 src += vid_priv->line_length; in console_move_rows_1()
78 dst += vid_priv->line_length; in console_move_rows_1()
138 line += vid_priv->line_length; in console_putc_xy_1()
200 vid_priv->line_length; in console_move_rows_2()
202 vid_priv->line_length; in console_move_rows_2()
220 vid_priv->line_length + in console_putc_xy_2()
267 line -= vid_priv->line_length; in console_putc_xy_2()
313 line += vid_priv->line_length; in console_set_row_3()
333 src += vid_priv->line_length; in console_move_rows_3()
[all …]
H A Dconsole_normal.c23 line = vid_priv->fb + row * VIDEO_FONT_HEIGHT * vid_priv->line_length; in console_normal_set_row()
66 dst = vid_priv->fb + rowdst * VIDEO_FONT_HEIGHT * vid_priv->line_length; in console_normal_move_rows()
67 src = vid_priv->fb + rowsrc * VIDEO_FONT_HEIGHT * vid_priv->line_length; in console_normal_move_rows()
68 memmove(dst, src, VIDEO_FONT_HEIGHT * vid_priv->line_length * count); in console_normal_move_rows()
80 void *line = vid_priv->fb + y * vid_priv->line_length + in console_normal_putc_xy()
129 line += vid_priv->line_length; in console_normal_putc_xy()
H A Dconsole_truetype.c129 int pixels = priv->font_size * vid_priv->line_length; in console_truetype_set_row()
132 line = vid_priv->fb + row * priv->font_size * vid_priv->line_length; in console_truetype_set_row()
177 dst = vid_priv->fb + rowdst * priv->font_size * vid_priv->line_length; in console_truetype_move_rows()
178 src = vid_priv->fb + rowsrc * priv->font_size * vid_priv->line_length; in console_truetype_move_rows()
179 memmove(dst, src, priv->font_size * vid_priv->line_length * count); in console_truetype_move_rows()
254 line = vid_priv->fb + y * vid_priv->line_length + in console_truetype_putc_xy()
258 line += linenum * vid_priv->line_length; in console_truetype_putc_xy()
295 line += vid_priv->line_length; in console_truetype_putc_xy()
324 line = vid_priv->fb + ystart * vid_priv->line_length; in console_truetype_erase()
358 line += vid_priv->line_length; in console_truetype_erase()
H A Dvideo_bmp.c69 fb -= (width * 2 + priv->line_length); in video_display_rle8_bitmap()
81 * priv->line_length + (x + x_off) * 2); in video_display_rle8_bitmap()
264 (y + height - 1) * priv->line_length + x * bpix / 8); in video_bmp_display()
302 fb -= byte_width + priv->line_length; in video_bmp_display()
314 fb -= width * 2 + priv->line_length; in video_bmp_display()
336 fb -= priv->line_length + width * (bpix / 8); in video_bmp_display()
350 fb -= priv->line_length + width * (bpix / 8); in video_bmp_display()
H A Dmxc_ipuv3_fb.c124 fix->line_length = var->xres_virtual * var->bits_per_pixel / 8; in mxcfb_set_fix()
186 fbi->fix.line_length, in setup_disp_channel2()
189 (fbi->fix.line_length * fbi->var.yres)); in setup_disp_channel2()
194 fbi->fix.line_length, in setup_disp_channel2()
196 (fbi->fix.line_length * fbi->var.yres), in setup_disp_channel2()
222 mem_len = fbi->var.yres_virtual * fbi->fix.line_length; in mxcfb_set_par()
399 if (fbi->fix.smem_len < fbi->var.yres_virtual * fbi->fix.line_length) { in mxcfb_map_video_memory()
401 fbi->fix.line_length; in mxcfb_map_video_memory()
533 fbi->fix.line_length = fbi->var.xres * (fbi->var.bits_per_pixel / 8); in mxcfb_probe()
534 fbi->fix.smem_len = fbi->var.yres_virtual * fbi->fix.line_length; in mxcfb_probe()
H A Dam335x-fb.c106 int lcd_get_size(int *line_length) in lcd_get_size() argument
108 *line_length = (panel_info.vl_col * NBITS(panel_info.vl_bpix)) / 8; in lcd_get_size()
109 return *line_length * panel_info.vl_row + 0x20; in lcd_get_size()
/openbmc/linux/drivers/media/platform/ti/omap/
H A Domap_vout_vrfb.c353 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()
370 cleft + crop->top * temp_ps + (line_length * in omap_vout_calculate_vrfb_offset()
385 (cleft / vr_ps) * ps + (line_length * in omap_vout_calculate_vrfb_offset()
394 *cropped_offset = offset + line_length * in omap_vout_calculate_vrfb_offset()
397 *cropped_offset = offset + line_length * in omap_vout_calculate_vrfb_offset()
405 *cropped_offset = (line_length * ps) * in omap_vout_calculate_vrfb_offset()
408 *cropped_offset = (line_length * ps) * in omap_vout_calculate_vrfb_offset()
[all …]
/openbmc/linux/drivers/video/fbdev/
H A Dsunxvr500.c249 unsigned int line_length; in e3d_pci_register() local
332 line_length = (readl(ep->ramdac + RAMDAC_VID_CFG) >> 16) & 0xff; in e3d_pci_register()
333 line_length = 1 << line_length; in e3d_pci_register()
337 info->fix.line_length = line_length; in e3d_pci_register()
340 info->fix.line_length = line_length * 2; in e3d_pci_register()
343 info->fix.line_length = line_length * 3; in e3d_pci_register()
346 info->fix.line_length = line_length * 4; in e3d_pci_register()
349 ep->fb_size = info->fix.line_length * ep->height; in e3d_pci_register()
H A Dtgafb.c648 line_length = info->fix.line_length;
729 pos += line_length;
758 pos += line_length;
807 pos += line_length;
858 line_length = info->fix.line_length;
879 pos += line_length;
944 line_length = info->fix.line_length;
1019 pos += line_length;
1173 yincr = line_length;
1277 line_length = info->fix.line_length;
[all …]
H A Dvga16fb.c95 .line_length = 640 / 8,
249 info->fix.line_length = info->var.xres_virtual / 4; in vga16fb_update_fix()
257 info->fix.line_length = info->var.xres_virtual; in vga16fb_update_fix()
925 line_ofs = info->fix.line_length - width; in vga16fb_fillrect()
1075 line_ofs = info->fix.line_length - width; in vga16fb_copyarea()
1096 (dy + height - 1) * info->fix.line_length; in vga16fb_copyarea()
1098 (sy + height - 1) * info->fix.line_length; in vga16fb_copyarea()
1168 image->dy * info->fix.line_length; in vga_imageblit_expand()
1194 where += info->fix.line_length; in vga_imageblit_expand()
1216 where += info->fix.line_length; in vga_imageblit_expand()
[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.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()
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);
1205 pitch = info->fix.line_length >> 3; in cirrusfb_set_par_foo()
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()
1852 info->fix.line_length, op); in cirrusfb_imageblit()
2660 u_short line_length) in cirrusfb_BitBLT() argument
2678 nsrc = (cury * line_length) + curx; in cirrusfb_BitBLT()
2679 ndest = (desty * line_length) + destx; in cirrusfb_BitBLT()
2684 nsrc += nheight * line_length + nwidth; in cirrusfb_BitBLT()
[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 D68328fb.c133 u_long line_length; in mc68x328fb_check_var() local
178 line_length = in mc68x328fb_check_var()
180 if (line_length * var->yres_virtual > videomemorysize) in mc68x328fb_check_var()
265 info->fix.line_length = get_line_length(info->var.xres_virtual, in mc68x328fb_set_par()
442 fb_info.fix.line_length = in mc68x328fb_init()
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()
402 screen_size = info->var.yres_virtual * info->fix.line_length; in vt8623fb_set_par()
405 info->fix.line_length = 0; in vt8623fb_set_par()
626 offset = (var->yoffset * info->fix.line_length) + in vt8623fb_pan_display()
H A Dvesafb.c76 offset = (var->yoffset * info->fix.line_length + var->xoffset) / 4; in vesafb_pan_display()
269 vesafb_fix.line_length = si->lfb_linelength; in vesafb_probe()
276 size_vmode = vesafb_defined.yres * vesafb_fix.line_length; in vesafb_probe()
326 vesafb_fix.line_length, si->pages); in vesafb_probe()
369 vesafb_defined.yres_virtual = vesafb_fix.smem_len / vesafb_fix.line_length; in vesafb_probe()
/openbmc/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 …]
/openbmc/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()
/openbmc/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()
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()
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()
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()
/openbmc/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()
703 int ret, line_length; in lynxfb_set_fbinfo() local
809 info->screen_size = line_length * var->yres_virtual; in lynxfb_set_fbinfo()
[all …]
/openbmc/u-boot/common/
H A Dlcd.c65 int line_length; in lcd_sync() local
69 (ulong)(lcd_base + lcd_get_size(&line_length))); in lcd_sync()
142 __weak int lcd_get_size(int *line_length) in lcd_get_size() argument
144 *line_length = (panel_info.vl_col * NBITS(panel_info.vl_bpix)) / 8; in lcd_get_size()
145 return *line_length * panel_info.vl_row; in lcd_get_size()
287 int line_length; in lcd_setmem() local
292 size = lcd_get_size(&line_length); in lcd_setmem()

1234567