/Linux-v4.19/drivers/gpu/drm/panel/ |
D | panel-simple.c | 394 .htotal = 480 + 2 + 41 + 2, 419 .htotal = 800 + 0 + 255 + 0, 444 .htotal = 1024 + 156 + 8 + 156, 467 .htotal = 1280 + 119 + 32 + 21, 490 .htotal = 1366 + 20 + 70, 514 .htotal = 1366 + 40 + 40 + 32, 537 .htotal = 1366 + 48 + 32 + 20, 560 .htotal = 1920 + 172 + 80 + 60, 616 .htotal = 800 + 40 + 216 + 128, 725 .htotal = 1920 + 88 + 44 + 148, [all …]
|
D | panel-arm-versatile.c | 139 .htotal = 320 + 6 + 6 + 6, 163 .htotal = 640 + 24 + 96 + 24, 186 .htotal = 176 + 2 + 3 + 3, 210 .htotal = 240 + 10 + 10 + 20,
|
/Linux-v4.19/drivers/gpu/drm/msm/disp/mdp4/ |
D | mdp4_dsi_encoder.c | 65 mode->hsync_end, mode->htotal, in mdp4_dsi_encoder_mode_set() 79 hsync_start_x = (mode->htotal - mode->hsync_start); in mdp4_dsi_encoder_mode_set() 80 hsync_end_x = mode->htotal - (mode->hsync_start - mode->hdisplay) - 1; in mdp4_dsi_encoder_mode_set() 82 vsync_period = mode->vtotal * mode->htotal; in mdp4_dsi_encoder_mode_set() 83 vsync_len = (mode->vsync_end - mode->vsync_start) * mode->htotal; in mdp4_dsi_encoder_mode_set() 84 display_v_start = (mode->vtotal - mode->vsync_start) * mode->htotal + dsi_hsync_skew; in mdp4_dsi_encoder_mode_set() 85 …display_v_end = vsync_period - ((mode->vsync_start - mode->vdisplay) * mode->htotal) + dsi_hsync_s… in mdp4_dsi_encoder_mode_set() 89 MDP4_DSI_HSYNC_CTRL_PERIOD(mode->htotal)); in mdp4_dsi_encoder_mode_set()
|
D | mdp4_dtv_encoder.c | 111 mode->hsync_end, mode->htotal, in mdp4_dtv_encoder_mode_set() 129 hsync_start_x = (mode->htotal - mode->hsync_start); in mdp4_dtv_encoder_mode_set() 130 hsync_end_x = mode->htotal - (mode->hsync_start - mode->hdisplay) - 1; in mdp4_dtv_encoder_mode_set() 132 vsync_period = mode->vtotal * mode->htotal; in mdp4_dtv_encoder_mode_set() 133 vsync_len = (mode->vsync_end - mode->vsync_start) * mode->htotal; in mdp4_dtv_encoder_mode_set() 134 display_v_start = (mode->vtotal - mode->vsync_start) * mode->htotal + dtv_hsync_skew; in mdp4_dtv_encoder_mode_set() 135 …display_v_end = vsync_period - ((mode->vsync_start - mode->vdisplay) * mode->htotal) + dtv_hsync_s… in mdp4_dtv_encoder_mode_set() 139 MDP4_DTV_HSYNC_CTRL_PERIOD(mode->htotal)); in mdp4_dtv_encoder_mode_set()
|
D | mdp4_lcdc_encoder.c | 280 mode->hsync_end, mode->htotal, in mdp4_lcdc_encoder_mode_set() 298 hsync_start_x = (mode->htotal - mode->hsync_start); in mdp4_lcdc_encoder_mode_set() 299 hsync_end_x = mode->htotal - (mode->hsync_start - mode->hdisplay) - 1; in mdp4_lcdc_encoder_mode_set() 301 vsync_period = mode->vtotal * mode->htotal; in mdp4_lcdc_encoder_mode_set() 302 vsync_len = (mode->vsync_end - mode->vsync_start) * mode->htotal; in mdp4_lcdc_encoder_mode_set() 303 display_v_start = (mode->vtotal - mode->vsync_start) * mode->htotal + lcdc_hsync_skew; in mdp4_lcdc_encoder_mode_set() 304 …display_v_end = vsync_period - ((mode->vsync_start - mode->vdisplay) * mode->htotal) + lcdc_hsync_… in mdp4_lcdc_encoder_mode_set() 308 MDP4_LCDC_HSYNC_CTRL_PERIOD(mode->htotal)); in mdp4_lcdc_encoder_mode_set()
|
/Linux-v4.19/drivers/gpu/drm/msm/disp/mdp5/ |
D | mdp5_encoder.c | 125 mode->hsync_end, mode->htotal, in mdp5_vid_encoder_mode_set() 165 hsync_start_x = (mode->htotal - mode->hsync_start); in mdp5_vid_encoder_mode_set() 166 hsync_end_x = mode->htotal - (mode->hsync_start - mode->hdisplay) - 1; in mdp5_vid_encoder_mode_set() 168 vsync_period = mode->vtotal * mode->htotal; in mdp5_vid_encoder_mode_set() 169 vsync_len = (mode->vsync_end - mode->vsync_start) * mode->htotal; in mdp5_vid_encoder_mode_set() 170 display_v_start = (mode->vtotal - mode->vsync_start) * mode->htotal + dtv_hsync_skew; in mdp5_vid_encoder_mode_set() 171 …display_v_end = vsync_period - ((mode->vsync_start - mode->vdisplay) * mode->htotal) + dtv_hsync_s… in mdp5_vid_encoder_mode_set() 179 display_v_start += mode->htotal - mode->hsync_start; in mdp5_vid_encoder_mode_set() 187 MDP5_INTF_HSYNC_CTL_PERIOD(mode->htotal)); in mdp5_vid_encoder_mode_set()
|
/Linux-v4.19/drivers/media/i2c/ |
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-v4.19/drivers/gpu/drm/ |
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() 311 drm_mode->htotal = drm_mode->hdisplay + CVT_RB_H_BLANK; in drm_cvt_mode() 320 tmp = drm_mode->htotal; /* perform intermediate calcs in u64 */ in drm_cvt_mode() 509 drm_mode->htotal = total_pixels; in drm_gtf_mode_complex() 590 dmode->htotal = dmode->hsync_end + vm->hback_porch; in drm_display_mode_from_videomode() 631 vm->hback_porch = dmode->htotal - dmode->hsync_end; in drm_display_mode_to_videomode() 761 if (mode->htotal < 0) in drm_mode_hsync() 764 calc_val = (mode->clock * 1000) / mode->htotal; /* hsync in Hz */ in drm_mode_hsync() 786 else if (mode->htotal > 0 && mode->vtotal > 0) { in drm_mode_vrefresh() [all …]
|
/Linux-v4.19/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
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()
|
D | headnv04.c | 58 state->htotal = nvkm_rd32(device, 0x680824 + hoff) & 0x0000ffff; in nv04_head_state() 59 state->hblanke = state->htotal - 1; in nv04_head_state()
|
/Linux-v4.19/drivers/gpu/drm/cirrus/ |
D | cirrus_mode.c | 164 int hsyncstart, hsyncend, htotal, hdispend; in cirrus_crtc_mode_set() local 169 htotal = mode->htotal / 8; in cirrus_crtc_mode_set() 180 htotal -= 5; in cirrus_crtc_mode_set() 186 WREG_CRT(VGA_CRTC_H_TOTAL, htotal); in cirrus_crtc_mode_set() 218 if ((htotal + 5) & 64) in cirrus_crtc_mode_set() 220 if ((htotal + 5) & 128) in cirrus_crtc_mode_set()
|
/Linux-v4.19/drivers/gpu/drm/amd/display/dc/calcs/ |
D | dcn_calc_auto.c | 176 …eil2(v->byte_per_pixel_in_detc[k], 2.0) / 2.0 * v->v_ratio[k] / 2) / (v->htotal[k] / v->pixel_cloc… in mode_support_and_system_configuration() 194 v->write_bandwidth[k] = v->scaler_rec_out_width[k] / (v->htotal[k] / v->pixel_clock[k]) * 4.0; in mode_support_and_system_configuration() 197 v->write_bandwidth[k] = v->scaler_rec_out_width[k] / (v->htotal[k] / v->pixel_clock[k]) * 1.5; in mode_support_and_system_configuration() 242 …&& v->output_format[k] == dcn_bw_444 && v->scaler_rec_out_width[k] / (v->htotal[k] / v->pixel_cloc… in mode_support_and_system_configuration() 245 …else if (v->output[k] == dcn_bw_writeback && v->scaler_rec_out_width[k] / (v->htotal[k] / v->pixel… in mode_support_and_system_configuration() 559 …v->urgent_latency_support_us_per_state[i][j][k] = v->effective_detlb_lines_luma * (v->htotal[k] / … in mode_support_and_system_configuration() 562 …htotal[k] / v->pixel_clock[k]) / v->v_ratio[k] - v->effective_detlb_lines_luma * v->swath_width_yp… in mode_support_and_system_configuration() 785 v->v_update_offset[k][j] = dcn_bw_ceil2(v->htotal[k] / 4.0, 1.0); in mode_support_and_system_configuration() 800 …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() 802 …->byte_per_pixel_in_detc[k], 2.0)) / (v->line_times_for_prefetch[k] * v->htotal[k] / v->pixel_cloc… in mode_support_and_system_configuration() [all …]
|
/Linux-v4.19/drivers/video/fbdev/core/ |
D | fbmon.c | 721 int vtotal, htotal; in fb_get_monitor_limits() local 733 htotal = mode->xres + mode->right_margin + mode->hsync_len in fb_get_monitor_limits() 744 hscan = (pixclock + htotal / 2) / htotal; in fb_get_monitor_limits() 1113 u32 htotal; member 1245 timings->htotal = timings->hactive + timings->hblank; in fb_timings_vfreq() 1246 timings->dclk = timings->htotal * timings->hfreq; in fb_timings_vfreq() 1256 timings->htotal = timings->hactive + timings->hblank; in fb_timings_hfreq() 1257 timings->dclk = timings->htotal * timings->hfreq; in fb_timings_hfreq() 1264 timings->htotal = timings->hactive + timings->hblank; in fb_timings_dclk() 1265 timings->hfreq = timings->dclk/timings->htotal; in fb_timings_dclk() [all …]
|
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-v4.19/drivers/gpu/drm/i915/ |
D | intel_tv.c | 312 u16 hblank_start, hblank_end, htotal; member 387 .hblank_start = 836, .htotal = 857, 429 .hblank_start = 836, .htotal = 857, 472 .hblank_start = 836, .htotal = 857, 515 .hblank_start = 836, .htotal = 857, 558 .hblank_start = 844, .htotal = 863, 603 .hblank_start = 844, .htotal = 863, 645 .hblank_start = 842, .htotal = 857, 669 .hblank_start = 859, .htotal = 863, 693 .hblank_start = 1580, .htotal = 1649, [all …]
|
/Linux-v4.19/drivers/gpu/drm/gma500/ |
D | mdfld_device.c | 200 pipe->htotal = PSB_RVDC32(map->htotal); in mdfld_save_display_registers() 326 PSB_WVDC32(pipe->htotal, map->htotal); in mdfld_restore_display_registers() 455 .htotal = HTOTAL_A, 477 .htotal = HTOTAL_B, 500 .htotal = HTOTAL_C,
|
D | mdfld_tmd_vid.c | 53 mode->htotal = mode->hdisplay + ((ti->hblank_hi << 8) | \ in tmd_vid_get_config_mode() 69 dev_dbg(dev->dev, "htotal is %d\n", mode->htotal); in tmd_vid_get_config_mode() 79 mode->htotal = 499; in tmd_vid_get_config_mode()
|
/Linux-v4.19/drivers/video/fbdev/matrox/ |
D | matroxfb_maven.c | 225 unsigned int htotal, unsigned int vtotal, in matroxfb_PLL_mavenclock() argument 238 scrlen = htotal * (vtotal - 1); in matroxfb_PLL_mavenclock() 239 fwant = htotal * vtotal; in matroxfb_PLL_mavenclock() 243 fwant, fxtal, htotal, vtotal, fmax); in matroxfb_PLL_mavenclock() 276 if (ln > htotal) in matroxfb_PLL_mavenclock() 298 unsigned int htotal, unsigned int vtotal, in matroxfb_mavenclock() argument 304 fvco = matroxfb_PLL_mavenclock(&maven1000_pll, ctl, htotal, vtotal, in, feed, &p, htotal2); in matroxfb_mavenclock() 747 m->htotal = h - 2; in maven_find_exact_clocks() 800 m->regs[0xA0] = m->htotal; in maven_compute_timming() 801 m->regs[0xA1] = m->htotal >> 8; in maven_compute_timming() [all …]
|
/Linux-v4.19/drivers/video/fbdev/geode/ |
D | display_gx.c | 65 int hactive, hblankstart, hsyncstart, hsyncend, hblankend, htotal; in gx_set_mode() local 138 htotal = hblankend; in gx_set_mode() 148 ((htotal - 1) << 16)); in gx_set_mode()
|
/Linux-v4.19/drivers/gpu/drm/amd/display/dc/dml/ |
D | dml1_display_rq_dlg_calc.c | 992 unsigned int htotal = e2e_pipe_param.pipe.dest.htotal; in dml1_rq_dlg_get_dlg_params() local 1137 disp_dlg_regs->refcyc_per_htotal = (unsigned int) (ref_freq_to_pix_freq * (double) htotal in dml1_rq_dlg_get_dlg_params() 1154 min_dst_y_ttu_vblank = min_ttu_vblank * pclk_freq_in_mhz / (double) htotal; in dml1_rq_dlg_get_dlg_params() 1206 line_time_in_us = (htotal / pclk_freq_in_mhz); in dml1_rq_dlg_get_dlg_params() 1272 if (dst_x_after_scaler >= htotal) { in dml1_rq_dlg_get_dlg_params() 1273 dst_x_after_scaler = dst_x_after_scaler - htotal; in dml1_rq_dlg_get_dlg_params() 1277 DTRACE("DLG: %s: htotal = %d", __func__, htotal); in dml1_rq_dlg_get_dlg_params() 1295 line_o = (double) dst_y_after_scaler + dst_x_after_scaler / (double) htotal; in dml1_rq_dlg_get_dlg_params() 1296 line_setup = (double) (vupdate_offset + vupdate_width + vready_offset) / (double) htotal; in dml1_rq_dlg_get_dlg_params() 1470 if (htotal <= 75) { in dml1_rq_dlg_get_dlg_params() [all …]
|
/Linux-v4.19/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/ |
D | nv04.c | 415 u32 htotal = nvkm_rdvgac(device, 0, 0x06); in nv04_devinit_preinit() local 416 htotal |= (nvkm_rdvgac(device, 0, 0x07) & 0x01) << 8; in nv04_devinit_preinit() 417 htotal |= (nvkm_rdvgac(device, 0, 0x07) & 0x20) << 4; in nv04_devinit_preinit() 418 htotal |= (nvkm_rdvgac(device, 0, 0x25) & 0x01) << 10; in nv04_devinit_preinit() 419 htotal |= (nvkm_rdvgac(device, 0, 0x41) & 0x01) << 11; in nv04_devinit_preinit() 420 if (!htotal) { in nv04_devinit_preinit()
|
/Linux-v4.19/drivers/video/fbdev/ |
D | amifb.c | 755 u_short htotal; /* vmode */ member 1021 #define htotal2hw(htotal) (div8(htotal) - 1) argument 1025 #define hcenter2hw(htotal) (div8(htotal)) argument 1127 u_int htotal, vtotal; in ami_decode_var() local 1216 par->htotal = down8((var->left_margin + par->xres + var->right_margin + in ami_decode_var() 1227 par->diwstop_h = par->htotal - in ami_decode_var() 1238 if (par->diwstop_h >= par->htotal + 8) { in ami_decode_var() 1261 if (par->htotal != PAL_HTOTAL) { in ami_decode_var() 1273 htotal = PAL_HTOTAL>>clk_shift; in ami_decode_var() 1291 if (par->htotal != NTSC_HTOTAL) { in ami_decode_var() [all …]
|
/Linux-v4.19/drivers/gpu/drm/msm/hdmi/ |
D | hdmi_bridge.c | 222 hstart = mode->htotal - mode->hsync_start; in msm_hdmi_bridge_mode_set() 223 hend = mode->htotal - mode->hsync_start + mode->hdisplay; in msm_hdmi_bridge_mode_set() 229 mode->htotal, mode->vtotal, hstart, hend, vstart, vend); in msm_hdmi_bridge_mode_set() 232 HDMI_TOTAL_H_TOTAL(mode->htotal - 1) | in msm_hdmi_bridge_mode_set()
|
/Linux-v4.19/drivers/video/fbdev/sis/ |
D | initextlfb.c | 40 int *htotal, int *vtotal, unsigned char rateindex); 177 sisfb_gettotalfrommode(struct SiS_Private *SiS_Pr, unsigned char modeno, int *htotal, in sisfb_gettotalfrommode() argument 214 *htotal = (((cr_data & 0xff) | ((unsigned short) (sr_data & 0x03) << 8)) + 5) * 8; in sisfb_gettotalfrommode()
|
/Linux-v4.19/drivers/gpu/drm/bridge/adv7511/ |
D | adv7533.c | 44 hbp = mode->htotal - mode->hsync_end; in adv7511_dsi_config_timing_gen() 54 regmap_write(adv->regmap_cec, 0x28, mode->htotal >> 4); in adv7511_dsi_config_timing_gen() 55 regmap_write(adv->regmap_cec, 0x29, (mode->htotal << 4) & 0xff); in adv7511_dsi_config_timing_gen()
|