/linux/drivers/gpu/drm/amd/amdgpu/ |
A D | dce_v8_0.c | 800 fixed20_12 line_time; in dce_v8_0_average_bandwidth() local 806 line_time.full = dfixed_const(wm->active_time + wm->blank_time); in dce_v8_0_average_bandwidth() 807 line_time.full = dfixed_div(line_time, a); in dce_v8_0_average_bandwidth() 812 bandwidth.full = dfixed_div(bandwidth, line_time); in dce_v8_0_average_bandwidth() 928 u32 line_time = wm->active_time + wm->blank_time; in dce_v8_0_check_latency_hiding() local 969 u32 line_time = 0; in dce_v8_0_program_watermarks() local 976 line_time = (u32) div_u64((u64)mode->crtc_htotal * 1000000, in dce_v8_0_program_watermarks() 978 line_time = min(line_time, (u32)65535); in dce_v8_0_program_watermarks() 994 wm_high.blank_time = line_time - wm_high.active_time; in dce_v8_0_program_watermarks() 1033 wm_low.blank_time = line_time - wm_low.active_time; in dce_v8_0_program_watermarks() [all …]
|
A D | dce_v6_0.c | 663 fixed20_12 line_time; in dce_v6_0_average_bandwidth() local 669 line_time.full = dfixed_const(wm->active_time + wm->blank_time); in dce_v6_0_average_bandwidth() 670 line_time.full = dfixed_div(line_time, a); in dce_v6_0_average_bandwidth() 675 bandwidth.full = dfixed_div(bandwidth, line_time); in dce_v6_0_average_bandwidth() 791 u32 line_time = wm->active_time + wm->blank_time; in dce_v6_0_check_latency_hiding() local 833 u32 line_time = 0; in dce_v6_0_program_watermarks() local 844 line_time = (u32) div_u64((u64)mode->crtc_htotal * 1000000, in dce_v6_0_program_watermarks() 846 line_time = min(line_time, (u32)65535); in dce_v6_0_program_watermarks() 866 wm_high.blank_time = line_time - wm_high.active_time; in dce_v6_0_program_watermarks() 893 wm_low.blank_time = line_time - wm_low.active_time; in dce_v6_0_program_watermarks() [all …]
|
A D | dce_v10_0.c | 865 fixed20_12 line_time; in dce_v10_0_average_bandwidth() local 871 line_time.full = dfixed_const(wm->active_time + wm->blank_time); in dce_v10_0_average_bandwidth() 872 line_time.full = dfixed_div(line_time, a); in dce_v10_0_average_bandwidth() 877 bandwidth.full = dfixed_div(bandwidth, line_time); in dce_v10_0_average_bandwidth() 993 u32 line_time = wm->active_time + wm->blank_time; in dce_v10_0_check_latency_hiding() local 1034 u32 line_time = 0; in dce_v10_0_program_watermarks() local 1041 line_time = (u32) div_u64((u64)mode->crtc_htotal * 1000000, in dce_v10_0_program_watermarks() 1043 line_time = min(line_time, (u32)65535); in dce_v10_0_program_watermarks() 1059 wm_high.blank_time = line_time - wm_high.active_time; in dce_v10_0_program_watermarks() 1098 wm_low.blank_time = line_time - wm_low.active_time; in dce_v10_0_program_watermarks() [all …]
|
A D | dce_v11_0.c | 891 fixed20_12 line_time; in dce_v11_0_average_bandwidth() local 897 line_time.full = dfixed_const(wm->active_time + wm->blank_time); in dce_v11_0_average_bandwidth() 898 line_time.full = dfixed_div(line_time, a); in dce_v11_0_average_bandwidth() 903 bandwidth.full = dfixed_div(bandwidth, line_time); in dce_v11_0_average_bandwidth() 1019 u32 line_time = wm->active_time + wm->blank_time; in dce_v11_0_check_latency_hiding() local 1060 u32 line_time = 0; in dce_v11_0_program_watermarks() local 1067 line_time = (u32) div_u64((u64)mode->crtc_htotal * 1000000, in dce_v11_0_program_watermarks() 1069 line_time = min(line_time, (u32)65535); in dce_v11_0_program_watermarks() 1085 wm_high.blank_time = line_time - wm_high.active_time; in dce_v11_0_program_watermarks() 1124 wm_low.blank_time = line_time - wm_low.active_time; in dce_v11_0_program_watermarks() [all …]
|
A D | amdgpu_mode.h | 424 u32 line_time; member
|
/linux/drivers/gpu/drm/msm/disp/dpu1/ |
A D | dpu_encoder.c | 1644 u32 line_time; in _dpu_encoder_calculate_linetime() local 1673 line_time = (pclk_period * mode->htotal) / 1000; in _dpu_encoder_calculate_linetime() 1674 if (line_time == 0) { in _dpu_encoder_calculate_linetime() 1681 pclk_rate, pclk_period, line_time); in _dpu_encoder_calculate_linetime() 1683 return line_time; in _dpu_encoder_calculate_linetime() 1691 u32 line_time; in dpu_encoder_vsync_time() local 1703 line_time = _dpu_encoder_calculate_linetime(dpu_enc, mode); in dpu_encoder_vsync_time() 1704 if (!line_time) in dpu_encoder_vsync_time() 1711 time_to_vsync = line_time * vtotal; in dpu_encoder_vsync_time() 1713 time_to_vsync = line_time * (vtotal - cur_line); in dpu_encoder_vsync_time()
|
/linux/drivers/media/i2c/ |
A D | mt9v011.c | 235 unsigned row_time, line_time; in calc_speed() local 248 line_time = height + vblank + 1; in calc_speed() 256 do_div(speed, row_time * line_time); in calc_speed()
|
/linux/drivers/gpu/drm/radeon/ |
A D | rs690.c | 280 fixed20_12 consumption_time, line_time, chunk_time, read_delay_latency; in rs690_crtc_bandwidth_compute() local 352 line_time.full = dfixed_mul(a, pclk); in rs690_crtc_bandwidth_compute() 361 wm->active_time.full = dfixed_mul(line_time, b); in rs690_crtc_bandwidth_compute() 429 tolerable_latency.full = line_time.full; in rs690_crtc_bandwidth_compute() 434 tolerable_latency.full = line_time.full - tolerable_latency.full; in rs690_crtc_bandwidth_compute()
|
A D | evergreen.c | 2045 fixed20_12 line_time; in evergreen_average_bandwidth() local 2052 line_time.full = dfixed_div(line_time, a); in evergreen_average_bandwidth() 2057 bandwidth.full = dfixed_div(bandwidth, line_time); in evergreen_average_bandwidth() 2130 u32 line_time = wm->active_time + wm->blank_time; in evergreen_check_latency_hiding() local 2161 u32 line_time = 0; in evergreen_program_watermarks() local 2175 line_time = min(line_time, (u32)65535); in evergreen_program_watermarks() 2194 wm_high.blank_time = line_time - wm_high.active_time; in evergreen_program_watermarks() 2221 wm_low.blank_time = line_time - wm_low.active_time; in evergreen_program_watermarks() 2292 LATENCY_HIGH_WATERMARK(line_time))); in evergreen_program_watermarks() 2300 LATENCY_HIGH_WATERMARK(line_time))); in evergreen_program_watermarks() [all …]
|
A D | rv515.c | 931 fixed20_12 consumption_time, line_time, chunk_time, read_delay_latency; in rv515_crtc_bandwidth_compute() local 1000 line_time.full = dfixed_mul(a, pclk); in rv515_crtc_bandwidth_compute() 1009 wm->active_time.full = dfixed_mul(line_time, b); in rv515_crtc_bandwidth_compute() 1048 tolerable_latency.full = line_time.full; in rv515_crtc_bandwidth_compute() 1053 tolerable_latency.full = line_time.full - tolerable_latency.full; in rv515_crtc_bandwidth_compute()
|
A D | si.c | 2182 fixed20_12 line_time; in dce6_average_bandwidth() local 2189 line_time.full = dfixed_div(line_time, a); in dce6_average_bandwidth() 2194 bandwidth.full = dfixed_div(bandwidth, line_time); in dce6_average_bandwidth() 2270 u32 line_time = wm->active_time + wm->blank_time; in dce6_check_latency_hiding() local 2301 u32 line_time = 0; in dce6_program_watermarks() local 2314 line_time = min(line_time, (u32)65535); in dce6_program_watermarks() 2337 wm_high.blank_time = line_time - wm_high.active_time; in dce6_program_watermarks() 2364 wm_low.blank_time = line_time - wm_low.active_time; in dce6_program_watermarks() 2437 LATENCY_HIGH_WATERMARK(line_time))); in dce6_program_watermarks() 2445 LATENCY_HIGH_WATERMARK(line_time))); in dce6_program_watermarks() [all …]
|
A D | cik.c | 9067 fixed20_12 line_time; in dce8_average_bandwidth() local 9074 line_time.full = dfixed_div(line_time, a); in dce8_average_bandwidth() 9079 bandwidth.full = dfixed_div(bandwidth, line_time); in dce8_average_bandwidth() 9195 u32 line_time = wm->active_time + wm->blank_time; in dce8_check_latency_hiding() local 9236 u32 line_time = 0; in dce8_program_watermarks() local 9245 line_time = min(line_time, (u32)65535); in dce8_program_watermarks() 9262 wm_high.blank_time = line_time - wm_high.active_time; in dce8_program_watermarks() 9302 wm_low.blank_time = line_time - wm_low.active_time; in dce8_program_watermarks() 9339 LATENCY_HIGH_WATERMARK(line_time))); in dce8_program_watermarks() 9347 LATENCY_HIGH_WATERMARK(line_time))); in dce8_program_watermarks() [all …]
|
A D | radeon_mode.h | 367 u32 line_time; member
|
A D | si_dpm.c | 5315 if (radeon_crtc->line_time <= 0) in si_upload_smc_data() 5325 radeon_crtc->wm_high / radeon_crtc->line_time) != PPSMC_Result_OK) in si_upload_smc_data() 5330 radeon_crtc->wm_low / radeon_crtc->line_time) != PPSMC_Result_OK) in si_upload_smc_data()
|
/linux/drivers/gpu/drm/amd/pm/powerplay/ |
A D | si_dpm.c | 5774 if (amdgpu_crtc->line_time <= 0) in si_upload_smc_data() 5784 amdgpu_crtc->wm_high / amdgpu_crtc->line_time) != PPSMC_Result_OK) in si_upload_smc_data() 5789 amdgpu_crtc->wm_low / amdgpu_crtc->line_time) != PPSMC_Result_OK) in si_upload_smc_data()
|