/kernel/linux/linux-5.10/drivers/gpu/drm/panel/ |
H A D | panel-simple.c | 668 .htotal = 1280 + 40 + 80 + 40, 694 .htotal = 480 + 2 + 41 + 2, 718 .htotal = 800 + 0 + 255 + 0, 768 .htotal = 1024 + 156 + 8 + 156, 815 .htotal = 1366 + 20 + 70, 838 .htotal = 1366 + 48 + 32 + 10, 866 .htotal = 1366 + 40 + 40 + 32, 895 .htotal = 1366 + 48 + 32 + 20, 917 .htotal = 1920 + 172 + 80 + 60, 972 .htotal [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/display/ |
H A D | intel_vblank.c | 45 * pixel counter = vblank_start * htotal pixel counter = 0 (gen3/4) 72 u32 pixel, vbl_start, hsync_start, htotal; in i915_get_vblank_counter() local 89 htotal = mode->crtc_htotal; in i915_get_vblank_counter() 96 vbl_start *= htotal; in i915_get_vblank_counter() 99 vbl_start -= htotal - hsync_start; in i915_get_vblank_counter() 137 u32 htotal = mode->crtc_htotal; in intel_crtc_scanlines_since_frame_timestamp() local 167 clock), 1000 * htotal); in intel_crtc_scanlines_since_frame_timestamp() 265 int vbl_start, vbl_end, hsync_start, htotal, vtotal; in i915_get_crtc_scanoutpos() local 278 htotal = mode->crtc_htotal; in i915_get_crtc_scanoutpos() 330 vbl_start *= htotal; in i915_get_crtc_scanoutpos() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/disp/mdp4/ |
H 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_skew - 1; in mdp4_dsi_encoder_mode_set() 71 MDP4_DSI_HSYNC_CTRL_PERIOD(mode->htotal)); in mdp4_dsi_encoder_mode_set()
|
H 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_skew - 1; in mdp4_dtv_encoder_mode_set() 76 MDP4_DTV_HSYNC_CTRL_PERIOD(mode->htotal)); in mdp4_dtv_encoder_mode_set()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/msm/disp/mdp4/ |
H A D | mdp4_dsi_encoder.c | 63 hsync_start_x = (mode->htotal - mode->hsync_start); in mdp4_dsi_encoder_mode_set() 64 hsync_end_x = mode->htotal - (mode->hsync_start - mode->hdisplay) - 1; in mdp4_dsi_encoder_mode_set() 66 vsync_period = mode->vtotal * mode->htotal; in mdp4_dsi_encoder_mode_set() 67 vsync_len = (mode->vsync_end - mode->vsync_start) * mode->htotal; in mdp4_dsi_encoder_mode_set() 68 display_v_start = (mode->vtotal - mode->vsync_start) * mode->htotal + dsi_hsync_skew; in mdp4_dsi_encoder_mode_set() 69 display_v_end = vsync_period - ((mode->vsync_start - mode->vdisplay) * mode->htotal) + dsi_hsync_skew - 1; in mdp4_dsi_encoder_mode_set() 73 MDP4_DSI_HSYNC_CTRL_PERIOD(mode->htotal)); in mdp4_dsi_encoder_mode_set()
|
H 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_skew - 1; in mdp4_dtv_encoder_mode_set() 76 MDP4_DTV_HSYNC_CTRL_PERIOD(mode->htotal)); in mdp4_dtv_encoder_mode_set()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/panel/ |
H A D | panel-simple.c | 719 .htotal = 1280 + 40 + 80 + 40, 745 .htotal = 480 + 2 + 41 + 2, 769 .htotal = 800 + 0 + 255 + 0, 879 .htotal = 1024 + 156 + 8 + 156, 904 .htotal = 1366 + 20 + 70, 927 .htotal = 1366 + 40 + 40 + 32, 987 .htotal = 1280 + 82 + 2 + 84, 1011 .htotal = 800 + 40 + 216 + 128, 1089 .htotal = 1560, 1202 .htotal [all...] |
H A D | panel-edp.c | 990 .htotal = 1366 + 48 + 32 + 10, 1018 .htotal = 1920 + 58 + 42 + 60, 1045 .htotal = 1920 + 172 + 80 + 60, 1072 .htotal = 1366 + 48 + 32 + 20, 1094 .htotal = 1920 + 16 + 16 + 152, 1122 .htotal = 1280 + 48 + 32 + 80, 1133 .htotal = 1280 + 48 + 32 + 80, 1163 .htotal = 2160 + 48 + 32 + 100, 1175 .htotal = 2160 + 48 + 32 + 100, 1206 .htotal [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dml/dcn21/ |
H A D | display_rq_dlg_calc_21.c | 852 unsigned int htotal = dst->htotal; in dml_rq_dlg_get_dlg_params() local 977 disp_dlg_regs->refcyc_per_htotal = (unsigned int) (ref_freq_to_pix_freq * (double) htotal in dml_rq_dlg_get_dlg_params() 988 min_dst_y_ttu_vblank = min_ttu_vblank * pclk_freq_in_mhz / (double) htotal; in dml_rq_dlg_get_dlg_params() 1044 line_time_in_us = (htotal / pclk_freq_in_mhz); in dml_rq_dlg_get_dlg_params() 1079 - (double) (vready_offset + vupdate_width + vupdate_offset) / htotal in dml_rq_dlg_get_dlg_params() 1086 - (double) (vready_offset + vupdate_width + vupdate_offset) / htotal in dml_rq_dlg_get_dlg_params() 1120 dml_print("DML_DLG: %s: htotal = %d\n", __func__, htotal); in dml_rq_dlg_get_dlg_params() 1166 if (htotal < in dml_rq_dlg_get_dlg_params() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dml/dcn20/ |
H A D | display_rq_dlg_calc_20v2.c | 806 unsigned int htotal = dst->htotal; in dml20v2_rq_dlg_get_dlg_params() local 931 disp_dlg_regs->refcyc_per_htotal = (unsigned int) (ref_freq_to_pix_freq * (double) htotal in dml20v2_rq_dlg_get_dlg_params() 942 min_dst_y_ttu_vblank = min_ttu_vblank * pclk_freq_in_mhz / (double) htotal; in dml20v2_rq_dlg_get_dlg_params() 993 line_time_in_us = (htotal / pclk_freq_in_mhz); in dml20v2_rq_dlg_get_dlg_params() 1040 - (double) (vready_offset + vupdate_width + vupdate_offset) / htotal in dml20v2_rq_dlg_get_dlg_params() 1047 - (double) (vready_offset + vupdate_width + vupdate_offset) / htotal in dml20v2_rq_dlg_get_dlg_params() 1078 dml_print("DML_DLG: %s: htotal = %d\n", __func__, htotal); in dml20v2_rq_dlg_get_dlg_params() 1117 if (htotal < in dml20v2_rq_dlg_get_dlg_params() [all...] |
H A D | display_rq_dlg_calc_20.c | 806 unsigned int htotal = dst->htotal; in dml20_rq_dlg_get_dlg_params() local 931 disp_dlg_regs->refcyc_per_htotal = (unsigned int) (ref_freq_to_pix_freq * (double) htotal in dml20_rq_dlg_get_dlg_params() 942 min_dst_y_ttu_vblank = min_ttu_vblank * pclk_freq_in_mhz / (double) htotal; in dml20_rq_dlg_get_dlg_params() 992 line_time_in_us = (htotal / pclk_freq_in_mhz); in dml20_rq_dlg_get_dlg_params() 1039 - (double) (vready_offset + vupdate_width + vupdate_offset) / htotal in dml20_rq_dlg_get_dlg_params() 1046 - (double) (vready_offset + vupdate_width + vupdate_offset) / htotal in dml20_rq_dlg_get_dlg_params() 1077 dml_print("DML_DLG: %s: htotal = %d\n", __func__, htotal); in dml20_rq_dlg_get_dlg_params() 1116 if (htotal < in dml20_rq_dlg_get_dlg_params() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dml/dcn21/ |
H A D | display_rq_dlg_calc_21.c | 852 unsigned int htotal = dst->htotal; in dml_rq_dlg_get_dlg_params() local 977 disp_dlg_regs->refcyc_per_htotal = (unsigned int) (ref_freq_to_pix_freq * (double) htotal in dml_rq_dlg_get_dlg_params() 988 min_dst_y_ttu_vblank = min_ttu_vblank * pclk_freq_in_mhz / (double) htotal; in dml_rq_dlg_get_dlg_params() 1044 line_time_in_us = (htotal / pclk_freq_in_mhz); in dml_rq_dlg_get_dlg_params() 1079 - (double) (vready_offset + vupdate_width + vupdate_offset) / htotal in dml_rq_dlg_get_dlg_params() 1086 - (double) (vready_offset + vupdate_width + vupdate_offset) / htotal in dml_rq_dlg_get_dlg_params() 1120 dml_print("DML_DLG: %s: htotal = %d\n", __func__, htotal); in dml_rq_dlg_get_dlg_params() 1166 if (htotal < in dml_rq_dlg_get_dlg_params() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dml/dcn20/ |
H A D | display_rq_dlg_calc_20v2.c | 806 unsigned int htotal = dst->htotal; in dml20v2_rq_dlg_get_dlg_params() local 931 disp_dlg_regs->refcyc_per_htotal = (unsigned int) (ref_freq_to_pix_freq * (double) htotal in dml20v2_rq_dlg_get_dlg_params() 942 min_dst_y_ttu_vblank = min_ttu_vblank * pclk_freq_in_mhz / (double) htotal; in dml20v2_rq_dlg_get_dlg_params() 993 line_time_in_us = (htotal / pclk_freq_in_mhz); in dml20v2_rq_dlg_get_dlg_params() 1040 - (double) (vready_offset + vupdate_width + vupdate_offset) / htotal in dml20v2_rq_dlg_get_dlg_params() 1047 - (double) (vready_offset + vupdate_width + vupdate_offset) / htotal in dml20v2_rq_dlg_get_dlg_params() 1078 dml_print("DML_DLG: %s: htotal = %d\n", __func__, htotal); in dml20v2_rq_dlg_get_dlg_params() 1117 if (htotal < in dml20v2_rq_dlg_get_dlg_params() [all...] |
H A D | display_rq_dlg_calc_20.c | 806 unsigned int htotal = dst->htotal; in dml20_rq_dlg_get_dlg_params() local 931 disp_dlg_regs->refcyc_per_htotal = (unsigned int) (ref_freq_to_pix_freq * (double) htotal in dml20_rq_dlg_get_dlg_params() 942 min_dst_y_ttu_vblank = min_ttu_vblank * pclk_freq_in_mhz / (double) htotal; in dml20_rq_dlg_get_dlg_params() 992 line_time_in_us = (htotal / pclk_freq_in_mhz); in dml20_rq_dlg_get_dlg_params() 1039 - (double) (vready_offset + vupdate_width + vupdate_offset) / htotal in dml20_rq_dlg_get_dlg_params() 1046 - (double) (vready_offset + vupdate_width + vupdate_offset) / htotal in dml20_rq_dlg_get_dlg_params() 1077 dml_print("DML_DLG: %s: htotal = %d\n", __func__, htotal); in dml20_rq_dlg_get_dlg_params() 1116 if (htotal < in dml20_rq_dlg_get_dlg_params() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/gud/ |
H A D | gud_internal.h | 139 dst->htotal = cpu_to_le16(src->htotal); in gud_from_display_mode() 157 dst->htotal = le16_to_cpu(src->htotal); in gud_to_display_mode()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/mgag200/ |
H A D | mgag200_mode.c | 205 unsigned int hdisplay, hsyncstart, hsyncend, htotal; in mgag200_set_mode_regs() local 212 htotal = mode->htotal / 8 - 1; in mgag200_set_mode_regs() 215 if ((htotal & 0x07) == 0x06 || (htotal & 0x07) == 0x04) in mgag200_set_mode_regs() 216 htotal++; in mgag200_set_mode_regs() 235 crtcext1 = (((htotal - 4) & 0x100) >> 8) | in mgag200_set_mode_regs() 238 (htotal & 0x40); in mgag200_set_mode_regs() 250 WREG_CRT(0, htotal - 4); in mgag200_set_mode_regs() 253 WREG_CRT(3, (htotal in mgag200_set_mode_regs() [all...] |
/kernel/linux/linux-5.10/drivers/video/fbdev/core/ |
H A 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() 1023 u32 htotal; member 1062 * duty cycle = percent of htotal assigned to inactive display 1095 * duty cycle = percent of htotal assigned to inactive display 1155 timings->htotal = timings->hactive + timings->hblank; in fb_timings_vfreq() 1156 timings->dclk = timings->htotal * timings->hfreq; in fb_timings_vfreq() 1166 timings->htotal in fb_timings_hfreq() 1314 unsigned int htotal, vtotal; fb_videomode_from_videomode() local 1435 u32 hfreq, vfreq, htotal, vtotal, pixclock; fb_validate_mode() local [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()
|
/kernel/linux/linux-6.6/drivers/video/fbdev/core/ |
H A D | fbmon.c | 722 int vtotal, htotal; in fb_get_monitor_limits() local 734 htotal = mode->xres + mode->right_margin + mode->hsync_len in fb_get_monitor_limits() 745 hscan = (pixclock + htotal / 2) / htotal; in fb_get_monitor_limits() 1024 u32 htotal; member 1063 * duty cycle = percent of htotal assigned to inactive display 1096 * duty cycle = percent of htotal assigned to inactive display 1155 timings->htotal = timings->hactive + timings->hblank; in fb_timings_vfreq() 1156 timings->dclk = timings->htotal * timings->hfreq; in fb_timings_vfreq() 1166 timings->htotal in fb_timings_hfreq() 1314 unsigned int htotal, vtotal; fb_videomode_from_videomode() local 1435 u32 hfreq, vfreq, htotal, vtotal, pixclock; fb_validate_mode() local [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()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/calcs/ |
H A D | dcn_calc_auto.c | 176 v->read_bandwidth[k] = v->swath_width_ysingle_dpp[k] * (dcn_bw_ceil2(v->byte_per_pixel_in_dety[k], 1.0) * v->v_ratio[k] +dcn_bw_ceil2(v->byte_per_pixel_in_detc[k], 2.0) / 2.0 * v->v_ratio[k] / 2) / (v->htotal[k] / v->pixel_clock[k]); 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 if (v->output[k] == dcn_bw_writeback && v->output_format[k] == dcn_bw_444 && v->scaler_rec_out_width[k] / (v->htotal[k] / v->pixel_clock[k]) * 4.0 > (v->writeback_luma_buffer_size + v->writeback_chroma_buffer_size) * 1024.0 / v->write_back_latency) { 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_clock[k]) >dcn_bw_min2(v->writeback_luma_buffer_size, 2.0 * v->writeback_chroma_buffer_size) * 1024.0 / v->write_back_latency) { 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] / v->pixel_clock[k]) / v->v_ratio[k] - v->effective_detlb_lines_luma * v->swath_width_yper_state[i][j][k] *dcn_bw_ceil2(v->byte_per_pixel_in_dety[k], 1.0) / (v->return_bw_per_state[i] / v->no_of_dpp[i][j][k]); in mode_support_and_system_configuration() 562 v->urgent_latency_support_us_per_state[i][j][k] =dcn_bw_min2(v->effective_detlb_lines_luma * (v->htotal[k] / v->pixel_clock[k]) / v->v_ratio[k] - v->effective_detlb_lines_luma * v->swath_width_yper_state[i][j][k] *dcn_bw_ceil2(v->byte_per_pixel_in_dety[k], 1.0) / (v->return_bw_per_state[i] / v->no_of_dpp[i][j][k]), v->effective_detlb_lines_chroma * (v->htotal[k] / v->pixel_clock[k]) / (v->v_ratio[k] / 2.0) - v->effective_detlb_lines_chroma * v->swath_width_yper_state[i][j][k] / 2.0 *dcn_bw_ceil2(v->byte_per_pixel_in_detc[k], 2.0) / (v->return_bw_per_state[i] / v->no_of_dpp[i][j][k])); 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 v->line_times_for_prefetch[k] = v->maximum_vstartup - v->urgent_latency / (v->htotal[ in mode_support_and_system_configuration() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dml/calcs/ |
H A D | dcn_calc_auto.c | 176 v->read_bandwidth[k] = v->swath_width_ysingle_dpp[k] * (dcn_bw_ceil2(v->byte_per_pixel_in_dety[k], 1.0) * v->v_ratio[k] +dcn_bw_ceil2(v->byte_per_pixel_in_detc[k], 2.0) / 2.0 * v->v_ratio[k] / 2) / (v->htotal[k] / v->pixel_clock[k]); 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 if (v->output[k] == dcn_bw_writeback && v->output_format[k] == dcn_bw_444 && v->scaler_rec_out_width[k] / (v->htotal[k] / v->pixel_clock[k]) * 4.0 > (v->writeback_luma_buffer_size + v->writeback_chroma_buffer_size) * 1024.0 / v->write_back_latency) { 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_clock[k]) >dcn_bw_min2(v->writeback_luma_buffer_size, 2.0 * v->writeback_chroma_buffer_size) * 1024.0 / v->write_back_latency) { 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] / v->pixel_clock[k]) / v->v_ratio[k] - v->effective_detlb_lines_luma * v->swath_width_yper_state[i][j][k] *dcn_bw_ceil2(v->byte_per_pixel_in_dety[k], 1.0) / (v->return_bw_per_state[i] / v->no_of_dpp[i][j][k]); in mode_support_and_system_configuration() 562 v->urgent_latency_support_us_per_state[i][j][k] = dcn_bw_min2(v->effective_detlb_lines_luma * (v->htotal[k] / v->pixel_clock[k]) / v->v_ratio[k] - v->effective_detlb_lines_luma * v->swath_width_yper_state[i][j][k] * dcn_bw_ceil2(v->byte_per_pixel_in_dety[k], 1.0) / (v->return_bw_per_state[i] / v->no_of_dpp[i][j][k]), v->effective_detlb_lines_chroma * (v->htotal[k] / v->pixel_clock[k]) / (v->v_ratio[k] / 2.0) - v->effective_detlb_lines_chroma * v->swath_width_yper_state[i][j][k] / 2.0 * dcn_bw_ceil2(v->byte_per_pixel_in_detc[k], 2.0) / (v->return_bw_per_state[i] / v->no_of_dpp[i][j][k])); 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 v->line_times_for_prefetch[k] = v->maximum_vstartup - v->urgent_latency / (v->htotal[ in mode_support_and_system_configuration() [all...] |
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/disp/mdp5/ |
H 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_skew - 1; 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()
|
/kernel/linux/linux-6.6/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()
|