Lines Matching full:fd

11  * Test the maximum denominator case for fd clock without flags.
18 struct clk_fractional_divider *fd; in clk_fd_test_approximation_max_denominator() local
21 fd = kunit_kzalloc(test, sizeof(*fd), GFP_KERNEL); in clk_fd_test_approximation_max_denominator()
22 KUNIT_ASSERT_NOT_NULL(test, fd); in clk_fd_test_approximation_max_denominator()
24 fd->mwidth = 3; in clk_fd_test_approximation_max_denominator()
25 fd->nwidth = 3; 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()
40 * Test the maximum numerator case for fd clock without flags.
47 struct clk_fractional_divider *fd; in clk_fd_test_approximation_max_numerator() local
50 fd = kunit_kzalloc(test, sizeof(*fd), GFP_KERNEL); in clk_fd_test_approximation_max_numerator()
51 KUNIT_ASSERT_NOT_NULL(test, fd); in clk_fd_test_approximation_max_numerator()
53 fd->mwidth = 3; in clk_fd_test_approximation_max_numerator()
55 fd->nwidth = 3; 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()
69 * Test the maximum denominator case for zero based fd clock.
76 struct clk_fractional_divider *fd; in clk_fd_test_approximation_max_denominator_zero_based() local
79 fd = kunit_kzalloc(test, sizeof(*fd), GFP_KERNEL); in clk_fd_test_approximation_max_denominator_zero_based()
80 KUNIT_ASSERT_NOT_NULL(test, fd); in clk_fd_test_approximation_max_denominator_zero_based()
82 fd->flags = CLK_FRAC_DIVIDER_ZERO_BASED; in clk_fd_test_approximation_max_denominator_zero_based()
83 fd->mwidth = 3; in clk_fd_test_approximation_max_denominator_zero_based()
84 fd->nwidth = 3; 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()
99 * Test the maximum numerator case for zero based fd clock.
106 struct clk_fractional_divider *fd; in clk_fd_test_approximation_max_numerator_zero_based() local
109 fd = kunit_kzalloc(test, sizeof(*fd), GFP_KERNEL); in clk_fd_test_approximation_max_numerator_zero_based()
110 KUNIT_ASSERT_NOT_NULL(test, fd); in clk_fd_test_approximation_max_numerator_zero_based()
112 fd->flags = CLK_FRAC_DIVIDER_ZERO_BASED; in clk_fd_test_approximation_max_numerator_zero_based()
113 fd->mwidth = 3; in clk_fd_test_approximation_max_numerator_zero_based()
115 fd->nwidth = 3; 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()
140 .name = "clk-fd-approximation",