Lines Matching full:super
83 * For LP mode super-clock switch between PLLX direct in clk_super_set_parent()
147 struct tegra_clk_super_mux *super = to_clk_super_mux(hw); in clk_super_round_rate() local
148 struct clk_hw *div_hw = &super->frac_div.hw; in clk_super_round_rate()
152 return super->div_ops->round_rate(div_hw, rate, parent_rate); in clk_super_round_rate()
158 struct tegra_clk_super_mux *super = to_clk_super_mux(hw); in clk_super_recalc_rate() local
159 struct clk_hw *div_hw = &super->frac_div.hw; in clk_super_recalc_rate()
163 return super->div_ops->recalc_rate(div_hw, parent_rate); in clk_super_recalc_rate()
169 struct tegra_clk_super_mux *super = to_clk_super_mux(hw); in clk_super_set_rate() local
170 struct clk_hw *div_hw = &super->frac_div.hw; in clk_super_set_rate()
174 return super->div_ops->set_rate(div_hw, rate, parent_rate); in clk_super_set_rate()
179 struct tegra_clk_super_mux *super = to_clk_super_mux(hw); in clk_super_restore_context() local
180 struct clk_hw *div_hw = &super->frac_div.hw; in clk_super_restore_context()
187 super->div_ops->restore_context(div_hw); in clk_super_restore_context()
205 struct tegra_clk_super_mux *super; in tegra_clk_register_super_mux() local
209 super = kzalloc(sizeof(*super), GFP_KERNEL); in tegra_clk_register_super_mux()
210 if (!super) in tegra_clk_register_super_mux()
219 super->reg = reg; in tegra_clk_register_super_mux()
220 super->pllx_index = pllx_index; in tegra_clk_register_super_mux()
221 super->div2_index = div2_index; in tegra_clk_register_super_mux()
222 super->lock = lock; in tegra_clk_register_super_mux()
223 super->width = width; in tegra_clk_register_super_mux()
224 super->flags = clk_super_flags; in tegra_clk_register_super_mux()
227 super->hw.init = &init; in tegra_clk_register_super_mux()
229 clk = clk_register(NULL, &super->hw); in tegra_clk_register_super_mux()
231 kfree(super); in tegra_clk_register_super_mux()
241 struct tegra_clk_super_mux *super; in tegra_clk_register_super_clk() local
245 super = kzalloc(sizeof(*super), GFP_KERNEL); in tegra_clk_register_super_clk()
246 if (!super) in tegra_clk_register_super_clk()
255 super->reg = reg; in tegra_clk_register_super_clk()
256 super->lock = lock; in tegra_clk_register_super_clk()
257 super->width = 4; in tegra_clk_register_super_clk()
258 super->flags = clk_super_flags; in tegra_clk_register_super_clk()
259 super->frac_div.reg = reg + 4; in tegra_clk_register_super_clk()
260 super->frac_div.shift = 16; in tegra_clk_register_super_clk()
261 super->frac_div.width = 8; in tegra_clk_register_super_clk()
262 super->frac_div.frac_width = 1; in tegra_clk_register_super_clk()
263 super->frac_div.lock = lock; in tegra_clk_register_super_clk()
264 super->div_ops = &tegra_clk_frac_div_ops; in tegra_clk_register_super_clk()
267 super->hw.init = &init; in tegra_clk_register_super_clk()
269 clk = clk_register(NULL, &super->hw); in tegra_clk_register_super_clk()
271 kfree(super); in tegra_clk_register_super_clk()