Lines Matching refs:mul
92 unsigned long mul, output_clk_hz, input_clk_hz; in img_pwm_config() local
105 mul = DIV_ROUND_UP(input_clk_hz, output_clk_hz); in img_pwm_config()
106 if (mul <= max_timebase) { in img_pwm_config()
108 timebase = DIV_ROUND_UP(mul, 1); in img_pwm_config()
109 } else if (mul <= max_timebase * 8) { in img_pwm_config()
111 timebase = DIV_ROUND_UP(mul, 8); in img_pwm_config()
112 } else if (mul <= max_timebase * 64) { in img_pwm_config()
114 timebase = DIV_ROUND_UP(mul, 64); in img_pwm_config()
115 } else if (mul <= max_timebase * 512) { in img_pwm_config()
117 timebase = DIV_ROUND_UP(mul, 512); in img_pwm_config()
118 } else if (mul > max_timebase * 512) { in img_pwm_config()