Lines Matching refs:ops
14 static const struct clk_ops *ops; variable
18 assert((ops != NULL) && (ops->enable != NULL)); in clk_enable()
20 return ops->enable(id); in clk_enable()
25 assert((ops != NULL) && (ops->disable != NULL)); in clk_disable()
27 ops->disable(id); in clk_disable()
32 assert((ops != NULL) && (ops->get_rate != NULL)); in clk_get_rate()
34 return ops->get_rate(id); in clk_get_rate()
41 assert((ops != NULL) && (ops->set_rate != NULL)); in clk_set_rate()
44 return ops->set_rate(id, rate, orate); in clk_set_rate()
48 return ops->set_rate(id, rate, &lrate); in clk_set_rate()
53 assert((ops != NULL) && (ops->get_possible_parents_num != NULL)); in clk_get_possible_parents_num()
55 return ops->get_possible_parents_num(id); in clk_get_possible_parents_num()
60 assert((ops != NULL) && (ops->get_parent != NULL)); in clk_get_parent()
62 return ops->get_parent(id); in clk_get_parent()
67 assert((ops != NULL) && (ops->set_parent != NULL)); in clk_set_parent()
69 return ops->set_parent(id, parent_id); in clk_set_parent()
74 assert((ops != NULL) && (ops->is_enabled != NULL)); in clk_is_enabled()
76 return ops->is_enabled(id); in clk_is_enabled()
92 ops = ops_ptr; in clk_register()