| /linux/drivers/gpu/drm/panel/ |
| H A D | panel-simple.c | 806 .vtotal = 800 + 3 + 10 + 10, 832 .vtotal = 272 + 2 + 10 + 2, 856 .vtotal = 480 + 2 + 45 + 0, 966 .vtotal = 600 + 16 + 6 + 16, 991 .vtotal = 768 + 14 + 42, 1014 .vtotal = 768 + 10 + 12 + 6, 1099 .vtotal = 600 + 10 + 35 + 2, 1123 .vtotal = 600 + 1 + 23 + 4, 1232 .vtotal = 806, 1369 .vtotal = 1080 + 4 + 5 + 36, [all …]
|
| H A D | panel-novatek-nt35560.c | 69 .vtotal = 864 + 14 + 1 + 11, 88 .vtotal = 864 + 1 + 1 + 1, 111 .vtotal = 854 + 14 + 1 + 11, 130 .vtotal = 854 + 1 + 1 + 1,
|
| /linux/drivers/media/i2c/ |
| H A D | ths8200.c | 66 static inline unsigned vtotal(const struct v4l2_bt_timings *t) in vtotal() function 218 uint16_t line_start_front_porch = (vtotal(bt) - bt->vfrontporch); in ths8200_setup() 265 ((vtotal(bt) >> 4) & 0xf0) + 0x7); in ths8200_setup() 266 ths8200_write(sd, THS8200_DTG1_FRAME_SZ_LSB, vtotal(bt) & 0xff); in ths8200_setup() 292 ths8200_write(sd, THS8200_DTG2_BP3_4_MSB, ((vtotal(bt)) >> 4) & 0x70); in ths8200_setup() 295 ths8200_write(sd, THS8200_DTG2_BP3_LSB, (vtotal(bt)) & 0xff); in ths8200_setup() 318 ((vtotal(bt) + 1) >> 8) & 0x7); in ths8200_setup() 319 ths8200_write(sd, THS8200_DTG2_VDLY1_LSB, vtotal(bt) + 1); in ths8200_setup() 356 "vertical: sync %d\n", __func__, htotal(bt), vtotal(bt), in ths8200_setup()
|
| /linux/drivers/video/fbdev/core/ |
| H A D | fbcvt.c | 45 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() 352 cvt.vtotal = fb_cvt_vtotal(&cvt); in fb_find_mode_cvt() 362 cvt.v_back_porch = cvt.vtotal - cvt.yres/cvt.interlace - in fb_find_mode_cvt()
|
| H A D | fbmon.c | 727 int vtotal, htotal; in fb_get_monitor_limits() local 741 vtotal = mode->yres + mode->lower_margin + mode->vsync_len in fb_get_monitor_limits() 745 vtotal /= 2; in fb_get_monitor_limits() 748 vtotal *= 2; in fb_get_monitor_limits() 752 hz = (hscan + vtotal / 2) / vtotal; in fb_get_monitor_limits() 1030 u32 vtotal; member 1157 timings->vtotal = timings->vactive + timings->vblank; in fb_timings_vfreq() 1167 timings->vtotal = timings->vactive + timings->vblank; in fb_timings_hfreq() 1168 timings->vfreq = timings->hfreq/timings->vtotal; in fb_timings_hfreq() 1182 timings->vtotal = timings->vactive + timings->vblank; in fb_timings_dclk() [all …]
|
| /linux/drivers/gpu/drm/exynos/ |
| H A D | exynos_hdmi.c | 1222 (m->htotal << 12) | m->vtotal); in hdmi_v13_mode_apply() 1247 val = m->vtotal / 2; in hdmi_v13_mode_apply() 1248 val |= ((m->vtotal - m->vdisplay) / 2) << 11; in hdmi_v13_mode_apply() 1251 val = (m->vtotal + in hdmi_v13_mode_apply() 1253 val |= m->vtotal << 11; in hdmi_v13_mode_apply() 1256 val = ((m->vtotal / 2) + 7); in hdmi_v13_mode_apply() 1257 val |= ((m->vtotal / 2) + 2) << 12; in hdmi_v13_mode_apply() 1266 (m->vtotal - m->vdisplay) / 2); in hdmi_v13_mode_apply() 1271 val = m->vtotal; in hdmi_v13_mode_apply() 1272 val |= (m->vtotal - m->vdisplay) << 11; in hdmi_v13_mode_apply() [all …]
|
| /linux/drivers/gpu/drm/gud/ |
| H A D | gud_internal.h | 145 dst->vtotal = cpu_to_le16(src->vtotal); in gud_from_display_mode() 163 dst->vtotal = le16_to_cpu(src->vtotal); in gud_to_display_mode()
|
| /linux/drivers/gpu/drm/i915/display/ |
| H A D | dvo_ns2501.c | 217 u16 vtotal; /* number of lines generated, 82/83 */ member 244 .vtotal = 1341, 264 .vtotal = 1341, 283 .vtotal = 1341, 532 mode->hdisplay, mode->htotal, mode->vdisplay, mode->vtotal); in ns2501_mode_valid() 559 mode->hdisplay, mode->htotal, mode->vdisplay, mode->vtotal); in ns2501_mode_set() 627 ns2501_writeb(dvo, NS2501_REG82, conf->vtotal & 0xff); in ns2501_mode_set() 628 ns2501_writeb(dvo, NS2501_REG83, conf->vtotal >> 8); in ns2501_mode_set()
|
| H A D | intel_dsb.c | 156 int vtotal = dsb_vtotal(state, crtc); in dsb_scanline_to_hw() local 158 return (scanline + vtotal - intel_crtc_scanline_offset(crtc_state)) % vtotal; in dsb_scanline_to_hw() 461 int vtotal = dsb_vtotal(state, crtc); in assert_dsl_ok() local 467 drm_WARN(crtc->base.dev, (end - start + vtotal) % vtotal == vtotal - 1, in assert_dsl_ok() 470 start, end, vtotal); in assert_dsl_ok()
|
| /linux/drivers/video/fbdev/sis/ |
| H A D | initextlfb.c | 27 int *htotal, int *vtotal, unsigned char rateindex); 165 int *vtotal, unsigned char rateindex) in sisfb_gettotalfrommode() argument 206 *vtotal = ((cr_data & 0xFF) | in sisfb_gettotalfrommode() 212 *vtotal *= 2; in sisfb_gettotalfrommode()
|
| /linux/drivers/gpu/drm/ |
| H A D | drm_modes.c | 334 unsigned int htotal, vtotal; in fill_analog_mode() local 497 vtotal = vactive + vfp + vslen + vbp; in fill_analog_mode() 498 if (params->num_lines != vtotal) { in fill_analog_mode() 500 vtotal, params->num_lines); in fill_analog_mode() 507 mode->vtotal = mode->vsync_end + vbp; in fill_analog_mode() 509 if (mode->vtotal != params->num_lines) in fill_analog_mode() 736 drm_mode->vtotal = vdisplay_rnd + 2 * vmargin + in drm_cvt_mode() 792 drm_mode->vtotal = vdisplay_rnd + 2 * vmargin + vbilines; in drm_cvt_mode() 811 drm_mode->vtotal *= 2; in drm_cvt_mode() 1000 drm_mode->vtotal = vtotal_lines; in drm_gtf_mode_complex() [all …]
|
| /linux/drivers/gpu/drm/mgag200/ |
| H A D | mgag200_mode.c | 218 unsigned int vdispend, vsyncstr, vsyncend, vtotal, vblkstr, vblkend; in mgag200_set_mode_regs() local 235 vtotal = mode->crtc_vtotal - 2; in mgag200_set_mode_regs() 237 vblkend = vtotal + 1; in mgag200_set_mode_regs() 261 crtcext2 = ((vtotal & 0xc00) >> 10) | in mgag200_set_mode_regs() 274 WREG_CRT(0x06, vtotal & 0xff); in mgag200_set_mode_regs() 275 WREG_CRT(0x07, ((vtotal & 0x100) >> 8) | in mgag200_set_mode_regs() 280 ((vtotal & 0x200) >> 4) | in mgag200_set_mode_regs() 770 if (!mode->htotal || !mode->vtotal || !mode->clock) in mgag200_calculate_mode_bandwidth() 774 total_area = mode->htotal * mode->vtotal; in mgag200_calculate_mode_bandwidth()
|
| /linux/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
| H A D | uhead.c | 54 args->v0.vtotal = head->arm.vtotal; in nvkm_uhead_mthd_scanoutpos() 65 if (!args->v0.vtotal || !args->v0.htotal) in nvkm_uhead_mthd_scanoutpos()
|
| H A D | nv04.c | 58 state->vtotal = nvkm_rd32(device, 0x680804 + hoff) & 0x0000ffff; in nv04_head_state() 59 state->vblanke = state->vtotal - 1; in nv04_head_state()
|
| /linux/drivers/gpu/drm/msm/disp/mdp5/ |
| H A D | mdp5_cmd_encoder.c | 35 total_lines = mode->vtotal * drm_mode_vrefresh(mode); in pingpong_tearcheck_setup() 38 __func__, mode->vtotal, drm_mode_vrefresh(mode)); in pingpong_tearcheck_setup() 63 REG_MDP5_PP_SYNC_CONFIG_HEIGHT(pp_id), (2 * mode->vtotal)); in pingpong_tearcheck_setup()
|
| /linux/drivers/gpu/drm/tests/ |
| H A D | drm_modes_test.c | 70 KUNIT_EXPECT_EQ(test, mode->vtotal, 525); in drm_test_modes_analog_tv_ntsc_480i() 128 KUNIT_EXPECT_EQ(test, mode->vtotal, 625); in drm_test_modes_analog_tv_pal_576i() 186 KUNIT_EXPECT_EQ(test, mode->vtotal, 625); in drm_test_modes_analog_tv_mono_576i()
|
| /linux/drivers/video/fbdev/ |
| H A D | amifb.c | 762 u_short vtotal; /* vmode */ member 1030 #define vtotal2hw(vtotal) (div2(vtotal) - 1) argument 1133 u_int htotal, vtotal; in ami_decode_var() local 1224 par->vtotal = in ami_decode_var() 1241 par->diwstop_v = par->vtotal - in ami_decode_var() 1248 if (par->diwstop_v > par->vtotal) { in ami_decode_var() 1265 if (par->vtotal > (PAL_VTOTAL + NTSC_VTOTAL) / 2) { in ami_decode_var() 1280 vtotal = PAL_VTOTAL>>1; in ami_decode_var() 1310 vtotal = NTSC_VTOTAL>>1; in ami_decode_var() 1345 par->diwstop_v = par->vtotal; in ami_decode_var() [all …]
|
| H A D | pvr2fb.c | 360 unsigned int vtotal; in pvr2fb_set_par() local 389 vtotal = par->vsync_total; in pvr2fb_set_par() 391 vtotal /= 2; in pvr2fb_set_par() 392 if (vtotal > (PAL_VTOTAL + NTSC_VTOTAL)/2) { in pvr2fb_set_par() 435 unsigned int vtotal, hsync_total; in pvr2fb_check_var() local 505 vtotal = var->upper_margin + var->yres + var->lower_margin + in pvr2fb_check_var() 510 vtotal /= 2; in pvr2fb_check_var() 511 if (vtotal > (PAL_VTOTAL + NTSC_VTOTAL)/2) { in pvr2fb_check_var()
|
| H A D | cirrusfb.c | 668 int yres, vdispend, vsyncstart, vsyncend, vtotal; in cirrusfb_set_par_foo() local 710 vtotal = vsyncend + var->upper_margin; in cirrusfb_set_par_foo() 716 vtotal *= 2; in cirrusfb_set_par_foo() 721 vtotal = (vtotal + 1) / 2; in cirrusfb_set_par_foo() 725 vtotal /= 2; in cirrusfb_set_par_foo() 734 vtotal -= 2; in cirrusfb_set_par_foo() 775 dev_dbg(info->device, "CRT6: %d\n", vtotal & 0xff); in cirrusfb_set_par_foo() 776 vga_wcrt(regbase, VGA_CRTC_V_TOTAL, vtotal & 0xff); in cirrusfb_set_par_foo() 779 if (vtotal & 256) in cirrusfb_set_par_foo() 787 if (vtotal & 512) in cirrusfb_set_par_foo() [all …]
|
| /linux/include/drm/ |
| H A D | drm_modes.h | 138 .vsync_start = (vss), .vsync_end = (vse), .vtotal = (vt), \ 153 .vsync_end = (vd), .vtotal = (vd), .width_mm = (hd_mm), \ 267 u16 vtotal; member 434 (m)->vdisplay, (m)->vsync_start, (m)->vsync_end, (m)->vtotal, \
|
| /linux/drivers/video/fbdev/geode/ |
| H A D | display_gx1.c | 82 int vactive, vblankstart, vsyncstart, vsyncend, vblankend, vtotal; in gx1_set_mode() local 159 vtotal = vblankend; in gx1_set_mode() 168 val = (vactive - 1) | ((vtotal - 1) << 16); in gx1_set_mode()
|
| /linux/drivers/gpu/drm/msm/disp/mdp4/ |
| H A D | mdp4_dsi_encoder.c | 54 vsync_period = mode->vtotal * mode->htotal; in mdp4_dsi_encoder_mode_set() 56 display_v_start = (mode->vtotal - mode->vsync_start) * mode->htotal + dsi_hsync_skew; in mdp4_dsi_encoder_mode_set()
|
| /linux/drivers/gpu/drm/gma500/ |
| H A D | intel_bios.c | 166 panel_fixed_mode->vtotal = panel_fixed_mode->vdisplay + in fill_detail_timing_data() 184 if (panel_fixed_mode->vsync_end > panel_fixed_mode->vtotal) in fill_detail_timing_data() 185 panel_fixed_mode->vtotal = panel_fixed_mode->vsync_end + 1; in fill_detail_timing_data() 259 if (panel_fixed_mode->htotal > 0 && panel_fixed_mode->vtotal > 0) { in parse_lfp_panel_data()
|
| /linux/drivers/gpu/drm/sti/ |
| H A D | sti_vtg.c | 228 risesync_top = mode->vtotal; in vtg_set_hsync_vsync_pos() 254 writel(mode->vtotal * 2, vtg->regs + VTG_HLFLN); in vtg_set_mode() 322 u32 start_line = mode.vtotal - mode.vsync_start + 1; in sti_vtg_get_line_number()
|
| /linux/drivers/gpu/drm/sun4i/ |
| H A D | sun4i_rgb.c | 95 if ((mode->vdisplay < 1) || (mode->vtotal < 1)) in sun4i_rgb_mode_valid() 98 if ((mode->vdisplay > 0x7ff) || (mode->vtotal > 0xfff)) in sun4i_rgb_mode_valid()
|