Home
last modified time | relevance | path

Searched refs:base_unit_range (Results 1 – 1 of 1) sorted by relevance

/Linux-v5.4/drivers/pwm/
Dpwm-lpss.c86 unsigned long c = lpwm->info->clk_rate, base_unit_range; in pwm_lpss_prepare() local
96 base_unit_range = BIT(lpwm->info->base_unit_bits) - 1; in pwm_lpss_prepare()
97 freq *= base_unit_range; in pwm_lpss_prepare()
107 ctrl &= ~(base_unit_range << PWM_BASE_UNIT_SHIFT); in pwm_lpss_prepare()
108 base_unit &= base_unit_range; in pwm_lpss_prepare()
166 unsigned long base_unit_range; in pwm_lpss_get_state() local
170 base_unit_range = BIT(lpwm->info->base_unit_bits); in pwm_lpss_get_state()
174 base_unit = (ctrl >> PWM_BASE_UNIT_SHIFT) & (base_unit_range - 1); in pwm_lpss_get_state()
177 do_div(freq, base_unit_range); in pwm_lpss_get_state()