Searched refs:source_min (Results 1 – 1 of 1) sorted by relevance
408 uint32_t source_min, uint32_t source_max, in scale() argument413 WARN_ON(source_min > source_max); in scale()417 source_val = clamp(source_val, source_min, source_max); in scale()420 target_val = DIV_ROUND_CLOSEST_ULL((uint64_t)(source_val - source_min) * in scale()421 (target_max - target_min), source_max - source_min); in scale()