Lines Matching defs:rate

24  * PRE_RATE_CHANGE - called immediately before the clk rate is changed,
25 * to indicate that the rate change will proceed. Drivers must
27 * rate change. Callbacks may either return NOTIFY_DONE, NOTIFY_OK,
30 * ABORT_RATE_CHANGE: called if the rate change failed for some reason
35 * POST_RATE_CHANGE - called after the clk rate change has successfully
61 * struct clk_notifier_data - rate data to pass to the notifier callback
63 * @old_rate: previous rate of this clk
64 * @new_rate: new rate of this clk
66 * For a pre-notifier, old_rate is the clk's rate before this rate
67 * change, and new_rate is what the rate will be in the future. For a
69 * current rate (this was done to optimize the implementation).
95 * clk_notifier_register - register a clock rate-change notifier callback
96 * @clk: clock whose rate we are interested in
106 * clk_notifier_unregister - unregister a clock rate-change notifier callback
107 * @clk: clock whose rate we are no longer interested in
113 * devm_clk_notifier_register - register a managed rate-change notifier callback
115 * @clk: clock whose rate we are interested in
187 * clk_rate_exclusive_get - get exclusivity over the rate control of a
191 * This function allows drivers to get exclusive control over the rate of a
193 * opereation which could alter the rate of the provider or cause glitches
196 * the rate effectively gets locked as exclusivity can't be preempted.
217 * clk_rate_exclusive_put - release exclusivity over the rate control of a
719 * clk_get_rate - obtain the current clock rate (in Hz) for a clock source.
782 * clk_round_rate - adjust a rate to the exact rate a clock can provide
784 * @rate: desired clock rate in Hz
786 * This answers the question "if I were to pass @rate to clk_set_rate(),
787 * what clock rate would I end up with?" without changing the hardware
790 * rate = clk_round_rate(clk, r);
795 * rate = clk_get_rate(clk);
800 * Returns rounded clock rate in Hz, or negative errno.
802 long clk_round_rate(struct clk *clk, unsigned long rate);
805 * clk_set_rate - set the clock rate for a clock source
807 * @rate: desired clock rate in Hz
809 * Updating the rate starts at the top-most affected clock and then
814 int clk_set_rate(struct clk *clk, unsigned long rate);
817 * clk_set_rate_exclusive- set the clock rate and claim exclusivity over
820 * @rate: desired clock rate in Hz
822 * This helper function allows drivers to atomically set the rate of a producer
823 * and claim exclusivity over the rate control of the producer.
831 int clk_set_rate_exclusive(struct clk *clk, unsigned long rate);
846 * clk_set_rate_range - set a rate range for a clock source
848 * @min: desired minimum clock rate in Hz, inclusive
849 * @max: desired maximum clock rate in Hz, inclusive
856 * clk_set_min_rate - set a minimum clock rate for a clock source
858 * @rate: desired minimum clock rate in Hz, inclusive
862 int clk_set_min_rate(struct clk *clk, unsigned long rate);
865 * clk_set_max_rate - set a maximum clock rate for a clock source
867 * @rate: desired maximum clock rate in Hz, inclusive
871 int clk_set_max_rate(struct clk *clk, unsigned long rate);
1046 static inline int clk_set_rate(struct clk *clk, unsigned long rate)
1051 static inline int clk_set_rate_exclusive(struct clk *clk, unsigned long rate)
1056 static inline long clk_round_rate(struct clk *clk, unsigned long rate)
1072 static inline int clk_set_min_rate(struct clk *clk, unsigned long rate)
1077 static inline int clk_set_max_rate(struct clk *clk, unsigned long rate)