Searched refs:rounded_rate (Results 1 – 4 of 4) sorted by relevance
| /linux/drivers/gpu/drm/bridge/imx/ |
| H A D | imx93-mipi-dsi.c | 502 unsigned long rounded_rate; in imx93_dsi_validate_mode() local 505 rounded_rate = clk_round_rate(dsi->clk_pixel, pixel_clock_rate); in imx93_dsi_validate_mode() 506 if (rounded_rate < pixel_clock_rate * 995 / 1000 || in imx93_dsi_validate_mode() 507 rounded_rate > pixel_clock_rate * 1005 / 1000) { in imx93_dsi_validate_mode() 573 unsigned long rounded_rate; in imx93_dsi_mode_fixup() local 576 rounded_rate = clk_round_rate(dsi->clk_pixel, pixel_clock_rate); in imx93_dsi_mode_fixup() 579 adjusted_mode->clock = rounded_rate / 1000; in imx93_dsi_mode_fixup()
|
| /linux/drivers/gpu/drm/imx/dc/ |
| H A D | dc-fg.c | 284 unsigned long rounded_rate; in dc_fg_check_clock() local 286 rounded_rate = clk_round_rate(fg->clk_disp, clk_khz * HZ_PER_KHZ); in dc_fg_check_clock() 288 if (rounded_rate != clk_khz * HZ_PER_KHZ) in dc_fg_check_clock()
|
| /linux/drivers/gpu/drm/imx/ipuv3/ |
| H A D | imx-tve.c | 246 unsigned long rounded_rate; in imx_tve_encoder_mode_set() local 258 rounded_rate = clk_get_rate(tve->clk); in imx_tve_encoder_mode_set() 259 if (rounded_rate >= rate) in imx_tve_encoder_mode_set() 261 clk_set_rate(tve->di_clk, rounded_rate / div); in imx_tve_encoder_mode_set()
|
| /linux/drivers/clk/ |
| H A D | clk_test.c | 320 long rounded_rate; in clk_test_round_set_get_rate() local 322 rounded_rate = clk_round_rate(clk, DUMMY_CLOCK_RATE_1); in clk_test_round_set_get_rate() 323 KUNIT_ASSERT_GT(test, rounded_rate, 0); in clk_test_round_set_get_rate() 324 KUNIT_EXPECT_EQ(test, rounded_rate, DUMMY_CLOCK_RATE_1); in clk_test_round_set_get_rate() 332 KUNIT_EXPECT_EQ(test, rounded_rate, set_rate); in clk_test_round_set_get_rate() 2571 long rounded_rate; in clk_mux_no_reparent_round_rate() local 2587 rounded_rate = clk_round_rate(clk, other_parent_rate); in clk_mux_no_reparent_round_rate() 2588 KUNIT_ASSERT_GT(test, rounded_rate, 0); in clk_mux_no_reparent_round_rate() 2589 KUNIT_EXPECT_EQ(test, rounded_rate, parent_rate); in clk_mux_no_reparent_round_rate()
|