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