Lines Matching refs:mode
171 static void tegra_pm_set(enum tegra_suspend_mode mode) in tegra_pm_set() argument
188 tegra_pmc_enter_suspend_mode(mode); in tegra_pm_set()
205 enum tegra_suspend_mode mode) in tegra_pm_validate_suspend_mode() argument
210 if (mode > TEGRA_SUSPEND_LP1) in tegra_pm_validate_suspend_mode()
213 return mode; in tegra_pm_validate_suspend_mode()
319 enum tegra_suspend_mode mode = tegra_pmc_get_suspend_mode(); in tegra_suspend_enter() local
321 if (WARN_ON(mode < TEGRA_SUSPEND_NONE || in tegra_suspend_enter()
322 mode >= TEGRA_MAX_SUSPEND_MODE)) in tegra_suspend_enter()
325 pr_info("Entering suspend state %s\n", lp_state[mode]); in tegra_suspend_enter()
327 tegra_pm_set(mode); in tegra_suspend_enter()
332 switch (mode) { in tegra_suspend_enter()
345 switch (mode) { in tegra_suspend_enter()
369 enum tegra_suspend_mode mode = tegra_pmc_get_suspend_mode(); in tegra_init_suspend() local
371 if (mode == TEGRA_SUSPEND_NONE) in tegra_init_suspend()
376 if (mode >= TEGRA_SUSPEND_LP1) { in tegra_init_suspend()
382 mode = TEGRA_SUSPEND_LP2; in tegra_init_suspend()
387 switch (mode) { in tegra_init_suspend()