Lines Matching refs:best_mode
868 u32 reg, idlemodes, best_mode; in sysc_enable_module() local
890 best_mode = SYSC_IDLE_NO; in sysc_enable_module()
892 best_mode = fls(ddata->cfg.sidlemodes) - 1; in sysc_enable_module()
893 if (best_mode > SYSC_IDLE_MASK) { in sysc_enable_module()
905 reg |= best_mode << regbits->sidle_shift; in sysc_enable_module()
914 best_mode = fls(ddata->cfg.midlemodes) - 1; in sysc_enable_module()
915 if (best_mode > SYSC_IDLE_MASK) { in sysc_enable_module()
921 reg |= best_mode << regbits->midle_shift; in sysc_enable_module()
938 static int sysc_best_idle_mode(u32 idlemodes, u32 *best_mode) in sysc_best_idle_mode() argument
941 *best_mode = SYSC_IDLE_SMART_WKUP; in sysc_best_idle_mode()
943 *best_mode = SYSC_IDLE_SMART; in sysc_best_idle_mode()
945 *best_mode = SYSC_IDLE_FORCE; in sysc_best_idle_mode()
957 u32 reg, idlemodes, best_mode; in sysc_disable_module() local
975 ret = sysc_best_idle_mode(idlemodes, &best_mode); in sysc_disable_module()
982 reg |= best_mode << regbits->midle_shift; in sysc_disable_module()
992 best_mode = SYSC_IDLE_FORCE; in sysc_disable_module()
994 ret = sysc_best_idle_mode(idlemodes, &best_mode); in sysc_disable_module()
1002 reg |= best_mode << regbits->sidle_shift; in sysc_disable_module()