Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/pwm/
Dpwm-mediatek.c145 u32 clkdiv = 0, cnt_period, cnt_duty, reg_width = PWMDWIDTH, in mtk_pwm_config() local
158 cnt_period = DIV_ROUND_CLOSEST_ULL((u64)period_ns * 1000, resolution); in mtk_pwm_config()
159 while (cnt_period > 8191) { in mtk_pwm_config()
162 cnt_period = DIV_ROUND_CLOSEST_ULL((u64)period_ns * 1000, in mtk_pwm_config()
183 mtk_pwm_writel(pc, pwm->hwpwm, reg_width, cnt_period); in mtk_pwm_config()
/Linux-v4.19/drivers/media/platform/sti/hva/
Dhva-debugfs.c137 dbg->cnt_period++; in hva_dbg_perf_begin()
240 if (dbg->cnt_period > 0) { in hva_dbg_perf_compute()
242 do_div(div, dbg->cnt_period); in hva_dbg_perf_compute()
249 div = (u64)dbg->cnt_period * 100000; in hva_dbg_perf_compute()
Dhva.h196 u32 cnt_period; member
/Linux-v4.19/drivers/i2c/busses/
Di2c-jz4780.c260 int cnt_period = 0; /* period count of the SCL clock */ in jz4780_i2c_set_speed() local
274 cnt_period = dev_clk_khz / i2c_clk; in jz4780_i2c_set_speed()
277 cnt_high = (cnt_period * 4000) / (4700 + 4000); in jz4780_i2c_set_speed()
279 cnt_high = (cnt_period * 600) / (1300 + 600); in jz4780_i2c_set_speed()
281 cnt_low = cnt_period - cnt_high; in jz4780_i2c_set_speed()