Home
last modified time | relevance | path

Searched refs:rounded_rate (Results 1 - 9 of 9) sorted by relevance

/kernel/linux/linux-5.10/drivers/gpu/drm/sun4i/
H A Dsun4i_rgb.c71 unsigned long long rounded_rate; in sun4i_rgb_mode_valid() local
123 rounded_rate = clk_round_rate(tcon->dclk, rate); in sun4i_rgb_mode_valid()
127 if (rounded_rate < lowest) in sun4i_rgb_mode_valid()
132 if (rounded_rate > highest) in sun4i_rgb_mode_valid()
H A Dsun4i_hdmi_enc.c187 long rounded_rate; in sun4i_hdmi_mode_valid() local
192 rounded_rate = clk_round_rate(hdmi->tmds_clk, rate); in sun4i_hdmi_mode_valid()
193 if (rounded_rate > 0 && in sun4i_hdmi_mode_valid()
194 max_t(unsigned long, rounded_rate, rate) - in sun4i_hdmi_mode_valid()
195 min_t(unsigned long, rounded_rate, rate) < diff) in sun4i_hdmi_mode_valid()
/kernel/linux/linux-6.6/drivers/gpu/drm/sun4i/
H A Dsun4i_rgb.c71 unsigned long long rounded_rate; in sun4i_rgb_mode_valid() local
123 rounded_rate = clk_round_rate(tcon->dclk, rate); in sun4i_rgb_mode_valid()
127 if (rounded_rate < lowest) in sun4i_rgb_mode_valid()
132 if (rounded_rate > highest) in sun4i_rgb_mode_valid()
H A Dsun4i_hdmi_enc.c189 long rounded_rate; in sun4i_hdmi_mode_valid() local
194 rounded_rate = clk_round_rate(hdmi->tmds_clk, rate); in sun4i_hdmi_mode_valid()
195 if (rounded_rate > 0 && in sun4i_hdmi_mode_valid()
196 max_t(unsigned long, rounded_rate, rate) - in sun4i_hdmi_mode_valid()
197 min_t(unsigned long, rounded_rate, rate) < diff) in sun4i_hdmi_mode_valid()
/kernel/linux/linux-5.10/drivers/gpu/drm/imx/
H A Dimx-tve.c243 unsigned long rounded_rate; in imx_tve_encoder_mode_set() local
255 rounded_rate = clk_get_rate(tve->clk); in imx_tve_encoder_mode_set()
256 if (rounded_rate >= rate) in imx_tve_encoder_mode_set()
258 clk_set_rate(tve->di_clk, rounded_rate / div); in imx_tve_encoder_mode_set()
/kernel/linux/linux-6.6/drivers/gpu/drm/imx/ipuv3/
H A Dimx-tve.c248 unsigned long rounded_rate; in imx_tve_encoder_mode_set() local
260 rounded_rate = clk_get_rate(tve->clk); in imx_tve_encoder_mode_set()
261 if (rounded_rate >= rate) in imx_tve_encoder_mode_set()
263 clk_set_rate(tve->di_clk, rounded_rate / div); in imx_tve_encoder_mode_set()
/kernel/linux/linux-5.10/drivers/mfd/
H A Ddb8500-prcmu.c1599 long rounded_rate; in round_clock_rate() local
1619 rounded_rate = (src_rate / min(div, (u32)31)); in round_clock_rate()
1621 return rounded_rate; in round_clock_rate()
1670 long rounded_rate = 0; in round_plldsi_rate() local
1693 if (rounded_rate == 0) in round_plldsi_rate()
1694 rounded_rate = (long)d; in round_plldsi_rate()
1699 rounded_rate = (long)d; in round_plldsi_rate()
1702 return rounded_rate; in round_plldsi_rate()
1709 long rounded_rate; in round_dsiclk_rate() local
1714 rounded_rate in round_dsiclk_rate()
1723 long rounded_rate; round_dsiescclk_rate() local
[all...]
/kernel/linux/linux-6.6/drivers/mfd/
H A Ddb8500-prcmu.c1598 long rounded_rate; in round_clock_rate() local
1618 rounded_rate = (src_rate / min(div, (u32)31)); in round_clock_rate()
1620 return rounded_rate; in round_clock_rate()
1669 long rounded_rate = 0; in round_plldsi_rate() local
1692 if (rounded_rate == 0) in round_plldsi_rate()
1693 rounded_rate = (long)d; in round_plldsi_rate()
1698 rounded_rate = (long)d; in round_plldsi_rate()
1701 return rounded_rate; in round_plldsi_rate()
1708 long rounded_rate; in round_dsiclk_rate() local
1713 rounded_rate in round_dsiclk_rate()
1722 long rounded_rate; round_dsiescclk_rate() local
[all...]
/kernel/linux/linux-6.6/drivers/clk/
H A Dclk_test.c293 long rounded_rate; in clk_test_round_set_get_rate() local
295 rounded_rate = clk_round_rate(clk, DUMMY_CLOCK_RATE_1); in clk_test_round_set_get_rate()
296 KUNIT_ASSERT_GT(test, rounded_rate, 0); in clk_test_round_set_get_rate()
297 KUNIT_EXPECT_EQ(test, rounded_rate, DUMMY_CLOCK_RATE_1); in clk_test_round_set_get_rate()
305 KUNIT_EXPECT_EQ(test, rounded_rate, set_rate); in clk_test_round_set_get_rate()
2483 long rounded_rate; in clk_mux_no_reparent_round_rate() local
2499 rounded_rate = clk_round_rate(clk, other_parent_rate); in clk_mux_no_reparent_round_rate()
2500 KUNIT_ASSERT_GT(test, rounded_rate, 0); in clk_mux_no_reparent_round_rate()
2501 KUNIT_EXPECT_EQ(test, rounded_rate, parent_rate); in clk_mux_no_reparent_round_rate()

Completed in 15 milliseconds