Home
last modified time | relevance | path

Searched refs:pm_state (Results 1 – 25 of 237) sorted by relevance

12345678910

/dports/multimedia/v4l-utils/linux-5.13-rc2/drivers/bus/mhi/core/
H A Dpm.c126 mhi_cntrl->pm_state = state; in mhi_tryset_pm_state()
127 return mhi_cntrl->pm_state; in mhi_tryset_pm_state()
555 to_mhi_pm_state_str(mhi_cntrl->pm_state), in mhi_pm_disable_transition()
574 to_mhi_pm_state_str(mhi_cntrl->pm_state), in mhi_pm_sys_error_transition()
582 prev_state = mhi_cntrl->pm_state; in mhi_pm_sys_error_transition()
699 to_mhi_pm_state_str(mhi_cntrl->pm_state), in mhi_pm_sys_error_transition()
968 mhi_cntrl->pm_state == MHI_PM_M0 || in __mhi_device_get_sync()
1063 mhi_cntrl->pm_state = MHI_PM_DISABLE; in mhi_async_power_up()
1092 mhi_cntrl->pm_state = MHI_PM_POR; in mhi_async_power_up()
1146 mhi_cntrl->pm_state = MHI_PM_DISABLE; in mhi_async_power_up()
[all …]
H A Dinternal.h449 #define MHI_REG_ACCESS_VALID(pm_state) ((pm_state & (MHI_PM_POR | MHI_PM_M0 | \ argument
453 #define MHI_PM_IN_ERROR_STATE(pm_state) (pm_state >= MHI_PM_FW_DL_ERR) argument
454 #define MHI_PM_IN_FATAL_STATE(pm_state) (pm_state == MHI_PM_LD_ERR_FATAL_DETECT) argument
455 #define MHI_DB_ACCESS_VALID(mhi_cntrl) (mhi_cntrl->pm_state & \
457 #define MHI_WAKE_DB_CLEAR_VALID(pm_state) (pm_state & (MHI_PM_M0 | \ argument
459 #define MHI_WAKE_DB_SET_VALID(pm_state) (pm_state & MHI_PM_M2) argument
460 #define MHI_WAKE_DB_FORCE_SET_VALID(pm_state) MHI_WAKE_DB_CLEAR_VALID(pm_state) argument
461 #define MHI_EVENT_ACCESS_INVALID(pm_state) (pm_state == MHI_PM_DISABLE || \ argument
462 MHI_PM_IN_ERROR_STATE(pm_state))
463 #define MHI_PM_IN_SUSPEND_STATE(pm_state) (pm_state & \ argument
H A Dboot.c70 to_mhi_pm_state_str(mhi_cntrl->pm_state), in __mhi_download_rddm_in_panic()
84 mhi_cntrl->pm_state = MHI_PM_LD_ERR_FATAL_DETECT; in __mhi_download_rddm_in_panic()
189 if (!MHI_REG_ACCESS_VALID(mhi_cntrl->pm_state)) { in mhi_fw_load_bhie()
212 MHI_PM_IN_ERROR_STATE(mhi_cntrl->pm_state) || in mhi_fw_load_bhie()
219 if (MHI_PM_IN_ERROR_STATE(mhi_cntrl->pm_state) || in mhi_fw_load_bhie()
247 if (!MHI_REG_ACCESS_VALID(mhi_cntrl->pm_state)) { in mhi_fw_load_bhi()
271 if (MHI_PM_IN_ERROR_STATE(mhi_cntrl->pm_state)) in mhi_fw_load_bhi()
277 if (MHI_REG_ACCESS_VALID(mhi_cntrl->pm_state)) { in mhi_fw_load_bhi()
399 if (MHI_PM_IN_ERROR_STATE(mhi_cntrl->pm_state)) { in mhi_fw_load_handler()
509 mhi_cntrl->pm_state = MHI_PM_FW_DL_ERR; in mhi_fw_load_handler()
[all …]
/dports/multimedia/v4l_compat/linux-5.13-rc2/drivers/bus/mhi/core/
H A Dpm.c126 mhi_cntrl->pm_state = state; in mhi_tryset_pm_state()
127 return mhi_cntrl->pm_state; in mhi_tryset_pm_state()
555 to_mhi_pm_state_str(mhi_cntrl->pm_state), in mhi_pm_disable_transition()
574 to_mhi_pm_state_str(mhi_cntrl->pm_state), in mhi_pm_sys_error_transition()
582 prev_state = mhi_cntrl->pm_state; in mhi_pm_sys_error_transition()
699 to_mhi_pm_state_str(mhi_cntrl->pm_state), in mhi_pm_sys_error_transition()
968 mhi_cntrl->pm_state == MHI_PM_M0 || in __mhi_device_get_sync()
1063 mhi_cntrl->pm_state = MHI_PM_DISABLE; in mhi_async_power_up()
1092 mhi_cntrl->pm_state = MHI_PM_POR; in mhi_async_power_up()
1146 mhi_cntrl->pm_state = MHI_PM_DISABLE; in mhi_async_power_up()
[all …]
H A Dinternal.h449 #define MHI_REG_ACCESS_VALID(pm_state) ((pm_state & (MHI_PM_POR | MHI_PM_M0 | \ argument
453 #define MHI_PM_IN_ERROR_STATE(pm_state) (pm_state >= MHI_PM_FW_DL_ERR) argument
454 #define MHI_PM_IN_FATAL_STATE(pm_state) (pm_state == MHI_PM_LD_ERR_FATAL_DETECT) argument
455 #define MHI_DB_ACCESS_VALID(mhi_cntrl) (mhi_cntrl->pm_state & \
457 #define MHI_WAKE_DB_CLEAR_VALID(pm_state) (pm_state & (MHI_PM_M0 | \ argument
459 #define MHI_WAKE_DB_SET_VALID(pm_state) (pm_state & MHI_PM_M2) argument
460 #define MHI_WAKE_DB_FORCE_SET_VALID(pm_state) MHI_WAKE_DB_CLEAR_VALID(pm_state) argument
461 #define MHI_EVENT_ACCESS_INVALID(pm_state) (pm_state == MHI_PM_DISABLE || \ argument
462 MHI_PM_IN_ERROR_STATE(pm_state))
463 #define MHI_PM_IN_SUSPEND_STATE(pm_state) (pm_state & \ argument
H A Dboot.c70 to_mhi_pm_state_str(mhi_cntrl->pm_state), in __mhi_download_rddm_in_panic()
84 mhi_cntrl->pm_state = MHI_PM_LD_ERR_FATAL_DETECT; in __mhi_download_rddm_in_panic()
189 if (!MHI_REG_ACCESS_VALID(mhi_cntrl->pm_state)) { in mhi_fw_load_bhie()
212 MHI_PM_IN_ERROR_STATE(mhi_cntrl->pm_state) || in mhi_fw_load_bhie()
219 if (MHI_PM_IN_ERROR_STATE(mhi_cntrl->pm_state) || in mhi_fw_load_bhie()
247 if (!MHI_REG_ACCESS_VALID(mhi_cntrl->pm_state)) { in mhi_fw_load_bhi()
271 if (MHI_PM_IN_ERROR_STATE(mhi_cntrl->pm_state)) in mhi_fw_load_bhi()
277 if (MHI_REG_ACCESS_VALID(mhi_cntrl->pm_state)) { in mhi_fw_load_bhi()
399 if (MHI_PM_IN_ERROR_STATE(mhi_cntrl->pm_state)) { in mhi_fw_load_handler()
509 mhi_cntrl->pm_state = MHI_PM_FW_DL_ERR; in mhi_fw_load_handler()
[all …]
/dports/multimedia/libv4l/linux-5.13-rc2/drivers/bus/mhi/core/
H A Dpm.c126 mhi_cntrl->pm_state = state; in mhi_tryset_pm_state()
127 return mhi_cntrl->pm_state; in mhi_tryset_pm_state()
555 to_mhi_pm_state_str(mhi_cntrl->pm_state), in mhi_pm_disable_transition()
574 to_mhi_pm_state_str(mhi_cntrl->pm_state), in mhi_pm_sys_error_transition()
582 prev_state = mhi_cntrl->pm_state; in mhi_pm_sys_error_transition()
699 to_mhi_pm_state_str(mhi_cntrl->pm_state), in mhi_pm_sys_error_transition()
968 mhi_cntrl->pm_state == MHI_PM_M0 || in __mhi_device_get_sync()
1063 mhi_cntrl->pm_state = MHI_PM_DISABLE; in mhi_async_power_up()
1092 mhi_cntrl->pm_state = MHI_PM_POR; in mhi_async_power_up()
1146 mhi_cntrl->pm_state = MHI_PM_DISABLE; in mhi_async_power_up()
[all …]
H A Dinternal.h449 #define MHI_REG_ACCESS_VALID(pm_state) ((pm_state & (MHI_PM_POR | MHI_PM_M0 | \ argument
453 #define MHI_PM_IN_ERROR_STATE(pm_state) (pm_state >= MHI_PM_FW_DL_ERR) argument
454 #define MHI_PM_IN_FATAL_STATE(pm_state) (pm_state == MHI_PM_LD_ERR_FATAL_DETECT) argument
455 #define MHI_DB_ACCESS_VALID(mhi_cntrl) (mhi_cntrl->pm_state & \
457 #define MHI_WAKE_DB_CLEAR_VALID(pm_state) (pm_state & (MHI_PM_M0 | \ argument
459 #define MHI_WAKE_DB_SET_VALID(pm_state) (pm_state & MHI_PM_M2) argument
460 #define MHI_WAKE_DB_FORCE_SET_VALID(pm_state) MHI_WAKE_DB_CLEAR_VALID(pm_state) argument
461 #define MHI_EVENT_ACCESS_INVALID(pm_state) (pm_state == MHI_PM_DISABLE || \ argument
462 MHI_PM_IN_ERROR_STATE(pm_state))
463 #define MHI_PM_IN_SUSPEND_STATE(pm_state) (pm_state & \ argument
H A Dboot.c70 to_mhi_pm_state_str(mhi_cntrl->pm_state), in __mhi_download_rddm_in_panic()
84 mhi_cntrl->pm_state = MHI_PM_LD_ERR_FATAL_DETECT; in __mhi_download_rddm_in_panic()
189 if (!MHI_REG_ACCESS_VALID(mhi_cntrl->pm_state)) { in mhi_fw_load_bhie()
212 MHI_PM_IN_ERROR_STATE(mhi_cntrl->pm_state) || in mhi_fw_load_bhie()
219 if (MHI_PM_IN_ERROR_STATE(mhi_cntrl->pm_state) || in mhi_fw_load_bhie()
247 if (!MHI_REG_ACCESS_VALID(mhi_cntrl->pm_state)) { in mhi_fw_load_bhi()
271 if (MHI_PM_IN_ERROR_STATE(mhi_cntrl->pm_state)) in mhi_fw_load_bhi()
277 if (MHI_REG_ACCESS_VALID(mhi_cntrl->pm_state)) { in mhi_fw_load_bhi()
399 if (MHI_PM_IN_ERROR_STATE(mhi_cntrl->pm_state)) { in mhi_fw_load_handler()
509 mhi_cntrl->pm_state = MHI_PM_FW_DL_ERR; in mhi_fw_load_handler()
[all …]
/dports/multimedia/v4l-utils/linux-5.13-rc2/arch/arm/mach-exynos/
H A Dsuspend.c71 static struct exynos_pm_state pm_state; variable
335 pm_state.pmu_spare3 = pmu_raw_readl(S5P_PMU_SPARE3); in exynos5420_pm_prepare()
343 pm_state.cpu_state = readl_relaxed(pm_state.sysram_base + in exynos5420_pm_prepare()
346 if (pm_state.secure_firmware) in exynos5420_pm_prepare()
486 writel_relaxed(pm_state.cpu_state, in exynos5420_pm_resume()
488 if (pm_state.secure_firmware) in exynos5420_pm_resume()
490 SMC_REG_ID_SFR_W(pm_state.sysram_phys + in exynos5420_pm_resume()
695 pm_state.sysram_phys = sysram_base_phys; in exynos_pm_init()
696 pm_state.sysram_base = sysram_ns_base_addr; in exynos_pm_init()
697 pm_state.secure_firmware = true; in exynos_pm_init()
[all …]
/dports/multimedia/v4l_compat/linux-5.13-rc2/arch/arm/mach-exynos/
H A Dsuspend.c71 static struct exynos_pm_state pm_state; variable
335 pm_state.pmu_spare3 = pmu_raw_readl(S5P_PMU_SPARE3); in exynos5420_pm_prepare()
343 pm_state.cpu_state = readl_relaxed(pm_state.sysram_base + in exynos5420_pm_prepare()
346 if (pm_state.secure_firmware) in exynos5420_pm_prepare()
486 writel_relaxed(pm_state.cpu_state, in exynos5420_pm_resume()
488 if (pm_state.secure_firmware) in exynos5420_pm_resume()
490 SMC_REG_ID_SFR_W(pm_state.sysram_phys + in exynos5420_pm_resume()
695 pm_state.sysram_phys = sysram_base_phys; in exynos_pm_init()
696 pm_state.sysram_base = sysram_ns_base_addr; in exynos_pm_init()
697 pm_state.secure_firmware = true; in exynos_pm_init()
[all …]
/dports/multimedia/libv4l/linux-5.13-rc2/arch/arm/mach-exynos/
H A Dsuspend.c71 static struct exynos_pm_state pm_state; variable
335 pm_state.pmu_spare3 = pmu_raw_readl(S5P_PMU_SPARE3); in exynos5420_pm_prepare()
343 pm_state.cpu_state = readl_relaxed(pm_state.sysram_base + in exynos5420_pm_prepare()
346 if (pm_state.secure_firmware) in exynos5420_pm_prepare()
486 writel_relaxed(pm_state.cpu_state, in exynos5420_pm_resume()
488 if (pm_state.secure_firmware) in exynos5420_pm_resume()
490 SMC_REG_ID_SFR_W(pm_state.sysram_phys + in exynos5420_pm_resume()
695 pm_state.sysram_phys = sysram_base_phys; in exynos_pm_init()
696 pm_state.sysram_base = sysram_ns_base_addr; in exynos_pm_init()
697 pm_state.secure_firmware = true; in exynos_pm_init()
[all …]
/dports/multimedia/v4l-utils/linux-5.13-rc2/drivers/cpuidle/
H A Dcpuidle-cps.c26 enum cps_pm_state pm_state; in cps_nc_enter() local
42 pm_state = CPS_PM_NC_WAIT; in cps_nc_enter()
45 pm_state = CPS_PM_CLOCK_GATED; in cps_nc_enter()
48 pm_state = CPS_PM_POWER_GATED; in cps_nc_enter()
56 if ((pm_state == CPS_PM_POWER_GATED) && cpu_pm_enter()) in cps_nc_enter()
60 err = cps_pm_enter_state(pm_state); in cps_nc_enter()
63 if (pm_state == CPS_PM_POWER_GATED) in cps_nc_enter()
/dports/multimedia/v4l_compat/linux-5.13-rc2/drivers/cpuidle/
H A Dcpuidle-cps.c26 enum cps_pm_state pm_state; in cps_nc_enter() local
42 pm_state = CPS_PM_NC_WAIT; in cps_nc_enter()
45 pm_state = CPS_PM_CLOCK_GATED; in cps_nc_enter()
48 pm_state = CPS_PM_POWER_GATED; in cps_nc_enter()
56 if ((pm_state == CPS_PM_POWER_GATED) && cpu_pm_enter()) in cps_nc_enter()
60 err = cps_pm_enter_state(pm_state); in cps_nc_enter()
63 if (pm_state == CPS_PM_POWER_GATED) in cps_nc_enter()
/dports/multimedia/libv4l/linux-5.13-rc2/drivers/cpuidle/
H A Dcpuidle-cps.c26 enum cps_pm_state pm_state; in cps_nc_enter() local
42 pm_state = CPS_PM_NC_WAIT; in cps_nc_enter()
45 pm_state = CPS_PM_CLOCK_GATED; in cps_nc_enter()
48 pm_state = CPS_PM_POWER_GATED; in cps_nc_enter()
56 if ((pm_state == CPS_PM_POWER_GATED) && cpu_pm_enter()) in cps_nc_enter()
60 err = cps_pm_enter_state(pm_state); in cps_nc_enter()
63 if (pm_state == CPS_PM_POWER_GATED) in cps_nc_enter()
/dports/multimedia/v4l_compat/linux-5.13-rc2/drivers/net/wireless/st/cw1200/
H A Dpm.c160 struct cw1200_pm_state *pm_state = &priv->pm_state; in cw1200_wow_suspend() local
164 spin_lock_bh(&pm_state->lock); in cw1200_wow_suspend()
165 ret = timer_pending(&pm_state->stay_awake); in cw1200_wow_suspend()
166 spin_unlock_bh(&pm_state->lock); in cw1200_wow_suspend()
259 pm_state->suspend_state = state; in cw1200_wow_suspend()
305 struct cw1200_pm_state *pm_state = &priv->pm_state; in cw1200_wow_resume() local
308 state = pm_state->suspend_state; in cw1200_wow_resume()
309 pm_state->suspend_state = NULL; in cw1200_wow_resume()
/dports/multimedia/libv4l/linux-5.13-rc2/drivers/net/wireless/st/cw1200/
H A Dpm.c160 struct cw1200_pm_state *pm_state = &priv->pm_state; in cw1200_wow_suspend() local
164 spin_lock_bh(&pm_state->lock); in cw1200_wow_suspend()
165 ret = timer_pending(&pm_state->stay_awake); in cw1200_wow_suspend()
166 spin_unlock_bh(&pm_state->lock); in cw1200_wow_suspend()
259 pm_state->suspend_state = state; in cw1200_wow_suspend()
305 struct cw1200_pm_state *pm_state = &priv->pm_state; in cw1200_wow_resume() local
308 state = pm_state->suspend_state; in cw1200_wow_resume()
309 pm_state->suspend_state = NULL; in cw1200_wow_resume()
/dports/multimedia/v4l-utils/linux-5.13-rc2/drivers/net/wireless/st/cw1200/
H A Dpm.c160 struct cw1200_pm_state *pm_state = &priv->pm_state; in cw1200_wow_suspend() local
164 spin_lock_bh(&pm_state->lock); in cw1200_wow_suspend()
165 ret = timer_pending(&pm_state->stay_awake); in cw1200_wow_suspend()
166 spin_unlock_bh(&pm_state->lock); in cw1200_wow_suspend()
259 pm_state->suspend_state = state; in cw1200_wow_suspend()
305 struct cw1200_pm_state *pm_state = &priv->pm_state; in cw1200_wow_resume() local
308 state = pm_state->suspend_state; in cw1200_wow_resume()
309 pm_state->suspend_state = NULL; in cw1200_wow_resume()
/dports/multimedia/v4l-utils/linux-5.13-rc2/arch/x86/platform/olpc/
H A Dolpc-xo1-pm.c47 static int xo1_power_state_enter(suspend_state_t pm_state) in xo1_power_state_enter() argument
52 if (pm_state != PM_SUSPEND_MEM) in xo1_power_state_enter()
108 static int xo1_power_state_valid(suspend_state_t pm_state) in xo1_power_state_valid() argument
111 return pm_state == PM_SUSPEND_MEM; in xo1_power_state_valid()
/dports/multimedia/v4l_compat/linux-5.13-rc2/arch/x86/platform/olpc/
H A Dolpc-xo1-pm.c47 static int xo1_power_state_enter(suspend_state_t pm_state) in xo1_power_state_enter() argument
52 if (pm_state != PM_SUSPEND_MEM) in xo1_power_state_enter()
108 static int xo1_power_state_valid(suspend_state_t pm_state) in xo1_power_state_valid() argument
111 return pm_state == PM_SUSPEND_MEM; in xo1_power_state_valid()
/dports/multimedia/libv4l/linux-5.13-rc2/arch/x86/platform/olpc/
H A Dolpc-xo1-pm.c47 static int xo1_power_state_enter(suspend_state_t pm_state) in xo1_power_state_enter() argument
52 if (pm_state != PM_SUSPEND_MEM) in xo1_power_state_enter()
108 static int xo1_power_state_valid(suspend_state_t pm_state) in xo1_power_state_valid() argument
111 return pm_state == PM_SUSPEND_MEM; in xo1_power_state_valid()
/dports/sysutils/libudisks/udisks-udisks-2.9.2/src/
H A Dudiskslinuxdriveata.h40 #define UDISKS_LINUX_DRIVE_ATA_IS_AWAKE(pm_state) (pm_state >= 0x41) argument
66 guchar *pm_state);
/dports/multimedia/v4l-utils/linux-5.13-rc2/drivers/acpi/
H A Dsleep.c535 static int acpi_suspend_begin(suspend_state_t pm_state) in acpi_suspend_begin() argument
537 u32 acpi_state = acpi_suspend_states[pm_state]; in acpi_suspend_begin()
563 static int acpi_suspend_enter(suspend_state_t pm_state) in acpi_suspend_enter() argument
631 static int acpi_suspend_state_valid(suspend_state_t pm_state) in acpi_suspend_state_valid() argument
635 switch (pm_state) { in acpi_suspend_state_valid()
639 acpi_state = acpi_suspend_states[pm_state]; in acpi_suspend_state_valid()
662 static int acpi_suspend_begin_old(suspend_state_t pm_state) in acpi_suspend_begin_old() argument
664 int error = acpi_suspend_begin(pm_state); in acpi_suspend_begin_old()
/dports/multimedia/v4l_compat/linux-5.13-rc2/drivers/acpi/
H A Dsleep.c535 static int acpi_suspend_begin(suspend_state_t pm_state) in acpi_suspend_begin() argument
537 u32 acpi_state = acpi_suspend_states[pm_state]; in acpi_suspend_begin()
563 static int acpi_suspend_enter(suspend_state_t pm_state) in acpi_suspend_enter() argument
631 static int acpi_suspend_state_valid(suspend_state_t pm_state) in acpi_suspend_state_valid() argument
635 switch (pm_state) { in acpi_suspend_state_valid()
639 acpi_state = acpi_suspend_states[pm_state]; in acpi_suspend_state_valid()
662 static int acpi_suspend_begin_old(suspend_state_t pm_state) in acpi_suspend_begin_old() argument
664 int error = acpi_suspend_begin(pm_state); in acpi_suspend_begin_old()
/dports/multimedia/libv4l/linux-5.13-rc2/drivers/acpi/
H A Dsleep.c535 static int acpi_suspend_begin(suspend_state_t pm_state) in acpi_suspend_begin() argument
537 u32 acpi_state = acpi_suspend_states[pm_state]; in acpi_suspend_begin()
563 static int acpi_suspend_enter(suspend_state_t pm_state) in acpi_suspend_enter() argument
631 static int acpi_suspend_state_valid(suspend_state_t pm_state) in acpi_suspend_state_valid() argument
635 switch (pm_state) { in acpi_suspend_state_valid()
639 acpi_state = acpi_suspend_states[pm_state]; in acpi_suspend_state_valid()
662 static int acpi_suspend_begin_old(suspend_state_t pm_state) in acpi_suspend_begin_old() argument
664 int error = acpi_suspend_begin(pm_state); in acpi_suspend_begin_old()

12345678910