Lines Matching refs:parent_rate

19 	unsigned long rate, parent_rate, parent_rate_before, m, n, max_n;  in clk_fd_test_approximation_max_denominator()  local
29 parent_rate = (max_n + 1) * rate; /* so that it exceeds the maximum divisor */ in clk_fd_test_approximation_max_denominator()
30 parent_rate_before = parent_rate; in clk_fd_test_approximation_max_denominator()
32 clk_fractional_divider_general_approximation(&fd->hw, rate, &parent_rate, &m, &n); in clk_fd_test_approximation_max_denominator()
33 KUNIT_ASSERT_EQ(test, parent_rate, parent_rate_before); in clk_fd_test_approximation_max_denominator()
48 unsigned long rate, parent_rate, parent_rate_before, m, n, max_m; in clk_fd_test_approximation_max_numerator() local
58 parent_rate = rate / (max_m + 1); /* so that it exceeds the maximum numerator */ in clk_fd_test_approximation_max_numerator()
59 parent_rate_before = parent_rate; in clk_fd_test_approximation_max_numerator()
61 clk_fractional_divider_general_approximation(&fd->hw, rate, &parent_rate, &m, &n); in clk_fd_test_approximation_max_numerator()
62 KUNIT_ASSERT_EQ(test, parent_rate, parent_rate_before); in clk_fd_test_approximation_max_numerator()
77 unsigned long rate, parent_rate, parent_rate_before, m, n, max_n; in clk_fd_test_approximation_max_denominator_zero_based() local
88 parent_rate = (max_n + 1) * rate; /* so that it exceeds the maximum divisor */ in clk_fd_test_approximation_max_denominator_zero_based()
89 parent_rate_before = parent_rate; in clk_fd_test_approximation_max_denominator_zero_based()
91 clk_fractional_divider_general_approximation(&fd->hw, rate, &parent_rate, &m, &n); in clk_fd_test_approximation_max_denominator_zero_based()
92 KUNIT_ASSERT_EQ(test, parent_rate, parent_rate_before); in clk_fd_test_approximation_max_denominator_zero_based()
107 unsigned long rate, parent_rate, parent_rate_before, m, n, max_m; in clk_fd_test_approximation_max_numerator_zero_based() local
118 parent_rate = rate / (max_m + 1); /* so that it exceeds the maximum numerator */ in clk_fd_test_approximation_max_numerator_zero_based()
119 parent_rate_before = parent_rate; in clk_fd_test_approximation_max_numerator_zero_based()
121 clk_fractional_divider_general_approximation(&fd->hw, rate, &parent_rate, &m, &n); in clk_fd_test_approximation_max_numerator_zero_based()
122 KUNIT_ASSERT_EQ(test, parent_rate, parent_rate_before); in clk_fd_test_approximation_max_numerator_zero_based()