• Home
  • Raw
  • Download

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()
195 static inline void gdsc_clear_mem_on(struct gdsc *sc) in gdsc_clear_mem_on()
207 static inline void gdsc_deassert_clamp_io(struct gdsc *sc) in gdsc_deassert_clamp_io()
213 static inline void gdsc_assert_clamp_io(struct gdsc *sc) in gdsc_assert_clamp_io()
219 static inline void gdsc_assert_reset_aon(struct gdsc *sc) in gdsc_assert_reset_aon()
228 static void gdsc_retain_ff_on(struct gdsc *sc) in gdsc_retain_ff_on()
237 struct gdsc *sc = domain_to_gdsc(domain); in gdsc_enable()
277 * Wait for the GDSC to go through a power down and in gdsc_enable()
279 * bits for the gdsc, it might read an 'on' status before in gdsc_enable()
280 * the GDSC can finish the power cycle. in gdsc_enable()
295 struct gdsc *sc = domain_to_gdsc(domain); in gdsc_disable()
307 * Wait for the GDSC to go through a power down and in gdsc_disable()
309 * bits for the gdsc before the power cycle is completed in gdsc_disable()
332 static int gdsc_init(struct gdsc *sc) in gdsc_init()
349 /* Force gdsc ON if only ON state is supported */ in gdsc_init()
370 * If a Votable GDSC is ON, make sure we have a Vote. in gdsc_init()
387 * Make sure the retain bit is set if the GDSC is already on, in gdsc_init()
388 * otherwise we end up turning off the GDSC and destroying all in gdsc_init()
421 struct gdsc **scs = desc->scs; in gdsc_register()
469 struct gdsc **scs = desc->scs; in gdsc_unregister()
493 * defining a GX gdsc with a dummy enable function and a "default" disable