Home
last modified time | relevance | path

Searched refs:v_total (Results 1 – 25 of 32) sorted by relevance

12

/linux/drivers/gpu/drm/amd/display/modules/freesync/
H A Dfreesync.c115 unsigned int v_total) in calc_duration_in_us_from_v_total() argument
119 (unsigned int)(div64_u64(((unsigned long long)(v_total) in calc_duration_in_us_from_v_total()
141 unsigned int v_total; in mod_freesync_calc_v_total_from_refresh() local
145 return stream->timing.v_total; in mod_freesync_calc_v_total_from_refresh()
156 v_total = (unsigned int)div64_u64(div64_u64(((unsigned long long)( in mod_freesync_calc_v_total_from_refresh()
164 v_total = (unsigned int)div64_u64(div64_u64(((unsigned long long)( in mod_freesync_calc_v_total_from_refresh()
168 v_total = (unsigned int)div64_u64(div64_u64(((unsigned long long)( in mod_freesync_calc_v_total_from_refresh()
174 if (v_total < stream->timing.v_total) { in mod_freesync_calc_v_total_from_refresh()
175 ASSERT(v_total < stream->timing.v_total); in mod_freesync_calc_v_total_from_refresh()
176 v_total = stream->timing.v_total; in mod_freesync_calc_v_total_from_refresh()
[all …]
/linux/drivers/gpu/drm/amd/display/amdgpu_dm/
H A Damdgpu_dm_ism.c133 uint32_t v_total, h_total; in dm_ism_get_sso_delay() local
142 v_total = stream->timing.v_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
181 v_total = stream->timing.v_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 Damdgpu_dm_psr.c165 stream->timing.v_total), in amdgpu_dm_psr_enable()
/linux/drivers/gpu/ipu-v3/
H A Dipu-di.c207 u32 v_total = sig->mode.vactive + sig->mode.vsync_len + in ipu_di_sync_config_interlaced() local
212 .run_count = v_total * 2 - 1, in ipu_di_sync_config_interlaced()
223 .run_count = v_total - 1, in ipu_di_sync_config_interlaced()
231 .run_count = v_total / 2, in ipu_di_sync_config_interlaced()
262 ipu_di_write(di, v_total / 2 - 1, DI_SCR_CONF); in ipu_di_sync_config_interlaced()
270 u32 v_total = sig->mode.vactive + sig->mode.vsync_len + in ipu_di_sync_config_noninterlaced() local
288 .run_count = v_total - 1, in ipu_di_sync_config_noninterlaced()
323 .run_count = v_total - 1, in ipu_di_sync_config_noninterlaced()
352 .run_count = v_total - 1, in ipu_di_sync_config_noninterlaced()
370 .run_count = v_total - 1, in ipu_di_sync_config_noninterlaced()
[all …]
/linux/drivers/gpu/drm/radeon/
H A Dradeon_legacy_tv.c428 unsigned int h_total, v_total, f_total; in radeon_legacy_tv_init_restarts() local
439 v_total = const_ptr->ver_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()
496 tv_dac->tv.vrestart = restart % v_total; in radeon_legacy_tv_init_restarts()
497 restart /= v_total; in radeon_legacy_tv_init_restarts()
/linux/drivers/gpu/drm/amd/display/dc/optc/dcn201/
H A Ddcn201_optc.c79 v_blank = (timing->v_total - timing->v_addressable - in optc201_validate_timing()
100 timing->v_total > optc1->max_v_total) in optc201_validate_timing()
/linux/drivers/video/fbdev/nvidia/
H A Dnvidia.c311 int v_total = (info->var.yres + info->var.lower_margin + in nvidia_calc_regs() local
314 int v_blank_e = v_total + 1; in nvidia_calc_regs()
321 v_total |= 1; in nvidia_calc_regs()
324 v_start = v_total - 3; in nvidia_calc_regs()
325 v_end = v_total - 2; in nvidia_calc_regs()
340 state->crtc[0x6] = SetBitField(v_total, 7: 0, 7:0); in nvidia_calc_regs()
341 state->crtc[0x7] = SetBitField(v_total, 8: 8, 0:0) in nvidia_calc_regs()
346 | SetBitField(v_total, 9: 9, 5:5) in nvidia_calc_regs()
369 | SetBitField(v_total, 10: 10, 0:0); in nvidia_calc_regs()
376 state->extra = SetBitField(v_total, 11: 11, 0:0) in nvidia_calc_regs()
/linux/drivers/gpu/drm/amd/display/dc/core/
H A Ddc_stream.c922 stream->timing.v_total, in dc_stream_log()
1144 …return (int)div64_s64((long long)stream->timing.pix_clk_100hz*100, stream->timing.v_total*(long lo… 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 …nt)div64_s64((long long)stream->timing.pix_clk_100hz*100, stream->timing.v_total*(long long)stream… in dc_stream_get_max_flickerless_instant_vtotal_delta()
1204 …return (((int) stream->timing.v_total - safe_refresh_v_total) >= 0) ? (stream->timing.v_total - sa… in dc_stream_get_max_flickerless_instant_vtotal_delta()
1206 …(safe_refresh_v_total - (int) stream->timing.v_total) >= 0) ? (safe_refresh_v_total - stream->timi… in dc_stream_get_max_flickerless_instant_vtotal_delta()
H A Ddc_resource.c626 stream1->timing.v_total > 60) in resource_are_vblanks_synchronizable()
629 stream2->timing.v_total > 60) in resource_are_vblanks_synchronizable()
633 stream1->timing.v_total * in resource_are_vblanks_synchronizable()
637 frame_time_diff = div_u64(frame_time_diff, stream2->timing.v_total); in resource_are_vblanks_synchronizable()
657 if (stream1->timing.v_total != stream2->timing.v_total) in resource_are_streams_timing_synchronizable()
4727 hdmi_info.bits.bar_bottom = (stream->timing.v_total in set_avi_info_frame()
4836 asic_blank_start = tg->v_total - tg->v_front_porch; in adaptive_sync_override_dp_info_packets_sdp_line_num()
4843 v_update = (tg->v_total - (vstartup_start - asic_blank_end)); in adaptive_sync_override_dp_info_packets_sdp_line_num()
4845 sdp_line_num->adaptive_sync_line_num = (tg->v_total - v_update - 1); in adaptive_sync_override_dp_info_packets_sdp_line_num()
/linux/drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_core/
H A Ddml2_core_utils.c580 phantom->timing.v_total = meta->v_total; in create_phantom_stream_from_main_stream()
583 …phantom->timing.v_blank_end = phantom->timing.v_total - phantom->timing.v_front_porch - phantom->t… in create_phantom_stream_from_main_stream()
584 phantom->timing.vblank_nom = phantom->timing.v_total - phantom->timing.v_active; in create_phantom_stream_from_main_stream()
H A Ddml2_core_dcn4.c273 phantom->timing.v_total = meta->v_total; in create_phantom_stream_from_main_stream()
276 …phantom->timing.v_blank_end = phantom->timing.v_total - phantom->timing.v_front_porch - phantom->t… in create_phantom_stream_from_main_stream()
277 phantom->timing.vblank_nom = phantom->timing.v_total - phantom->timing.v_active; in create_phantom_stream_from_main_stream()
/linux/drivers/gpu/drm/amd/display/dc/dml/dcn32/
H A Ddcn32_fpu.c541 phantom_stream->timing.v_total = phantom_stream->timing.v_addressable + 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()
746 microschedule_lines = (phantom->timing.v_total - phantom->timing.v_front_porch) + in subvp_subvp_schedulable()
769 …vblank1_us = (((subvp_pipes[0]->stream->timing.v_total - subvp_pipes[0]->stream->timing.v_addressa… in subvp_subvp_schedulable()
772 …vblank2_us = (((subvp_pipes[1]->stream->timing.v_total - subvp_pipes[1]->stream->timing.v_addressa… in subvp_subvp_schedulable()
855 …prefetch_us = (phantom_timing->v_total - phantom_timing->v_front_porch) * phantom_timing->h_total / in subvp_drr_schedulable()
860 drr_frame_us = drr_timing->v_total * drr_timing->h_total / in subvp_drr_schedulable()
866 …drr_stretched_vblank_us = (drr_timing->v_total - drr_timing->v_addressable) * drr_timing->h_total / in subvp_drr_schedulable()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/dml2_0/dml21/inc/
H A Ddml_top_display_cfg_types.h263 unsigned long v_total; member
/linux/drivers/gpu/drm/amd/display/dc/dml2_0/dml21/
H A Ddml21_translation_helper.c107 timing->v_total = stream->timing.v_total; in populate_dml21_timing_config_from_stream_state()
119 vblank_start = stream->timing.v_total - stream->timing.v_front_porch; in populate_dml21_timing_config_from_stream_state()
190 timing->vblank_nom = timing->v_total - timing->v_active; in populate_dml21_timing_config_from_stream_state()
H A Ddml21_utils.c263 phantom_stream->timing.v_total = phantom_stream_descriptor->timing.v_total; in dml21_add_phantom_stream()
/linux/drivers/gpu/drm/amd/display/dc/dml2_0/
H A Ddml2_utils.c248 vblank_start = pipe_ctx->stream->timing.v_total - pipe_ctx->stream->timing.v_front_porch; in populate_pipe_ctx_dlg_params_from_dml()
264 pipe_ctx->pipe_dlg_param.vtotal = pipe_ctx->stream->timing.v_total; in populate_pipe_ctx_dlg_params_from_dml()
271 …>pipe_dlg_param.refresh_rate = ((timing->pix_clk_100hz * 100) / timing->h_total) / timing->v_total; in populate_pipe_ctx_dlg_params_from_dml()
H A Ddml2_translation_helper.c764 …freshRate[location] = ((in->timing.pix_clk_100hz * 100) / in->timing.h_total) / in->timing.v_total; in populate_dml_timing_cfg_from_stream_state()
770 out->VTotal[location] = in->timing.v_total; in populate_dml_timing_cfg_from_stream_state()
777 vblank_start = in->timing.v_total - in->timing.v_front_porch; in populate_dml_timing_cfg_from_stream_state()
/linux/drivers/gpu/drm/amd/display/dc/dml/dcn20/
H A Ddcn20_fpu.c1125 asic_blank_start = patched_crtc_timing.v_total - in dcn20_adjust_freesync_v_startup()
1352 unsigned int v_total; in dcn20_populate_dml_pipes_from_context() local
1360 v_total = timing->v_total; in dcn20_populate_dml_pipes_from_context()
1379 (v_total - timing->v_addressable in dcn20_populate_dml_pipes_from_context()
1394 pipes[pipe_cnt].pipe.dest.vblank_start = v_total - front_porch; in dcn20_populate_dml_pipes_from_context()
1400 pipes[pipe_cnt].pipe.dest.vtotal = v_total; in dcn20_populate_dml_pipes_from_context()
1578 pipes[pipe_cnt].pipe.dest.vtotal_min = v_total; in dcn20_populate_dml_pipes_from_context()
1579 pipes[pipe_cnt].pipe.dest.vtotal_max = v_total; in dcn20_populate_dml_pipes_from_context()
/linux/drivers/video/fbdev/mb862xx/
H A Dmb862xxfbdrv.c42 static inline int v_total(struct fb_var_screeninfo *var) in v_total() function
118 if (h_total(var) > 4096 || v_total(var) > 4096) in mb862xxfb_check_var()
254 outreg(disp, GC_VTR, pack(v_total(&fbi->var) - 1, 0)); in mb862xxfb_set_par()
/linux/drivers/gpu/drm/amd/display/dc/inc/
H A Ddce_calcs.h389 struct bw_fixed v_total[maximum_number_of_surfaces]; member
/linux/drivers/video/fbdev/
H A Dsmscufx.c663 u16 v_total, v_active, v_blank_start, v_blank_end, v_sync_start, v_sync_end; in ufx_set_vid_mode() local
705 v_total = var->upper_margin + var->yres + var->lower_margin + var->vsync_len; in ufx_set_vid_mode()
712 temp = ((v_total - 1) << 16) | (v_active - 1); in ufx_set_vid_mode()
H A Dsm501fb.c124 static inline int v_total(struct fb_var_screeninfo *var) in v_total() function
316 if (h_total(var) > 4096 || v_total(var) > 2048) in sm501fb_check_var()
568 reg = (v_total(var) - 1) << 16; in sm501fb_set_par_geometry()
/linux/drivers/gpu/drm/amd/display/dc/dsc/
H A Ddc_dsc.c1348 refresh_rate = dc_fixpt_div_int(refresh_rate, timing->v_total); in dc_dsc_stream_bandwidth_overhead_in_kbps()
1352 max_dsc_overhead = dc_fixpt_mul_int(max_dsc_overhead, timing->v_total); in dc_dsc_stream_bandwidth_overhead_in_kbps()
/linux/drivers/gpu/drm/msm/dsi/
H A Ddsi_host.c993 u32 v_total = mode->vtotal; in dsi_timing_setup() local
998 u32 va_start = v_total - mode->vsync_start; in dsi_timing_setup()
1088 DSI_TOTAL_V_TOTAL(v_total - 1)); in dsi_timing_setup()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn30/
H A Ddcn30_resource.c1931 h_v_total = timing->h_total * timing->v_total; in get_refresh_rate()
1969 curr_v_blank = timing->v_total - timing->v_addressable; in get_frame_rate_at_max_stretch_100hz()
1971 stretched_frame_pix_cnt = (v_stretch_max + timing->v_total) * timing->h_total; in get_frame_rate_at_max_stretch_100hz()

12