| /linux/drivers/gpu/drm/amd/display/amdgpu_dm/ |
| H A D | amdgpu_dm_ism.c | 133 uint32_t v_total, h_total; in dm_ism_get_sso_delay() local 143 h_total = stream->timing.h_total; in dm_ism_get_sso_delay() 145 one_frame_ns = div64_u64(v_total * h_total * 10000000ull, in dm_ism_get_sso_delay() 164 uint32_t v_total, h_total; in dm_ism_get_idle_allow_delay() local 182 h_total = stream->timing.h_total; in dm_ism_get_idle_allow_delay() 184 one_frame_ns = div64_u64(v_total * h_total * 10000000ull, in dm_ism_get_idle_allow_delay()
|
| H A D | amdgpu_dm_psr.c | 166 stream->timing.h_total); in amdgpu_dm_psr_enable()
|
| /linux/drivers/gpu/ipu-v3/ |
| H A D | ipu-di.c | 205 u32 h_total = sig->mode.hactive + sig->mode.hsync_len + in ipu_di_sync_config_interlaced() local 216 .run_count = h_total - 1, in ipu_di_sync_config_interlaced() 233 .offset_count = h_total / 2, in ipu_di_sync_config_interlaced() 255 .run_count = h_total / 2 - 1, in ipu_di_sync_config_interlaced() 268 u32 h_total = sig->mode.hactive + sig->mode.hsync_len + in ipu_di_sync_config_noninterlaced() local 275 .run_count = h_total - 1, in ipu_di_sync_config_noninterlaced() 279 .run_count = h_total - 1, in ipu_di_sync_config_noninterlaced() 319 .run_count = h_total - 1, in ipu_di_sync_config_noninterlaced() 335 .run_count = h_total - 1, in ipu_di_sync_config_noninterlaced() 361 .run_count = h_total - 1, in ipu_di_sync_config_noninterlaced()
|
| /linux/drivers/gpu/drm/amd/display/modules/freesync/ |
| H A D | freesync.c | 120 * 10000) * stream->timing.h_total, in calc_duration_in_us_from_v_total() 158 stream->timing.h_total), 1000000); in mod_freesync_calc_v_total_from_refresh() 166 stream->timing.h_total) + (1000000 - 1), 1000000); in mod_freesync_calc_v_total_from_refresh() 170 stream->timing.h_total) + 500000, 1000000); in mod_freesync_calc_v_total_from_refresh() 198 h_total_up_scaled = stream->timing.h_total * 10000; in calc_v_total_from_duration() 205 stream->timing.h_total), 1000); in calc_v_total_from_duration() 288 stream->timing.h_total), 1000); in update_v_total_for_static_ramp() 1011 if (stream->ctx->dc->caps.max_v_total != 0 && stream->timing.h_total != 0) { in mod_freesync_build_vrr_params() 1013 (stream->timing.h_total * (long long)calc_max_hardware_v_total(stream))); in mod_freesync_build_vrr_params() 1296 unsigned int total = stream->timing.h_total * stream->timing.v_total; in mod_freesync_calc_nominal_field_rate()
|
| /linux/drivers/video/fbdev/nvidia/ |
| H A D | nvidia.c | 303 int h_total = (info->var.xres + info->var.right_margin + in nvidia_calc_regs() local 306 int h_blank_e = h_total + 4; in nvidia_calc_regs() 327 h_start = h_total - 5; in nvidia_calc_regs() 328 h_end = h_total - 2; in nvidia_calc_regs() 329 h_blank_e = h_total + 4; in nvidia_calc_regs() 332 state->crtc[0x0] = Set8Bits(h_total); in nvidia_calc_regs() 371 state->horiz = SetBitField(h_total, 8: 8, 0:0) in nvidia_calc_regs() 382 h_total = (h_total >> 1) & ~1; in nvidia_calc_regs() 383 state->interlace = Set8Bits(h_total); in nvidia_calc_regs() 384 state->horiz |= SetBitField(h_total, 8: 8, 4:4); in nvidia_calc_regs()
|
| /linux/drivers/gpu/drm/radeon/ |
| H A D | radeon_legacy_tv.c | 428 unsigned int h_total, v_total, f_total; in radeon_legacy_tv_init_restarts() local 438 h_total = const_ptr->hor_total; in radeon_legacy_tv_init_restarts() 485 v_offset = ((int)(v_total * h_total) * 2 * tv_dac->v_pos) / (int)(NTSC_TV_LINES_PER_FRAME); in radeon_legacy_tv_init_restarts() 487 v_offset = ((int)(v_total * h_total) * 2 * tv_dac->v_pos) / (int)(PAL_TV_LINES_PER_FRAME); in radeon_legacy_tv_init_restarts() 494 tv_dac->tv.hrestart = restart % h_total; in radeon_legacy_tv_init_restarts() 495 restart /= h_total; in radeon_legacy_tv_init_restarts()
|
| /linux/drivers/gpu/drm/amd/display/dc/optc/dcn201/ |
| H A D | dcn201_optc.c | 82 h_blank = (timing->h_total - timing->h_addressable - in optc201_validate_timing() 99 if (timing->h_total > optc1->max_h_total || in optc201_validate_timing()
|
| /linux/drivers/gpu/drm/amd/display/dc/dml/dcn32/ |
| H A D | dcn32_fpu.c | 503 (double)ref_pipe->stream->timing.h_total; in dcn32_set_phantom_stream_timing() 619 pipe->stream->timing.v_total * pipe->stream->timing.h_total - 1) in dcn32_assign_subvp_pipe() 620 / (double)(pipe->stream->timing.v_total * pipe->stream->timing.h_total); in dcn32_assign_subvp_pipe() 647 unsigned int frame_us = (stream->timing.v_total * stream->timing.h_total / in dcn32_assign_subvp_pipe() 750 time_us = (microschedule_lines * phantom->timing.h_total) / in subvp_subvp_schedulable() 765 …ve1_us = ((subvp_pipes[0]->stream->timing.v_addressable * subvp_pipes[0]->stream->timing.h_total) / in subvp_subvp_schedulable() 767 …ve2_us = ((subvp_pipes[1]->stream->timing.v_addressable * subvp_pipes[1]->stream->timing.h_total) / in subvp_subvp_schedulable() 770 subvp_pipes[0]->stream->timing.h_total) / in subvp_subvp_schedulable() 773 subvp_pipes[1]->stream->timing.h_total) / in subvp_subvp_schedulable() 855 …prefetch_us = (phantom_timing->v_total - phantom_timing->v_front_porch) * phantom_timing->h_total / in subvp_drr_schedulable() [all …]
|
| /linux/drivers/gpu/drm/amd/display/include/ |
| H A D | audio_types.h | 47 uint32_t h_total; member
|
| /linux/drivers/gpu/drm/amd/display/dc/core/ |
| H A D | dc_stream.c | 921 stream->timing.h_total, in dc_stream_log() 1144 …g long)stream->timing.pix_clk_100hz*100, stream->timing.v_total*(long long)stream->timing.h_total); in dc_stream_calculate_flickerless_refresh_rate() 1190 if (stream->timing.v_total * stream->timing.h_total == 0) in dc_stream_get_max_flickerless_instant_vtotal_delta() 1193 …g long)stream->timing.pix_clk_100hz*100, stream->timing.v_total*(long long)stream->timing.h_total); in dc_stream_get_max_flickerless_instant_vtotal_delta() 1201 …64((long long)stream->timing.pix_clk_100hz*100, safe_refresh_hz*(long long)stream->timing.h_total); in dc_stream_get_max_flickerless_instant_vtotal_delta()
|
| H A D | dc_resource.c | 625 if (stream1->timing.pix_clk_100hz*100/stream1->timing.h_total/ in resource_are_vblanks_synchronizable() 628 if (stream2->timing.pix_clk_100hz*100/stream2->timing.h_total/ in resource_are_vblanks_synchronizable() 632 stream1->timing.h_total * in resource_are_vblanks_synchronizable() 636 frame_time_diff = div_u64(frame_time_diff, stream2->timing.h_total); in resource_are_vblanks_synchronizable() 654 if (stream1->timing.h_total != stream2->timing.h_total) in resource_are_streams_timing_synchronizable() 4730 hdmi_info.bits.bar_right = (stream->timing.h_total in set_avi_info_frame() 5522 h_blank_start = stream->timing.h_total - stream->timing.h_front_porch; in is_h_timing_divisible_by_2() 5529 divisible = (stream->timing.h_total % 2 == 0) && in is_h_timing_divisible_by_2()
|
| /linux/drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_pmo/ |
| H A D | dml2_pmo_dcn4_fams2.c | 747 unsigned long h_blank_start = timing->h_total - timing->h_front_porch; in is_h_timing_divisible_by() 749 return (timing->h_total % denominator == 0) && in is_h_timing_divisible_by() 994 …s->pmo_dcn4.group_line_time_us[timing_group_idx] = (double)master_timing->h_total / master_timing-… in build_synchronized_timing_groups() 1712 stream_pstate_meta->otg_vline_time_us = (double)timing->h_total / timing->pixel_clock_khz * 1000.0; in build_pstate_meta_per_stream() 1715 (stream_pstate_meta->nom_vtotal * timing->h_total); in build_pstate_meta_per_stream() 1723 …e)stream_descriptor->timing.drr_config.min_refresh_uhz * stream_descriptor->timing.h_total) * 1e9); in build_pstate_meta_per_stream() 1727 (48000000.0 * stream_descriptor->timing.h_total) * 1e9); in build_pstate_meta_per_stream() 1733 (stream_pstate_meta->max_vtotal * timing->h_total); in build_pstate_meta_per_stream() 2319 …in_out->base_display_config->display_config.stream_descriptors[i].timing.h_total / (in_out->base_d… in pmo_dcn4_fams2_init_for_stutter()
|
| /linux/drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_core/ |
| H A D | dml2_core_dcn4_calcs.c | 3682 double line_time_us = (double)timing->h_total / ((double)timing->pixel_clock_khz / 1000); in CalculateMaxVStartup() 6793 …double h_total = (double)p->display_cfg->stream_descriptors[p->display_cfg->plane_descriptors[k].s… in CalculateWatermarksMALLUseAndDRAMSpeedChangeSupport() local 6798 …] * v_ratio + p->SwathWidthC[k] * p->BytePerPixelDETC[k] * v_ratio_c) / (h_total / pixel_clock_mhz… in CalculateWatermarksMALLUseAndDRAMSpeedChangeSupport() 6805 …double h_total = (double)p->display_cfg->stream_descriptors[p->display_cfg->plane_descriptors[k].s… in CalculateWatermarksMALLUseAndDRAMSpeedChangeSupport() local 6826 …s->EffectiveLBLatencyHidingY = s->LBLatencyHidingSourceLinesY[k] / v_ratio * (h_total / pixel_cloc… in CalculateWatermarksMALLUseAndDRAMSpeedChangeSupport() 6827 …s->EffectiveLBLatencyHidingC = s->LBLatencyHidingSourceLinesC[k] / v_ratio_c * (h_total / pixel_cl… in CalculateWatermarksMALLUseAndDRAMSpeedChangeSupport() 6831 …kByte * 1024 * (p->SwathWidthY[k] * p->BytePerPixelDETY[k] * v_ratio) / (h_total / pixel_clock_mhz… in CalculateWatermarksMALLUseAndDRAMSpeedChangeSupport() 6836 …s->FullDETBufferingTimeY = s->LinesInDETYRoundedDownToSwath[k] * (h_total / pixel_clock_mhz) / v_r… in CalculateWatermarksMALLUseAndDRAMSpeedChangeSupport() 6838 …TBufferingTimeY - ((double)p->DSTXAfterScaler[k] / h_total + (double)p->DSTYAfterScaler[k]) * h_to… in CalculateWatermarksMALLUseAndDRAMSpeedChangeSupport() 6841 …double)p->NumberOfActiveSurfaces) * (double)p->SwathHeightY[k] * (double)h_total / pixel_clock_mhz… in CalculateWatermarksMALLUseAndDRAMSpeedChangeSupport() [all …]
|
| H A D | dml2_core_utils.c | 792 …double otg_vline_time_us = (double)stream->timing.h_total / (double)stream->timing.pixel_clock_khz… in dml2_core_utils_get_frame_time_us()
|
| /linux/drivers/gpu/drm/amd/display/dc/dml2_0/dml21/inc/ |
| H A D | dml_top_display_cfg_types.h | 262 unsigned long h_total; member
|
| /linux/drivers/gpu/drm/amd/display/dc/dml2_0/dml21/ |
| H A D | dml21_translation_helper.c | 106 timing->h_total = stream->timing.h_total + pipe_ctx->dsc_padding_params.dsc_htotal_padding; in populate_dml21_timing_config_from_stream_state() 111 hblank_start = stream->timing.h_total - stream->timing.h_front_porch; in populate_dml21_timing_config_from_stream_state() 138 (timing->h_total * (long long)calc_max_hardware_v_total(stream))); in populate_dml21_timing_config_from_stream_state()
|
| /linux/drivers/gpu/drm/amd/display/dc/dml2_0/ |
| H A D | dml2_utils.c | 247 hblank_start = pipe_ctx->stream->timing.h_total - pipe_ctx->stream->timing.h_front_porch; in populate_pipe_ctx_dlg_params_from_dml() 263 pipe_ctx->pipe_dlg_param.htotal = pipe_ctx->stream->timing.h_total; in populate_pipe_ctx_dlg_params_from_dml() 271 …pipe_ctx->pipe_dlg_param.refresh_rate = ((timing->pix_clk_100hz * 100) / timing->h_total) / timing… in populate_pipe_ctx_dlg_params_from_dml()
|
| /linux/drivers/gpu/drm/msm/dsi/ |
| H A D | dsi_host.c | 992 u32 h_total = mode->htotal; in dsi_timing_setup() local 996 u32 ha_start = h_total - mode->hsync_start; in dsi_timing_setup() 1015 h_total /= 2; in dsi_timing_setup() 1060 h_total -= hdisplay; in dsi_timing_setup() 1072 h_total += hdisplay; in dsi_timing_setup() 1087 DSI_TOTAL_H_TOTAL(h_total - 1) | in dsi_timing_setup()
|
| /linux/drivers/video/fbdev/mb862xx/ |
| H A D | mb862xxfbdrv.c | 36 static inline int h_total(struct fb_var_screeninfo *var) in h_total() function 118 if (h_total(var) > 4096 || v_total(var) > 4096) in mb862xxfb_check_var() 253 outreg(disp, GC_HTP, pack(h_total(&fbi->var) - 1, 0)); in mb862xxfb_set_par()
|
| /linux/drivers/gpu/drm/amd/display/dc/inc/ |
| H A D | dce_calcs.h | 388 struct bw_fixed h_total[maximum_number_of_surfaces]; member
|
| /linux/drivers/video/fbdev/ |
| H A D | smscufx.c | 662 u16 h_total, h_active, h_blank_start, h_blank_end, h_sync_start, h_sync_end; in ufx_set_vid_mode() local 685 h_total = var->xres + var->right_margin + var->hsync_len + var->left_margin; in ufx_set_vid_mode() 692 temp = ((h_total - 1) << 16) | (h_active - 1); in ufx_set_vid_mode()
|
| H A D | sm501fb.c | 118 static inline int h_total(struct fb_var_screeninfo *var) in h_total() function 316 if (h_total(var) > 4096 || v_total(var) > 2048) in sm501fb_check_var() 554 reg = (h_total(var) - 1) << 16; in sm501fb_set_par_geometry()
|
| H A D | sh_mobile_lcdcfb.c | 725 unsigned long h_total, hsync_pos, display_h_total; in sh_mobile_lcdc_geometry() local 743 h_total = mode->xres + mode->hsync_len + mode->left_margin in sh_mobile_lcdc_geometry() 745 tmp = h_total / 8; /* HTCN */ in sh_mobile_lcdc_geometry()
|
| /linux/drivers/gpu/drm/amd/display/dc/hwss/dce110/ |
| H A D | dce110_hwseq.c | 1387 uint32_t h_blank = crtc_timing->h_total - h_active; in populate_audio_dp_link_info() 1451 audio_output->crtc_info.h_total = in build_audio_output() 1452 stream->timing.h_total; in build_audio_output() 1475 (stream->timing.h_total*stream->timing.v_total); in build_audio_output() 2131 (stream->timing.h_total * 10) / in compute_pstate_blackout_duration() 3154 pipe_ctx->stream->timing.h_total, in dce110_apply_ctx_for_surface()
|
| /linux/drivers/gpu/drm/amd/display/modules/power/ |
| H A D | power_helpers.c | 910 …vblank_time_in_us = (stream->timing.h_total * num_vblank_lines * 1000) / (stream->timing.pix_clk_1… in mod_power_calc_psr_configs() 912 line_time_in_us = ((stream->timing.h_total * 1000) / (stream->timing.pix_clk_100hz / 10)) + 1; in mod_power_calc_psr_configs()
|