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