/linux-6.3-rc2/drivers/gpu/drm/amd/display/modules/freesync/ |
A D | freesync.c | 127 unsigned int v_total; in mod_freesync_calc_v_total_from_refresh() local 139 if (v_total < stream->timing.v_total) { in mod_freesync_calc_v_total_from_refresh() 140 ASSERT(v_total < stream->timing.v_total); in mod_freesync_calc_v_total_from_refresh() 141 v_total = stream->timing.v_total; in mod_freesync_calc_v_total_from_refresh() 144 return v_total; in mod_freesync_calc_v_total_from_refresh() 174 if (v_total < stream->timing.v_total) { in calc_v_total_from_duration() 175 ASSERT(v_total < stream->timing.v_total); in calc_v_total_from_duration() 176 v_total = stream->timing.v_total; in calc_v_total_from_duration() 179 return v_total; in calc_v_total_from_duration() 249 if (v_total < stream->timing.v_total) in update_v_total_for_static_ramp() [all …]
|
/linux-6.3-rc2/drivers/video/fbdev/matrox/ |
A D | matroxfb_g450.c | 234 unsigned int v_total; member 339 if (vtotal < outd->v_total) { in computeRegs() 344 vdisplay = outd->v_total - 4; in computeRegs() 345 vsyncend = outd->v_total; in computeRegs() 348 r->regs[0x17] = outd->v_total / 4; in computeRegs() 349 r->regs[0x18] = outd->v_total & 3; in computeRegs() 355 mt->VSyncStart = outd->v_total - 2; in computeRegs() 356 mt->VSyncEnd = outd->v_total; in computeRegs() 357 mt->VTotal = outd->v_total; in computeRegs() 369 .v_total = 625, in cve2_init_TVdata() [all …]
|
/linux-6.3-rc2/drivers/gpu/ipu-v3/ |
A D | ipu-di.c | 207 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-6.3-rc2/drivers/gpu/drm/amd/display/dc/dcn10/ |
A D | dcn10_optc.c | 153 uint32_t v_total; in optc1_program_timing() local 203 v_total = patched_crtc_timing.v_total - 1; in optc1_program_timing() 206 OTG_V_TOTAL, v_total); in optc1_program_timing() 211 optc->funcs->set_vtotal_min_max(optc, v_total, v_total); in optc1_program_timing() 221 asic_blank_start = patched_crtc_timing.v_total - in optc1_program_timing() 577 v_blank = (timing->v_total - timing->v_addressable - in optc1_validate_timing() 602 timing->v_total > optc1->max_v_total) in optc1_validate_timing() 1313 hw_crtc_timing->v_total = s.v_total + 1; in optc1_get_hw_timing() 1314 hw_crtc_timing->v_addressable = s.v_total - ((s.v_total - s.v_blank_start) + s.v_blank_end); in optc1_get_hw_timing() 1315 hw_crtc_timing->v_front_porch = s.v_total + 1 - s.v_blank_start; in optc1_get_hw_timing() [all …]
|
A D | dcn10_opp.c | 313 uint32_t space1_size = timing->v_total - timing->v_addressable; in opp1_program_stereo() 315 uint32_t space2_size = timing->v_total - timing->v_addressable; in opp1_program_stereo()
|
A D | dcn10_hw_sequencer.c | 392 s.v_total, in dcn10_log_hw_state() 1940 vupdate_start += stream->timing.v_total; in delay_cursor_until_vupdate() 1941 vupdate_end += stream->timing.v_total; in delay_cursor_until_vupdate() 1942 vpos += stream->timing.v_total; in delay_cursor_until_vupdate() 1966 vupdate_end += stream->timing.v_total; in delay_cursor_until_vupdate() 2089 pipe->stream->timing.v_total; in is_low_refresh_rate() 2162 hw_crtc_timing[i].v_total; in dcn10_align_pixel_clocks() 3746 *start_line = vupdate_pos - ((vupdate_pos / timing->v_total) * timing->v_total); in dcn10_calc_vupdate_position() 3748 *start_line = vupdate_pos + ((-vupdate_pos / timing->v_total) + 1) * timing->v_total - 1; in dcn10_calc_vupdate_position() 3769 *start_line = vline_pos - ((vline_pos / timing->v_total) * timing->v_total); in dcn10_cal_vline_position() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/ |
A D | dc_dmub_srv.c | 465 drr_frame_us = div64_u64(((uint64_t)drr_timing->v_total * drr_timing->h_total * 1000000), in populate_subvp_cmd_drr_info() 474 …prefetch_us = div64_u64(((uint64_t)(phantom_timing->v_total - phantom_timing->v_front_porch) * pha… in populate_subvp_cmd_drr_info() 540 pipe_data->pipe_config.vblank_data.vblank_start = vblank_pipe->stream->timing.v_total - in populate_subvp_cmd_vblank_pipe_info() 542 pipe_data->pipe_config.vblank_data.vtotal = vblank_pipe->stream->timing.v_total; in populate_subvp_cmd_vblank_pipe_info() 547 …vblank_pipe->stream->timing.v_total - vblank_pipe->stream->timing.v_front_porch - vblank_pipe->str… in populate_subvp_cmd_vblank_pipe_info() 579 …subvp0_prefetch_us = div64_u64(((uint64_t)(phantom_timing0->v_total - phantom_timing0->v_front_por… in update_subvp_prefetch_end_to_mall_start() 582 …subvp1_prefetch_us = div64_u64(((uint64_t)(phantom_timing1->v_total - phantom_timing1->v_front_por… in update_subvp_prefetch_end_to_mall_start() 635 pipe_data->pipe_config.subvp_data.vtotal = subvp_pipe->stream->timing.v_total; in populate_subvp_cmd_pipe_info() 637 main_timing->v_total - main_timing->v_front_porch; in populate_subvp_cmd_pipe_info() 639 main_timing->v_total - main_timing->v_front_porch - main_timing->v_addressable; in populate_subvp_cmd_pipe_info() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/modules/info_packet/ |
A D | info_packet.c | 465 && stream->timing.v_total >= 2160 in mod_build_hf_vsif_infopacket() 569 info_packet->sb[1] = (stream->timing.v_total & 0x00FF); in mod_build_adaptive_sync_infopacket_v2() 570 info_packet->sb[2] = (stream->timing.v_total & 0xFF00) >> 8; in mod_build_adaptive_sync_infopacket_v2()
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/ |
A D | dce110_clk_mgr.c | 101 uint32_t vertical_total_min = stream->timing.v_total; in dce110_get_min_vblank_time_us() 165 cfg->v_refresh = (cfg->v_refresh + stream->timing.v_total / 2) in dce110_fill_display_configs() 166 / stream->timing.v_total; in dce110_fill_display_configs()
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dcn201/ |
A D | dcn201_optc.c | 86 v_blank = (timing->v_total - timing->v_addressable - in optc201_validate_timing() 107 timing->v_total > optc1->max_v_total) in optc201_validate_timing()
|
/linux-6.3-rc2/drivers/gpu/drm/radeon/ |
A D | radeon_legacy_tv.c | 428 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-6.3-rc2/drivers/gpu/drm/bridge/ |
A D | lontium-lt9611.c | 131 u32 v_total, vactive, vsync_len, vfront_porch, vsync_porch; in lt9611_mipi_video_setup() local 134 v_total = mode->vtotal; in lt9611_mipi_video_setup() 146 regmap_write(lt9611->regmap, 0x830d, (u8)(v_total / 256)); in lt9611_mipi_video_setup() 147 regmap_write(lt9611->regmap, 0x830e, (u8)(v_total % 256)); in lt9611_mipi_video_setup() 289 u32 v_total, vactive, hactive_a, hactive_b, h_total_sysclk; in lt9611_video_check() local 304 v_total = temp; in lt9611_video_check() 326 hactive_a, hactive_b, vactive, v_total, h_total_sysclk); in lt9611_video_check()
|
A D | lontium-lt8912b.c | 277 u32 vactive, v_total, vpw, vfp, vbp; in lt8912_video_setup() local 295 v_total = vactive + vfp + vpw + vbp; in lt8912_video_setup() 315 ret |= regmap_write(lt->regmap[I2C_CEC_DSI], 0x36, v_total & 0xff); in lt8912_video_setup() 316 ret |= regmap_write(lt->regmap[I2C_CEC_DSI], 0x37, v_total >> 8); in lt8912_video_setup()
|
A D | lontium-lt9611uxc.c | 390 u32 v_total, vactive, vsync_len, vfront_porch; in lt9611uxc_video_setup() local 393 v_total = mode->vtotal; in lt9611uxc_video_setup() 403 regmap_write(lt9611uxc->regmap, 0xd00d, (u8)(v_total / 256)); in lt9611uxc_video_setup() 404 regmap_write(lt9611uxc->regmap, 0xd00e, (u8)(v_total % 256)); in lt9611uxc_video_setup()
|
/linux-6.3-rc2/drivers/video/fbdev/aty/ |
A D | aty128fb.c | 415 u32 v_total, v_sync_strt_wid; member 1022 aty_st_le32(CRTC_V_TOTAL_DISP, crtc->v_total); in aty128_set_crtc() 1039 u32 v_total, v_disp, v_sync_strt, v_sync_wid, v_sync_pol, c_sync; in aty128_var_to_crtc() local 1101 v_total = (yres + upper + vslen + lower - 1) & 0xFFFFL; in aty128_var_to_crtc() 1104 if (((h_total >> 3) - 1) > 0x1ff || (v_total - 1) > 0x7FF) { in aty128_var_to_crtc() 1133 crtc->v_total = v_total | (v_disp << 16); in aty128_var_to_crtc() 1238 v_total = crtc->v_total & 0x7ff; in aty128_crtc_to_var() 1239 v_disp = (crtc->v_total >> 16) & 0x7ff; in aty128_crtc_to_var() 1252 upper = v_total - v_sync_strt - v_sync_wid; in aty128_crtc_to_var() 1542 ((par->crtc.v_total>>16) & 0x7ff)+1, in aty128fb_set_par() [all …]
|
A D | atyfb_base.c | 900 v_total = v_sync_end + var->upper_margin; in aty_var_to_crtc() 999 v_total <<= 1; in aty_var_to_crtc() 1005 v_total--; in aty_var_to_crtc() 1013 FAIL_MAX("v_total too large", v_total, 0x7ff); in aty_var_to_crtc() 1032 crtc->v_tot_disp = v_total | (v_disp << 16); in aty_var_to_crtc() 1182 v_total = crtc->v_tot_disp & 0x7ff; in aty_crtc_to_var() 1198 upper = v_total - v_sync_strt - v_sync_wid; in aty_crtc_to_var() 1364 u32 v_disp, v_sync_strt, v_sync_end, v_total; in atyfb_set_par() local 1373 v_total = v_sync_end + debug.upper_margin; in atyfb_set_par() 1376 vRefresh = (hSync * 1000) / v_total; in atyfb_set_par() [all …]
|
/linux-6.3-rc2/drivers/video/fbdev/nvidia/ |
A D | nvidia.c | 310 int v_total = (info->var.yres + info->var.lower_margin + in nvidia_calc_regs() local 313 int v_blank_e = v_total + 1; in nvidia_calc_regs() 320 v_total |= 1; in nvidia_calc_regs() 323 v_start = v_total - 3; in nvidia_calc_regs() 324 v_end = v_total - 2; in nvidia_calc_regs() 339 state->crtc[0x6] = SetBitField(v_total, 7: 0, 7:0); in nvidia_calc_regs() 340 state->crtc[0x7] = SetBitField(v_total, 8: 8, 0:0) in nvidia_calc_regs() 345 | SetBitField(v_total, 9: 9, 5:5) in nvidia_calc_regs() 368 | SetBitField(v_total, 10: 10, 0:0); in nvidia_calc_regs() 375 state->extra = SetBitField(v_total, 11: 11, 0:0) in nvidia_calc_regs()
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dce120/ |
A D | dce120_timing_generator.c | 108 (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-6.3-rc2/drivers/gpu/drm/amd/display/dc/dce/ |
A D | dce_mem_input.c | 674 uint32_t v_total, in get_dmif_switch_time_us() argument 686 if (!h_total || v_total || !pix_clk_khz) in get_dmif_switch_time_us() 691 pixels_per_frame = h_total * v_total; in get_dmif_switch_time_us() 721 uint32_t v_total, in dce_mi_allocate_dmif() argument 729 v_total, in dce_mi_allocate_dmif()
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dce110/ |
A D | dce110_timing_generator.c | 312 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()
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dcn31/ |
A D | dcn31_hpo_dp_stream_encoder.c | 355 v_active_start = hw_crtc_timing.v_total - hw_crtc_timing.v_border_top - in dcn31_hpo_dp_stream_enc_set_stream_attribute() 409 MSA_DATA_LANE_0, hw_crtc_timing.v_total >> 8, in dcn31_hpo_dp_stream_enc_set_stream_attribute() 415 MSA_DATA_LANE_0, hw_crtc_timing.v_total & 0xff, in dcn31_hpo_dp_stream_enc_set_stream_attribute()
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dml/dcn32/ |
A D | dcn32_fpu.c | 607 phantom_stream->timing.v_total = phantom_stream->timing.v_addressable + in dcn32_set_phantom_stream_timing() 686 pipe->stream->timing.v_total * pipe->stream->timing.h_total - 1) in dcn32_assign_subvp_pipe() 687 / (double)(pipe->stream->timing.v_total * pipe->stream->timing.h_total); in dcn32_assign_subvp_pipe() 708 unsigned int frame_us = (stream->timing.v_total * stream->timing.h_total / in dcn32_assign_subvp_pipe() 816 microschedule_lines = (phantom->timing.v_total - phantom->timing.v_front_porch) + in subvp_subvp_schedulable() 910 drr_frame_us = drr_timing->v_total * drr_timing->h_total / in subvp_drr_schedulable() 1005 vblank_frame_us = vblank_timing->v_total * vblank_timing->h_total / in subvp_vblank_schedulable() 1297 asic_blank_start = patched_crtc_timing.v_total - in dcn20_adjust_freesync_v_startup() 1306 newVstartup = asic_blank_end + (patched_crtc_timing.v_total - asic_blank_start); in dcn20_adjust_freesync_v_startup() 2740 pipe->stream->timing.v_total * pipe->stream->timing.h_total - 1) in dcn32_allow_subvp_with_active_margin() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/inc/hw/ |
A D | mem_input.h | 128 uint32_t v_total,/* for current target */
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/amdgpu_dm/ |
A D | amdgpu_dm_psr.c | 159 stream->timing.v_total), in amdgpu_dm_psr_enable()
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/core/ |
A D | dc_stream.c | 344 ((stream->timing.pix_clk_100hz * 100) / stream->timing.v_total / stream->timing.h_total) < 120) in dc_stream_set_cursor_attributes() 347 ((stream->timing.pix_clk_100hz * 100) / stream->timing.v_total / stream->timing.h_total) < 120) in dc_stream_set_cursor_attributes() 768 stream->timing.v_total, in dc_stream_log()
|