Home
last modified time | relevance | path

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

12345678

/openbmc/u-boot/drivers/video/meson/
H A Dmeson_venc.c786 vmode = &vmode_dmt; in meson_venc_hdmi_mode_set()
795 vmode->encp.max_pxcnt, vmode->encp.max_lncnt, in meson_venc_hdmi_mode_set()
796 vmode->encp.havon_begin, vmode->encp.havon_end, in meson_venc_hdmi_mode_set()
797 vmode->encp.vavon_bline, vmode->encp.vavon_eline, in meson_venc_hdmi_mode_set()
798 vmode->encp.hso_begin, vmode->encp.hso_end, in meson_venc_hdmi_mode_set()
799 vmode->encp.vso_begin, vmode->encp.vso_end, in meson_venc_hdmi_mode_set()
800 vmode->encp.vso_bline, vmode->encp.vso_eline); in meson_venc_hdmi_mode_set()
866 writel(vmode->enci.hso_end, in meson_venc_hdmi_mode_set()
872 writel(vmode->enci.vso_odd, in meson_venc_hdmi_mode_set()
901 if (vmode->enci.yc_delay) in meson_venc_hdmi_mode_set()
[all …]
/openbmc/linux/drivers/video/fbdev/
H A Dmacmodes.c141 int vmode; member
183 int vmode; member
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()
330 if ((var->vmode & FB_VMODE_MASK) != mode->vmode) in mac_var_to_vmode()
332 *vmode = map->vmode; in mac_var_to_vmode()
339 while (map->vmode != -1) { in mac_var_to_vmode()
346 if (mode->vmode != clk_mode->vmode) in mac_var_to_vmode()
348 *vmode = map->vmode; in mac_var_to_vmode()
[all …]
H A Dps3fb.c272 if (var->xres > vmode->xres || var->yres > vmode->yres || in ps3fb_cmp_mode()
279 if ((var->vmode & FB_VMODE_MASK) != vmode->vmode) in ps3fb_cmp_mode()
293 dx = ((long)vmode->left_margin + (long)vmode->xres + in ps3fb_cmp_mode()
299 dy = ((long)vmode->upper_margin + (long)vmode->yres + in ps3fb_cmp_mode()
310 return (vmode->xres - xres) * (vmode->yres - yres); in ps3fb_cmp_mode()
350 __func__, id, vmode->left_margin, vmode->xres, in ps3fb_find_mode()
351 vmode->right_margin, vmode->upper_margin, in ps3fb_find_mode()
352 vmode->yres, vmode->lower_margin, diff); in ps3fb_find_mode()
396 gap = ((long)vmode->left_margin + (long)vmode->xres + in ps3fb_find_mode()
407 gap = ((long)vmode->upper_margin + (long)vmode->yres + in ps3fb_find_mode()
[all …]
H A Dplatinumfb.c46 int vmode, cmode; member
133 init = platinum_reg_init[pinfo->vmode-1]; in platinumfb_set_par()
241 init = platinum_reg_init[pinfo->vmode-1]; in set_platinum_clock()
269 int vmode, cmode; in platinum_set_hardware() local
271 vmode = pinfo->vmode; in platinum_set_hardware()
274 init = platinum_reg_init[vmode - 1]; in platinum_set_hardware()
440 int vmode, cmode; in platinum_var_to_par() local
454 if (!platinum_reg_init[vmode-1]) { in platinum_var_to_par()
470 pinfo->vmode = vmode; in platinum_var_to_par()
496 if (vmode > 0 && vmode <= VMODE_MAX) in platinumfb_setup()
[all …]
H A Dvalkyriefb.c69 int vmode, cmode; member
155 return mac_vmode_to_var(par->vmode, par->cmode, var); in valkyrie_par_to_var()
452 int vmode, cmode; in valkyrie_var_to_par() local
457 if (mac_var_to_vmode(var, &vmode, &cmode) != 0) { in valkyrie_var_to_par()
464 if (vmode < 1 || vmode > VMODE_MAX || !valkyrie_reg_init[vmode-1]) { in valkyrie_var_to_par()
479 init = valkyrie_reg_init[vmode-1]; in valkyrie_var_to_par()
482 "cmode %d.\n", vmode, cmode); in valkyrie_var_to_par()
488 "cmode %d.\n", vmode, cmode); in valkyrie_var_to_par()
492 par->vmode = vmode; in valkyrie_var_to_par()
555 if (vmode > 0 && vmode <= VMODE_MAX) in valkyriefb_setup()
[all …]
H A Dcontrolfb.c83 int vmode, cmode; member
548 par->vmode = 0; in control_var_to_par()
601 var->vmode = FB_VMODE_NONINTERLACED; in control_par_to_var()
808 if (vmode > 0 && vmode <= VMODE_MAX && in control_setup()
810 default_vmode = vmode; in control_setup()
840 int full, sense, vmode, cmode, vyres; in init_control() local
855 vmode = default_vmode; in init_control()
857 vmode = nvram_read_byte(NV_VMODE); in init_control()
858 if (vmode < 1 || vmode > VMODE_MAX || in init_control()
864 vmode = VMODE_640_480_60; in init_control()
[all …]
H A D68328fb.c72 .vmode = FB_VMODE_NONINTERLACED,
140 if (var->vmode & FB_VMODE_CONUPDATE) { in mc68x328fb_check_var()
141 var->vmode |= FB_VMODE_YWRAP; in mc68x328fb_check_var()
367 if (var->vmode & FB_VMODE_YWRAP) { in mc68x328fb_pan_display()
379 if (var->vmode & FB_VMODE_YWRAP) in mc68x328fb_pan_display()
380 info->var.vmode |= FB_VMODE_YWRAP; in mc68x328fb_pan_display()
382 info->var.vmode &= ~FB_VMODE_YWRAP; in mc68x328fb_pan_display()
H A 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,
H A Dvfb.c54 .vmode = FB_VMODE_NONINTERLACED,
127 if (var->vmode & FB_VMODE_CONUPDATE) { in vfb_check_var()
128 var->vmode |= FB_VMODE_YWRAP; in vfb_check_var()
363 if (var->vmode & FB_VMODE_YWRAP) { in vfb_pan_display()
374 if (var->vmode & FB_VMODE_YWRAP) in vfb_pan_display()
375 info->var.vmode |= FB_VMODE_YWRAP; in vfb_pan_display()
377 info->var.vmode &= ~FB_VMODE_YWRAP; in vfb_pan_display()
H A Dfsl-diu-fb.c68 .vmode = FB_VMODE_NONINTERLACED
82 .vmode = FB_VMODE_NONINTERLACED
166 .vmode = FB_VMODE_NONINTERLACED
194 .vmode = FB_VMODE_NONINTERLACED
208 .vmode = FB_VMODE_NONINTERLACED
222 .vmode = FB_VMODE_NONINTERLACED
236 .vmode = FB_VMODE_NONINTERLACED
250 .vmode = FB_VMODE_NONINTERLACED
264 .vmode = FB_VMODE_NONINTERLACED
278 .vmode = FB_VMODE_NONINTERLACED
[all …]
H A Dpvr2fb.c171 .vmode = FB_VMODE_NONINTERLACED,
373 var->vmode &= FB_VMODE_MASK; in pvr2fb_set_par()
374 if (var->vmode & FB_VMODE_INTERLACED && video_output != VO_VGA) in pvr2fb_set_par()
380 if (var->vmode & FB_VMODE_DOUBLE && video_output == VO_VGA) in pvr2fb_set_par()
461 if (var->vmode & FB_VMODE_YWRAP) { in pvr2fb_check_var()
478 var->vmode |= FB_VMODE_DOUBLE; in pvr2fb_check_var()
482 var->vmode |= FB_VMODE_INTERLACED; in pvr2fb_check_var()
485 var->vmode &= ~FB_VMODE_INTERLACED; in pvr2fb_check_var()
486 var->vmode |= FB_VMODE_NONINTERLACED; in pvr2fb_check_var()
509 if (var->vmode & FB_VMODE_INTERLACED) in pvr2fb_check_var()
H A Ds3c-fb.c1242 fbinfo->var.vmode = FB_VMODE_NONINTERLACED; in s3c_fb_probe_win()
1293 if (!vmode->pixclock) in s3c_fb_set_rgb_timing()
1294 s3c_fb_missing_pixclock(vmode); in s3c_fb_set_rgb_timing()
1310 data = VIDTCON0_VBPD(vmode->upper_margin - 1) | in s3c_fb_set_rgb_timing()
1312 VIDTCON0_VSPW(vmode->vsync_len - 1); in s3c_fb_set_rgb_timing()
1315 data = VIDTCON1_HBPD(vmode->left_margin - 1) | in s3c_fb_set_rgb_timing()
1317 VIDTCON1_HSPW(vmode->hsync_len - 1); in s3c_fb_set_rgb_timing()
1320 data = VIDTCON2_LINEVAL(vmode->yres - 1) | in s3c_fb_set_rgb_timing()
1321 VIDTCON2_HOZVAL(vmode->xres - 1) | in s3c_fb_set_rgb_timing()
1322 VIDTCON2_LINEVAL_E(vmode->yres - 1) | in s3c_fb_set_rgb_timing()
[all …]
H A Damifb.c731 int vmode; /* vmode */ member
1194 par->vmode = var->vmode | FB_VMODE_SMOOTH_XPAN; in ami_decode_var()
1438 par->vmode &= ~FB_VMODE_YWRAP; in ami_decode_var()
1489 if (!((par->vmode ^ var->vmode) & FB_VMODE_YWRAP)) { in ami_decode_var()
1557 var->vmode = FB_VMODE_DOUBLE; in ami_encode_var()
1559 var->vmode = FB_VMODE_INTERLACED; in ami_encode_var()
1590 if (par->vmode & FB_VMODE_YWRAP) in ami_encode_var()
1591 var->vmode |= FB_VMODE_YWRAP; in ami_encode_var()
1675 if (var->vmode & FB_VMODE_YWRAP) in ami_pan_var()
1676 par->vmode |= FB_VMODE_YWRAP; in ami_pan_var()
[all …]
/openbmc/linux/drivers/gpu/drm/meson/
H A Dmeson_venc.c885 while (vmode->vic && vmode->mode) { in meson_venc_hdmi_supported_vic()
886 if (vmode->vic == vic) in meson_venc_hdmi_supported_vic()
888 vmode++; in meson_venc_hdmi_supported_vic()
924 while (vmode->vic && vmode->mode) { in meson_venc_hdmi_get_vic_vmode()
925 if (vmode->vic == vic) in meson_venc_hdmi_get_vic_vmode()
926 return vmode->mode; in meson_venc_hdmi_get_vic_vmode()
927 vmode++; in meson_venc_hdmi_get_vic_vmode()
994 if (!vmode) { in meson_venc_hdmi_mode_set()
1002 vmode = &vmode_dmt; in meson_venc_hdmi_mode_set()
1106 writel(vmode->enci.sch_adjust, in meson_venc_hdmi_mode_set()
[all …]
/openbmc/linux/arch/m68k/atari/
H A Dnvram.c183 unsigned int vmode; in atari_nvram_proc_read() local
232 vmode = (nvram[14] << 8) | nvram[15]; in atari_nvram_proc_read()
235 colors[vmode & 7], vmode & 8 ? 80 : 40, in atari_nvram_proc_read()
236 vmode & 16 ? "VGA" : "TV", vmode & 32 ? "PAL" : "NTSC"); in atari_nvram_proc_read()
239 vmode & 64 ? "" : "no ", vmode & 128 ? "on" : "off", in atari_nvram_proc_read()
240 vmode & 256 ? in atari_nvram_proc_read()
241 (vmode & 16 ? ", line doubling" : ", half screen") : ""); in atari_nvram_proc_read()
/openbmc/u-boot/drivers/power/regulator/
H A Dpbias_regulator.c27 u32 vmode; member
136 .vmode = BIT(0),
145 .vmode = BIT(8),
154 .vmode = BIT(21),
163 .vmode = BIT(21),
224 (reg & p->vmode) ? "3.0v" : "1.8v"); in pbias_regulator_get_value()
225 return (reg & p->vmode) ? 3000000 : 1800000; in pbias_regulator_get_value()
242 reg |= p->vmode; in pbias_regulator_set_value()
244 reg &= ~p->vmode; in pbias_regulator_set_value()
249 (reg & p->vmode) ? "3.0v" : "1.8v"); in pbias_regulator_set_value()
/openbmc/linux/drivers/regulator/
H A Dpbias-regulator.c33 u32 vmode; member
66 .vmode = BIT(0),
77 .vmode = BIT(8),
88 .vmode = BIT(21),
99 .vmode = BIT(21),
206 desc->vsel_mask = info->vmode; in pbias_regulator_probe()
/openbmc/u-boot/drivers/video/
H A Dfsl_diu_fb.c34 .vmode = FB_VMODE_NONINTERLACED
51 .vmode = FB_VMODE_NONINTERLACED
73 .vmode = FB_VMODE_NONINTERLACED
89 .vmode = FB_VMODE_NONINTERLACED
105 .vmode = FB_VMODE_NONINTERLACED
121 .vmode = FB_VMODE_NONINTERLACED
299 info.var.vmode = fsl_diu_mode_db->vmode; in fsl_diu_init()
H A Dfsl_dcu_fb.c100 .vmode = FB_VMODE_NONINTERLACED
119 .vmode = FB_VMODE_NONINTERLACED,
135 .vmode = FB_VMODE_NONINTERLACED,
151 .vmode = FB_VMODE_NONINTERLACED,
167 .vmode = FB_VMODE_NONINTERLACED,
419 info.var.vmode = fsl_dcu_mode_db->vmode; in video_hw_init()
/openbmc/linux/drivers/video/fbdev/sis/
H A Dinitextlfb.c131 var->vmode = FB_VMODE_NONINTERLACED; in sisfb_mode_rate_to_ddata()
133 var->vmode = FB_VMODE_INTERLACED; in sisfb_mode_rate_to_ddata()
140 var->vmode = FB_VMODE_DOUBLE; in sisfb_mode_rate_to_ddata()
148 if((var->vmode & FB_VMODE_MASK) == FB_VMODE_INTERLACED) { in sisfb_mode_rate_to_ddata()
154 } else if((var->vmode & FB_VMODE_MASK) == FB_VMODE_DOUBLE) { in sisfb_mode_rate_to_ddata()
/openbmc/u-boot/board/boundary/nitrogen6x/
H A Dnitrogen6x.c525 .vmode = FB_VMODE_NONINTERLACED
545 .vmode = FB_VMODE_NONINTERLACED
565 .vmode = FB_VMODE_NONINTERLACED
585 .vmode = FB_VMODE_NONINTERLACED
605 .vmode = FB_VMODE_NONINTERLACED
625 .vmode = FB_VMODE_NONINTERLACED
645 .vmode = FB_VMODE_NONINTERLACED
665 .vmode = FB_VMODE_NONINTERLACED
685 .vmode = FB_VMODE_NONINTERLACED
705 .vmode = FB_VMODE_NONINTERLACED
[all …]
/openbmc/linux/drivers/video/fbdev/core/
H A Dmodedb.c571 var->vmode = mode->vmode; in fb_try_mode()
743 cvt_mode.vmode |= FB_VMODE_INTERLACED; in fb_find_mode()
745 cvt_mode.vmode &= ~FB_VMODE_INTERLACED; in fb_find_mode()
785 const int db_interlace = (db[i].vmode & in fb_find_mode()
871 mode->vmode = var->vmode & FB_VMODE_MASK; in fb_var_to_videomode()
885 if (var->vmode & FB_VMODE_INTERLACED) in fb_var_to_videomode()
887 if (var->vmode & FB_VMODE_DOUBLE) in fb_var_to_videomode()
919 var->vmode = mode->vmode & FB_VMODE_MASK; in fb_videomode_to_var()
943 mode1->vmode == mode2->vmode); in fb_mode_is_equal()
H A Dfbmon.c403 mode->vmode = 0; in calc_mode_timings()
591 mode->vmode |= FB_VMODE_INTERLACED; in get_detailed_timing()
739 if (mode->vmode & FB_VMODE_INTERLACED) in fb_get_monitor_limits()
742 if (mode->vmode & FB_VMODE_DOUBLE) in fb_get_monitor_limits()
1250 if (var->vmode & FB_VMODE_INTERLACED) { in fb_get_mode()
1254 if (var->vmode & FB_VMODE_DOUBLE) { in fb_get_mode()
1331 fbmode->vmode = 0; in fb_videomode_from_videomode()
1337 fbmode->vmode |= FB_VMODE_INTERLACED; in fb_videomode_from_videomode()
1339 fbmode->vmode |= FB_VMODE_DOUBLE; in fb_videomode_from_videomode()
1469 if (var->vmode & FB_VMODE_INTERLACED) in fb_validate_mode()
[all …]
/openbmc/u-boot/board/freescale/mx51evk/
H A Dmx51evk_video.c31 .vmode = FB_VMODE_NONINTERLACED
47 .vmode = FB_VMODE_NONINTERLACED
/openbmc/qemu/hw/i386/
H A Dx86-common.c639 char *vmode; in x86_load_linux() local
807 vmode = strstr(kernel_cmdline, "vga="); in x86_load_linux()
808 if (vmode) { in x86_load_linux()
813 vmode += 4; in x86_load_linux()
814 if (!strncmp(vmode, "normal", 6)) { in x86_load_linux()
816 } else if (!strncmp(vmode, "ext", 3)) { in x86_load_linux()
818 } else if (!strncmp(vmode, "ask", 3)) { in x86_load_linux()
821 ret = qemu_strtoui(vmode, &end, 0, &video_mode); in x86_load_linux()

12345678