Searched refs:on_time_div (Results 1 – 1 of 1) sorted by relevance
127 unsigned long long on_time_div; in pwm_lpss_prepare() local145 on_time_div = 255ULL * duty_ns; in pwm_lpss_prepare()146 do_div(on_time_div, period_ns); in pwm_lpss_prepare()147 on_time_div = 255ULL - on_time_div; in pwm_lpss_prepare()153 ctrl |= on_time_div; in pwm_lpss_prepare()213 unsigned long long base_unit, freq, on_time_div; in pwm_lpss_get_state() local221 on_time_div = 255 - (ctrl & PWM_ON_TIME_DIV_MASK); in pwm_lpss_get_state()231 on_time_div *= state->period; in pwm_lpss_get_state()232 do_div(on_time_div, 255); in pwm_lpss_get_state()233 state->duty_cycle = on_time_div; in pwm_lpss_get_state()