Lines Matching full:clock
18 * struct clk_ops - The functions that a clock driver must implement.
22 * of_xlate - Translate a client's device-tree (OF) clock specifier.
24 * The clock core calls this function as the first step in implementing
27 * If this function pointer is set to NULL, the clock core will use a
28 * default implementation, which assumes #clock-cells = <1>, and that
29 * the DT cell contains a simple integer clock ID.
31 * At present, the clock API solely supports device-tree. If this
35 * @clock: The clock struct to hold the translation result.
36 * @args: The clock specifier values from device tree.
39 int (*of_xlate)(struct clk *clock,
42 * request - Request a translated clock.
44 * The clock core calls this function as the second step in
49 * @clock: The clock struct to request; this has been fille in by
54 int (*request)(struct clk *clock);
56 * free - Free a previously requested clock.
60 * @clock: The clock to free.
63 int (*free)(struct clk *clock);
65 * get_rate() - Get current clock rate.
67 * @clk: The clock to query.
68 * @return clock rate in Hz, or -ve error code
72 * set_rate() - Set current clock rate.
74 * @clk: The clock to manipulate.
75 * @rate: New clock rate in Hz.
80 * set_parent() - Set current clock parent
82 * @clk: The clock to manipulate.
83 * @parent: New clock parent.
88 * enable() - Enable a clock.
90 * @clk: The clock to manipulate.
95 * disable() - Disable a clock.
97 * @clk: The clock to manipulate.