/linux-6.1.9/drivers/gpu/drm/amd/display/modules/freesync/ |
D | freesync.c | 113 unsigned int v_total) in calc_duration_in_us_from_v_total() argument 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() 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() 152 unsigned int v_total = 0; in calc_v_total_from_duration() local 164 v_total = div_u64((unsigned long long)duration_in_us in calc_v_total_from_duration() [all …]
|
/linux-6.1.9/drivers/video/fbdev/matrox/ |
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 - 2; in computeRegs() [all …]
|
/linux-6.1.9/drivers/gpu/ipu-v3/ |
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.1.9/drivers/gpu/drm/amd/display/dc/dcn10/ |
D | dcn10_optc.c | 152 uint32_t v_total; in optc1_program_timing() local 202 v_total = patched_crtc_timing.v_total - 1; in optc1_program_timing() 205 OTG_V_TOTAL, v_total); in optc1_program_timing() 210 optc->funcs->set_vtotal_min_max(optc, v_total, v_total); in optc1_program_timing() 220 asic_blank_start = patched_crtc_timing.v_total - in optc1_program_timing() 341 v_init = patched_crtc_timing.v_total - patched_crtc_timing.v_front_porch; in optc1_set_vtg_params() 576 v_blank = (timing->v_total - timing->v_addressable - in optc1_validate_timing() 601 timing->v_total > optc1->max_v_total) in optc1_validate_timing() 1308 hw_crtc_timing->v_total = s.v_total + 1; in optc1_get_hw_timing() 1309 hw_crtc_timing->v_addressable = s.v_total - ((s.v_total - s.v_blank_start) + s.v_blank_end); in optc1_get_hw_timing() [all …]
|
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()
|
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() 3711 asic_blank_end = (patched_crtc_timing.v_total - in dcn10_get_vupdate_offset_from_vsync() 3730 *start_line = vupdate_pos - ((vupdate_pos / timing->v_total) * timing->v_total); in dcn10_calc_vupdate_position() 3732 *start_line = vupdate_pos + ((-vupdate_pos / timing->v_total) + 1) * timing->v_total - 1; in dcn10_calc_vupdate_position() [all …]
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/ |
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) * 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() 583 …subvp0_prefetch_us = div64_u64(((uint64_t)(phantom_timing0->v_total - phantom_timing0->v_front_por… in update_subvp_prefetch_end_to_mall_start() 586 …subvp1_prefetch_us = div64_u64(((uint64_t)(phantom_timing1->v_total - phantom_timing1->v_front_por… in update_subvp_prefetch_end_to_mall_start() 644 pipe_data->pipe_config.subvp_data.vtotal = subvp_pipe->stream->timing.v_total; in populate_subvp_cmd_pipe_info() 646 main_timing->v_total - main_timing->v_front_porch; in populate_subvp_cmd_pipe_info() 648 main_timing->v_total - main_timing->v_front_porch - main_timing->v_addressable; in populate_subvp_cmd_pipe_info() [all …]
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/ |
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.1.9/drivers/gpu/drm/amd/display/dc/dcn201/ |
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.1.9/drivers/gpu/drm/radeon/ |
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()
|
/linux-6.1.9/drivers/gpu/drm/bridge/ |
D | lontium-lt9611.c | 154 u32 v_total, vactive, vsync_len, vfront_porch, vsync_porch; in lt9611_mipi_video_setup() local 157 v_total = mode->vtotal; in lt9611_mipi_video_setup() 169 regmap_write(lt9611->regmap, 0x830d, (u8)(v_total / 256)); in lt9611_mipi_video_setup() 170 regmap_write(lt9611->regmap, 0x830e, (u8)(v_total % 256)); in lt9611_mipi_video_setup() 310 u32 v_total, vactive, hactive_a, hactive_b, h_total_sysclk; in lt9611_video_check() local 325 v_total = temp; in lt9611_video_check() 347 hactive_a, hactive_b, vactive, v_total, h_total_sysclk); in lt9611_video_check()
|
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()
|
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.1.9/drivers/video/fbdev/aty/ |
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() 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 = 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() [all …]
|
D | atyfb_base.c | 822 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 900 v_total = v_sync_end + var->upper_margin; in aty_var_to_crtc() 978 v_total = v_disp + par->lcd_vblank_len / VScan; 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() 1171 u32 v_total, v_disp, v_sync_strt, v_sync_wid, v_sync_pol, c_sync; in aty_crtc_to_var() local 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() [all …]
|
/linux-6.1.9/drivers/video/fbdev/nvidia/ |
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.1.9/drivers/gpu/drm/amd/display/dc/dce120/ |
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.1.9/drivers/gpu/drm/amd/display/dc/dce/ |
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.1.9/drivers/gpu/drm/amd/display/dc/dcn31/ |
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.1.9/drivers/gpu/drm/amd/display/dc/dce110/ |
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()
|
D | dce110_timing_generator_v.c | 271 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-6.1.9/drivers/gpu/drm/amd/display/dc/inc/hw/ |
D | mem_input.h | 128 uint32_t v_total,/* for current target */
|
/linux-6.1.9/drivers/gpu/drm/amd/display/amdgpu_dm/ |
D | amdgpu_dm_psr.c | 156 stream->timing.v_total), in amdgpu_dm_psr_enable()
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/dml/dcn32/ |
D | dcn32_fpu.c | 589 phantom_stream->timing.v_total = phantom_stream->timing.v_addressable + in dcn32_set_phantom_stream_timing() 668 pipe->stream->timing.v_total * pipe->stream->timing.h_total - 1) in dcn32_assign_subvp_pipe() 669 / (double)(pipe->stream->timing.v_total * pipe->stream->timing.h_total); in dcn32_assign_subvp_pipe() 688 unsigned int frame_us = (stream->timing.v_total * stream->timing.h_total / in dcn32_assign_subvp_pipe() 796 microschedule_lines = (phantom->timing.v_total - phantom->timing.v_front_porch) + in subvp_subvp_schedulable() 819 …vblank1_us = (((subvp_pipes[0]->stream->timing.v_total - subvp_pipes[0]->stream->timing.v_addressa… in subvp_subvp_schedulable() 822 …vblank2_us = (((subvp_pipes[1]->stream->timing.v_total - subvp_pipes[1]->stream->timing.v_addressa… in subvp_subvp_schedulable() 881 prefetch_us = (phantom_timing->v_total - phantom_timing->v_front_porch) * phantom_timing->h_total / in subvp_drr_schedulable() 886 drr_frame_us = drr_timing->v_total * drr_timing->h_total / in subvp_drr_schedulable() 892 drr_stretched_vblank_us = (drr_timing->v_total - drr_timing->v_addressable) * drr_timing->h_total / in subvp_drr_schedulable() [all …]
|
/linux-6.1.9/drivers/gpu/drm/amd/display/include/ |
D | bios_parser_types.h | 180 uint32_t v_total; member
|