Lines Matching refs:fd
11 * Test the maximum denominator case for fd clock without flags.
18 struct clk_fractional_divider *fd;
21 fd = kunit_kzalloc(test, sizeof(*fd), GFP_KERNEL);
22 KUNIT_ASSERT_NOT_NULL(test, fd);
24 fd->mwidth = 3;
25 fd->nwidth = 3;
32 clk_fractional_divider_general_approximation(&fd->hw, rate, &parent_rate, &m, &n);
40 * Test the maximum numerator case for fd clock without flags.
47 struct clk_fractional_divider *fd;
50 fd = kunit_kzalloc(test, sizeof(*fd), GFP_KERNEL);
51 KUNIT_ASSERT_NOT_NULL(test, fd);
53 fd->mwidth = 3;
55 fd->nwidth = 3;
61 clk_fractional_divider_general_approximation(&fd->hw, rate, &parent_rate, &m, &n);
69 * Test the maximum denominator case for zero based fd clock.
76 struct clk_fractional_divider *fd;
79 fd = kunit_kzalloc(test, sizeof(*fd), GFP_KERNEL);
80 KUNIT_ASSERT_NOT_NULL(test, fd);
82 fd->flags = CLK_FRAC_DIVIDER_ZERO_BASED;
83 fd->mwidth = 3;
84 fd->nwidth = 3;
91 clk_fractional_divider_general_approximation(&fd->hw, rate, &parent_rate, &m, &n);
99 * Test the maximum numerator case for zero based fd clock.
106 struct clk_fractional_divider *fd;
109 fd = kunit_kzalloc(test, sizeof(*fd), GFP_KERNEL);
110 KUNIT_ASSERT_NOT_NULL(test, fd);
112 fd->flags = CLK_FRAC_DIVIDER_ZERO_BASED;
113 fd->mwidth = 3;
115 fd->nwidth = 3;
121 clk_fractional_divider_general_approximation(&fd->hw, rate, &parent_rate, &m, &n);
140 .name = "clk-fd-approximation",