/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/modules/freesync/ |
H A D | freesync.c | 111 unsigned int v_total) in calc_duration_in_us_from_v_total() 114 (unsigned int)(div64_u64(((unsigned long long)(v_total) in calc_duration_in_us_from_v_total() 125 unsigned int v_total; in calc_v_total_from_refresh() local 132 v_total = div64_u64(div64_u64(((unsigned long long)( in calc_v_total_from_refresh() 136 /* v_total cannot be less than nominal */ in calc_v_total_from_refresh() 137 if (v_total < stream->timing.v_total) { in calc_v_total_from_refresh() 138 ASSERT(v_total < stream->timing.v_total); in calc_v_total_from_refresh() 139 v_total in calc_v_total_from_refresh() 108 calc_duration_in_us_from_v_total( const struct dc_stream_state *stream, const struct mod_vrr_params *in_vrr, unsigned int v_total) calc_duration_in_us_from_v_total() argument 150 unsigned int v_total = 0; calc_v_total_from_duration() local 176 unsigned int v_total = 0; update_v_total_for_static_ramp() local [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/modules/freesync/ |
H A D | freesync.c | 113 unsigned int v_total) in calc_duration_in_us_from_v_total() 116 (unsigned int)(div64_u64(((unsigned long long)(v_total) in calc_duration_in_us_from_v_total() 127 unsigned int v_total; in mod_freesync_calc_v_total_from_refresh() local 134 v_total = div64_u64(div64_u64(((unsigned long long)( in mod_freesync_calc_v_total_from_refresh() 138 /* v_total cannot be less than nominal */ in mod_freesync_calc_v_total_from_refresh() 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 in mod_freesync_calc_v_total_from_refresh() 110 calc_duration_in_us_from_v_total( const struct dc_stream_state *stream, const struct mod_vrr_params *in_vrr, unsigned int v_total) calc_duration_in_us_from_v_total() argument 152 unsigned int v_total = 0; calc_v_total_from_duration() local 187 unsigned int v_total = 0; update_v_total_for_static_ramp() local [all...] |
/kernel/linux/linux-5.10/drivers/video/fbdev/matrox/ |
H A D | matroxfb_g450.c | 234 unsigned int v_total; member 339 if (vtotal < outd->v_total) { in computeRegs() 340 unsigned int yovr = outd->v_total - vtotal; in computeRegs() 343 } else if (vtotal > outd->v_total) { in computeRegs() 344 vdisplay = outd->v_total - 4; in computeRegs() 345 vsyncend = outd->v_total; in computeRegs() 347 upper = (outd->v_total - vsyncend) >> 1; /* in field lines */ 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 in computeRegs() [all...] |
/kernel/linux/linux-6.6/drivers/video/fbdev/matrox/ |
H A D | matroxfb_g450.c | 234 unsigned int v_total; member 339 if (vtotal < outd->v_total) { in computeRegs() 340 unsigned int yovr = outd->v_total - vtotal; in computeRegs() 343 } else if (vtotal > outd->v_total) { in computeRegs() 344 vdisplay = outd->v_total - 4; in computeRegs() 345 vsyncend = outd->v_total; in computeRegs() 347 upper = (outd->v_total - vsyncend) >> 1; /* in field lines */ 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 in computeRegs() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/ipu-v3/ |
H 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() 327 .run_count = v_total - 1, in ipu_di_sync_config_noninterlaced() 356 .run_count = v_total - 1, in ipu_di_sync_config_noninterlaced() 374 .run_count = v_total in ipu_di_sync_config_noninterlaced() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/ipu-v3/ |
H 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 in ipu_di_sync_config_noninterlaced() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dcn10/ |
H A D | dcn10_optc.c | 152 uint32_t v_total; in optc1_program_timing() local 201 v_total = patched_crtc_timing.v_total - 1; in optc1_program_timing() 204 OTG_V_TOTAL, v_total); in optc1_program_timing() 210 OTG_V_TOTAL_MAX, v_total); in optc1_program_timing() 212 OTG_V_TOTAL_MIN, v_total); in optc1_program_timing() 222 asic_blank_start = patched_crtc_timing.v_total - in optc1_program_timing() 332 v_init = patched_crtc_timing.v_total - patched_crtc_timing.v_front_porch; in optc1_set_vtg_params() 564 v_blank = (timing->v_total - timing->v_addressable - in optc1_validate_timing() 589 timing->v_total > optc in optc1_validate_timing() [all...] |
H A D | dcn10_opp.c | 315 uint32_t space1_size = timing->v_total - timing->v_addressable; in opp1_program_stereo() 317 uint32_t space2_size = timing->v_total - timing->v_addressable; in opp1_program_stereo()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dcn10/ |
H A D | dcn10_optc.c | 166 uint32_t v_total; in optc1_program_timing() local 216 v_total = patched_crtc_timing.v_total - 1; in optc1_program_timing() 219 OTG_V_TOTAL, v_total); in optc1_program_timing() 224 optc->funcs->set_vtotal_min_max(optc, v_total, v_total); in optc1_program_timing() 234 asic_blank_start = patched_crtc_timing.v_total - in optc1_program_timing() 355 v_init = patched_crtc_timing.v_total - patched_crtc_timing.v_front_porch; in optc1_set_vtg_params() 596 v_blank = (timing->v_total - timing->v_addressable - in optc1_validate_timing() 621 timing->v_total > optc in optc1_validate_timing() [all...] |
H A D | dcn10_opp.c | 317 uint32_t space1_size = timing->v_total - timing->v_addressable; in opp1_program_stereo() 319 uint32_t space2_size = timing->v_total - timing->v_addressable; in opp1_program_stereo()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dcn32/ |
H A D | dcn32_resource_helpers.c | 487 curr_v_blank = timing->v_total - timing->v_addressable; in get_frame_rate_at_max_stretch_100hz() 489 stretched_frame_pix_cnt = (v_stretch_max + timing->v_total) * timing->h_total; in get_frame_rate_at_max_stretch_100hz() 529 h_v_total = timing->h_total * timing->v_total; in get_refresh_rate() 655 pipe->stream->timing.v_total * pipe->stream->timing.h_total - (uint64_t)1); in dcn32_subvp_drr_admissable() 656 refresh_rate = div_u64(refresh_rate, pipe->stream->timing.v_total); in dcn32_subvp_drr_admissable() 713 pipe->stream->timing.v_total * pipe->stream->timing.h_total - (uint64_t)1); in dcn32_subvp_vblank_admissable() 714 refresh_rate = div_u64(refresh_rate, pipe->stream->timing.v_total); in dcn32_subvp_vblank_admissable()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/ |
H A D | dc_dmub_srv.c | 470 drr_frame_us = div64_u64(((uint64_t)drr_timing->v_total * drr_timing->h_total * 1000000), in populate_subvp_cmd_drr_info() 479 prefetch_us = div64_u64(((uint64_t)(phantom_timing->v_total - phantom_timing->v_front_porch) * phantom_timing->h_total * 1000000), in populate_subvp_cmd_drr_info() 546 pipe_data->pipe_config.vblank_data.vblank_start = vblank_pipe->stream->timing.v_total - in populate_subvp_cmd_vblank_pipe_info() 548 pipe_data->pipe_config.vblank_data.vtotal = vblank_pipe->stream->timing.v_total; in populate_subvp_cmd_vblank_pipe_info() 553 vblank_pipe->stream->timing.v_total - vblank_pipe->stream->timing.v_front_porch - vblank_pipe->stream->timing.v_addressable; in populate_subvp_cmd_vblank_pipe_info() 585 subvp0_prefetch_us = div64_u64(((uint64_t)(phantom_timing0->v_total - phantom_timing0->v_front_porch) * in update_subvp_prefetch_end_to_mall_start() 588 subvp1_prefetch_us = div64_u64(((uint64_t)(phantom_timing1->v_total - phantom_timing1->v_front_porch) * in update_subvp_prefetch_end_to_mall_start() 641 pipe_data->pipe_config.subvp_data.vtotal = subvp_pipe->stream->timing.v_total; in populate_subvp_cmd_pipe_info() 643 main_timing->v_total - main_timing->v_front_porch; in populate_subvp_cmd_pipe_info() 645 main_timing->v_total in populate_subvp_cmd_pipe_info() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dcn201/ |
H A D | dcn201_optc.c | 85 v_blank = (timing->v_total - timing->v_addressable - in optc201_validate_timing() 106 timing->v_total > optc1->max_v_total) in optc201_validate_timing()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/ |
H 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()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/ |
H 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()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/modules/info_packet/ |
H A D | info_packet.c | 470 && stream->timing.v_total >= 2160 in mod_build_hf_vsif_infopacket() 577 info_packet->sb[1] = (stream->timing.v_total & 0x00FF); in mod_build_adaptive_sync_infopacket_v2() 578 info_packet->sb[2] = (stream->timing.v_total & 0xFF00) >> 8; in mod_build_adaptive_sync_infopacket_v2()
|
/kernel/linux/linux-5.10/drivers/video/fbdev/aty/ |
H 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() 1103 /* check to make sure h_total and v_total are in range */ 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() 1228 u32 v_total, v_disp, v_sync_strt, v_sync_wid, v_sync_pol, c_sync; in aty128_crtc_to_var() local 1238 v_total in aty128_crtc_to_var() [all...] |
/kernel/linux/linux-6.6/drivers/video/fbdev/aty/ |
H A D | aty128fb.c | 415 u32 v_total, v_sync_strt_wid; member 1020 aty_st_le32(CRTC_V_TOTAL_DISP, crtc->v_total); in aty128_set_crtc() 1037 u32 v_total, v_disp, v_sync_strt, v_sync_wid, v_sync_pol, c_sync; in aty128_var_to_crtc() local 1099 v_total = (yres + upper + vslen + lower - 1) & 0xFFFFL; in aty128_var_to_crtc() 1101 /* check to make sure h_total and v_total are in range */ in aty128_var_to_crtc() 1102 if (((h_total >> 3) - 1) > 0x1ff || (v_total - 1) > 0x7FF) { in aty128_var_to_crtc() 1131 crtc->v_total = v_total | (v_disp << 16); in aty128_var_to_crtc() 1226 u32 v_total, v_disp, v_sync_strt, v_sync_wid, v_sync_pol, c_sync; in aty128_crtc_to_var() local 1236 v_total in aty128_crtc_to_var() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/core/ |
H A D | dc_stream.c | 314 stream->timing.v_total * stream->timing.h_total - (uint64_t)1); in is_subvp_high_refresh_candidate() 315 refresh_rate = div_u64(refresh_rate, stream->timing.v_total); in is_subvp_high_refresh_candidate() 370 ((stream->timing.pix_clk_100hz * 100) / stream->timing.v_total / stream->timing.h_total) < 120) in dc_stream_set_cursor_attributes() 373 ((stream->timing.pix_clk_100hz * 100) / stream->timing.v_total / stream->timing.h_total) < 120) in dc_stream_set_cursor_attributes() 761 "\tpix_clk_khz: %d, h_total: %d, v_total: %d, pixelencoder:%d, displaycolorDepth:%d\n", in dc_stream_log() 764 stream->timing.v_total, in dc_stream_log()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dce120/ |
H 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() 671 timing->v_total - timing->v_addressable - in dce120_timing_generator_enable_advanced_request()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/ |
H A D | radeon_legacy_tv.c | 429 unsigned int h_total, v_total, f_total; in radeon_legacy_tv_init_restarts() local 440 v_total = const_ptr->ver_total; in radeon_legacy_tv_init_restarts() 486 v_offset = ((int)(v_total * h_total) * 2 * tv_dac->v_pos) / (int)(NTSC_TV_LINES_PER_FRAME); in radeon_legacy_tv_init_restarts() 488 v_offset = ((int)(v_total * h_total) * 2 * tv_dac->v_pos) / (int)(PAL_TV_LINES_PER_FRAME); in radeon_legacy_tv_init_restarts() 497 tv_dac->tv.vrestart = restart % v_total; in radeon_legacy_tv_init_restarts() 498 restart /= v_total; in radeon_legacy_tv_init_restarts()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dce120/ |
H 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()
|
/kernel/linux/linux-6.6/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 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()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/bridge/ |
H A D | lontium-lt8912b.c | 276 u32 vactive, v_total, vpw, vfp, vbp; in lt8912_video_setup() local 294 v_total = vactive + vfp + vpw + vbp; in lt8912_video_setup() 314 ret |= regmap_write(lt->regmap[I2C_CEC_DSI], 0x36, v_total & 0xff); in lt8912_video_setup() 315 ret |= regmap_write(lt->regmap[I2C_CEC_DSI], 0x37, v_total >> 8); in lt8912_video_setup()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/bridge/ |
H A D | lontium-lt9611.c | 152 u32 v_total, vactive, vsync_len, vfront_porch, vsync_porch; in lt9611_mipi_video_setup() local 155 v_total = mode->vtotal; in lt9611_mipi_video_setup() 167 regmap_write(lt9611->regmap, 0x830d, (u8)(v_total / 256)); in lt9611_mipi_video_setup() 168 regmap_write(lt9611->regmap, 0x830e, (u8)(v_total % 256)); in lt9611_mipi_video_setup() 312 u32 v_total, vactive, hactive_a, hactive_b, h_total_sysclk; in lt9611_video_check() local 323 /* v_total */ in lt9611_video_check() 327 v_total = temp; in lt9611_video_check() 348 "video check: hactive_a=%d, hactive_b=%d, vactive=%d, v_total=%d, h_total_sysclk=%d\n", in lt9611_video_check() 349 hactive_a, hactive_b, vactive, v_total, h_total_sysclk); in lt9611_video_check()
|