| /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-edp.c | 1023 .vtotal = 768 + 10 + 12 + 6, 1036 .vtotal = 768 + 4 + 6 + 15, 1064 .vtotal = 1080 + 25 + 10 + 10, 1091 .vtotal = 768 + 3 + 6 + 13, 1114 .vtotal = 800 + 3 + 5 + 24, 1125 .vtotal = 800 + 3 + 5 + 24, 1155 .vtotal = 1440 + 3 + 6 + 31, 1167 .vtotal = 1440 + 3 + 6 + 31, 1198 .vtotal = 1080 + 3 + 6 + 31, 1239 .vtotal = 1125, [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 | 725 int vtotal, htotal; in fb_get_monitor_limits() local 739 vtotal = mode->yres + mode->lower_margin + mode->vsync_len in fb_get_monitor_limits() 743 vtotal /= 2; in fb_get_monitor_limits() 746 vtotal *= 2; in fb_get_monitor_limits() 750 hz = (hscan + vtotal / 2) / vtotal; in fb_get_monitor_limits() 1028 u32 vtotal; member 1155 timings->vtotal = timings->vactive + timings->vblank; in fb_timings_vfreq() 1165 timings->vtotal = timings->vactive + timings->vblank; in fb_timings_hfreq() 1166 timings->vfreq = timings->hfreq/timings->vtotal; in fb_timings_hfreq() 1180 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/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/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/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/ |
| 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/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/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/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/drivers/gpu/drm/msm/hdmi/ |
| H A D | hdmi_bridge.c | 363 vstart = mode->vtotal - mode->vsync_start - 1; in msm_hdmi_set_timings() 364 vend = mode->vtotal - mode->vsync_start + mode->vdisplay - 1; in msm_hdmi_set_timings() 367 mode->htotal, mode->vtotal, hstart, hend, vstart, vend); in msm_hdmi_set_timings() 371 HDMI_TOTAL_V_TOTAL(mode->vtotal - 1)); in msm_hdmi_set_timings() 382 HDMI_VSYNC_TOTAL_F2_V_TOTAL(mode->vtotal)); in msm_hdmi_set_timings()
|
| /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/msm/dp/ |
| H A D | dp_panel.c | 309 vsync_period = drm_mode->vtotal; in msm_dp_panel_tpg_enable() 311 display_v_start = ((drm_mode->vtotal - drm_mode->vsync_start) * in msm_dp_panel_tpg_enable() 554 drm_mode->vdisplay, drm_mode->vtotal - drm_mode->vsync_end, in msm_dp_panel_timing_cfg() 560 total_ver = drm_mode->vtotal; in msm_dp_panel_timing_cfg() 568 data = (drm_mode->vtotal - drm_mode->vsync_start); in msm_dp_panel_timing_cfg() 634 drm_mode->vtotal - drm_mode->vsync_end, in msm_dp_panel_init_panel_info()
|
| /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()
|
| /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/amd/display/modules/power/ |
| H A D | power_helpers.c | 1008 uint32_t vtotal) in set_replay_defer_update_coasting_vtotal() argument 1010 link->replay_settings.defer_update_coasting_vtotal_table[type] = vtotal; in set_replay_defer_update_coasting_vtotal() 1024 uint32_t vtotal) in set_replay_coasting_vtotal() argument 1026 link->replay_settings.coasting_vtotal_table[type] = vtotal; in set_replay_coasting_vtotal() 1029 void set_replay_low_rr_full_screen_video_src_vtotal(struct dc_link *link, uint16_t vtotal) in set_replay_low_rr_full_screen_video_src_vtotal() argument 1031 link->replay_settings.low_rr_full_screen_video_pseudo_vtotal = vtotal; in set_replay_low_rr_full_screen_video_src_vtotal() 1035 uint16_t vtotal, uint16_t htotal) in calculate_replay_link_off_frame_count() argument 1046 if (htotal != 0 && vtotal != 0 && pixel_deviation_per_line != 0) in calculate_replay_link_off_frame_count() 1047 max_link_off_frame_count = htotal * max_deviation_line / (pixel_deviation_per_line * vtotal); in calculate_replay_link_off_frame_count()
|