Lines Matching full:gdsc
18 #include "gdsc.h"
46 #define domain_to_gdsc(domain) container_of(domain, struct gdsc, pd)
53 /* Returns 1 if GDSC status is status, 0 if not, and < 0 on error */
54 static int gdsc_check_status(struct gdsc *sc, enum gdsc_status status) in gdsc_check_status()
90 static int gdsc_hwctrl(struct gdsc *sc, bool en) in gdsc_hwctrl()
97 static int gdsc_poll_status(struct gdsc *sc, enum gdsc_status status) in gdsc_poll_status()
113 static int gdsc_toggle_logic(struct gdsc *sc, enum gdsc_status status) in gdsc_toggle_logic()
165 static inline int gdsc_deassert_reset(struct gdsc *sc) in gdsc_deassert_reset()
174 static inline int gdsc_assert_reset(struct gdsc *sc) in gdsc_assert_reset()
183 static inline void gdsc_force_mem_on(struct gdsc *sc) in gdsc_force_mem_on()
192 static inline void gdsc_clear_mem_on(struct gdsc *sc) in gdsc_clear_mem_on()
201 static inline void gdsc_deassert_clamp_io(struct gdsc *sc) in gdsc_deassert_clamp_io()
207 static inline void gdsc_assert_clamp_io(struct gdsc *sc) in gdsc_assert_clamp_io()
213 static inline void gdsc_assert_reset_aon(struct gdsc *sc) in gdsc_assert_reset_aon()
222 static void gdsc_retain_ff_on(struct gdsc *sc) in gdsc_retain_ff_on()
231 struct gdsc *sc = domain_to_gdsc(domain); in gdsc_enable()
271 * Wait for the GDSC to go through a power down and in gdsc_enable()
273 * bits for the gdsc, it might read an 'on' status before in gdsc_enable()
274 * the GDSC can finish the power cycle. in gdsc_enable()
289 struct gdsc *sc = domain_to_gdsc(domain); in gdsc_disable()
301 * Wait for the GDSC to go through a power down and in gdsc_disable()
303 * bits for the gdsc before the power cycle is completed in gdsc_disable()
326 static int gdsc_init(struct gdsc *sc) in gdsc_init()
343 /* Force gdsc ON if only ON state is supported */ in gdsc_init()
356 * If a Votable GDSC is ON, make sure we have a Vote. in gdsc_init()
362 * Make sure the retain bit is set if the GDSC is already on, otherwise in gdsc_init()
363 * we end up turning off the GDSC and destroying all the register in gdsc_init()
397 struct gdsc **scs = desc->scs; in gdsc_register()
445 struct gdsc **scs = desc->scs; in gdsc_unregister()
469 * defining a GX gdsc with a dummy enable function and a "default" disable