Lines Matching refs:ops
17 struct clk *clk_alloc(const char *name, const struct clk_ops *ops, in clk_alloc() argument
32 clk->ops = ops; in clk_alloc()
45 if (!clk->ops) in clk_check()
48 if (clk->ops->set_parent && !clk->ops->get_parent) in clk_check()
51 if (clk->num_parents > 1 && !clk->ops->get_parent) in clk_check()
64 if (clk->ops->get_rate) in clk_compute_rate_no_lock()
65 clk->rate = clk->ops->get_rate(clk, parent_rate); in clk_compute_rate_no_lock()
89 pidx = clk->ops->get_parent(clk); in clk_init_parent()
126 if (clk->ops->disable) in clk_disable_no_lock()
127 clk->ops->disable(clk); in clk_disable_no_lock()
149 if (clk->ops->enable) { in clk_enable_no_lock()
150 res = clk->ops->enable(clk); in clk_enable_no_lock()
198 res = clk->ops->set_rate(clk, rate, parent_rate); in clk_set_rate_no_lock()
212 if (!clk->ops->set_rate) in clk_set_rate()
263 res = clk->ops->set_parent(clk, pidx); in clk_set_parent_no_lock()
289 if (clk_get_parent_idx(clk, parent, &pidx) || !clk->ops->set_parent) in clk_set_parent()