Home
last modified time | relevance | path

Searched refs:v_total (Results 1 – 25 of 48) 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
118 (unsigned int)(div64_u64(((unsigned long long)(v_total) in calc_duration_in_us_from_v_total()
140 unsigned int v_total; in mod_freesync_calc_v_total_from_refresh() local
144 return stream->timing.v_total; in mod_freesync_calc_v_total_from_refresh()
155 v_total = div64_u64(div64_u64(((unsigned long long)( in mod_freesync_calc_v_total_from_refresh()
163 v_total = div64_u64(div64_u64(((unsigned long long)( in mod_freesync_calc_v_total_from_refresh()
167 v_total = div64_u64(div64_u64(((unsigned long long)( in mod_freesync_calc_v_total_from_refresh()
173 if (v_total < stream->timing.v_total) { in mod_freesync_calc_v_total_from_refresh()
174 ASSERT(v_total < stream->timing.v_total); in mod_freesync_calc_v_total_from_refresh()
175 v_total = stream->timing.v_total; in mod_freesync_calc_v_total_from_refresh()
[all …]
/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/amd/display/dc/resource/dcn32/
H A Ddcn32_resource_helpers.c452 curr_v_blank = timing->v_total - timing->v_addressable; in get_frame_rate_at_max_stretch_100hz()
454 stretched_frame_pix_cnt = (v_stretch_max + timing->v_total) * timing->h_total; in get_frame_rate_at_max_stretch_100hz()
498 h_v_total = timing->h_total * timing->v_total; in get_refresh_rate()
666 pipe->stream->timing.v_total * (unsigned long long)pipe->stream->timing.h_total - (uint64_t)1); in dcn32_subvp_drr_admissable()
667 refresh_rate = div_u64(refresh_rate, pipe->stream->timing.v_total); in dcn32_subvp_drr_admissable()
727 pipe->stream->timing.v_total * (unsigned long long)pipe->stream->timing.h_total - (uint64_t)1); in dcn32_subvp_vblank_admissable()
728 refresh_rate = div_u64(refresh_rate, pipe->stream->timing.v_total); in dcn32_subvp_vblank_admissable()
/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/gpu/drm/amd/display/dc/core/
H A Ddc_stream.c910 stream->timing.v_total, in dc_stream_log()
1134 …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()
1180 if (stream->timing.v_total * stream->timing.h_total == 0) in dc_stream_get_max_flickerless_instant_vtotal_delta()
1183 …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()
1194 …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()
1196 …(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.c619 stream1->timing.v_total > 60) in resource_are_vblanks_synchronizable()
622 stream2->timing.v_total > 60) in resource_are_vblanks_synchronizable()
626 stream1->timing.v_total * in resource_are_vblanks_synchronizable()
630 frame_time_diff = div_u64(frame_time_diff, stream2->timing.v_total); in resource_are_vblanks_synchronizable()
650 if (stream1->timing.v_total != stream2->timing.v_total) in resource_are_streams_timing_synchronizable()
4714 hdmi_info.bits.bar_bottom = (stream->timing.v_total in set_avi_info_frame()
4823 asic_blank_start = tg->v_total - tg->v_front_porch; in adaptive_sync_override_dp_info_packets_sdp_line_num()
4830 v_update = (tg->v_total - (vstartup_start - asic_blank_end)); in adaptive_sync_override_dp_info_packets_sdp_line_num()
4832 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/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/dce120/
H A Ddce120_timing_generator.c108 (timing->v_total - timing->v_addressable - in dce120_timing_generator_validate_timing()
451 timing->v_total - 1); in dce120_timing_generator_program_blanking()
459 timing->v_total - 1); in dce120_timing_generator_program_blanking()
464 timing->v_total - 1); in dce120_timing_generator_program_blanking()
476 tmp1 = timing->v_total - (v_sync_start + timing->v_border_top); in dce120_timing_generator_program_blanking()
628 timing->v_total - timing->v_addressable - in dce120_timing_generator_enable_advanced_request()
/linux/drivers/gpu/drm/amd/display/dc/dml/dcn351/
H A Ddcn351_fpu.c464 v_blank = timing->v_total - v_active; in get_vertical_back_porch()
502 pipe->stream->adjust.v_total_min > timing->v_total) { in dcn351_populate_dml_pipes_from_context_fpu()
505 pipes[pipe_cnt].pipe.dest.vblank_nom = timing->v_total - in dcn351_populate_dml_pipes_from_context_fpu()
509 pipes[pipe_cnt].pipe.dest.vblank_nom = timing->v_total - pipes[pipe_cnt].pipe.dest.vactive; in dcn351_populate_dml_pipes_from_context_fpu()
/linux/drivers/gpu/drm/amd/display/dc/dml/dcn35/
H A Ddcn35_fpu.c431 v_blank = timing->v_total - v_active; in get_vertical_back_porch()
469 pipe->stream->adjust.v_total_min > timing->v_total) { in dcn35_populate_dml_pipes_from_context_fpu()
472 pipes[pipe_cnt].pipe.dest.vblank_nom = timing->v_total - in dcn35_populate_dml_pipes_from_context_fpu()
476 pipes[pipe_cnt].pipe.dest.vblank_nom = timing->v_total - pipes[pipe_cnt].pipe.dest.vactive; in dcn35_populate_dml_pipes_from_context_fpu()
/linux/drivers/gpu/drm/amd/display/dc/dce/
H A Ddce_mem_input.c692 uint32_t v_total, in get_dmif_switch_time_us() argument
704 if (!h_total || v_total || !pix_clk_khz) in get_dmif_switch_time_us()
709 pixels_per_frame = h_total * v_total; in get_dmif_switch_time_us()
739 uint32_t v_total, in dce_mi_allocate_dmif() argument
747 v_total, in dce_mi_allocate_dmif()
H A Ddce_clk_mgr.c541 cfg->v_refresh = (cfg->v_refresh + stream->timing.v_total / 2) in dce110_fill_display_configs()
542 / stream->timing.v_total; in dce110_fill_display_configs()
559 (stream->timing.v_total in dce110_get_min_vblank_time_us()
H A Ddce_stream_encoder.c288 hw_crtc_timing.v_total /= 2; in dce110_stream_encoder_dp_set_stream_attribute()
455 DP_MSA_VTOTAL, hw_crtc_timing.v_total); in dce110_stream_encoder_dp_set_stream_attribute()
471 v_active_start = hw_crtc_timing.v_total - hw_crtc_timing.v_border_top - in dce110_stream_encoder_dp_set_stream_attribute()
/linux/drivers/gpu/drm/amd/display/dc/hwss/dcn10/
H A Ddcn10_hwseq.c142 lines_to_vupdate = stream->timing.v_total - vpos + vupdate_start; in dcn10_wait_for_pipe_update_if_needed()
151 vupdate_end += stream->timing.v_total; in dcn10_wait_for_pipe_update_if_needed()
153 if (lines_to_vupdate > stream->timing.v_total - vupdate_end + vupdate_start) in dcn10_wait_for_pipe_update_if_needed()
671 s.v_total, in dcn10_log_hw_state()
2215 lines_to_vupdate = stream->timing.v_total - vpos + vupdate_start; in delay_cursor_until_vupdate()
2225 vupdate_end += stream->timing.v_total; in delay_cursor_until_vupdate()
2228 if (lines_to_vupdate > stream->timing.v_total - vupdate_end + vupdate_start) in delay_cursor_until_vupdate()
2359 pipe->stream->timing.v_total; in is_low_refresh_rate()
2434 hw_crtc_timing[i].v_total; in dcn10_align_pixel_clocks()
3942 asic_blank_end = (patched_crtc_timing.v_total - in dcn10_get_vupdate_offset_from_vsync()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/
H A Ddc_dmub_srv.c613 drr_frame_us = div64_u64(((uint64_t)drr_timing->v_total * drr_timing->h_total * 1000000), in populate_subvp_cmd_drr_info()
622 …prefetch_us = div64_u64(((uint64_t)(phantom_timing->v_total - phantom_timing->v_front_porch) * pha… in populate_subvp_cmd_drr_info()
689 pipe_data->pipe_config.vblank_data.vblank_start = vblank_pipe->stream->timing.v_total - in populate_subvp_cmd_vblank_pipe_info()
691 pipe_data->pipe_config.vblank_data.vtotal = vblank_pipe->stream->timing.v_total; in populate_subvp_cmd_vblank_pipe_info()
696 …vblank_pipe->stream->timing.v_total - vblank_pipe->stream->timing.v_front_porch - vblank_pipe->str… in populate_subvp_cmd_vblank_pipe_info()
742 …subvp0_prefetch_us = div64_u64(((uint64_t)(phantom_timing0->v_total - phantom_timing0->v_front_por… in update_subvp_prefetch_end_to_mall_start()
745 …subvp1_prefetch_us = div64_u64(((uint64_t)(phantom_timing1->v_total - phantom_timing1->v_front_por… in update_subvp_prefetch_end_to_mall_start()
804 pipe_data->pipe_config.subvp_data.vtotal = subvp_pipe->stream->timing.v_total; in populate_subvp_cmd_pipe_info()
806 main_timing->v_total - main_timing->v_front_porch; in populate_subvp_cmd_pipe_info()
808 main_timing->v_total - main_timing->v_front_porch - main_timing->v_addressable; in populate_subvp_cmd_pipe_info()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/dce110/
H A Ddce110_timing_generator.c312 bp_params.v_total = patched_crtc_timing.v_total; in dce110_timing_generator_program_timing_generator()
631 timing->v_total - 1, in dce110_timing_generator_program_blanking()
643 timing->v_total - 1, in dce110_timing_generator_program_blanking()
652 timing->v_total - 1, in dce110_timing_generator_program_blanking()
683 tmp = timing->v_total - (v_sync_start + timing->v_border_top); in dce110_timing_generator_program_blanking()
1145 timing->v_total > tg110->max_v_total) in dce110_timing_generator_validate_timing()
H A Ddce110_timing_generator_v.c271 timing->v_total - 1, in dce110_timing_generator_v_program_blanking()
302 tmp = timing->v_total - (v_sync_start + timing->v_border_top); in dce110_timing_generator_v_program_blanking()
/linux/drivers/video/fbdev/aty/
H A Datyfb_base.c825 u32 v_total, v_disp, v_sync_strt, v_sync_end, v_sync_wid, v_sync_pol, c_sync; in aty_var_to_crtc() local
903 v_total = v_sync_end + var->upper_margin; in aty_var_to_crtc()
981 v_total = v_disp + par->lcd_vblank_len / VScan; in aty_var_to_crtc()
1002 v_total <<= 1; in aty_var_to_crtc()
1008 v_total--; in aty_var_to_crtc()
1016 FAIL_MAX("v_total too large", v_total, 0x7ff); in aty_var_to_crtc()
1035 crtc->v_tot_disp = v_total | (v_disp << 16); in aty_var_to_crtc()
1174 u32 v_total, v_disp, v_sync_strt, v_sync_wid, v_sync_pol, c_sync; in aty_crtc_to_var() local
1185 v_total = crtc->v_tot_disp & 0x7ff; in aty_crtc_to_var()
1201 upper = v_total - v_sync_strt - v_sync_wid; in aty_crtc_to_var()
[all …]
/linux/drivers/gpu/drm/amd/display/amdgpu_dm/
H A Damdgpu_dm_psr.c165 stream->timing.v_total), in amdgpu_dm_psr_enable()
/linux/drivers/gpu/drm/amd/display/include/
H A Dbios_parser_types.h181 uint32_t v_total; member
/linux/drivers/gpu/drm/amd/display/dc/dml2_0/dml21/
H A Ddml21_translation_helper.c103 timing->v_total = stream->timing.v_total; in populate_dml21_timing_config_from_stream_state()
115 vblank_start = stream->timing.v_total - stream->timing.v_front_porch; in populate_dml21_timing_config_from_stream_state()
182 timing->vblank_nom = timing->v_total - timing->v_active; in populate_dml21_timing_config_from_stream_state()
/linux/drivers/gpu/drm/amd/display/dc/basics/
H A Ddce_calcs.c259 data->v_total[0] = data->v_total[4]; in calculate_bandwidth()
261 data->v_total[1] = data->v_total[4]; in calculate_bandwidth()
264 data->v_total[2] = data->v_total[5]; in calculate_bandwidth()
266 data->v_total[3] = data->v_total[5]; in calculate_bandwidth()
397 data->v_total[maximum_number_of_surfaces - 2] = data->v_total[5]; in calculate_bandwidth()
398 data->v_total[maximum_number_of_surfaces - 1] = data->v_total[5]; in calculate_bandwidth()
1436 …peed_change_margin[k] = bw_sub(bw_sub(bw_sub(bw_div(bw_mul((bw_sub(data->v_total[k], bw_sub(bw_div… in calculate_bandwidth()
1440 …ange_margin[k] = bw_sub(bw_sub(bw_sub(bw_sub(bw_div(bw_mul((bw_sub(data->v_total[k], bw_sub(bw_div… in calculate_bandwidth()
1998 …peed_change_latency_supported, bw_add(bw_sub(bw_div(bw_mul((bw_sub(data->v_total[i], bw_sub(bw_div… in calculate_bandwidth()
2823 data->v_total[num_displays + 4] = bw_int_to_fixed(pipe[i].stream->timing.v_total); in populate_initial_data()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/dml/calcs/
H A Ddcn_calcs.c438 input->dest.vtotal = pipe->stream->timing.v_total; in pipe_ctx_to_e2e_pipe_params()
906 v->vtotal[input_idx] = pipe->stream->timing.v_total; in dcn_validate_bandwidth()
909 v->v_sync_plus_back_porch[input_idx] = pipe->stream->timing.v_total in dcn_validate_bandwidth()
1215 pipe->pipe_dlg_param.vtotal = pipe->stream->timing.v_total; in dcn_validate_bandwidth()
1220 asic_blank_end = (pipe->stream->timing.v_total - in dcn_validate_bandwidth()
1256 hsplit_pipe->pipe_dlg_param.vtotal = pipe->stream->timing.v_total; in dcn_validate_bandwidth()
/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()

12