Lines Matching full:gdsc
24 #include "gdsc.h"
51 #define domain_to_gdsc(domain) container_of(domain, struct gdsc, pd)
58 /* Returns 1 if GDSC status is status, 0 if not, and < 0 on error */
59 static int gdsc_check_status(struct gdsc *sc, enum gdsc_status status) in gdsc_check_status()
95 static int gdsc_hwctrl(struct gdsc *sc, bool en) in gdsc_hwctrl()
102 static int gdsc_poll_status(struct gdsc *sc, enum gdsc_status status) in gdsc_poll_status()
118 static int gdsc_toggle_logic(struct gdsc *sc, enum gdsc_status status) in gdsc_toggle_logic()
155 static inline int gdsc_deassert_reset(struct gdsc *sc) in gdsc_deassert_reset()
164 static inline int gdsc_assert_reset(struct gdsc *sc) in gdsc_assert_reset()
173 static inline void gdsc_force_mem_on(struct gdsc *sc) in gdsc_force_mem_on()
182 static inline void gdsc_clear_mem_on(struct gdsc *sc) in gdsc_clear_mem_on()
191 static inline void gdsc_deassert_clamp_io(struct gdsc *sc) in gdsc_deassert_clamp_io()
197 static inline void gdsc_assert_clamp_io(struct gdsc *sc) in gdsc_assert_clamp_io()
203 static inline void gdsc_assert_reset_aon(struct gdsc *sc) in gdsc_assert_reset_aon()
213 struct gdsc *sc = domain_to_gdsc(domain); in gdsc_enable()
253 * Wait for the GDSC to go through a power down and in gdsc_enable()
255 * bits for the gdsc, it might read an 'on' status before in gdsc_enable()
256 * the GDSC can finish the power cycle. in gdsc_enable()
268 struct gdsc *sc = domain_to_gdsc(domain); in gdsc_disable()
280 * Wait for the GDSC to go through a power down and in gdsc_disable()
282 * bits for the gdsc before the power cycle is completed in gdsc_disable()
305 static int gdsc_init(struct gdsc *sc) in gdsc_init()
322 /* Force gdsc ON if only ON state is supported */ in gdsc_init()
335 * If a Votable GDSC is ON, make sure we have a Vote. in gdsc_init()
366 struct gdsc **scs = desc->scs; in gdsc_register()
405 struct gdsc **scs = desc->scs; in gdsc_unregister()