Lines Matching full:gdsc
18 #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()
170 static inline int gdsc_deassert_reset(struct gdsc *sc) in gdsc_deassert_reset()
179 static inline int gdsc_assert_reset(struct gdsc *sc) in gdsc_assert_reset()
188 static inline void gdsc_force_mem_on(struct gdsc *sc) in gdsc_force_mem_on()
200 static inline void gdsc_clear_mem_on(struct gdsc *sc) in gdsc_clear_mem_on()
212 static inline void gdsc_deassert_clamp_io(struct gdsc *sc) in gdsc_deassert_clamp_io()
218 static inline void gdsc_assert_clamp_io(struct gdsc *sc) in gdsc_assert_clamp_io()
224 static inline void gdsc_assert_reset_aon(struct gdsc *sc) in gdsc_assert_reset_aon()
233 static void gdsc_retain_ff_on(struct gdsc *sc) in gdsc_retain_ff_on()
242 struct gdsc *sc = domain_to_gdsc(domain); in gdsc_enable()
282 * Wait for the GDSC to go through a power down and in gdsc_enable()
284 * bits for the gdsc, it might read an 'on' status before in gdsc_enable()
285 * the GDSC can finish the power cycle. in gdsc_enable()
300 struct gdsc *sc = domain_to_gdsc(domain); in gdsc_disable()
312 * Wait for the GDSC to go through a power down and in gdsc_disable()
314 * bits for the gdsc before the power cycle is completed in gdsc_disable()
337 static int gdsc_init(struct gdsc *sc) in gdsc_init()
365 /* Force gdsc ON if only ON state is supported */ in gdsc_init()
386 * If a Votable GDSC is ON, make sure we have a Vote. in gdsc_init()
403 * Make sure the retain bit is set if the GDSC is already on, in gdsc_init()
404 * otherwise we end up turning off the GDSC and destroying all in gdsc_init()
437 struct gdsc **scs = desc->scs; in gdsc_register()
485 struct gdsc **scs = desc->scs; in gdsc_unregister()
509 * defining a GX gdsc with a dummy enable function and a "default" disable