Home
last modified time | relevance | path

Searched refs:fix (Results 1 – 25 of 193) sorted by relevance

12345678

/drivers/video/
Dneofb.c232 if (info->fix.accel == FB_ACCEL_NEOMAGIC_NM2200 || in neoCalcVCLK()
233 info->fix.accel == FB_ACCEL_NEOMAGIC_NM2230 || in neoCalcVCLK()
234 info->fix.accel == FB_ACCEL_NEOMAGIC_NM2360 || in neoCalcVCLK()
235 info->fix.accel == FB_ACCEL_NEOMAGIC_NM2380) { in neoCalcVCLK()
692 vramlen = info->fix.smem_len; in neofb_check_var()
974 switch (info->fix.accel) { in neofb_set_par()
1022 info->fix.visual = FB_VISUAL_PSEUDOCOLOR; in neofb_set_par()
1026 info->fix.visual = FB_VISUAL_TRUECOLOR; in neofb_set_par()
1041 info->fix.visual = FB_VISUAL_TRUECOLOR; in neofb_set_par()
1065 switch (info->fix.accel) { in neofb_set_par()
[all …]
Depson1355fb.c173 switch (info->fix.visual) { in epson1355fb_setcolreg()
220 start = (info->fix.line_length >> 1) * var->yoffset; in epson1355fb_pan_display()
398 if (p >= info->fix.smem_len) in epson1355fb_read()
400 if (count >= info->fix.smem_len) in epson1355fb_read()
401 count = info->fix.smem_len; in epson1355fb_read()
402 if (count + p > info->fix.smem_len) in epson1355fb_read()
403 count = info->fix.smem_len - p; in epson1355fb_read()
425 if (p > info->fix.smem_len) in epson1355fb_write()
427 if (count >= info->fix.smem_len) in epson1355fb_write()
428 count = info->fix.smem_len; in epson1355fb_write()
[all …]
Dstifb.c152 #define READ_BYTE(fb,reg) gsc_readb((fb)->info.fix.mmio_start + (reg))
153 #define READ_WORD(fb,reg) gsc_readl((fb)->info.fix.mmio_start + (reg))
159 # define WRITE_BYTE(value,fb,reg) gsc_writeb((value),(fb)->info.fix.mmio_start + (reg))
160 # define WRITE_WORD(value,fb,reg) gsc_writel((value),(fb)->info.fix.mmio_start + (reg))
168 gsc_writeb((value),(fb)->info.fix.mmio_start + (reg)); } while (0)
172 gsc_writel((value),(fb)->info.fix.mmio_start + (reg)); } while (0)
523 memset(fb->info.screen_base + y * fb->info.fix.line_length, in rattlerSetupPlanes()
946 if (fb->info.fix.visual == FB_VISUAL_DIRECTCOLOR) { in stifb_setcolreg()
1083 struct fb_fix_screeninfo *fix; in stifb_init_fb() local
1100 fix = &info->fix; in stifb_init_fb()
[all …]
Datmel_lcdfb.c255 struct fb_fix_screeninfo *fix = &info->fix; in atmel_lcdfb_update_dma() local
258 dma_addr = (fix->smem_start + var->yoffset * fix->line_length in atmel_lcdfb_update_dma()
273 dma_free_writecombine(info->device, info->fix.smem_len, in atmel_lcdfb_free_video_memory()
274 info->screen_base, info->fix.smem_start); in atmel_lcdfb_free_video_memory()
292 info->fix.smem_len = max(smem_len, sinfo->smem_len); in atmel_lcdfb_alloc_video_memory()
294 info->screen_base = dma_alloc_writecombine(info->device, info->fix.smem_len, in atmel_lcdfb_alloc_video_memory()
295 (dma_addr_t *)&info->fix.smem_start, GFP_KERNEL); in atmel_lcdfb_alloc_video_memory()
301 memset(info->screen_base, 0, info->fix.smem_len); in atmel_lcdfb_alloc_video_memory()
388 if (info->fix.smem_len) { in atmel_lcdfb_check_var()
391 if (smem_len > info->fix.smem_len) in atmel_lcdfb_check_var()
[all …]
Dpmag-aa-fb.c226 static int aafb_get_fix(struct fb_fix_screeninfo *fix, int con, in aafb_get_fix() argument
231 memset(fix, 0, sizeof(struct fb_fix_screeninfo)); in aafb_get_fix()
232 strcpy(fix->id, "PMAG-AA"); in aafb_get_fix()
233 fix->smem_start = ip->fb_start; in aafb_get_fix()
234 fix->smem_len = ip->fb_size; in aafb_get_fix()
235 fix->type = FB_TYPE_PACKED_PIXELS; in aafb_get_fix()
236 fix->ypanstep = 1; in aafb_get_fix()
237 fix->ywrapstep = 1; in aafb_get_fix()
238 fix->visual = FB_VISUAL_MONO10; in aafb_get_fix()
239 fix->line_length = 1280; in aafb_get_fix()
[all …]
Dvalkyriefb.c123 static void valkyrie_par_to_fix(struct fb_par_valkyrie *par, struct fb_fix_screeninfo *fix);
124 static void valkyrie_init_fix(struct fb_fix_screeninfo *fix, struct fb_info_valkyrie *p);
149 valkyrie_par_to_fix(par, &info->fix); in valkyriefb_set_par()
387 valkyrie_init_fix(&p->info.fix, p); in valkyriefb_init()
517 static void valkyrie_init_fix(struct fb_fix_screeninfo *fix, struct fb_info_valkyrie *p) in valkyrie_init_fix() argument
519 memset(fix, 0, sizeof(*fix)); in valkyrie_init_fix()
520 strcpy(fix->id, "valkyrie"); in valkyrie_init_fix()
521 fix->mmio_start = p->valkyrie_regs_phys; in valkyrie_init_fix()
522 fix->mmio_len = sizeof(struct valkyrie_regs); in valkyrie_init_fix()
523 fix->type = FB_TYPE_PACKED_PIXELS; in valkyrie_init_fix()
[all …]
Dbw2.c167 info->fix.smem_start, info->fix.smem_len, in bw2_mmap()
175 FBTYPE_SUN2BW, 1, info->fix.smem_len); in bw2_ioctl()
184 strlcpy(info->fix.id, "bwtwo", sizeof(info->fix.id)); in bw2_init_fix()
186 info->fix.type = FB_TYPE_PACKED_PIXELS; in bw2_init_fix()
187 info->fix.visual = FB_VISUAL_MONO01; in bw2_init_fix()
189 info->fix.line_length = linebytes; in bw2_init_fix()
191 info->fix.accel = FB_ACCEL_SUN_BWTWO; in bw2_init_fix()
292 info->fix.smem_start = op->resource[0].start; in bw2_probe()
315 info->fix.smem_len = PAGE_ALIGN(linebytes * info->var.yres); in bw2_probe()
321 info->fix.smem_len, "bw2 ram"); in bw2_probe()
[all …]
Dp9100.c224 info->fix.smem_start, info->fix.smem_len, in p9100_mmap()
233 FBTYPE_SUN3COLOR, 8, info->fix.smem_len); in p9100_ioctl()
242 strlcpy(info->fix.id, dp->name, sizeof(info->fix.id)); in p9100_init_fix()
244 info->fix.type = FB_TYPE_PACKED_PIXELS; in p9100_init_fix()
245 info->fix.visual = FB_VISUAL_PSEUDOCOLOR; in p9100_init_fix()
247 info->fix.line_length = linebytes; in p9100_init_fix()
249 info->fix.accel = FB_ACCEL_SUN_CGTHREE; in p9100_init_fix()
269 info->fix.smem_start = op->resource[2].start; in p9100_probe()
278 info->fix.smem_len = PAGE_ALIGN(linebytes * info->var.yres); in p9100_probe()
288 info->fix.smem_len, "p9100 ram"); in p9100_probe()
[all …]
Dsunxvr2500.c86 strlcpy(info->fix.id, "s3d", sizeof(info->fix.id)); in s3d_set_fbinfo()
87 info->fix.smem_start = sp->fb_base_phys; in s3d_set_fbinfo()
88 info->fix.smem_len = sp->fb_size; in s3d_set_fbinfo()
89 info->fix.type = FB_TYPE_PACKED_PIXELS; in s3d_set_fbinfo()
91 info->fix.visual = FB_VISUAL_TRUECOLOR; in s3d_set_fbinfo()
93 info->fix.visual = FB_VISUAL_PSEUDOCOLOR; in s3d_set_fbinfo()
169 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()
[all …]
Dvga16fb.c222 info->fix.type = FB_TYPE_PACKED_PIXELS; in vga16fb_update_fix()
223 info->fix.line_length = info->var.xres_virtual / 2; in vga16fb_update_fix()
225 info->fix.type = FB_TYPE_VGA_PLANES; in vga16fb_update_fix()
226 info->fix.type_aux = FB_AUX_VGA_PLANES_VGA4; in vga16fb_update_fix()
227 info->fix.line_length = info->var.xres_virtual / 8; in vga16fb_update_fix()
230 info->fix.type = FB_TYPE_TEXT; in vga16fb_update_fix()
231 info->fix.type_aux = FB_AUX_TEXT_CGA; in vga16fb_update_fix()
232 info->fix.line_length = info->var.xres_virtual / 4; in vga16fb_update_fix()
235 info->fix.type = FB_TYPE_VGA_PLANES; in vga16fb_update_fix()
236 info->fix.type_aux = FB_AUX_VGA_PLANES_CFB8; in vga16fb_update_fix()
[all …]
Dvt8500lcdfb.c69 info->fix.visual = FB_VISUAL_PSEUDOCOLOR; in vt8500lcd_set_par()
70 info->fix.line_length = info->var.xres_virtual / in vt8500lcd_set_par()
103 info->fix.visual = FB_VISUAL_TRUECOLOR; in vt8500lcd_set_par()
104 info->fix.line_length = info->var.bits_per_pixel > 16 ? in vt8500lcd_set_par()
156 switch (fbi->fb.fix.visual) { in vt8500lcd_setcolreg()
207 unsigned pixlen = info->fix.line_length / info->var.xres_virtual; in vt8500lcd_pan_display()
209 + info->fix.line_length * var->yoffset; in vt8500lcd_pan_display()
233 if (info->fix.visual == FB_VISUAL_PSEUDOCOLOR || in vt8500lcd_blank()
234 info->fix.visual == FB_VISUAL_STATIC_PSEUDOCOLOR) in vt8500lcd_blank()
238 if (info->fix.visual == FB_VISUAL_PSEUDOCOLOR || in vt8500lcd_blank()
[all …]
Dwm8505fb.c59 writel(fbi->fb.fix.smem_start, fbi->regbase + WMT_GOVR_FBADDR); in wm8505fb_init_hw()
60 writel(fbi->fb.fix.smem_start, fbi->regbase + WMT_GOVR_FBADDR1); in wm8505fb_init_hw()
128 info->fix.visual = FB_VISUAL_TRUECOLOR; in wm8505fb_set_par()
129 info->fix.line_length = info->var.xres_virtual << 2; in wm8505fb_set_par()
188 switch (fbi->fb.fix.visual) { in wm8505fb_setcolreg()
265 strcpy(fbi->fb.fix.id, DRIVER_NAME); in wm8505fb_probe()
267 fbi->fb.fix.type = FB_TYPE_PACKED_PIXELS; in wm8505fb_probe()
268 fbi->fb.fix.xpanstep = 1; in wm8505fb_probe()
269 fbi->fb.fix.ypanstep = 1; in wm8505fb_probe()
270 fbi->fb.fix.ywrapstep = 0; in wm8505fb_probe()
[all …]
Dtcx.c136 for (pend = p + info->fix.smem_len; p < pend; p++) { in __tcx_set_control_plane()
305 info->fix.smem_start, info->fix.smem_len, in tcx_mmap()
317 info->fix.smem_len); in tcx_ioctl()
335 strlcpy(info->fix.id, tcx_name, sizeof(info->fix.id)); in tcx_init_fix()
337 info->fix.type = FB_TYPE_PACKED_PIXELS; in tcx_init_fix()
338 info->fix.visual = FB_VISUAL_PSEUDOCOLOR; in tcx_init_fix()
340 info->fix.line_length = linebytes; in tcx_init_fix()
342 info->fix.accel = FB_ACCEL_SUN_TCX; in tcx_init_fix()
359 par->cplane, info->fix.smem_len * sizeof(u32)); in tcx_unmap_regs()
362 info->screen_base, info->fix.smem_len); in tcx_unmap_regs()
[all …]
Datafb.c186 .fix = {
385 int (*encode_fix)(struct fb_fix_screeninfo *fix,
590 static int tt_encode_fix(struct fb_fix_screeninfo *fix, struct atafb_par *par) in tt_encode_fix() argument
594 strcpy(fix->id, "Atari Builtin"); in tt_encode_fix()
595 fix->smem_start = (unsigned long)real_screen_base; in tt_encode_fix()
596 fix->smem_len = screen_len; in tt_encode_fix()
597 fix->type = FB_TYPE_INTERLEAVED_PLANES; in tt_encode_fix()
598 fix->type_aux = 2; in tt_encode_fix()
599 fix->visual = FB_VISUAL_PSEUDOCOLOR; in tt_encode_fix()
602 fix->type = FB_TYPE_PACKED_PIXELS; in tt_encode_fix()
[all …]
Dvt8623fb.c162 dst1 = info->screen_base + (image->dy * info->fix.line_length) in vt8623fb_iplan_imageblit()
174 dst1 += info->fix.line_length; in vt8623fb_iplan_imageblit()
186 dst1 = info->screen_base + (rect->dy * info->fix.line_length) in vt8623fb_iplan_fillrect()
194 dst1 += info->fix.line_length; in vt8623fb_iplan_fillrect()
218 dst1 = info->screen_base + (image->dy * info->fix.line_length) in vt8623fb_cfb4_imageblit()
230 dst1 += info->fix.line_length; in vt8623fb_cfb4_imageblit()
238 if (info->fix.type == FB_TYPE_INTERLEAVED_PLANES) in vt8623fb_imageblit()
250 && (info->fix.type == FB_TYPE_INTERLEAVED_PLANES)) in vt8623fb_fillrect()
390 info->fix.ypanstep = 1; in vt8623fb_set_par()
391 info->fix.line_length = (info->var.xres_virtual * bpp) / 8; in vt8623fb_set_par()
[all …]
Dmxsfb.c387 if (fb_size > fb_info->fix.smem_len) in mxsfb_set_par()
390 fb_info->fix.line_length = line_size; in mxsfb_set_par()
486 writel(fb_info->fix.smem_start + in mxsfb_set_par()
487 fb_info->fix.line_length * fb_info->var.yoffset, in mxsfb_set_par()
510 switch (fb_info->fix.visual) { in mxsfb_setcolreg()
566 offset = fb_info->fix.line_length * var->yoffset; in mxsfb_pan_display()
569 writel(fb_info->fix.smem_start + offset, in mxsfb_pan_display()
655 fb_info->fix.line_length = vmode.xres * (bits_per_pixel >> 3); in mxsfb_restore_mode()
658 fbsize = fb_info->fix.line_length * vmode.yres; in mxsfb_restore_mode()
659 if (pa < fb_info->fix.smem_start) in mxsfb_restore_mode()
[all …]
Ds1d13xxxfb.c168 info->fix.visual = FB_VISUAL_PSEUDOCOLOR; in s1d13xxxfb_setup_pseudocolour()
178 info->fix.visual = FB_VISUAL_TRUECOLOR; in s1d13xxxfb_setup_truecolour()
249 info->fix.line_length = info->var.xres * info->var.bits_per_pixel; in s1d13xxxfb_set_par()
250 info->fix.line_length /= 8; in s1d13xxxfb_set_par()
252 dbg("setting line_length to %d\n", info->fix.line_length); in s1d13xxxfb_set_par()
286 switch (info->fix.visual) { in s1d13xxxfb_setcolreg()
391 start = (info->fix.line_length >> 1) * var->yoffset; in s1d13xxxfb_pan_display()
573 if (info->fix.visual == FB_VISUAL_TRUECOLOR || in s1d13xxxfb_bitblt_solidfill()
574 info->fix.visual == FB_VISUAL_DIRECTCOLOR) { in s1d13xxxfb_bitblt_solidfill()
649 struct fb_fix_screeninfo *fix = &info->fix; in s1d13xxxfb_fetch_hw_state() local
[all …]
Dgrvga.c107 if (info->fix.smem_len) { in grvga_check_var()
108 if ((var->yres_virtual*var->xres_virtual*var->bits_per_pixel/8) > info->fix.smem_len) in grvga_check_var()
170 info->fix.visual = FB_VISUAL_PSEUDOCOLOR; in grvga_set_par()
174 info->fix.visual = FB_VISUAL_TRUECOLOR; in grvga_set_par()
179 info->fix.visual = FB_VISUAL_TRUECOLOR; in grvga_set_par()
189 info->fix.line_length = (info->var.xres_virtual*info->var.bits_per_pixel)/8; in grvga_set_par()
218 if (info->fix.visual == FB_VISUAL_PSEUDOCOLOR) in grvga_setcolreg()
223 else if (info->fix.visual == FB_VISUAL_TRUECOLOR) { in grvga_setcolreg()
243 struct fb_fix_screeninfo *fix = &info->fix; in grvga_pan_display() local
249 base_addr = fix->smem_start + (var->yoffset * fix->line_length); in grvga_pan_display()
[all …]
Dcg3.c231 info->fix.smem_start, info->fix.smem_len, in cg3_mmap()
239 FBTYPE_SUN3COLOR, 8, info->fix.smem_len); in cg3_ioctl()
249 strlcpy(info->fix.id, dp->name, sizeof(info->fix.id)); in cg3_init_fix()
251 info->fix.type = FB_TYPE_PACKED_PIXELS; in cg3_init_fix()
252 info->fix.visual = FB_VISUAL_PSEUDOCOLOR; in cg3_init_fix()
254 info->fix.line_length = linebytes; in cg3_init_fix()
256 info->fix.accel = FB_ACCEL_SUN_CGTHREE; in cg3_init_fix()
365 info->fix.smem_start = op->resource[0].start; in cg3_probe()
379 info->fix.smem_len = PAGE_ALIGN(linebytes * info->var.yres); in cg3_probe()
389 info->fix.smem_len, "cg3 ram"); in cg3_probe()
[all …]
Dfbmem.c89 struct fb_fix_screeninfo *fix) in fb_get_color_depth() argument
93 if (fix->visual == FB_VISUAL_MONO01 || in fb_get_color_depth()
94 fix->visual == FB_VISUAL_MONO10) in fb_get_color_depth()
278 u8 xor = (info->fix.visual == FB_VISUAL_MONO01) ? 0xff : 0; in fb_set_logo()
281 switch (fb_get_color_depth(&info->var, &info->fix)) { in fb_set_logo()
293 if (info->fix.visual == FB_VISUAL_MONO01 || in fb_set_logo()
294 info->fix.visual == FB_VISUAL_MONO10) in fb_set_logo()
544 if (info->fix.visual != FB_VISUAL_TRUECOLOR) in fb_prepare_extra_logos()
592 int depth = fb_get_color_depth(&info->var, &info->fix); in fb_prepare_logo()
601 if (info->fix.visual == FB_VISUAL_DIRECTCOLOR) { in fb_prepare_logo()
[all …]
Dtdfxfb.c509 if (lpitch * var->yres_virtual > info->fix.smem_len) { in tdfxfb_check_var()
510 var->yres_virtual = info->fix.smem_len / lpitch; in tdfxfb_check_var()
705 reg.curspataddr = info->fix.smem_len; in tdfxfb_set_par()
746 info->fix.line_length = reg.stride; in tdfxfb_set_par()
747 info->fix.visual = (info->var.bits_per_pixel == 8) in tdfxfb_set_par()
776 switch (info->fix.visual) { in tdfxfb_setcolreg()
848 u32 addr = var->yoffset * info->fix.line_length; in tdfxfb_pan_display()
868 u32 stride = info->fix.line_length; in tdfxfb_fillrect()
892 if (info->fix.visual == FB_VISUAL_PSEUDOCOLOR) { in tdfxfb_fillrect()
912 u32 stride = info->fix.line_length; in tdfxfb_copyarea()
[all …]
/drivers/video/geode/
Dgx1fb_core.c126 if (gx1_line_delta(var->xres, var->bits_per_pixel) * var->yres > info->fix.smem_len) in gx1fb_check_var()
139 info->fix.visual = FB_VISUAL_TRUECOLOR; in gx1fb_set_par()
141 info->fix.visual = FB_VISUAL_PSEUDOCOLOR; in gx1fb_set_par()
143 info->fix.line_length = gx1_line_delta(info->var.xres, info->var.bits_per_pixel); in gx1fb_set_par()
169 if (info->fix.visual == FB_VISUAL_TRUECOLOR) { in gx1fb_setcolreg()
228 info->fix.smem_start = gx_base + 0x800000; in gx1fb_map_video_memory()
229 info->fix.smem_len = fb_len; in gx1fb_map_video_memory()
230 info->screen_base = ioremap(info->fix.smem_start, info->fix.smem_len); in gx1fb_map_video_memory()
235 info->fix.smem_len / 1024, info->fix.smem_start); in gx1fb_map_video_memory()
283 strcpy(info->fix.id, "GX1"); in gx1fb_init_fbinfo()
[all …]
Dgxfb_core.c165 if (gx_line_delta(var->xres, var->bits_per_pixel) * var->yres > info->fix.smem_len) in gxfb_check_var()
176 info->fix.visual = FB_VISUAL_TRUECOLOR; in gxfb_set_par()
178 info->fix.visual = FB_VISUAL_PSEUDOCOLOR; in gxfb_set_par()
180 info->fix.line_length = gx_line_delta(info->var.xres, info->var.bits_per_pixel); in gxfb_set_par()
204 if (info->fix.visual == FB_VISUAL_TRUECOLOR) { in gxfb_setcolreg()
267 info->fix.smem_start = pci_resource_start(dev, 0); in gxfb_map_video_memory()
268 info->fix.smem_len = vram ? vram : gx_frame_buffer_size(); in gxfb_map_video_memory()
269 info->screen_base = ioremap(info->fix.smem_start, info->fix.smem_len); in gxfb_map_video_memory()
276 write_dc(par, DC_GLIU0_MEM_OFFSET, info->fix.smem_start & 0xFF000000); in gxfb_map_video_memory()
279 info->fix.smem_len / 1024, info->fix.smem_start); in gxfb_map_video_memory()
[all …]
Dlxfb_core.c274 > info->fix.smem_len) in lxfb_check_var()
283 info->fix.visual = FB_VISUAL_TRUECOLOR; in lxfb_set_par()
285 info->fix.visual = FB_VISUAL_PSEUDOCOLOR; in lxfb_set_par()
287 info->fix.line_length = lx_get_pitch(info->var.xres, in lxfb_set_par()
311 if (info->fix.visual == FB_VISUAL_TRUECOLOR) { in lxfb_setcolreg()
370 info->fix.smem_start = pci_resource_start(dev, 0); in lxfb_map_video_memory()
371 info->fix.smem_len = vram ? vram : lx_framebuffer_size(); in lxfb_map_video_memory()
373 info->screen_base = ioremap(info->fix.smem_start, info->fix.smem_len); in lxfb_map_video_memory()
396 write_dc(par, DC_GLIU0_MEM_OFFSET, info->fix.smem_start & 0xFF000000); in lxfb_map_video_memory()
400 info->fix.smem_len / 1024, info->fix.smem_start); in lxfb_map_video_memory()
[all …]
/drivers/staging/sm7xx/
Dsmtcfb.c393 switch (sfb->fb.fix.visual) { in smtc_setcolreg()
464 total_size = info->fix.smem_len; in smtcfb_read()
544 total_size = info->fix.smem_len; in smtcfb_write()
615 sfb->fb.fix.visual = FB_VISUAL_TRUECOLOR; in smtcfb_setmode()
616 sfb->fb.fix.line_length = sfb->fb.var.xres * 4; in smtcfb_setmode()
626 sfb->fb.fix.visual = FB_VISUAL_PSEUDOCOLOR; in smtcfb_setmode()
627 sfb->fb.fix.line_length = sfb->fb.var.xres; in smtcfb_setmode()
636 sfb->fb.fix.visual = FB_VISUAL_TRUECOLOR; in smtcfb_setmode()
637 sfb->fb.fix.line_length = sfb->fb.var.xres * 3; in smtcfb_setmode()
649 sfb->fb.fix.visual = FB_VISUAL_TRUECOLOR; in smtcfb_setmode()
[all …]

12345678