| /linux/drivers/gpu/drm/panel/ |
| A D | panel-simple.c | 737 .htotal = 480 + 2 + 41 + 2, 761 .htotal = 800 + 0 + 255 + 0, 836 .htotal = 1366 + 20 + 70, 989 .htotal = 1560, 1202 .htotal = 480 + 5 + 5 + 40, 1495 .htotal = 320 + 20 + 68, 1520 .htotal = 320 + 20 + 68, 1546 .htotal = 480 + 8 + 4 + 41, 1576 .htotal = 480 + 2 + 41 + 2, 1832 .htotal = 480 + 5 + 1 + 40, [all …]
|
| A D | panel-edp.c | 918 .htotal = 1366 + 48 + 32 + 10, 944 .htotal = 1366 + 40 + 40 + 32, 970 .htotal = 1920 + 58 + 42 + 60, 1024 .htotal = 1366 + 48 + 32 + 20, 1199 .htotal = 2200, 1289 .htotal = 1920 + 40 + 40 + 80, 1311 .htotal = 2160 + 48 + 32 + 80, 1338 .htotal = 1920 + 24 + 48 + 88, 1365 .htotal = 1366 + 40 + 32 + 62, 1391 .htotal = 1536 + 12 + 16 + 48, [all …]
|
| A D | panel-arm-versatile.c | 141 .htotal = 320 + 6 + 6 + 6, 164 .htotal = 640 + 24 + 96 + 24, 186 .htotal = 176 + 2 + 3 + 3, 209 .htotal = 240 + 10 + 10 + 20,
|
| A D | panel-tpo-tpg110.c | 109 .htotal = 800 + 40 + 1 + 216, 125 .htotal = 640 + 24 + 1 + 136, 141 .htotal = 480 + 2 + 1 + 43, 157 .htotal = 480 + 2 + 1 + 43, 173 .htotal = 400 + 20 + 1 + 108,
|
| /linux/drivers/gpu/drm/msm/disp/mdp4/ |
| A D | mdp4_dsi_encoder.c | 61 hsync_start_x = (mode->htotal - mode->hsync_start); in mdp4_dsi_encoder_mode_set() 62 hsync_end_x = mode->htotal - (mode->hsync_start - mode->hdisplay) - 1; in mdp4_dsi_encoder_mode_set() 64 vsync_period = mode->vtotal * mode->htotal; in mdp4_dsi_encoder_mode_set() 65 vsync_len = (mode->vsync_end - mode->vsync_start) * mode->htotal; in mdp4_dsi_encoder_mode_set() 66 display_v_start = (mode->vtotal - mode->vsync_start) * mode->htotal + dsi_hsync_skew; in mdp4_dsi_encoder_mode_set() 67 …display_v_end = vsync_period - ((mode->vsync_start - mode->vdisplay) * mode->htotal) + dsi_hsync_s… in mdp4_dsi_encoder_mode_set() 71 MDP4_DSI_HSYNC_CTRL_PERIOD(mode->htotal)); in mdp4_dsi_encoder_mode_set()
|
| A D | mdp4_dtv_encoder.c | 66 hsync_start_x = (mode->htotal - mode->hsync_start); in mdp4_dtv_encoder_mode_set() 67 hsync_end_x = mode->htotal - (mode->hsync_start - mode->hdisplay) - 1; in mdp4_dtv_encoder_mode_set() 69 vsync_period = mode->vtotal * mode->htotal; in mdp4_dtv_encoder_mode_set() 70 vsync_len = (mode->vsync_end - mode->vsync_start) * mode->htotal; in mdp4_dtv_encoder_mode_set() 71 display_v_start = (mode->vtotal - mode->vsync_start) * mode->htotal + dtv_hsync_skew; in mdp4_dtv_encoder_mode_set() 72 …display_v_end = vsync_period - ((mode->vsync_start - mode->vdisplay) * mode->htotal) + dtv_hsync_s… in mdp4_dtv_encoder_mode_set() 76 MDP4_DTV_HSYNC_CTRL_PERIOD(mode->htotal)); in mdp4_dtv_encoder_mode_set()
|
| A D | mdp4_lcdc_encoder.c | 241 hsync_start_x = (mode->htotal - mode->hsync_start); in mdp4_lcdc_encoder_mode_set() 242 hsync_end_x = mode->htotal - (mode->hsync_start - mode->hdisplay) - 1; in mdp4_lcdc_encoder_mode_set() 244 vsync_period = mode->vtotal * mode->htotal; in mdp4_lcdc_encoder_mode_set() 245 vsync_len = (mode->vsync_end - mode->vsync_start) * mode->htotal; in mdp4_lcdc_encoder_mode_set() 246 display_v_start = (mode->vtotal - mode->vsync_start) * mode->htotal + lcdc_hsync_skew; in mdp4_lcdc_encoder_mode_set() 247 …display_v_end = vsync_period - ((mode->vsync_start - mode->vdisplay) * mode->htotal) + lcdc_hsync_… in mdp4_lcdc_encoder_mode_set() 251 MDP4_LCDC_HSYNC_CTRL_PERIOD(mode->htotal)); in mdp4_lcdc_encoder_mode_set()
|
| /linux/drivers/gpu/drm/i915/display/ |
| A D | intel_tv.c | 315 u16 hblank_start, hblank_end, htotal; member 389 .hblank_start = 836, .htotal = 857, 431 .hblank_start = 836, .htotal = 857, 474 .hblank_start = 836, .htotal = 857, 517 .hblank_start = 836, .htotal = 857, 560 .hblank_start = 844, .htotal = 863, 605 .hblank_start = 844, .htotal = 863, 1004 tv_mode->htotal - tv_mode->hblank_start; in intel_tv_mode_to_mode() 1007 mode->htotal = tv_mode->htotal + 1; in intel_tv_mode_to_mode() 1063 mode->htotal = new_htotal; in intel_tv_scale_mode_horiz() [all …]
|
| /linux/drivers/media/i2c/ |
| A D | ths8200.c | 61 static inline unsigned htotal(const struct v4l2_bt_timings *t) in htotal() function 252 ths8200_write(sd, THS8200_DTG1_SPEC_G_LSB, (htotal(bt)/2) & 0xff); in ths8200_setup() 254 ((htotal(bt)/2) >> 8) & 0x0f); in ths8200_setup() 257 ths8200_write(sd, THS8200_DTG1_TOT_PIXELS_MSB, htotal(bt) >> 8); in ths8200_setup() 258 ths8200_write(sd, THS8200_DTG1_TOT_PIXELS_LSB, htotal(bt) & 0xff); in ths8200_setup() 308 (htotal(bt) >> 8) & 0x1f); in ths8200_setup() 309 ths8200_write(sd, THS8200_DTG2_HLENGTH_HDLY_LSB, htotal(bt)); in ths8200_setup() 356 "vertical: sync %d\n", __func__, htotal(bt), vtotal(bt), in ths8200_setup()
|
| /linux/drivers/gpu/drm/msm/disp/mdp5/ |
| A D | mdp5_encoder.c | 84 hsync_start_x = (mode->htotal - mode->hsync_start); in mdp5_vid_encoder_mode_set() 85 hsync_end_x = mode->htotal - (mode->hsync_start - mode->hdisplay) - 1; in mdp5_vid_encoder_mode_set() 87 vsync_period = mode->vtotal * mode->htotal; in mdp5_vid_encoder_mode_set() 88 vsync_len = (mode->vsync_end - mode->vsync_start) * mode->htotal; in mdp5_vid_encoder_mode_set() 89 display_v_start = (mode->vtotal - mode->vsync_start) * mode->htotal + dtv_hsync_skew; in mdp5_vid_encoder_mode_set() 90 …display_v_end = vsync_period - ((mode->vsync_start - mode->vdisplay) * mode->htotal) + dtv_hsync_s… in mdp5_vid_encoder_mode_set() 98 display_v_start += mode->htotal - mode->hsync_start; in mdp5_vid_encoder_mode_set() 106 MDP5_INTF_HSYNC_CTL_PERIOD(mode->htotal)); in mdp5_vid_encoder_mode_set()
|
| /linux/drivers/video/fbdev/core/ |
| A D | fbmon.c | 722 int vtotal, htotal; in fb_get_monitor_limits() local 745 hscan = (pixclock + htotal / 2) / htotal; in fb_get_monitor_limits() 1024 u32 htotal; member 1156 timings->dclk = timings->htotal * timings->hfreq; in fb_timings_vfreq() 1167 timings->dclk = timings->htotal * timings->hfreq; in fb_timings_hfreq() 1175 timings->hfreq = timings->dclk/timings->htotal; in fb_timings_dclk() 1296 var->hsync_len = (timings->htotal * 8)/100; in fb_get_mode() 1314 unsigned int htotal, vtotal; in fb_videomode_from_videomode() local 1347 if (htotal && vtotal) { in fb_videomode_from_videomode() 1435 u32 hfreq, vfreq, htotal, vtotal, pixclock; in fb_validate_mode() local [all …]
|
| A D | fbcvt.c | 44 u32 htotal; member 132 hsync = (FB_CVT_CELLSIZE * cvt->htotal)/100; in fb_cvt_hsync() 177 pixclock = (cvt->f_refresh * cvt->vtotal * cvt->htotal)/1000; in fb_cvt_pixclock() 179 pixclock = (cvt->htotal * 1000000)/cvt->hperiod; in fb_cvt_pixclock() 365 cvt.htotal = cvt.active_pixels + cvt.hblank; in fb_find_mode_cvt() 368 cvt.hfreq = cvt.pixclock/cvt.htotal; in fb_find_mode_cvt()
|
| /linux/drivers/gpu/drm/amd/display/dc/dml/dcn20/ |
| A D | display_rq_dlg_calc_20.c | 806 unsigned int htotal = dst->htotal; in dml20_rq_dlg_get_dlg_params() local 992 line_time_in_us = (htotal / pclk_freq_in_mhz); in dml20_rq_dlg_get_dlg_params() 1116 if (htotal <= 75) { in dml20_rq_dlg_get_dlg_params() 1410 (unsigned int) (dst_y_per_row_vblank * (double) htotal in dml20_rq_dlg_get_dlg_params() 1416 * (double) htotal * ref_freq_to_pix_freq in dml20_rq_dlg_get_dlg_params() 1423 (unsigned int) (dst_y_per_row_vblank * (double) htotal in dml20_rq_dlg_get_dlg_params() 1437 * htotal * ref_freq_to_pix_freq) / dpte_groups_per_row_ub_c; in dml20_rq_dlg_get_dlg_params() 1464 / (double) vratio_l * (double) htotal * ref_freq_to_pix_freq in dml20_rq_dlg_get_dlg_params() 1469 / (double) vratio_l * (double) htotal * ref_freq_to_pix_freq in dml20_rq_dlg_get_dlg_params() 1477 * (double) htotal * ref_freq_to_pix_freq in dml20_rq_dlg_get_dlg_params() [all …]
|
| A D | display_rq_dlg_calc_20v2.c | 806 unsigned int htotal = dst->htotal; in dml20v2_rq_dlg_get_dlg_params() local 993 line_time_in_us = (htotal / pclk_freq_in_mhz); in dml20v2_rq_dlg_get_dlg_params() 1117 if (htotal <= 75) { in dml20v2_rq_dlg_get_dlg_params() 1411 (unsigned int) (dst_y_per_row_vblank * (double) htotal in dml20v2_rq_dlg_get_dlg_params() 1417 * (double) htotal * ref_freq_to_pix_freq in dml20v2_rq_dlg_get_dlg_params() 1424 (unsigned int) (dst_y_per_row_vblank * (double) htotal in dml20v2_rq_dlg_get_dlg_params() 1438 * htotal * ref_freq_to_pix_freq) / dpte_groups_per_row_ub_c; in dml20v2_rq_dlg_get_dlg_params() 1465 / (double) vratio_l * (double) htotal * ref_freq_to_pix_freq in dml20v2_rq_dlg_get_dlg_params() 1470 / (double) vratio_l * (double) htotal * ref_freq_to_pix_freq in dml20v2_rq_dlg_get_dlg_params() 1478 * (double) htotal * ref_freq_to_pix_freq in dml20v2_rq_dlg_get_dlg_params() [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/calcs/ |
| A D | dcn_calc_auto.c | 785 v->v_update_offset[k][j] = dcn_bw_ceil2(v->htotal[k] / 4.0, 1.0); in mode_support_and_system_configuration() 802 …htotal[k] / v->pixel_clock[k]) - (v->time_calc + v->time_setup) / (v->htotal[k] / v->pixel_clock[k… in mode_support_and_system_configuration() 810 v->htotal[k] / v->pixel_clock[k] / 4.0); in mode_support_and_system_configuration() 812 v->time_for_meta_pte_without_immediate_flip = v->htotal[k] / v->pixel_clock[k] / 4.0; in mode_support_and_system_configuration() 818 v->htotal[k] / v->pixel_clock[k] - v->time_for_meta_pte_without_immediate_flip, in mode_support_and_system_configuration() 822 v->htotal[k] / v->pixel_clock[k] - v->time_for_meta_pte_without_immediate_flip, in mode_support_and_system_configuration() 850 v->time_for_meta_pte_with_immediate_flip = v->htotal[k] / v->pixel_clock[k] / 4.0; in mode_support_and_system_configuration() 1393 v->v_blank_time = (v->vtotal[k] - v->vactive[k]) * v->htotal[k] / v->pixel_clock[k]; in dispclkdppclkdcfclk_deep_sleep_prefetch_parameters_watermarks_and_performance_calculation() 1653 v->v_update_offset_pix[k] = dcn_bw_ceil2(v->htotal[k] / 4.0, 1.0); in dispclkdppclkdcfclk_deep_sleep_prefetch_parameters_watermarks_and_performance_calculation() 1668 …htotal[k] / v->pixel_clock[k]) - (v->t_calc + v->t_setup) / (v->htotal[k] / v->pixel_clock[k]) - (… in dispclkdppclkdcfclk_deep_sleep_prefetch_parameters_watermarks_and_performance_calculation() [all …]
|
| /linux/drivers/gpu/drm/mgag200/ |
| A D | mgag200_mode.c | 356 unsigned int hdisplay, hsyncstart, hsyncend, htotal; in mgag200_set_mode_regs() local 363 htotal = mode->htotal / 8 - 1; in mgag200_set_mode_regs() 366 if ((htotal & 0x07) == 0x06 || (htotal & 0x07) == 0x04) in mgag200_set_mode_regs() 367 htotal++; in mgag200_set_mode_regs() 386 crtcext1 = (((htotal - 4) & 0x100) >> 8) | in mgag200_set_mode_regs() 389 (htotal & 0x40); in mgag200_set_mode_regs() 401 WREG_CRT(0, htotal - 4); in mgag200_set_mode_regs() 404 WREG_CRT(3, (htotal & 0x1F) | 0x80); in mgag200_set_mode_regs() 406 WREG_CRT(5, ((htotal & 0x20) << 2) | (hsyncend & 0x1F)); in mgag200_set_mode_regs() 689 if (!mode->htotal || !mode->vtotal || !mode->clock) in mga_vga_calculate_mode_bandwidth() [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/dml/dcn21/ |
| A D | display_rq_dlg_calc_21.c | 852 unsigned int htotal = dst->htotal; in dml_rq_dlg_get_dlg_params() local 1044 line_time_in_us = (htotal / pclk_freq_in_mhz); in dml_rq_dlg_get_dlg_params() 1166 if (htotal <= 75) { in dml_rq_dlg_get_dlg_params() 1485 (unsigned int) (dst_y_per_row_vblank * (double) htotal in dml_rq_dlg_get_dlg_params() 1495 * (double) htotal * ref_freq_to_pix_freq in dml_rq_dlg_get_dlg_params() 1507 (unsigned int) (dst_y_per_row_vblank * (double) htotal in dml_rq_dlg_get_dlg_params() 1523 * htotal * ref_freq_to_pix_freq) / dpte_groups_per_row_ub_c; in dml_rq_dlg_get_dlg_params() 1572 / (double) vratio_l * (double) htotal * ref_freq_to_pix_freq in dml_rq_dlg_get_dlg_params() 1577 / (double) vratio_l * (double) htotal * ref_freq_to_pix_freq in dml_rq_dlg_get_dlg_params() 1585 * (double) htotal * ref_freq_to_pix_freq in dml_rq_dlg_get_dlg_params() [all …]
|
| /linux/drivers/gpu/drm/gud/ |
| A D | gud_internal.h | 138 dst->htotal = cpu_to_le16(src->htotal); in gud_from_display_mode() 156 dst->htotal = le16_to_cpu(src->htotal); in gud_to_display_mode()
|
| /linux/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
| A D | head.c | 60 args->v0.htotal = head->arm.htotal; in nvkm_head_mthd_scanoutpos() 68 if (!args->v0.vtotal || !args->v0.htotal) in nvkm_head_mthd_scanoutpos()
|
| /linux/drivers/gpu/drm/amd/display/dc/dml/dcn30/ |
| A D | display_rq_dlg_calc_30.c | 1006 unsigned int htotal = dst->htotal; in dml_rq_dlg_get_dlg_params() local 1193 line_time_in_us = (htotal / pclk_freq_in_mhz); in dml_rq_dlg_get_dlg_params() 1356 if (htotal <= 75) { in dml_rq_dlg_get_dlg_params() 1672 (unsigned int)(dst_y_per_row_vblank * (double)htotal in dml_rq_dlg_get_dlg_params() 1678 * (double)htotal * ref_freq_to_pix_freq in dml_rq_dlg_get_dlg_params() 1685 (unsigned int)(dst_y_per_row_vblank * (double)htotal in dml_rq_dlg_get_dlg_params() 1699 * htotal * ref_freq_to_pix_freq) / dpte_groups_per_row_ub_c; in dml_rq_dlg_get_dlg_params() 1746 / (double)vratio_l * (double)htotal * ref_freq_to_pix_freq in dml_rq_dlg_get_dlg_params() 1751 / (double)vratio_l * (double)htotal * ref_freq_to_pix_freq in dml_rq_dlg_get_dlg_params() 1759 * (double)htotal * ref_freq_to_pix_freq in dml_rq_dlg_get_dlg_params() [all …]
|
| /linux/drivers/video/fbdev/matrox/ |
| A D | matroxfb_maven.c | 226 unsigned int htotal, unsigned int vtotal, in matroxfb_PLL_mavenclock() argument 239 scrlen = htotal * (vtotal - 1); in matroxfb_PLL_mavenclock() 240 fwant = htotal * vtotal; in matroxfb_PLL_mavenclock() 244 fwant, fxtal, htotal, vtotal, fmax); in matroxfb_PLL_mavenclock() 277 if (ln > htotal) in matroxfb_PLL_mavenclock() 299 unsigned int htotal, unsigned int vtotal, in matroxfb_mavenclock() argument 748 m->htotal = h - 2; in maven_find_exact_clocks() 801 m->regs[0xA0] = m->htotal; in maven_compute_timming() 802 m->regs[0xA1] = m->htotal >> 8; in maven_compute_timming() 873 if (ib >= m->htotal + 2) { in maven_compute_timming() [all …]
|
| /linux/drivers/gpu/drm/ |
| A D | drm_modes.c | 277 drm_mode->htotal = drm_mode->hdisplay + hblank; in drm_cvt_mode() 280 (drm_mode->htotal * CVT_HSYNC_PERCENTAGE) / 100; in drm_cvt_mode() 513 drm_mode->htotal = total_pixels; in drm_gtf_mode_complex() 594 dmode->htotal = dmode->hsync_end + vm->hback_porch; in drm_display_mode_from_videomode() 762 if (mode->htotal == 0 || mode->vtotal == 0) in drm_mode_vrefresh() 766 den = mode->htotal * mode->vtotal; in drm_mode_vrefresh() 823 p->crtc_htotal = p->htotal; in drm_mode_set_crtcinfo() 927 mode1->htotal == mode2->htotal && in drm_mode_match_timings() 1095 mode->htotal < mode->hsync_end) in drm_mode_validate_basic() 1905 out->htotal = in->htotal; in drm_mode_convert_to_umode() [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/dml/ |
| A D | dml1_display_rq_dlg_calc.c | 1010 unsigned int htotal = e2e_pipe_param->pipe.dest.htotal; in dml1_rq_dlg_get_dlg_params() local 1224 line_time_in_us = (htotal / pclk_freq_in_mhz); in dml1_rq_dlg_get_dlg_params() 1290 if (dst_x_after_scaler >= htotal) { in dml1_rq_dlg_get_dlg_params() 1291 dst_x_after_scaler = dst_x_after_scaler - htotal; in dml1_rq_dlg_get_dlg_params() 1488 if (htotal <= 75) { in dml1_rq_dlg_get_dlg_params() 1535 (unsigned int) (dst_y_per_row_vblank * (double) htotal in dml1_rq_dlg_get_dlg_params() 1540 (unsigned int) (dst_y_per_row_vblank * (double) htotal in dml1_rq_dlg_get_dlg_params() 1545 (unsigned int) (dst_y_per_row_vblank * (double) htotal in dml1_rq_dlg_get_dlg_params() 1578 / (double) vratio_l * (double) htotal * ref_freq_to_pix_freq in dml1_rq_dlg_get_dlg_params() 1584 / (double) vratio_c * (double) htotal * ref_freq_to_pix_freq in dml1_rq_dlg_get_dlg_params() [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/dml/dcn31/ |
| A D | display_rq_dlg_calc_31.c | 966 unsigned int htotal = dst->htotal; in dml_rq_dlg_get_dlg_params() local 1074 …disp_dlg_regs->refcyc_per_htotal = (unsigned int) (ref_freq_to_pix_freq * (double) htotal * dml_po… in dml_rq_dlg_get_dlg_params() 1143 …if (vstartup_start / 2.0 - (double) (vready_offset + vupdate_width + vupdate_offset) / htotal <= v… in dml_rq_dlg_get_dlg_params() 1148 …if (vstartup_start - (double) (vready_offset + vupdate_width + vupdate_offset) / htotal <= vblank_… in dml_rq_dlg_get_dlg_params() 1206 dml_print("DML_DLG: %s: htotal = %d\n", __func__, htotal); in dml_rq_dlg_get_dlg_params() 1220 if (htotal <= 75) { in dml_rq_dlg_get_dlg_params() 1564 …disp_dlg_regs->refcyc_per_pte_group_flip_l = (unsigned int) (dst_y_per_row_flip * htotal * ref_fre… in dml_rq_dlg_get_dlg_params() 1565 …disp_dlg_regs->refcyc_per_meta_chunk_flip_l = (unsigned int) (dst_y_per_row_flip * htotal * ref_fr… in dml_rq_dlg_get_dlg_params() 1568 …disp_dlg_regs->refcyc_per_pte_group_flip_c = (unsigned int) (dst_y_per_row_flip * htotal * ref_fre… in dml_rq_dlg_get_dlg_params() 1569 …disp_dlg_regs->refcyc_per_meta_chunk_flip_c = (unsigned int) (dst_y_per_row_flip * htotal * ref_fr… in dml_rq_dlg_get_dlg_params() [all …]
|
| /linux/drivers/video/fbdev/ |
| A D | amifb.c | 761 u_short htotal; /* vmode */ member 1027 #define htotal2hw(htotal) (div8(htotal) - 1) argument 1031 #define hcenter2hw(htotal) (div8(htotal)) argument 1133 u_int htotal, vtotal; in ami_decode_var() local 1233 par->diwstop_h = par->htotal - in ami_decode_var() 1341 par->hbstrt -= par->htotal; in ami_decode_var() 1355 if (par->htotal > 2048) { in ami_decode_var() 1369 htotal = par->htotal>>clk_shift; in ami_decode_var() 1710 custom.htotal = htotal2hw(par->htotal); in ami_init_display() 1785 custom.htotal = htotal2hw(par->htotal); in ami_do_blank() [all …]
|