/drivers/video/ |
D | fbcvt.c | 44 u32 vtotal; member 163 u32 vtotal = cvt->yres/cvt->interlace; in fb_cvt_vtotal() local 165 vtotal += 2 * cvt->v_margin + cvt->interlace/2 + fb_cvt_vbi_lines(cvt); in fb_cvt_vtotal() 166 vtotal |= cvt->interlace/2; in fb_cvt_vtotal() 168 return vtotal; in fb_cvt_vtotal() 176 pixclock = (cvt->f_refresh * cvt->vtotal * cvt->htotal)/1000; in fb_cvt_pixclock() 362 cvt.vtotal = fb_cvt_vtotal(&cvt); in fb_find_mode_cvt() 372 cvt.v_front_porch = cvt.vtotal - cvt.yres/cvt.interlace - in fb_find_mode_cvt()
|
D | fbmon.c | 696 int vtotal, htotal; in fb_get_monitor_limits() local 710 vtotal = mode->yres + mode->lower_margin + mode->vsync_len in fb_get_monitor_limits() 714 vtotal /= 2; in fb_get_monitor_limits() 717 vtotal *= 2; in fb_get_monitor_limits() 721 hz = (hscan + vtotal / 2) / vtotal; in fb_get_monitor_limits() 997 u32 vtotal; member 1125 timings->vtotal = timings->vactive + timings->vblank; in fb_timings_vfreq() 1135 timings->vtotal = timings->vactive + timings->vblank; in fb_timings_hfreq() 1136 timings->vfreq = timings->hfreq/timings->vtotal; in fb_timings_hfreq() 1150 timings->vtotal = timings->vactive + timings->vblank; in fb_timings_dclk() [all …]
|
D | amifb.c | 756 u_short vtotal; /* vmode */ member 1021 #define vtotal2hw(vtotal) (div2(vtotal)-1) argument 2547 u_int htotal, vtotal; in ami_decode_var() local 2637 …par->vtotal = down2(((var->upper_margin+par->yres+var->lower_margin+var->vsync_len)<<line_shift)+1… in ami_decode_var() 2651 par->diwstop_v = par->vtotal-((var->lower_margin-var->vsync_len)<<line_shift); in ami_decode_var() 2657 if (par->diwstop_v > par->vtotal) { in ami_decode_var() 2674 if (par->vtotal > (PAL_VTOTAL+NTSC_VTOTAL)/2) { in ami_decode_var() 2689 vtotal = PAL_VTOTAL>>1; in ami_decode_var() 2719 vtotal = NTSC_VTOTAL>>1; in ami_decode_var() 2754 par->diwstop_v = par->vtotal; in ami_decode_var() [all …]
|
D | pvr2fb.c | 361 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()
|
D | cyblafb.c | 795 hblankend, preendfetch, vtotal, vdispend, vsyncstart, in cyblafb_set_par() local 820 vtotal = var->yres + var->upper_margin + var->lower_margin + in cyblafb_set_par() 825 vblankend = vtotal; // should be vtotal + 2, but bios does it this way in cyblafb_set_par() 866 write3X4(CR06, vtotal & 0xFF); in cyblafb_set_par() 867 write3X4(CR07, (vtotal & 0x100) >> 8 | in cyblafb_set_par() 872 (vtotal & 0x200) >> 4 | in cyblafb_set_par() 909 (vtotal & 0x400) >> 3 | in cyblafb_set_par() 1168 vtotal, vdispend, vsyncstart, vsyncend, vblankstart, vblankend, in getstartupmode() local 1227 vtotal = cr06 | (cr07 & 0x01) << 8 | (cr07 & 0x20) << 4 in getstartupmode() 1241 modedb[0].upper_margin = vtotal - modedb[0].yres - in getstartupmode()
|
D | cirrusfb.c | 727 int yres, vdispend, vsyncstart, vsyncend, vtotal; in cirrusfb_set_par_foo() local 757 vtotal = vsyncend + var->upper_margin; in cirrusfb_set_par_foo() 764 vtotal *= 2; in cirrusfb_set_par_foo() 769 vtotal = (vtotal + 1) / 2; in cirrusfb_set_par_foo() 772 vtotal -= 2; in cirrusfb_set_par_foo() 777 vtotal /= 2; in cirrusfb_set_par_foo() 815 DPRINTK("CRT6: %d\n", vtotal & 0xff); in cirrusfb_set_par_foo() 816 vga_wcrt(regbase, VGA_CRTC_V_TOTAL, vtotal & 0xff); in cirrusfb_set_par_foo() 819 if (vtotal & 256) in cirrusfb_set_par_foo() 827 if (vtotal & 512) in cirrusfb_set_par_foo() [all …]
|
D | modedb.c | 705 u32 pixclock, hfreq, htotal, vtotal; in fb_var_to_videomode() local 729 vtotal = var->yres + var->lower_margin + var->vsync_len + in fb_var_to_videomode() 733 vtotal /= 2; in fb_var_to_videomode() 735 vtotal *= 2; in fb_var_to_videomode() 738 mode->refresh = hfreq/vtotal; in fb_var_to_videomode()
|
D | neofb.c | 268 int vtotal = vsync_end + var->upper_margin; in vgaHWInit() local 297 par->CRTC[6] = (vtotal - 2) & 0xFF; in vgaHWInit() 298 par->CRTC[7] = (((vtotal - 2) & 0x100) >> 8) in vgaHWInit() 302 | 0x10 | (((vtotal - 2) & 0x200) >> 4) in vgaHWInit() 323 par->CRTC[22] = (vtotal - 1) & 0xFF; in vgaHWInit() 734 int vsync_start, vtotal; in neofb_set_par() local 743 vtotal = vsync_start + info->var.vsync_len + info->var.upper_margin; in neofb_set_par() 789 par->VerticalExt = (((vtotal - 2) & 0x400) >> 10) in neofb_set_par()
|
D | tridentfb.c | 1017 u32 vtotal, vdispend, vsyncstart, vsyncend, vblankstart, vblankend; in tridentfb_set_par() local 1035 vtotal = var->upper_margin + vsyncend - 2; in tridentfb_set_par() 1037 vblankend = vtotal; in tridentfb_set_par() 1040 vtotal /= 2; in tridentfb_set_par() 1078 write3X4(par, VGA_CRTC_V_TOTAL, vtotal & 0xFF); in tridentfb_set_par() 1096 if (vtotal & 0x100) tmp |= 0x01; in tridentfb_set_par() 1101 if (vtotal & 0x200) tmp |= 0x20; in tridentfb_set_par() 1108 if (vtotal & 0x400) tmp |= 0x80; in tridentfb_set_par()
|
D | gbefb.c | 525 timing->vtotal = var->upper_margin + var->yres + in compute_gbe_timing() 528 1000 / timing->vtotal; in compute_gbe_timing() 534 timing->vblank_end = timing->vtotal; in compute_gbe_timing() 559 SET_GBE_FIELD(VT_XYMAX, MAXY, val, timing->vtotal); in gbe_set_timing_info() 998 var->upper_margin = timing.vtotal - timing.vsync_end; in gbefb_check_var()
|
/drivers/video/sis/ |
D | initextlfb.c | 41 int *htotal, int *vtotal, unsigned char rateindex); 179 int *vtotal, unsigned char rateindex) in sisfb_gettotalfrommode() argument 220 *vtotal = ((cr_data & 0xFF) | in sisfb_gettotalfrommode() 226 *vtotal *= 2; in sisfb_gettotalfrommode()
|
D | sis_main.c | 562 int htotal, vtotal; in sisfb_verify_rate() local 597 &htotal, &vtotal, rate_idx)) { in sisfb_verify_rate() 598 dclock = (htotal * vtotal * rate) / 1000; in sisfb_verify_rate() 1186 unsigned int htotal = 0, vtotal = 0; in sisfb_do_set_var() local 1194 vtotal = var->upper_margin + var->lower_margin + var->vsync_len; in sisfb_do_set_var() 1199 vtotal += var->yres; in sisfb_do_set_var() 1200 vtotal <<= 1; in sisfb_do_set_var() 1202 vtotal += var->yres; in sisfb_do_set_var() 1203 vtotal <<= 2; in sisfb_do_set_var() 1205 vtotal += var->yres; in sisfb_do_set_var() [all …]
|
/drivers/gpu/drm/ |
D | drm_modes.c | 58 mode->vsync_end, mode->vtotal, mode->type, mode->flags); in drm_mode_debug_printmodeline() 161 else if (mode->htotal > 0 && mode->vtotal > 0) { in drm_mode_vrefresh() 167 calc_val /= mode->vtotal; in drm_mode_vrefresh() 204 p->crtc_vtotal = p->vtotal; in drm_mode_set_crtcinfo() 301 mode1->vtotal == mode2->vtotal && in drm_mode_equal()
|
/drivers/video/geode/ |
D | display_gx.c | 66 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()
|
D | display_gx1.c | 86 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()
|
D | lxfb_ops.c | 346 int vactive, vblankstart, vsyncstart, vsyncend, vblankend, vtotal; in lx_set_mode() local 472 vtotal = vblankend; in lx_set_mode() 480 write_dc(par, DC_V_ACTIVE_TIMING, (vactive - 1) | ((vtotal - 1) << 16)); in lx_set_mode()
|
/drivers/gpu/drm/i915/ |
D | intel_bios.c | 109 panel_fixed_mode->vtotal = panel_fixed_mode->vdisplay + in parse_panel_data() 117 if (panel_fixed_mode->vsync_end > panel_fixed_mode->vtotal) in parse_panel_data() 118 panel_fixed_mode->vtotal = panel_fixed_mode->vsync_end + 1; in parse_panel_data()
|
D | intel_lvds.c | 201 adjusted_mode->vtotal = dev_priv->panel_fixed_mode->vtotal; in intel_lvds_mode_fixup()
|
/drivers/video/matrox/ |
D | matroxfb_g450.c | 322 unsigned int vtotal; in computeRegs() local 326 vtotal = mt->VTotal; in computeRegs() 329 if (vtotal < outd->v_total) { in computeRegs() 330 unsigned int yovr = outd->v_total - vtotal; in computeRegs() 333 } else if (vtotal > outd->v_total) { in computeRegs()
|
D | matroxfb_maven.c | 210 unsigned int htotal, unsigned int vtotal, in matroxfb_PLL_mavenclock() argument 223 scrlen = htotal * (vtotal - 1); in matroxfb_PLL_mavenclock() 224 fwant = htotal * vtotal; in matroxfb_PLL_mavenclock() 228 fwant, fxtal, htotal, vtotal, fmax); in matroxfb_PLL_mavenclock() 283 unsigned int htotal, unsigned int vtotal, in matroxfb_mavenclock() argument 289 fvco = matroxfb_PLL_mavenclock(&maven1000_pll, ctl, htotal, vtotal, in, feed, &p, htotal2); in matroxfb_mavenclock()
|
/drivers/media/video/bt8xx/ |
D | bttv-risc.c | 365 geo->vtotal = tvnorm->vtotal; in bttv_calc_geo_old() 416 geo->vtotal = tvnorm->vtotal; in bttv_calc_geo() 452 btwrite(geo->vtotal>>8, BT848_VTOTAL_HI); in bttv_apply_geo() 453 btwrite(geo->vtotal & 0xff, BT848_VTOTAL_LO); in bttv_apply_geo()
|
D | bttvp.h | 101 u16 vtotal; member 129 u16 sheight,vscale,vdelay,vtotal; member
|
/drivers/video/vermilion/ |
D | vermilion.c | 784 u32 vtotal, vactive, vblank_start, vblank_end, vsync_start, vsync_end; in vmlfb_set_par_locked() local 803 vtotal = in vmlfb_set_par_locked() 807 vblank_end = vtotal; in vmlfb_set_par_locked() 821 ((clock / htotal) * 1000) / vtotal); in vmlfb_set_par_locked() 850 VML_WRITE32(par, VML_VTOTAL_A, ((vtotal - 1) << 16) | (vactive - 1)); in vmlfb_set_par_locked()
|
/drivers/video/intelfb/ |
D | intelfbhw.c | 1021 u32 vsync_start, vsync_end, vblank_start, vblank_end, vtotal, vactive; in intelfbhw_mode_to_hw() local 1168 vtotal = vsync_end + var->upper_margin; in intelfbhw_mode_to_hw() 1170 vblank_end = vtotal; in intelfbhw_mode_to_hw() 1174 vactive, vsync_start, vsync_end, vtotal, vblank_start, in intelfbhw_mode_to_hw() 1206 vtotal--; in intelfbhw_mode_to_hw() 1207 if (check_overflow(vtotal, VTOTAL_MASK, "CRTC vtotal")) in intelfbhw_mode_to_hw() 1221 *vt = (vtotal << VTOTAL_SHIFT) | (vactive << VACTIVE_SHIFT); in intelfbhw_mode_to_hw()
|
/drivers/video/via/ |
D | viafbdev.c | 167 int vmode_index, htotal, vtotal; in viafb_check_var() local 207 vtotal = var->yres + var->upper_margin + in viafb_check_var() 210 long_refresh /= (htotal * vtotal); in viafb_check_var() 1471 u32 htotal, vtotal, long_refresh; in apply_second_mode_setting() local 1475 vtotal = sec_var->yres + sec_var->upper_margin + in apply_second_mode_setting() 1485 vtotal = sec_var->yres + sec_var->upper_margin + in apply_second_mode_setting() 1488 long_refresh /= (htotal * vtotal); in apply_second_mode_setting()
|