• Home
  • Raw
  • Download

Lines Matching full:gdsc

18 #include "gdsc.h"
52 #define domain_to_gdsc(domain) container_of(domain, struct gdsc, pd)
59 /* Returns 1 if GDSC status is status, 0 if not, and < 0 on error */
60 static int gdsc_check_status(struct gdsc *sc, enum gdsc_status status) in gdsc_check_status()
96 static int gdsc_hwctrl(struct gdsc *sc, bool en) in gdsc_hwctrl()
103 static int gdsc_poll_status(struct gdsc *sc, enum gdsc_status status) in gdsc_poll_status()
119 static int gdsc_update_collapse_bit(struct gdsc *sc, bool val) in gdsc_update_collapse_bit()
139 static int gdsc_toggle_logic(struct gdsc *sc, enum gdsc_status status, in gdsc_toggle_logic()
189 static inline int gdsc_deassert_reset(struct gdsc *sc) in gdsc_deassert_reset()
198 static inline int gdsc_assert_reset(struct gdsc *sc) in gdsc_assert_reset()
207 static inline void gdsc_force_mem_on(struct gdsc *sc) in gdsc_force_mem_on()
219 static inline void gdsc_clear_mem_on(struct gdsc *sc) in gdsc_clear_mem_on()
231 static inline void gdsc_deassert_clamp_io(struct gdsc *sc) in gdsc_deassert_clamp_io()
237 static inline void gdsc_assert_clamp_io(struct gdsc *sc) in gdsc_assert_clamp_io()
243 static inline void gdsc_assert_reset_aon(struct gdsc *sc) in gdsc_assert_reset_aon()
252 static void gdsc_retain_ff_on(struct gdsc *sc) in gdsc_retain_ff_on()
261 struct gdsc *sc = domain_to_gdsc(domain); in gdsc_enable()
304 * Wait for the GDSC to go through a power down and in gdsc_enable()
306 * bits for the gdsc, it might read an 'on' status before in gdsc_enable()
307 * the GDSC can finish the power cycle. in gdsc_enable()
319 struct gdsc *sc = domain_to_gdsc(domain); in gdsc_disable()
331 * Wait for the GDSC to go through a power down and in gdsc_disable()
333 * bits for the gdsc before the power cycle is completed in gdsc_disable()
347 * If the GDSC supports only a Retention state, apart from ON, in gdsc_disable()
349 * There is no SW control to transition the GDSC into in gdsc_disable()
366 static int gdsc_init(struct gdsc *sc) in gdsc_init()
394 /* Force gdsc ON if only ON state is supported */ in gdsc_init()
415 * If a Votable GDSC is ON, make sure we have a Vote. in gdsc_init()
424 * Make sure the retain bit is set if the GDSC is already on, in gdsc_init()
425 * otherwise we end up turning off the GDSC and destroying all in gdsc_init()
472 struct gdsc **scs = desc->scs; in gdsc_pm_subdomain_remove()
492 struct gdsc **scs = desc->scs; in gdsc_register()
565 * defining a GX gdsc with a dummy enable function and a "default" disable