Home
last modified time | relevance | path

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

12345

/drivers/gpu/drm/panel/
Dpanel-simple.c343 .vtotal = 600 + 16 + 6 + 16,
366 .vtotal = 768 + 14 + 42,
390 .vtotal = 768 + 3 + 6 + 13,
413 .vtotal = 1080 + 25 + 10 + 10,
440 .vtotal = 768 + 4 + 4 + 4,
463 .vtotal = 768 + 16 + 8 + 16,
486 .vtotal = 480 + 10 + 3 + 32,
510 .vtotal = 480 + 10 + 2 + 33,
534 .vtotal = 480 + 37 + 2 + 8,
556 .vtotal = 768 + 8 + 4 + 8,
[all …]
/drivers/media/i2c/
Dths8200.c76 static inline unsigned vtotal(const struct v4l2_bt_timings *t) in vtotal() function
228 uint16_t line_start_front_porch = (vtotal(bt) - bt->vfrontporch); in ths8200_setup()
275 ((vtotal(bt) >> 4) & 0xf0) + 0x7); in ths8200_setup()
276 ths8200_write(sd, THS8200_DTG1_FRAME_SZ_LSB, vtotal(bt) & 0xff); in ths8200_setup()
302 ths8200_write(sd, THS8200_DTG2_BP3_4_MSB, ((vtotal(bt)) >> 4) & 0x70); in ths8200_setup()
305 ths8200_write(sd, THS8200_DTG2_BP3_LSB, (vtotal(bt)) & 0xff); in ths8200_setup()
328 ((vtotal(bt) + 1) >> 8) & 0x7); in ths8200_setup()
329 ths8200_write(sd, THS8200_DTG2_VDLY1_LSB, vtotal(bt) + 1); in ths8200_setup()
366 "vertical: sync %d\n", __func__, htotal(bt), vtotal(bt), in ths8200_setup()
/drivers/gpu/drm/
Ddrm_modes.c58 mode->vsync_end, mode->vtotal, mode->type, mode->flags); in drm_mode_debug_printmodeline()
258 drm_mode->vtotal = vdisplay_rnd + 2 * vmargin + in drm_cvt_mode()
314 drm_mode->vtotal = vdisplay_rnd + 2 * vmargin + vbilines; in drm_cvt_mode()
330 drm_mode->vtotal *= 2; in drm_cvt_mode()
515 drm_mode->vtotal = vtotal_lines; in drm_gtf_mode_complex()
520 drm_mode->vtotal *= 2; in drm_gtf_mode_complex()
595 dmode->vtotal = dmode->vsync_end + vm->vback_porch; in drm_display_mode_from_videomode()
711 else if (mode->htotal > 0 && mode->vtotal > 0) { in drm_mode_vrefresh()
712 int vtotal; in drm_mode_vrefresh() local
713 vtotal = mode->vtotal; in drm_mode_vrefresh()
[all …]
/drivers/video/fbdev/core/
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()
1100 u32 vtotal; member
1228 timings->vtotal = timings->vactive + timings->vblank; in fb_timings_vfreq()
1238 timings->vtotal = timings->vactive + timings->vblank; in fb_timings_hfreq()
1239 timings->vfreq = timings->hfreq/timings->vtotal; in fb_timings_hfreq()
1253 timings->vtotal = timings->vactive + timings->vblank; in fb_timings_dclk()
[all …]
/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/msm/hdmi/
Dhdmi_bridge.c154 vstart = mode->vtotal - mode->vsync_start - 1; in hdmi_bridge_mode_set()
155 vend = mode->vtotal - mode->vsync_start + mode->vdisplay - 1; in hdmi_bridge_mode_set()
158 mode->htotal, mode->vtotal, hstart, hend, vstart, vend); in hdmi_bridge_mode_set()
162 HDMI_TOTAL_V_TOTAL(mode->vtotal - 1)); in hdmi_bridge_mode_set()
173 HDMI_VSYNC_TOTAL_F2_V_TOTAL(mode->vtotal)); in hdmi_bridge_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/fbdev/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()
/drivers/gpu/drm/exynos/
Dexynos_hdmi.c1804 hdmi_set_reg(core->h_v_line, 3, (m->htotal << 12) | m->vtotal); in hdmi_v13_mode_set()
1830 val = m->vtotal / 2; in hdmi_v13_mode_set()
1831 val |= ((m->vtotal - m->vdisplay) / 2) << 11; in hdmi_v13_mode_set()
1834 val = (m->vtotal + in hdmi_v13_mode_set()
1836 val |= m->vtotal << 11; in hdmi_v13_mode_set()
1839 val = ((m->vtotal / 2) + 7); in hdmi_v13_mode_set()
1840 val |= ((m->vtotal / 2) + 2) << 12; in hdmi_v13_mode_set()
1848 hdmi_set_reg(tg->vact_st, 2, (m->vtotal - m->vdisplay) / 2); in hdmi_v13_mode_set()
1855 val = m->vtotal; in hdmi_v13_mode_set()
1856 val |= (m->vtotal - m->vdisplay) << 11; in hdmi_v13_mode_set()
[all …]
/drivers/staging/imx-drm/
Dipuv3-plane.c46 unsigned long htotal, vtotal; in calc_vref() local
49 vtotal = mode->vtotal; in calc_vref()
51 if (!htotal || !vtotal) in calc_vref()
54 return DIV_ROUND_UP(mode->clock * 1000, vtotal * htotal); in calc_vref()
/drivers/gpu/drm/sti/
Dsti_vtg.c124 writel(mode->vtotal * 2, vtg->regs + VTG_HLFLN); in vtg_set_mode()
126 tmp = (mode->vtotal - mode->vsync_start + 1) << 16; in vtg_set_mode()
131 tmp = (mode->vdisplay + mode->vtotal - mode->vsync_start + 1) << 16; in vtg_set_mode()
160 tmp |= mode->vtotal; in vtg_set_mode()
211 u32 start_line = mode.vtotal - mode.vsync_start + 1; in sti_vtg_get_line_number()
/drivers/video/fbdev/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.c931 unsigned int vtotal = var->upper_margin + var->yres + var->lower_margin in XGIfb_do_set_var() local
945 vtotal <<= 1; in XGIfb_do_set_var()
947 vtotal <<= 2; in XGIfb_do_set_var()
949 if (!htotal || !vtotal) { in XGIfb_do_set_var()
953 var->pixclock, htotal, vtotal); in XGIfb_do_set_var()
955 if (var->pixclock && htotal && vtotal) { in XGIfb_do_set_var()
959 / vtotal); in XGIfb_do_set_var()
1233 unsigned int vtotal = 0; in XGIfb_check_var() local
1239 vtotal = var->upper_margin + var->yres + var->lower_margin in XGIfb_check_var()
1241 vtotal <<= 1; in XGIfb_check_var()
[all …]
/drivers/gpu/drm/nouveau/core/engine/disp/
Dnv04.c51 args->v0.vtotal = nv_rd32(priv, 0x680804 + hoff) & 0xffff; in nv04_disp_scanoutpos()
52 args->v0.vblanke = args->v0.vtotal - 1; in nv04_disp_scanoutpos()
63 if (!args->v0.vtotal || !args->v0.htotal) in nv04_disp_scanoutpos()
/drivers/video/fbdev/
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.c667 int yres, vdispend, vsyncstart, vsyncend, vtotal; in cirrusfb_set_par_foo() local
709 vtotal = vsyncend + var->upper_margin; in cirrusfb_set_par_foo()
715 vtotal *= 2; in cirrusfb_set_par_foo()
720 vtotal = (vtotal + 1) / 2; in cirrusfb_set_par_foo()
724 vtotal /= 2; in cirrusfb_set_par_foo()
733 vtotal -= 2; in cirrusfb_set_par_foo()
774 dev_dbg(info->device, "CRT6: %d\n", vtotal & 0xff); in cirrusfb_set_par_foo()
775 vga_wcrt(regbase, VGA_CRTC_V_TOTAL, vtotal & 0xff); in cirrusfb_set_par_foo()
778 if (vtotal & 256) in cirrusfb_set_par_foo()
786 if (vtotal & 512) in cirrusfb_set_par_foo()
[all …]
/drivers/video/fbdev/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()
/drivers/gpu/drm/msm/mdp/mdp5/
Dmdp5_encoder.c162 mode->vsync_end, mode->vtotal, in mdp5_encoder_mode_set()
178 vsync_period = mode->vtotal * mode->htotal; in mdp5_encoder_mode_set()
180 display_v_start = (mode->vtotal - mode->vsync_start) * mode->htotal + dtv_hsync_skew; in mdp5_encoder_mode_set()
/drivers/gpu/drm/mgag200/
Dmgag200_mode.c787 int vdisplay, vsyncstart, vsyncend, vtotal; in mga_crtc_mode_set() local
917 vtotal = mode->vtotal - 2; in mga_crtc_mode_set()
935 WREG_CRT(6, vtotal & 0xFF); in mga_crtc_mode_set()
936 WREG_CRT(7, ((vtotal & 0x100) >> 8) | in mga_crtc_mode_set()
941 ((vtotal & 0x200) >> 4)| in mga_crtc_mode_set()
958 WREG_CRT(22, (vtotal + 1) & 0xFF); in mga_crtc_mode_set()
972 ext_vga[2] = ((vtotal & 0xc00) >> 10) | in mga_crtc_mode_set()
1464 if (!mode->htotal || !mode->vtotal || !mode->clock) in mga_vga_calculate_mode_bandwidth()
1468 total_area = mode->htotal * mode->vtotal; in mga_vga_calculate_mode_bandwidth()

12345