Lines Matching refs: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()
69 struct clk_fixed_factor *fix = res; in devm_clk_hw_register_fixed_factor_release() local
76 clk_hw_unregister(&fix->hw); in devm_clk_hw_register_fixed_factor_release()
86 struct clk_fixed_factor *fix; in __clk_hw_register_fixed_factor() local
97 fix = devres_alloc(devm_clk_hw_register_fixed_factor_release, in __clk_hw_register_fixed_factor()
98 sizeof(*fix), GFP_KERNEL); in __clk_hw_register_fixed_factor()
100 fix = kmalloc(sizeof(*fix), GFP_KERNEL); in __clk_hw_register_fixed_factor()
101 if (!fix) in __clk_hw_register_fixed_factor()
105 fix->mult = mult; in __clk_hw_register_fixed_factor()
106 fix->div = div; in __clk_hw_register_fixed_factor()
107 fix->hw.init = &init; in __clk_hw_register_fixed_factor()
120 hw = &fix->hw; in __clk_hw_register_fixed_factor()
127 devres_free(fix); in __clk_hw_register_fixed_factor()
129 kfree(fix); in __clk_hw_register_fixed_factor()
132 devres_add(dev, fix); in __clk_hw_register_fixed_factor()
229 struct clk_fixed_factor *fix; in clk_hw_unregister_fixed_factor() local
231 fix = to_clk_fixed_factor(hw); in clk_hw_unregister_fixed_factor()
234 kfree(fix); in clk_hw_unregister_fixed_factor()