Home
last modified time | relevance | path

Searched refs:vmode (Results 1 – 25 of 157) sorted by relevance

1234567

/linux-2.6.39/drivers/video/
Dmacmodes.c141 int vmode; member
183 int vmode; member
221 int mac_vmode_to_var(int vmode, int cmode, struct fb_var_screeninfo *var) in mac_vmode_to_var() argument
226 for (map = mac_modes; map->vmode != -1; map++) in mac_vmode_to_var()
227 if (map->vmode == vmode) { in mac_vmode_to_var()
285 var->vmode = mode->vmode; in mac_vmode_to_var()
303 int mac_var_to_vmode(const struct fb_var_screeninfo *var, int *vmode, in mac_var_to_vmode() argument
321 for (map = mac_modes; map->vmode != -1; map++) { in mac_var_to_vmode()
330 if ((var->vmode & FB_VMODE_MASK) != mode->vmode) in mac_var_to_vmode()
332 *vmode = map->vmode; in mac_var_to_vmode()
[all …]
Dps3fb.c265 static int ps3fb_cmp_mode(const struct fb_videomode *vmode, in ps3fb_cmp_mode() argument
272 if (var->xres > vmode->xres || var->yres > vmode->yres || in ps3fb_cmp_mode()
273 var->pixclock > vmode->pixclock || in ps3fb_cmp_mode()
274 var->hsync_len > vmode->hsync_len || in ps3fb_cmp_mode()
275 var->vsync_len > vmode->vsync_len) in ps3fb_cmp_mode()
279 if ((var->vmode & FB_VMODE_MASK) != vmode->vmode) in ps3fb_cmp_mode()
287 left_margin = max(var->left_margin, vmode->left_margin); in ps3fb_cmp_mode()
288 right_margin = max(var->right_margin, vmode->right_margin); in ps3fb_cmp_mode()
289 upper_margin = max(var->upper_margin, vmode->upper_margin); in ps3fb_cmp_mode()
290 lower_margin = max(var->lower_margin, vmode->lower_margin); in ps3fb_cmp_mode()
[all …]
Dmxsfb.c593 struct fb_videomode vmode; in mxsfb_restore_mode() local
607 vmode.xres = TRANSFER_COUNT_GET_HCOUNT(transfer_count); in mxsfb_restore_mode()
608 vmode.yres = TRANSFER_COUNT_GET_VCOUNT(transfer_count); in mxsfb_restore_mode()
623 vmode.pixclock = KHZ2PICOS(clk_get_rate(host->clk) / 1000U); in mxsfb_restore_mode()
624 vmode.hsync_len = get_hsync_pulse_width(host, vdctrl2); in mxsfb_restore_mode()
625 vmode.left_margin = GET_HOR_WAIT_CNT(vdctrl3) - vmode.hsync_len; in mxsfb_restore_mode()
626 vmode.right_margin = VDCTRL2_GET_HSYNC_PERIOD(vdctrl2) - vmode.hsync_len - in mxsfb_restore_mode()
627 vmode.left_margin - vmode.xres; in mxsfb_restore_mode()
628 vmode.vsync_len = VDCTRL0_GET_VSYNC_PULSE_WIDTH(vdctrl0); in mxsfb_restore_mode()
630 vmode.upper_margin = GET_VERT_WAIT_CNT(vdctrl3) - vmode.vsync_len; in mxsfb_restore_mode()
[all …]
Dplatinumfb.c48 int vmode, cmode; member
137 init = platinum_reg_init[pinfo->vmode-1]; in platinumfb_set_par()
139 if ((pinfo->vmode == VMODE_832_624_75) && (pinfo->cmode > CMODE_8)) in platinumfb_set_par()
148 info->fix.line_length = vmode_attrs[pinfo->vmode-1].hres * (1<<pinfo->cmode) in platinumfb_set_par()
245 init = platinum_reg_init[pinfo->vmode-1]; in set_platinum_clock()
273 int vmode, cmode; in platinum_set_hardware() local
275 vmode = pinfo->vmode; in platinum_set_hardware()
278 init = platinum_reg_init[vmode - 1]; in platinum_set_hardware()
449 int vmode, cmode; in platinum_var_to_par() local
451 if (mac_var_to_vmode(var, &vmode, &cmode) != 0) { in platinum_var_to_par()
[all …]
Dvalkyriefb.c80 int vmode, cmode; member
171 return mac_vmode_to_var(par->vmode, par->cmode, var); in valkyrie_par_to_var()
467 int vmode, cmode; in valkyrie_var_to_par() local
471 if (mac_var_to_vmode(var, &vmode, &cmode) != 0) { in valkyrie_var_to_par()
478 if (vmode < 1 || vmode > VMODE_MAX || !valkyrie_reg_init[vmode-1]) { in valkyrie_var_to_par()
479 printk(KERN_ERR "valkyriefb: vmode %d not valid.\n", vmode); in valkyrie_var_to_par()
493 init = valkyrie_reg_init[vmode-1]; in valkyrie_var_to_par()
496 "cmode %d.\n", vmode, cmode); in valkyrie_var_to_par()
500 if (valkyrie_vram_reqd(vmode, cmode) > p->total_vram) { in valkyrie_var_to_par()
502 "cmode %d.\n", vmode, cmode); in valkyrie_var_to_par()
[all …]
Dbfin_adv7393fb.h69 u16 vmode; member
171 .vmode = FB_VMODE_INTERLACED,
187 .vmode = FB_VMODE_INTERLACED,
203 .vmode = FB_VMODE_INTERLACED,
219 .vmode = FB_VMODE_INTERLACED,
235 .vmode = FB_VMODE_INTERLACED,
251 .vmode = FB_VMODE_INTERLACED,
Dcontrolfb.c60 int vmode, cmode; member
413 int full, sense, vmode, cmode, vyres; in init_control() local
432 vmode = nvram_read_byte(NV_VMODE); in init_control()
433 if (vmode < 1 || vmode > VMODE_MAX || in init_control()
434 control_mac_modes[vmode - 1].m[full] < cmode) { in init_control()
437 vmode = mac_map_monitor_sense(sense); in init_control()
438 if (control_mac_modes[vmode - 1].m[full] < cmode) in init_control()
439 vmode = VMODE_640_480_60; in init_control()
444 vmode=default_vmode; in init_control()
445 if (control_mac_modes[vmode - 1].m[full] < cmode) { in init_control()
[all …]
Dmacmodes.h53 extern int mac_vmode_to_var(int vmode, int cmode,
55 extern int mac_var_to_vmode(const struct fb_var_screeninfo *var, int *vmode,
Dmodedb.c514 var->vmode = mode->vmode; in fb_try_mode()
666 cvt_mode.vmode |= FB_VMODE_INTERLACED; in fb_find_mode()
668 cvt_mode.vmode &= ~FB_VMODE_INTERLACED; in fb_find_mode()
784 mode->vmode = var->vmode & FB_VMODE_MASK; in fb_var_to_videomode()
798 if (var->vmode & FB_VMODE_INTERLACED) in fb_var_to_videomode()
800 if (var->vmode & FB_VMODE_DOUBLE) in fb_var_to_videomode()
829 var->vmode = mode->vmode & FB_VMODE_MASK; in fb_videomode_to_var()
853 mode1->vmode == mode2->vmode); in fb_mode_is_equal()
D68328fb.c78 .vmode = FB_VMODE_NONINTERLACED,
148 if (var->vmode & FB_VMODE_CONUPDATE) { in mc68x328fb_check_var()
149 var->vmode |= FB_VMODE_YWRAP; in mc68x328fb_check_var()
375 if (var->vmode & FB_VMODE_YWRAP) { in mc68x328fb_pan_display()
387 if (var->vmode & FB_VMODE_YWRAP) in mc68x328fb_pan_display()
388 info->var.vmode |= FB_VMODE_YWRAP; in mc68x328fb_pan_display()
390 info->var.vmode &= ~FB_VMODE_YWRAP; in mc68x328fb_pan_display()
Dvfb.c100 .vmode = FB_VMODE_NONINTERLACED,
171 if (var->vmode & FB_VMODE_CONUPDATE) { in vfb_check_var()
172 var->vmode |= FB_VMODE_YWRAP; in vfb_check_var()
392 if (var->vmode & FB_VMODE_YWRAP) { in vfb_pan_display()
404 if (var->vmode & FB_VMODE_YWRAP) in vfb_pan_display()
405 info->var.vmode |= FB_VMODE_YWRAP; in vfb_pan_display()
407 info->var.vmode &= ~FB_VMODE_YWRAP; in vfb_pan_display()
Dpvr2fb.c169 .vmode = FB_VMODE_NONINTERLACED,
374 var->vmode &= FB_VMODE_MASK; in pvr2fb_set_par()
375 if (var->vmode & FB_VMODE_INTERLACED && video_output != VO_VGA) in pvr2fb_set_par()
381 if (var->vmode & FB_VMODE_DOUBLE && video_output == VO_VGA) in pvr2fb_set_par()
462 if (var->vmode & FB_VMODE_YWRAP) { in pvr2fb_check_var()
481 var->vmode |= FB_VMODE_DOUBLE; in pvr2fb_check_var()
485 var->vmode |= FB_VMODE_INTERLACED; in pvr2fb_check_var()
488 var->vmode &= ~FB_VMODE_INTERLACED; in pvr2fb_check_var()
489 var->vmode |= FB_VMODE_NONINTERLACED; in pvr2fb_check_var()
512 if (var->vmode & FB_VMODE_INTERLACED) in pvr2fb_check_var()
Damifb.c725 int vmode; /* vmode */ member
1300 if (par->vmode & FB_VMODE_YWRAP) { in amifb_set_par()
1308 if (par->vmode & FB_VMODE_SMOOTH_XPAN) in amifb_set_par()
1328 if (var->vmode & FB_VMODE_YWRAP) { in amifb_pan_display()
1344 if (var->vmode & FB_VMODE_YWRAP) in amifb_pan_display()
1345 info->var.vmode |= FB_VMODE_YWRAP; in amifb_pan_display()
1347 info->var.vmode &= ~FB_VMODE_YWRAP; in amifb_pan_display()
2602 par->vmode = var->vmode | FB_VMODE_SMOOTH_XPAN; in ami_decode_var()
2603 switch (par->vmode & FB_VMODE_MASK) { in ami_decode_var()
2749 if ((par->vmode & FB_VMODE_MASK) == FB_VMODE_INTERLACED) in ami_decode_var()
[all …]
Digafb.c96 .vmode = FB_VMODE_NONINTERLACED
120 .vmode = FB_SYNC_HOR_HIGH_ACT|FB_SYNC_VERT_HIGH_ACT, FB_VMODE_NONINTERLACED
143 .vmode = FB_SYNC_HOR_HIGH_ACT|FB_SYNC_VERT_HIGH_ACT, FB_VMODE_NONINTERLACED
166 .vmode = FB_SYNC_HOR_HIGH_ACT|FB_SYNC_VERT_HIGH_ACT, FB_VMODE_NONINTERLACED
Dfb-puv3.c89 .vmode = FB_VMODE_NONINTERLACED,
351 if (var->vmode & FB_VMODE_CONUPDATE) { in unifb_check_var()
352 var->vmode |= FB_VMODE_YWRAP; in unifb_check_var()
621 if (var->vmode & FB_VMODE_YWRAP) { in unifb_pan_display()
633 if (var->vmode & FB_VMODE_YWRAP) in unifb_pan_display()
634 info->var.vmode |= FB_VMODE_YWRAP; in unifb_pan_display()
636 info->var.vmode &= ~FB_VMODE_YWRAP; in unifb_pan_display()
Dimsttfb.c789 || (var->vmode & FB_VMODE_MASK) != FB_VMODE_NONINTERLACED) in imsttfb_check_var()
854 var->vmode = FB_VMODE_NONINTERLACED; in imsttfb_check_var()
1397 int vmode = init_vmode, cmode = init_cmode; in init_imstt() local
1399 if (vmode == -1) { in init_imstt()
1400 vmode = nvram_read_byte(NV_VMODE); in init_imstt()
1401 if (vmode <= 0 || vmode > VMODE_MAX) in init_imstt()
1402 vmode = VMODE_640_480_67; in init_imstt()
1409 if (mac_vmode_to_var(vmode, cmode, &info->var)) { in init_imstt()
1578 int vmode = simple_strtoul(this_opt+6, NULL, 0); in imsttfb_setup() local
1579 if (vmode > 0 && vmode <= VMODE_MAX) in imsttfb_setup()
[all …]
/linux-2.6.39/arch/arm/plat-versatile/
Dclcd.c21 .vmode = FB_VMODE_NONINTERLACED,
45 .vmode = FB_VMODE_NONINTERLACED,
70 .vmode = FB_VMODE_NONINTERLACED,
94 .vmode = FB_VMODE_NONINTERLACED,
119 .vmode = FB_VMODE_NONINTERLACED,
/linux-2.6.39/drivers/char/
Dnvram.c657 unsigned vmode; in atari_proc_infos() local
704 vmode = (nvram[14] << 8) || nvram[15]; in atari_proc_infos()
707 colors[vmode & 7], in atari_proc_infos()
708 vmode & 8 ? 80 : 40, in atari_proc_infos()
709 vmode & 16 ? "VGA" : "TV", vmode & 32 ? "PAL" : "NTSC"); in atari_proc_infos()
711 vmode & 64 ? "" : "no ", in atari_proc_infos()
712 vmode & 128 ? "on" : "off", in atari_proc_infos()
713 vmode & 256 ? in atari_proc_infos()
714 (vmode & 16 ? ", line doubling" : ", half screen") : ""); in atari_proc_infos()
/linux-2.6.39/drivers/video/sis/
Dinitextlfb.c144 var->vmode = FB_VMODE_NONINTERLACED; in sisfb_mode_rate_to_ddata()
146 var->vmode = FB_VMODE_INTERLACED; in sisfb_mode_rate_to_ddata()
153 var->vmode = FB_VMODE_DOUBLE; in sisfb_mode_rate_to_ddata()
161 if((var->vmode & FB_VMODE_MASK) == FB_VMODE_INTERLACED) { in sisfb_mode_rate_to_ddata()
167 } else if((var->vmode & FB_VMODE_MASK) == FB_VMODE_DOUBLE) { in sisfb_mode_rate_to_ddata()
/linux-2.6.39/arch/arm/mach-vt8500/
Ddevices.c79 .vmode = FB_VMODE_NONINTERLACED,
97 .vmode = FB_VMODE_NONINTERLACED,
115 .vmode = FB_VMODE_NONINTERLACED,
133 .vmode = FB_VMODE_NONINTERLACED,
/linux-2.6.39/arch/avr32/boards/atngw100/
Devklcd10x.c45 .vmode = FB_VMODE_NONINTERLACED,
83 .vmode = FB_VMODE_NONINTERLACED,
121 .vmode = FB_VMODE_NONINTERLACED,
/linux-2.6.39/arch/arm/mach-mx3/
Deukrea_mbimxsd-baseboard.c65 .vmode = FB_VMODE_NONINTERLACED,
82 .vmode = FB_VMODE_NONINTERLACED,
99 .vmode = FB_VMODE_NONINTERLACED,
/linux-2.6.39/arch/arm/mach-integrator/
Dimpd1.c118 .vmode = FB_VMODE_NONINTERLACED,
146 .vmode = FB_VMODE_NONINTERLACED,
174 .vmode = FB_VMODE_NONINTERLACED,
206 .vmode = FB_VMODE_NONINTERLACED,
/linux-2.6.39/drivers/staging/xgifb/
DXGI_main_26.c196 u32 *vmode) in XGIfb_mode_rate_to_ddata() argument
345 *vmode = FB_VMODE_NONINTERLACED; in XGIfb_mode_rate_to_ddata()
347 *vmode = FB_VMODE_INTERLACED; in XGIfb_mode_rate_to_ddata()
355 *vmode = FB_VMODE_DOUBLE; in XGIfb_mode_rate_to_ddata()
1017 if ((var->vmode & FB_VMODE_MASK) == FB_VMODE_NONINTERLACED) in XGIfb_do_set_var()
1019 else if ((var->vmode & FB_VMODE_MASK) == FB_VMODE_DOUBLE) in XGIfb_do_set_var()
1021 else if ((var->vmode & FB_VMODE_MASK) == FB_VMODE_INTERLACED) { in XGIfb_do_set_var()
1289 if ((var->vmode & FB_VMODE_MASK) == FB_VMODE_NONINTERLACED) { in XGIfb_check_var()
1293 } else if ((var->vmode & FB_VMODE_MASK) == FB_VMODE_DOUBLE) { in XGIfb_check_var()
1297 } else if ((var->vmode & FB_VMODE_MASK) == FB_VMODE_INTERLACED) { in XGIfb_check_var()
[all …]
/linux-2.6.39/arch/mips/txx9/rbtx4939/
Dsetup.c140 __u64 vmode = pcfg & in rbtx4939_update_ioc_pen() local
142 if (vmode == 0) in rbtx4939_update_ioc_pen()
145 else if (vmode == TX4939_PCFG_VPSMODE) { in rbtx4939_update_ioc_pen()
148 } else if (vmode == TX4939_PCFG_VSSMODE) { in rbtx4939_update_ioc_pen()

1234567