Lines Matching +full:negative +full:- +full:phase

1 /* SPDX-License-Identifier: GPL-2.0-only */
7 * Copyright (C) 2011-2012 Linaro Ltd <[email protected]>
24 * PRE_RATE_CHANGE - called immediately before the clk rate is changed,
35 * POST_RATE_CHANGE - called after the clk rate change has successfully
44 * struct clk_notifier - associate a clk with a notifier
61 * struct clk_notifier_data - rate data to pass to the notifier callback
66 * For a pre-notifier, old_rate is the clk's rate before this rate
68 * post-notifier, old_rate and new_rate are both set to the clk's
78 * struct clk_bulk_data - Data used for bulk clk operations.
95 * clk_notifier_register - register a clock rate-change notifier callback
106 * clk_notifier_unregister - unregister a clock rate-change notifier callback
113 * devm_clk_notifier_register - register a managed rate-change notifier callback
118 * Returns 0 on success, -EERROR otherwise
124 * clk_get_accuracy - obtain the clock accuracy in ppb (parts per billion)
134 * clk_set_phase - adjust the phase shift of a clock signal
138 * Shifts the phase of a clock signal by the specified degrees. Returns 0 on
139 * success, -EERROR otherwise.
144 * clk_get_phase - return the phase shift of a clock signal
147 * Returns the phase shift of a clock node in degrees, otherwise returns
148 * -EERROR.
153 * clk_set_duty_cycle - adjust the duty cycle ratio of a clock signal
159 * success, -EERROR otherwise.
164 * clk_get_scaled_duty_cycle - return the duty cycle ratio of a clock signal
169 * returns -EERROR.
174 * clk_is_match - check if two clk's point to the same hardware clock
187 * clk_rate_exclusive_get - get exclusivity over the rate control of a
200 * Returns success (0) or negative errno.
205 * devm_clk_rate_exclusive_get - devm variant of clk_rate_exclusive_get
217 * clk_rate_exclusive_put - release exclusivity over the rate control of a
236 return -ENOTSUPP; in clk_notifier_register()
242 return -ENOTSUPP; in clk_notifier_unregister()
249 return -ENOTSUPP; in devm_clk_notifier_register()
254 return -ENOTSUPP; in clk_get_accuracy()
257 static inline long clk_set_phase(struct clk *clk, int phase) in clk_set_phase() argument
259 return -ENOTSUPP; in clk_set_phase()
264 return -ENOTSUPP; in clk_get_phase()
270 return -ENOTSUPP; in clk_set_duty_cycle()
300 * clk_prepare - prepare a clock source
312 * clk_is_enabled_when_prepared - indicate if preparing a clock also enables it.
316 * making clk_enable()/clk_disable() no-ops, false otherwise.
348 * clk_unprepare - undo preparation of a clock source
373 * clk_get - lookup and obtain a reference to a clock producer.
390 * clk_bulk_get - lookup and obtain a number of references to clock producer.
412 * clk_bulk_get_all - lookup and obtain all available references to clock
423 * Returns 0 if there're none and a negative value if something failed.
433 * clk_bulk_get_optional - lookup and obtain a number of references to clock producer
439 * In this case, instead of returning -ENOENT, the function returns 0 and
445 * devm_clk_bulk_get - managed get multiple clk consumers
459 * devm_clk_bulk_get_optional - managed get multiple optional consumer clocks
465 * producer. In this case, instead of returning -ENOENT, the function returns
482 * devm_clk_bulk_get_all - managed get multiple clk consumers
488 * Returns 0 if there're none and a negative value if something failed.
499 * devm_clk_bulk_get_all_enabled - Get and enable all clocks of the consumer (managed)
505 * Returns 0 if there're none and a negative value if something failed.
517 * devm_clk_get - lookup and obtain a managed reference to a clock producer.
538 * devm_clk_get_prepared - devm_clk_get() + clk_prepare()
559 * devm_clk_get_enabled - devm_clk_get() + clk_prepare_enable()
579 * devm_clk_get_optional - lookup and obtain a managed reference to an optional
602 * devm_clk_get_optional_prepared - devm_clk_get_optional() + clk_prepare()
624 * devm_clk_get_optional_enabled - devm_clk_get_optional() +
646 * devm_clk_get_optional_enabled_with_rate - devm_clk_get_optional() +
672 * devm_get_clk_from_child - lookup and obtain a managed reference to a
689 * clk_enable - inform the system when the clock source should be running.
696 * Returns success (0) or negative errno.
701 * clk_bulk_enable - inform the system when the set of clks should be running.
707 * Returns success (0) or negative errno.
713 * clk_disable - inform the system when the clock source is no longer required.
729 * clk_bulk_disable - inform the system when the set of clks is no
747 * clk_get_rate - obtain the current clock rate (in Hz) for a clock source.
754 * clk_put - "free" the clock source
766 * clk_bulk_put - "free" the clock source
779 * clk_bulk_put_all - "free" all the clock source
792 * devm_clk_put - "free" a managed clock source
810 * clk_round_rate - adjust a rate to the exact rate a clock can provide
828 * Returns rounded clock rate in Hz, or negative errno.
833 * clk_set_rate - set the clock rate for a clock source
837 * Updating the rate starts at the top-most affected clock and then
838 * walks the tree down to the bottom-most clock that needs updating.
840 * Returns success (0) or negative errno.
845 * clk_set_rate_exclusive- set the clock rate and claim exclusivity over
857 * Returns success (0) or negative errno.
862 * clk_has_parent - check if a clock is a possible parent for another
874 * clk_set_rate_range - set a rate range for a clock source
879 * Returns success (0) or negative errno.
884 * clk_set_min_rate - set a minimum clock rate for a clock source
888 * Returns success (0) or negative errno.
893 * clk_set_max_rate - set a maximum clock rate for a clock source
897 * Returns success (0) or negative errno.
902 * clk_set_parent - set the parent clock source for this clock
906 * Returns success (0) or negative errno.
911 * clk_get_parent - get the parent clock source for this clock
920 * clk_get_sys - get a clock based upon the device name
937 * clk_save_context - save clock context for poweroff
946 * clk_restore_context - restore clock context after poweroff
1141 /* clk_prepare_enable helps cases using clk_enable in non-atomic context. */
1156 /* clk_disable_unprepare helps cases using clk_disable in non-atomic context. */
1186 * clk_drop_range - Reset any range set on that clock
1189 * Returns success (0) or negative errno.
1197 * clk_get_optional - lookup and obtain a reference to an optional clock
1203 * this case, instead of returning -ENOENT, the function returns NULL.
1209 if (clk == ERR_PTR(-ENOENT)) in clk_get_optional()
1222 return ERR_PTR(-ENOENT); in of_clk_get()
1227 return ERR_PTR(-ENOENT); in of_clk_get_by_name()
1231 return ERR_PTR(-ENOENT); in of_clk_get_from_provider()