Home
last modified time | relevance | path

Searched refs:approx_period (Results 1 - 2 of 2) sorted by relevance

/kernel/linux/linux-5.10/drivers/pwm/
H A Dpwm-sifive.c44 struct mutex lock; /* lock to protect user_count and approx_period */
49 unsigned int approx_period; member
94 scale_pow = div64_ul(ddata->approx_period * (u64)rate, NSEC_PER_SEC); in pwm_sifive_update_clock()
186 if (state->period != ddata->approx_period) { in pwm_sifive_apply()
189 * However if ddate->approx_period == 0 this is the first time we set in pwm_sifive_apply()
193 if (ddata->user_count != 1 && ddata->approx_period) { in pwm_sifive_apply()
198 ddata->approx_period = state->period; in pwm_sifive_apply()
/kernel/linux/linux-6.6/drivers/pwm/
H A Dpwm-sifive.c45 struct mutex lock; /* lock to protect user_count and approx_period */
50 unsigned int approx_period; member
95 scale_pow = div64_ul(ddata->approx_period * (u64)rate, NSEC_PER_SEC); in pwm_sifive_update_clock()
164 if (state->period != ddata->approx_period) { in pwm_sifive_apply()
167 * However if ddate->approx_period == 0 this is the first time we set in pwm_sifive_apply()
171 if (ddata->user_count != 1 && ddata->approx_period) { in pwm_sifive_apply()
175 ddata->approx_period = state->period; in pwm_sifive_apply()

Completed in 2 milliseconds