Home
last modified time | relevance | path

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

/linux/drivers/pwm/
H A Dpwm-axi-pwmgen.c49 unsigned long clk_rate_hz; member
88 mul_u64_u32_div(wf->period_length_ns, ddata->clk_rate_hz, NSEC_PER_SEC), in axi_pwmgen_round_waveform_tohw()
102 mul_u64_u32_div(wf->duty_length_ns, ddata->clk_rate_hz, NSEC_PER_SEC), in axi_pwmgen_round_waveform_tohw()
105 mul_u64_u32_div(wf->duty_offset_ns, ddata->clk_rate_hz, NSEC_PER_SEC), in axi_pwmgen_round_waveform_tohw()
112 ddata->clk_rate_hz, wfhw->period_cnt, wfhw->duty_cycle_cnt, wfhw->duty_offset_cnt); in axi_pwmgen_round_waveform_tohw()
124 ddata->clk_rate_hz); in axi_pwmgen_round_waveform_fromhw()
127 ddata->clk_rate_hz); in axi_pwmgen_round_waveform_fromhw()
130 ddata->clk_rate_hz); in axi_pwmgen_round_waveform_fromhw()
287 ddata->clk_rate_hz = clk_get_rate(clk); in axi_pwmgen_probe()
288 if (!ddata->clk_rate_hz || ddata->clk_rate_hz > NSEC_PER_SEC) in axi_pwmgen_probe()
[all …]
/linux/drivers/i2c/busses/
H A Di2c-hisi.c463 u64 clk_rate_hz; in hisi_i2c_probe() local
489 ret = device_property_read_u64(dev, "clk_rate", &clk_rate_hz); in hisi_i2c_probe()
493 clk_rate_hz = clk_get_rate(ctlr->clk); in hisi_i2c_probe()
496 ctlr->clk_rate_khz = DIV_ROUND_UP_ULL(clk_rate_hz, HZ_PER_KHZ); in hisi_i2c_probe()