Searched refs:SF_TIME (Results 1 – 2 of 2) sorted by relevance
/linux/drivers/gpu/drm/xe/ |
H A D | xe_hwmon.c | 49 #define SF_TIME 1000 /* milliseconds */ macro 316 out = mul_u64_u32_shr(tau4, SF_TIME, hwmon->scl_shift_time + x_w); in xe_hwmon_power_max_interval_show() 356 max_win = mul_u64_u32_shr(tau4, SF_TIME, hwmon->scl_shift_time + x_w); in xe_hwmon_power_max_interval_store() 362 val = DIV_ROUND_CLOSEST_ULL((u64)val << hwmon->scl_shift_time, SF_TIME); in xe_hwmon_power_max_interval_store()
|
/linux/drivers/gpu/drm/i915/ |
H A D | i915_hwmon.c | 32 #define SF_TIME 1000 macro 192 out = mul_u64_u32_shr(tau4, SF_TIME, hwmon->scl_shift_time + x_w); in hwm_power1_max_interval_show() 227 max_win = mul_u64_u32_shr(tau4, SF_TIME, hwmon->scl_shift_time + x_w); in hwm_power1_max_interval_store() 233 val = DIV_ROUND_CLOSEST_ULL((u64)val << hwmon->scl_shift_time, SF_TIME); in hwm_power1_max_interval_store()
|