Lines Matching defs:fixed
18 * DOC: basic fixed-rate clock that cannot gate
23 * rate - rate is always a fixed value. No clk_set_rate support
24 * parent - fixed parent. No clk_set_parent support
38 struct clk_fixed_rate *fixed = to_clk_fixed_rate(hw);
40 if (fixed->flags & CLK_FIXED_RATE_PARENT_ACCURACY)
43 return fixed->fixed_accuracy;
71 struct clk_fixed_rate *fixed;
76 /* allocate fixed-rate clock */
78 fixed = devres_alloc(devm_clk_hw_register_fixed_rate_release,
79 sizeof(*fixed), GFP_KERNEL);
81 fixed = kzalloc(sizeof(*fixed), GFP_KERNEL);
82 if (!fixed)
97 fixed->flags = clk_fixed_flags;
98 fixed->fixed_rate = fixed_rate;
99 fixed->fixed_accuracy = fixed_accuracy;
100 fixed->hw.init = &init;
103 hw = &fixed->hw;
110 devres_free(fixed);
112 kfree(fixed);
115 devres_add(dev, fixed);
150 struct clk_fixed_rate *fixed;
152 fixed = to_clk_fixed_rate(hw);
155 kfree(fixed);
190 * of_fixed_clk_setup() - Setup function for simple fixed rate clock
197 CLK_OF_DECLARE(fixed_clk, "fixed-clock", of_fixed_clk_setup);
225 { .compatible = "fixed-clock" },