Home
last modified time | relevance | path

Searched refs:vtotal (Results 1 – 25 of 90) sorted by relevance

1234

/drivers/gpu/drm/
Ddrm_modes.c59 mode->vsync_end, mode->vtotal, mode->type, mode->flags); in drm_mode_debug_printmodeline()
195 drm_mode->vtotal = vdisplay_rnd + 2 * vmargin + in drm_cvt_mode()
251 drm_mode->vtotal = vdisplay_rnd + 2 * vmargin + vbilines; in drm_cvt_mode()
267 drm_mode->vtotal *= 2; in drm_cvt_mode()
450 drm_mode->vtotal = vtotal_lines; in drm_gtf_mode_complex()
455 drm_mode->vtotal *= 2; in drm_gtf_mode_complex()
521 dmode->vtotal = dmode->vsync_end + vm->vback_porch; in drm_display_mode_from_videomode()
707 else if (mode->htotal > 0 && mode->vtotal > 0) { in drm_mode_vrefresh()
708 int vtotal; in drm_mode_vrefresh() local
709 vtotal = mode->vtotal; in drm_mode_vrefresh()
[all …]
/drivers/video/
Dfbcvt.c45 u32 vtotal; member
164 u32 vtotal = cvt->yres/cvt->interlace; in fb_cvt_vtotal() local
166 vtotal += 2 * cvt->v_margin + cvt->interlace/2 + fb_cvt_vbi_lines(cvt); in fb_cvt_vtotal()
167 vtotal |= cvt->interlace/2; in fb_cvt_vtotal()
169 return vtotal; in fb_cvt_vtotal()
177 pixclock = (cvt->f_refresh * cvt->vtotal * cvt->htotal)/1000; in fb_cvt_pixclock()
363 cvt.vtotal = fb_cvt_vtotal(&cvt); in fb_find_mode_cvt()
373 cvt.v_front_porch = cvt.vtotal - cvt.yres/cvt.interlace - in fb_find_mode_cvt()
Dfbmon.c708 int vtotal, htotal; in fb_get_monitor_limits() local
722 vtotal = mode->yres + mode->lower_margin + mode->vsync_len in fb_get_monitor_limits()
726 vtotal /= 2; in fb_get_monitor_limits()
729 vtotal *= 2; in fb_get_monitor_limits()
733 hz = (hscan + vtotal / 2) / vtotal; in fb_get_monitor_limits()
1093 u32 vtotal; member
1221 timings->vtotal = timings->vactive + timings->vblank; in fb_timings_vfreq()
1231 timings->vtotal = timings->vactive + timings->vblank; in fb_timings_hfreq()
1232 timings->vfreq = timings->hfreq/timings->vtotal; in fb_timings_hfreq()
1246 timings->vtotal = timings->vactive + timings->vblank; in fb_timings_dclk()
[all …]
Damifb.c756 u_short vtotal; /* vmode */ member
1024 #define vtotal2hw(vtotal) (div2(vtotal) - 1) argument
1127 u_int htotal, vtotal; in ami_decode_var() local
1218 par->vtotal = in ami_decode_var()
1235 par->diwstop_v = par->vtotal - in ami_decode_var()
1242 if (par->diwstop_v > par->vtotal) { in ami_decode_var()
1259 if (par->vtotal > (PAL_VTOTAL + NTSC_VTOTAL) / 2) { in ami_decode_var()
1274 vtotal = PAL_VTOTAL>>1; in ami_decode_var()
1304 vtotal = NTSC_VTOTAL>>1; in ami_decode_var()
1339 par->diwstop_v = par->vtotal; in ami_decode_var()
[all …]
Dpvr2fb.c361 unsigned int vtotal; in pvr2fb_set_par() local
390 vtotal = par->vsync_total; in pvr2fb_set_par()
392 vtotal /= 2; in pvr2fb_set_par()
393 if (vtotal > (PAL_VTOTAL + NTSC_VTOTAL)/2) { in pvr2fb_set_par()
436 unsigned int vtotal, hsync_total; in pvr2fb_check_var() local
508 vtotal = var->upper_margin + var->yres + var->lower_margin + in pvr2fb_check_var()
513 vtotal /= 2; in pvr2fb_check_var()
514 if (vtotal > (PAL_VTOTAL + NTSC_VTOTAL)/2) { in pvr2fb_check_var()
Dcirrusfb.c672 int yres, vdispend, vsyncstart, vsyncend, vtotal; in cirrusfb_set_par_foo() local
714 vtotal = vsyncend + var->upper_margin; in cirrusfb_set_par_foo()
720 vtotal *= 2; in cirrusfb_set_par_foo()
725 vtotal = (vtotal + 1) / 2; in cirrusfb_set_par_foo()
729 vtotal /= 2; in cirrusfb_set_par_foo()
738 vtotal -= 2; in cirrusfb_set_par_foo()
779 dev_dbg(info->device, "CRT6: %d\n", vtotal & 0xff); in cirrusfb_set_par_foo()
780 vga_wcrt(regbase, VGA_CRTC_V_TOTAL, vtotal & 0xff); in cirrusfb_set_par_foo()
783 if (vtotal & 256) in cirrusfb_set_par_foo()
791 if (vtotal & 512) in cirrusfb_set_par_foo()
[all …]
Dmodedb.c777 u32 pixclock, hfreq, htotal, vtotal; in fb_var_to_videomode() local
801 vtotal = var->yres + var->lower_margin + var->vsync_len + in fb_var_to_videomode()
805 vtotal /= 2; in fb_var_to_videomode()
807 vtotal *= 2; in fb_var_to_videomode()
810 mode->refresh = hfreq/vtotal; in fb_var_to_videomode()
/drivers/gpu/drm/cirrus/
Dcirrus_mode.c200 int vtotal, vdispend; in cirrus_crtc_mode_set() local
209 vtotal = mode->vtotal; in cirrus_crtc_mode_set()
213 vtotal -= 2; in cirrus_crtc_mode_set()
225 WREG_CRT(VGA_CRTC_V_TOTAL, vtotal & 0xff); in cirrus_crtc_mode_set()
237 if (vtotal & 256) in cirrus_crtc_mode_set()
243 if (vtotal & 512) in cirrus_crtc_mode_set()
257 if (vtotal & 256) in cirrus_crtc_mode_set()
259 if (vtotal & 512) in cirrus_crtc_mode_set()
/drivers/gpu/drm/i2c/
Dch7006_mode.c41 .vtotal = 525, \
46 .vtotal = 625, \
120 .vtotal = vt, \
187 mode->mode.vtotal != drm_mode->vtotal || in ch7006_lookup_mode()
346 scale = norm->vtotal*fixed1; in ch7006_setup_properties()
347 do_div(scale, mode->vtotal); in ch7006_setup_properties()
353 * priv->hmargin * mode->vtotal) / norm->vtotal / 100 / 4; in ch7006_setup_properties()
/drivers/video/sis/
Dinitextlfb.c40 int *htotal, int *vtotal, unsigned char rateindex);
178 int *vtotal, unsigned char rateindex) in sisfb_gettotalfrommode() argument
219 *vtotal = ((cr_data & 0xFF) | in sisfb_gettotalfrommode()
225 *vtotal *= 2; in sisfb_gettotalfrommode()
/drivers/gpu/drm/gma500/
Dmdfld_device.c203 pipe->vtotal = PSB_RVDC32(map->vtotal); in mdfld_save_display_registers()
329 PSB_WVDC32(pipe->vtotal, map->vtotal); in mdfld_restore_display_registers()
458 .vtotal = VTOTAL_A,
480 .vtotal = VTOTAL_B,
503 .vtotal = VTOTAL_C,
Dmdfld_tpo_vid.c58 mode->vtotal = mode->vdisplay + in tpo_vid_get_config_mode()
69 dev_dbg(dev->dev, "vtotal is %d\n", mode->vtotal); in tpo_vid_get_config_mode()
79 mode->vtotal = 499; in tpo_vid_get_config_mode()
Dmdfld_tmd_vid.c61 mode->vtotal = mode->vdisplay + \ in tmd_vid_get_config_mode()
72 dev_dbg(dev->dev, "vtotal is %d\n", mode->vtotal); in tmd_vid_get_config_mode()
82 mode->vtotal = 873; in tmd_vid_get_config_mode()
Dintel_bios.c177 panel_fixed_mode->vtotal = panel_fixed_mode->vdisplay + in fill_detail_timing_data()
195 if (panel_fixed_mode->vsync_end > panel_fixed_mode->vtotal) in fill_detail_timing_data()
196 panel_fixed_mode->vtotal = panel_fixed_mode->vsync_end + 1; in fill_detail_timing_data()
271 if (panel_fixed_mode->htotal > 0 && panel_fixed_mode->vtotal > 0) { in parse_lfp_panel_data()
Doaktrail_device.c213 p->vtotal = PSB_RVDC32(VTOTAL_A); in oaktrail_save_display_registers()
333 PSB_WVDC32(p->vtotal, VTOTAL_A); in oaktrail_restore_display_registers()
471 .vtotal = VTOTAL_A,
495 .vtotal = VTOTAL_B,
/drivers/gpu/drm/exynos/
Dexynos_hdmi.c1452 hdmi_set_reg(core->h_v_line, 3, (m->htotal << 12) | m->vtotal); in hdmi_v13_mode_set()
1478 val = m->vtotal / 2; in hdmi_v13_mode_set()
1479 val |= ((m->vtotal - m->vdisplay) / 2) << 11; in hdmi_v13_mode_set()
1482 val = (m->vtotal + in hdmi_v13_mode_set()
1484 val |= m->vtotal << 11; in hdmi_v13_mode_set()
1487 val = ((m->vtotal / 2) + 7); in hdmi_v13_mode_set()
1488 val |= ((m->vtotal / 2) + 2) << 12; in hdmi_v13_mode_set()
1496 hdmi_set_reg(tg->vact_st, 2, (m->vtotal - m->vdisplay) / 2); in hdmi_v13_mode_set()
1503 val = m->vtotal; in hdmi_v13_mode_set()
1504 val |= (m->vtotal - m->vdisplay) << 11; in hdmi_v13_mode_set()
[all …]
/drivers/video/geode/
Ddisplay_gx.c66 int vactive, vblankstart, vsyncstart, vsyncend, vblankend, vtotal; in gx_set_mode() local
145 vtotal = vblankend; in gx_set_mode()
155 ((vtotal - 1) << 16)); in gx_set_mode()
Ddisplay_gx1.c86 int vactive, vblankstart, vsyncstart, vsyncend, vblankend, vtotal; in gx1_set_mode() local
163 vtotal = vblankend; in gx1_set_mode()
172 val = (vactive - 1) | ((vtotal - 1) << 16); in gx1_set_mode()
/drivers/staging/xgifb/
DXGI_main_26.c930 unsigned int vtotal = var->upper_margin + var->yres + var->lower_margin in XGIfb_do_set_var() local
944 vtotal <<= 1; in XGIfb_do_set_var()
946 vtotal <<= 2; in XGIfb_do_set_var()
948 if (!htotal || !vtotal) { in XGIfb_do_set_var()
952 var->pixclock, htotal, vtotal); in XGIfb_do_set_var()
954 if (var->pixclock && htotal && vtotal) { in XGIfb_do_set_var()
958 / vtotal); in XGIfb_do_set_var()
1232 unsigned int vtotal = 0; in XGIfb_check_var() local
1238 vtotal = var->upper_margin + var->yres + var->lower_margin in XGIfb_check_var()
1240 vtotal <<= 1; in XGIfb_check_var()
[all …]
/drivers/staging/imx-drm/
Dipuv3-crtc.c71 unsigned long htotal, vtotal; in calc_vref() local
74 vtotal = mode->vtotal; in calc_vref()
76 if (!htotal || !vtotal) in calc_vref()
79 return mode->clock * 1000 / vtotal / htotal; in calc_vref()
252 sig_cfg.v_start_width = mode->vtotal - mode->vsync_end; in ipu_crtc_mode_set()
/drivers/video/matrox/
Dmatroxfb_g450.c331 unsigned int vtotal; in computeRegs() local
335 vtotal = mt->VTotal; in computeRegs()
338 if (vtotal < outd->v_total) { in computeRegs()
339 unsigned int yovr = outd->v_total - vtotal; in computeRegs()
342 } else if (vtotal > outd->v_total) { in computeRegs()
Dmatroxfb_maven.c223 unsigned int htotal, unsigned int vtotal, in matroxfb_PLL_mavenclock() argument
236 scrlen = htotal * (vtotal - 1); in matroxfb_PLL_mavenclock()
237 fwant = htotal * vtotal; in matroxfb_PLL_mavenclock()
241 fwant, fxtal, htotal, vtotal, fmax); in matroxfb_PLL_mavenclock()
296 unsigned int htotal, unsigned int vtotal, in matroxfb_mavenclock() argument
302 fvco = matroxfb_PLL_mavenclock(&maven1000_pll, ctl, htotal, vtotal, in, feed, &p, htotal2); in matroxfb_mavenclock()
/drivers/gpu/drm/i915/
Dintel_crt.c468 uint32_t vtotal, vactive; in intel_crt_load_detect() local
494 vtotal = ((save_vtotal >> 16) & 0xfff) + 1; in intel_crt_load_detect()
524 if (vblank_start <= vactive && vblank_end >= vtotal) { in intel_crt_load_detect()
535 if (vblank_start - vactive >= vtotal - vblank_end) in intel_crt_load_detect()
538 vsample = (vtotal + vblank_end) >> 1; in intel_crt_load_detect()
/drivers/gpu/drm/omapdrm/
Domap_connector.c50 mode->vtotal = mode->vsync_end + timings->vbp; in copy_timings_omap_to_drm()
81 timings->vbp = mode->vtotal - mode->vsync_end; in copy_timings_drm_to_omap()
237 mode->vsync_end, mode->vtotal, mode->type, mode->flags); in omap_connector_mode_valid()
/drivers/gpu/drm/mgag200/
Dmgag200_mode.c766 int vdisplay, vsyncstart, vsyncend, vtotal; in mga_crtc_mode_set() local
896 vtotal = mode->vtotal - 2; in mga_crtc_mode_set()
914 WREG_CRT(6, vtotal & 0xFF); in mga_crtc_mode_set()
915 WREG_CRT(7, ((vtotal & 0x100) >> 8) | in mga_crtc_mode_set()
920 ((vtotal & 0x200) >> 4)| in mga_crtc_mode_set()
937 WREG_CRT(22, (vtotal + 1) & 0xFF); in mga_crtc_mode_set()
951 ext_vga[2] = ((vtotal & 0xc00) >> 10) | in mga_crtc_mode_set()

1234