• Home
  • Raw
  • Download

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()
85 struct clk_fixed_factor *fix; in __clk_hw_register_fixed_factor() local
96 fix = devres_alloc(devm_clk_hw_register_fixed_factor_release, in __clk_hw_register_fixed_factor()
97 sizeof(*fix), GFP_KERNEL); in __clk_hw_register_fixed_factor()
99 fix = kmalloc(sizeof(*fix), GFP_KERNEL); in __clk_hw_register_fixed_factor()
100 if (!fix) in __clk_hw_register_fixed_factor()
104 fix->mult = mult; in __clk_hw_register_fixed_factor()
105 fix->div = div; in __clk_hw_register_fixed_factor()
106 fix->hw.init = &init; in __clk_hw_register_fixed_factor()
117 hw = &fix->hw; in __clk_hw_register_fixed_factor()
124 devres_free(fix); in __clk_hw_register_fixed_factor()
126 kfree(fix); in __clk_hw_register_fixed_factor()
129 devres_add(dev, fix); in __clk_hw_register_fixed_factor()
172 struct clk_fixed_factor *fix; in clk_hw_unregister_fixed_factor() local
174 fix = to_clk_fixed_factor(hw); in clk_hw_unregister_fixed_factor()
177 kfree(fix); in clk_hw_unregister_fixed_factor()