Home
last modified time | relevance | path

Searched refs:drr_timing (Results 1 – 2 of 2) sorted by relevance

/linux-6.1.9/drivers/gpu/drm/amd/display/dc/
Ddc_dmub_srv.c453 struct dc_crtc_timing *drr_timing = &vblank_pipe->stream->timing; in populate_subvp_cmd_drr_info() local
470 drr_frame_us = div64_u64(((uint64_t)drr_timing->v_total * drr_timing->h_total * 1000000), in populate_subvp_cmd_drr_info()
471 (((uint64_t)drr_timing->pix_clk_100hz * 100))); in populate_subvp_cmd_drr_info()
476 …min_vtotal_supported = div64_u64(((uint64_t)drr_timing->pix_clk_100hz * 100 * min_drr_supported_us… in populate_subvp_cmd_drr_info()
477 (((uint64_t)drr_timing->h_total * 1000000))); in populate_subvp_cmd_drr_info()
483 drr_active_us = div64_u64(((uint64_t)drr_timing->v_addressable * drr_timing->h_total * 1000000), in populate_subvp_cmd_drr_info()
484 (((uint64_t)drr_timing->pix_clk_100hz * 100))); in populate_subvp_cmd_drr_info()
488 …max_vtotal_supported = div64_u64(((uint64_t)drr_timing->pix_clk_100hz * 100 * max_drr_supported_us… in populate_subvp_cmd_drr_info()
489 (((uint64_t)drr_timing->h_total * 1000000))); in populate_subvp_cmd_drr_info()
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/dml/dcn32/
Ddcn32_fpu.c855 struct dc_crtc_timing *drr_timing = NULL; in subvp_drr_schedulable() local
880 drr_timing = &drr_pipe->stream->timing; in subvp_drr_schedulable()
886 drr_frame_us = drr_timing->v_total * drr_timing->h_total / in subvp_drr_schedulable()
887 (double)(drr_timing->pix_clk_100hz * 100) * 1000000; 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()
893 (double)(drr_timing->pix_clk_100hz * 100) * 1000000 + (stretched_drr_us - drr_frame_us); in subvp_drr_schedulable()
901 if (stretched_drr_us < (1 / (double)drr_timing->min_refresh_in_uhz) * 1000000 * 1000000 && in subvp_drr_schedulable()