Home
last modified time | relevance | path

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

/linux-5.19.10/drivers/pwm/
Dpwm-mediatek.c121 u32 clkdiv = 0, cnt_period, cnt_duty, reg_width = PWMDWIDTH, in pwm_mediatek_config() local
139 cnt_period = DIV_ROUND_CLOSEST_ULL((u64)period_ns * 1000, resolution); in pwm_mediatek_config()
140 while (cnt_period > 8191) { in pwm_mediatek_config()
143 cnt_period = DIV_ROUND_CLOSEST_ULL((u64)period_ns * 1000, in pwm_mediatek_config()
164 pwm_mediatek_writel(pc, pwm->hwpwm, reg_width, cnt_period); in pwm_mediatek_config()
/linux-5.19.10/drivers/media/platform/st/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-5.19.10/drivers/i2c/busses/
Di2c-jz4780.c252 int cnt_period = 0; /* period count of the SCL clock */ in jz4780_i2c_set_speed() local
266 cnt_period = dev_clk_khz / i2c_clk; in jz4780_i2c_set_speed()
269 cnt_high = (cnt_period * 4000) / (4700 + 4000); in jz4780_i2c_set_speed()
271 cnt_high = (cnt_period * 600) / (1300 + 600); in jz4780_i2c_set_speed()
273 cnt_low = cnt_period - cnt_high; in jz4780_i2c_set_speed()