Lines Matching refs:fix
25 struct clk_fixed_factor *fix = to_clk_fixed_factor(hw);
28 rate = (unsigned long long int)parent_rate * fix->mult;
29 do_div(rate, fix->div);
36 struct clk_fixed_factor *fix = to_clk_fixed_factor(hw);
41 best_parent = (rate / fix->mult) * fix->div;
45 return (*prate / fix->div) * fix->mult;
63 struct clk_fixed_factor *fix = to_clk_fixed_factor(hw);
65 if (fix->flags & CLK_FIXED_FACTOR_FIXED_ACCURACY)
66 return fix->acc;
81 struct clk_fixed_factor *fix = res;
88 clk_hw_unregister(&fix->hw);
98 struct clk_fixed_factor *fix;
108 fix = devres_alloc(devm_clk_hw_register_fixed_factor_release,
109 sizeof(*fix), GFP_KERNEL);
111 fix = kmalloc(sizeof(*fix), GFP_KERNEL);
112 if (!fix)
116 fix->mult = mult;
117 fix->div = div;
118 fix->hw.init = &init;
119 fix->acc = acc;
120 fix->flags = fixflags;
133 hw = &fix->hw;
140 devres_free(fix);
142 kfree(fix);
145 devres_add(dev, fix);
273 struct clk_fixed_factor *fix;
275 fix = to_clk_fixed_factor(hw);
278 kfree(fix);