Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/pwm/
Dpwm-mediatek.c124 u32 clkdiv = 0, cnt_period, cnt_duty, reg_width = PWMDWIDTH, in pwm_mediatek_config() local
138 cnt_period = DIV_ROUND_CLOSEST_ULL((u64)period_ns * 1000, resolution); in pwm_mediatek_config()
139 while (cnt_period > 8191) { in pwm_mediatek_config()
142 cnt_period = DIV_ROUND_CLOSEST_ULL((u64)period_ns * 1000, in pwm_mediatek_config()
163 pwm_mediatek_writel(pc, pwm->hwpwm, reg_width, cnt_period); in pwm_mediatek_config()
/Linux-v5.4/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-v5.4/drivers/i2c/busses/
Di2c-jz4780.c251 int cnt_period = 0; /* period count of the SCL clock */ in jz4780_i2c_set_speed() local
265 cnt_period = dev_clk_khz / i2c_clk; in jz4780_i2c_set_speed()
268 cnt_high = (cnt_period * 4000) / (4700 + 4000); in jz4780_i2c_set_speed()
270 cnt_high = (cnt_period * 600) / (1300 + 600); in jz4780_i2c_set_speed()
272 cnt_low = cnt_period - cnt_high; in jz4780_i2c_set_speed()