Searched refs:on_time_div (Results 1 – 1 of 1) sorted by relevance
85 unsigned long long on_time_div; in pwm_lpss_prepare() local103 on_time_div = 255ULL * duty_ns; in pwm_lpss_prepare()104 do_div(on_time_div, period_ns); in pwm_lpss_prepare()105 on_time_div = 255ULL - on_time_div; in pwm_lpss_prepare()111 ctrl |= on_time_div; in pwm_lpss_prepare()171 unsigned long long base_unit, freq, on_time_div; in pwm_lpss_get_state() local179 on_time_div = 255 - (ctrl & PWM_ON_TIME_DIV_MASK); in pwm_lpss_get_state()189 on_time_div *= state->period; in pwm_lpss_get_state()190 do_div(on_time_div, 255); in pwm_lpss_get_state()191 state->duty_cycle = on_time_div; in pwm_lpss_get_state()