| /linux/drivers/gpu/drm/panel/ |
| H A D | panel-simple.c | 803 .htotal = 1280 + 40 + 80 + 40, 829 .htotal = 480 + 2 + 41 + 2, 853 .htotal = 800 + 0 + 255 + 0, 963 .htotal = 1024 + 156 + 8 + 156, 988 .htotal = 1366 + 20 + 70, 1011 .htotal = 1366 + 40 + 40 + 32, 1096 .htotal = 800 + 40 + 216 + 128, 1120 .htotal = 800 + 40 + 88 + 128, 1229 .htotal = 1560, 1366 .htotal = 1920 + 88 + 44 + 148, [all …]
|
| H A D | panel-edp.c | 1019 .htotal = 1366 + 40 + 40 + 32, 1032 .htotal = 1366 + 48 + 32 + 10, 1060 .htotal = 1920 + 172 + 80 + 60, 1087 .htotal = 1366 + 48 + 32 + 20, 1110 .htotal = 1280 + 48 + 32 + 80, 1121 .htotal = 1280 + 48 + 32 + 80, 1151 .htotal = 2160 + 48 + 32 + 100, 1163 .htotal = 2160 + 48 + 32 + 100, 1194 .htotal = 1920 + 48 + 32 + 200, 1235 .htotal = 2200, [all …]
|
| H A D | panel-novatek-nt35560.c | 65 .htotal = 480 + 15 + 0 + 15, 84 .htotal = 480 + 154 + 16 + 32, 107 .htotal = 480 + 15 + 0 + 15, 126 .htotal = 480 + 154 + 16 + 32,
|
| /linux/drivers/gpu/drm/msm/disp/mdp4/ |
| H A D | mdp4_dsi_encoder.c | 51 hsync_start_x = (mode->htotal - mode->hsync_start); in mdp4_dsi_encoder_mode_set() 52 hsync_end_x = mode->htotal - (mode->hsync_start - mode->hdisplay) - 1; in mdp4_dsi_encoder_mode_set() 54 vsync_period = mode->vtotal * mode->htotal; in mdp4_dsi_encoder_mode_set() 55 vsync_len = (mode->vsync_end - mode->vsync_start) * 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() 57 …display_v_end = vsync_period - ((mode->vsync_start - mode->vdisplay) * mode->htotal) + dsi_hsync_s… in mdp4_dsi_encoder_mode_set() 61 MDP4_DSI_HSYNC_CTRL_PERIOD(mode->htotal)); in mdp4_dsi_encoder_mode_set()
|
| H A D | mdp4_dtv_encoder.c | 55 hsync_start_x = (mode->htotal - mode->hsync_start); in mdp4_dtv_encoder_mode_set() 56 hsync_end_x = mode->htotal - (mode->hsync_start - mode->hdisplay) - 1; in mdp4_dtv_encoder_mode_set() 58 vsync_period = mode->vtotal * mode->htotal; in mdp4_dtv_encoder_mode_set() 59 vsync_len = (mode->vsync_end - mode->vsync_start) * mode->htotal; in mdp4_dtv_encoder_mode_set() 60 display_v_start = (mode->vtotal - mode->vsync_start) * mode->htotal + dtv_hsync_skew; in mdp4_dtv_encoder_mode_set() 61 …display_v_end = vsync_period - ((mode->vsync_start - mode->vdisplay) * mode->htotal) + dtv_hsync_s… in mdp4_dtv_encoder_mode_set() 65 MDP4_DTV_HSYNC_CTRL_PERIOD(mode->htotal)); in mdp4_dtv_encoder_mode_set()
|
| /linux/drivers/gpu/drm/msm/disp/mdp5/ |
| H A D | mdp5_encoder.c | 73 hsync_start_x = (mode->htotal - mode->hsync_start); in mdp5_vid_encoder_mode_set() 74 hsync_end_x = mode->htotal - (mode->hsync_start - mode->hdisplay) - 1; in mdp5_vid_encoder_mode_set() 76 vsync_period = mode->vtotal * mode->htotal; in mdp5_vid_encoder_mode_set() 77 vsync_len = (mode->vsync_end - mode->vsync_start) * mode->htotal; in mdp5_vid_encoder_mode_set() 78 display_v_start = (mode->vtotal - mode->vsync_start) * mode->htotal + dtv_hsync_skew; in mdp5_vid_encoder_mode_set() 79 …display_v_end = vsync_period - ((mode->vsync_start - mode->vdisplay) * mode->htotal) + dtv_hsync_s… in mdp5_vid_encoder_mode_set() 87 display_v_start += mode->htotal - mode->hsync_start; in mdp5_vid_encoder_mode_set() 95 MDP5_INTF_HSYNC_CTL_PERIOD(mode->htotal)); in mdp5_vid_encoder_mode_set()
|
| /linux/drivers/media/i2c/ |
| H 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/amd/display/dc/dml/calcs/ |
| H A 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() 557 …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() 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() 804 …->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/drivers/video/fbdev/core/ |
| H A D | fbmon.c | 725 int vtotal, htotal; in fb_get_monitor_limits() local 737 htotal = mode->xres + mode->right_margin + mode->hsync_len in fb_get_monitor_limits() 748 hscan = (pixclock + htotal / 2) / htotal; in fb_get_monitor_limits() 1027 u32 htotal; member 1158 timings->htotal = timings->hactive + timings->hblank; in fb_timings_vfreq() 1159 timings->dclk = timings->htotal * timings->hfreq; in fb_timings_vfreq() 1169 timings->htotal = timings->hactive + timings->hblank; in fb_timings_hfreq() 1170 timings->dclk = timings->htotal * timings->hfreq; in fb_timings_hfreq() 1177 timings->htotal = timings->hactive + timings->hblank; in fb_timings_dclk() 1178 timings->hfreq = timings->dclk/timings->htotal; in fb_timings_dclk() [all …]
|
| H 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() 354 cvt.htotal = cvt.active_pixels + cvt.hblank; in fb_find_mode_cvt() 357 cvt.hfreq = cvt.pixclock/cvt.htotal; in fb_find_mode_cvt()
|
| /linux/drivers/gpu/drm/mgag200/ |
| H A D | mgag200_mode.c | 217 unsigned int hdispend, hsyncstr, hsyncend, htotal, hblkstr, hblkend; in mgag200_set_mode_regs() local 225 htotal = mode->crtc_htotal / 8 - 1; in mgag200_set_mode_regs() 227 if ((htotal & 0x07) == 0x06 || (htotal & 0x07) == 0x04) in mgag200_set_mode_regs() 228 htotal++; in mgag200_set_mode_regs() 230 hblkend = htotal; in mgag200_set_mode_regs() 253 crtcext1 = (((htotal - 4) & 0x100) >> 8) | in mgag200_set_mode_regs() 268 WREG_CRT(0x00, htotal - 4); in mgag200_set_mode_regs() 597 (mode->hsync_end % 8) != 0 || (mode->htotal % 8) != 0) { in mgag200_crtc_helper_mode_valid() 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/video/fbdev/matrox/ |
| H 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 305 fvco = matroxfb_PLL_mavenclock(&maven1000_pll, ctl, htotal, vtotal, in, feed, &p, htotal2); in matroxfb_mavenclock() 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() [all …]
|
| /linux/drivers/gpu/drm/ |
| H A D | drm_modes.c | 334 unsigned int htotal, vtotal; in fill_analog_mode() local 368 htotal = result; in fill_analog_mode() 370 drm_dbg_kms(dev, "Total Horizontal Number of Pixels: %u\n", htotal); in fill_analog_mode() 381 hblk = htotal - hactive; in fill_analog_mode() 452 if (htotal != (hactive + hfp + hslen + hbp)) in fill_analog_mode() 459 mode->htotal = mode->hsync_end + hbp; in fill_analog_mode() 760 drm_mode->htotal = drm_mode->hdisplay + hblank; in drm_cvt_mode() 763 (drm_mode->htotal * CVT_HSYNC_PERCENTAGE) / 100; in drm_cvt_mode() 794 drm_mode->htotal = drm_mode->hdisplay + CVT_RB_H_BLANK; in drm_cvt_mode() 803 tmp = drm_mode->htotal; /* perform intermediate calcs in u64 */ in drm_cvt_mode() [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/dml/ |
| H A D | dml1_display_rq_dlg_calc.c | 1009 unsigned int htotal = e2e_pipe_param->pipe.dest.htotal; in dml1_rq_dlg_get_dlg_params() local 1154 disp_dlg_regs->refcyc_per_htotal = (unsigned int) (ref_freq_to_pix_freq * (double) htotal in dml1_rq_dlg_get_dlg_params() 1171 min_dst_y_ttu_vblank = min_ttu_vblank * pclk_freq_in_mhz / (double) htotal; in dml1_rq_dlg_get_dlg_params() 1223 line_time_in_us = (htotal / pclk_freq_in_mhz); in dml1_rq_dlg_get_dlg_params() 1289 if (dst_x_after_scaler >= htotal) { in dml1_rq_dlg_get_dlg_params() 1290 dst_x_after_scaler = dst_x_after_scaler - htotal; in dml1_rq_dlg_get_dlg_params() 1294 DTRACE("DLG: %s: htotal = %d", __func__, htotal); in dml1_rq_dlg_get_dlg_params() 1312 line_o = (double) dst_y_after_scaler + dst_x_after_scaler / (double) htotal; in dml1_rq_dlg_get_dlg_params() 1313 line_setup = (double) (vupdate_offset + vupdate_width + vready_offset) / (double) htotal; in dml1_rq_dlg_get_dlg_params() 1483 if (htotal <= 75) { in dml1_rq_dlg_get_dlg_params() [all …]
|
| /linux/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
| H A D | uhead.c | 57 args->v0.htotal = head->arm.htotal; in nvkm_uhead_mthd_scanoutpos() 65 if (!args->v0.vtotal || !args->v0.htotal) in nvkm_uhead_mthd_scanoutpos()
|
| H A D | nv04.c | 61 state->htotal = nvkm_rd32(device, 0x680824 + hoff) & 0x0000ffff; in nv04_head_state() 62 state->hblanke = state->htotal - 1; in nv04_head_state()
|
| /linux/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/ |
| H A 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/drivers/video/fbdev/ |
| H 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 1222 par->htotal = down8((var->left_margin + par->xres + var->right_margin + in ami_decode_var() 1233 par->diwstop_h = par->htotal - in ami_decode_var() 1244 if (par->diwstop_h >= par->htotal + 8) { in ami_decode_var() 1267 if (par->htotal != PAL_HTOTAL) { in ami_decode_var() 1279 htotal = PAL_HTOTAL>>clk_shift; in ami_decode_var() 1297 if (par->htotal != NTSC_HTOTAL) { in ami_decode_var() [all …]
|
| H A D | gbefb.c | 512 timing->htotal = var->left_margin + var->xres + in compute_gbe_timing() 516 timing->fields_sec = 1000 * timing->cfreq / timing->htotal * in compute_gbe_timing() 520 timing->hblank_end = timing->htotal; in compute_gbe_timing() 547 SET_GBE_FIELD(VT_XYMAX, MAXX, val, timing->htotal); in gbe_set_timing_info() 595 timing->htotal - (20 - timing->hblank_end)); in gbe_set_timing_info() 605 timing->htotal - (GBE_CRS_MAGIC - in gbe_set_timing_info() 617 temp += timing->htotal; /* allow blank to wrap around */ in gbe_set_timing_info() 622 GBE_PIXEN_MAGIC_OFF) % timing->htotal)); in gbe_set_timing_info() 985 var->left_margin = timing.htotal - timing.hsync_end; in gbefb_check_var()
|
| /linux/drivers/gpu/drm/tests/ |
| H A D | drm_modes_test.c | 67 KUNIT_EXPECT_EQ(test, mode->htotal, 858); in drm_test_modes_analog_tv_ntsc_480i() 125 KUNIT_EXPECT_EQ(test, mode->htotal, 864); in drm_test_modes_analog_tv_pal_576i() 183 KUNIT_EXPECT_EQ(test, mode->htotal, 864); in drm_test_modes_analog_tv_mono_576i()
|
| /linux/drivers/video/fbdev/sis/ |
| H A D | initextlfb.c | 27 int *htotal, int *vtotal, unsigned char rateindex); 164 sisfb_gettotalfrommode(struct SiS_Private *SiS_Pr, unsigned char modeno, int *htotal, in sisfb_gettotalfrommode() argument 201 *htotal = (((cr_data & 0xff) | ((unsigned short) (sr_data & 0x03) << 8)) + 5) * 8; in sisfb_gettotalfrommode()
|
| /linux/include/drm/ |
| H A D | drm_modes.h | 137 .htotal = (ht), .hskew = (hsk), .vdisplay = (vd), \ 152 .htotal = (hd), .vdisplay = (vd), .vsync_start = (vd), \ 262 u16 htotal; member 433 (m)->hdisplay, (m)->hsync_start, (m)->hsync_end, (m)->htotal, \
|
| /linux/drivers/video/fbdev/geode/ |
| H A D | display_gx1.c | 81 int hactive, hblankstart, hsyncstart, hsyncend, hblankend, htotal; in gx1_set_mode() local 152 htotal = hblankend; in gx1_set_mode() 161 val = (hactive - 1) | ((htotal - 1) << 16); in gx1_set_mode()
|
| /linux/drivers/gpu/drm/msm/dp/ |
| H A D | dp_panel.c | 308 hsync_period = drm_mode->htotal; in msm_dp_panel_tpg_enable() 317 display_v_start += drm_mode->htotal - drm_mode->hsync_start; in msm_dp_panel_tpg_enable() 320 hsync_start_x = drm_mode->htotal - drm_mode->hsync_start; in msm_dp_panel_tpg_enable() 549 drm_mode->hdisplay, drm_mode->htotal - drm_mode->hsync_end, in msm_dp_panel_timing_cfg() 558 total_hor = drm_mode->htotal; in msm_dp_panel_timing_cfg() 570 data |= (drm_mode->htotal - drm_mode->hsync_start); in msm_dp_panel_timing_cfg() 629 drm_mode->htotal - drm_mode->hsync_end, in msm_dp_panel_init_panel_info()
|
| /linux/drivers/gpu/drm/sti/ |
| H A D | sti_vtg.c | 198 clocksperline = mode->htotal; in vtg_set_hsync_vsync_pos() 251 writel(mode->htotal, vtg->regs + VTG_CLKLN); in vtg_set_mode() 342 return mode.htotal - mode.hsync_start + x; in sti_vtg_get_pixel_number()
|