Searched refs:on_time_div (Results 1 – 1 of 1) sorted by relevance
90 unsigned long long on_time_div; in pwm_lpss_prepare() local108 on_time_div = 255ULL * duty_ns; in pwm_lpss_prepare()109 do_div(on_time_div, period_ns); in pwm_lpss_prepare()110 on_time_div = 255ULL - on_time_div; in pwm_lpss_prepare()116 ctrl |= on_time_div; in pwm_lpss_prepare()176 unsigned long long base_unit, freq, on_time_div; in pwm_lpss_get_state() local184 on_time_div = 255 - (ctrl & PWM_ON_TIME_DIV_MASK); in pwm_lpss_get_state()194 on_time_div *= state->period; in pwm_lpss_get_state()195 do_div(on_time_div, 255); in pwm_lpss_get_state()196 state->duty_cycle = on_time_div; in pwm_lpss_get_state()
Completed in 6 milliseconds