Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/gpu/drm/sun4i/
Dsun4i_rgb.c69 unsigned long long rounded_rate; in sun4i_rgb_mode_valid() local
121 rounded_rate = clk_round_rate(tcon->dclk, rate); in sun4i_rgb_mode_valid()
125 if (rounded_rate < lowest) in sun4i_rgb_mode_valid()
130 if (rounded_rate > highest) in sun4i_rgb_mode_valid()
Dsun4i_hdmi_enc.c186 long rounded_rate; in sun4i_hdmi_mode_valid() local
191 rounded_rate = clk_round_rate(hdmi->tmds_clk, rate); in sun4i_hdmi_mode_valid()
192 if (rounded_rate > 0 && in sun4i_hdmi_mode_valid()
193 max_t(unsigned long, rounded_rate, rate) - in sun4i_hdmi_mode_valid()
194 min_t(unsigned long, rounded_rate, rate) < diff) in sun4i_hdmi_mode_valid()
/Linux-v5.4/drivers/gpu/drm/imx/
Dimx-tve.c275 unsigned long rounded_rate; in imx_tve_encoder_mode_set() local
287 rounded_rate = clk_get_rate(tve->clk); in imx_tve_encoder_mode_set()
288 if (rounded_rate >= rate) in imx_tve_encoder_mode_set()
290 clk_set_rate(tve->di_clk, rounded_rate / div); in imx_tve_encoder_mode_set()
/Linux-v5.4/drivers/mfd/
Ddb8500-prcmu.c1672 long rounded_rate; in round_clock_rate() local
1692 rounded_rate = (src_rate / min(div, (u32)31)); in round_clock_rate()
1694 return rounded_rate; in round_clock_rate()
1745 long rounded_rate = 0; in round_plldsi_rate() local
1768 if (rounded_rate == 0) in round_plldsi_rate()
1769 rounded_rate = (long)d; in round_plldsi_rate()
1774 rounded_rate = (long)d; in round_plldsi_rate()
1777 return rounded_rate; in round_plldsi_rate()
1784 long rounded_rate; in round_dsiclk_rate() local
1789 rounded_rate = (src_rate / ((div > 2) ? 4 : div)); in round_dsiclk_rate()
[all …]