/kernel/linux/linux-5.10/drivers/bus/mhi/core/ |
D | pm.c | 113 unsigned long cur_state = mhi_cntrl->pm_state; in mhi_tryset_pm_state() 125 mhi_cntrl->pm_state = state; in mhi_tryset_pm_state() 126 return mhi_cntrl->pm_state; in mhi_tryset_pm_state() 164 MHI_PM_IN_FATAL_STATE(mhi_cntrl->pm_state) || in mhi_ready_state_transition() 175 if (MHI_PM_IN_FATAL_STATE(mhi_cntrl->pm_state)) { in mhi_ready_state_transition() 200 if (!MHI_REG_ACCESS_VALID(mhi_cntrl->pm_state)) { in mhi_ready_state_transition() 386 if (MHI_REG_ACCESS_VALID(mhi_cntrl->pm_state)) in mhi_pm_mission_mode_transition() 406 if (MHI_PM_IN_ERROR_STATE(mhi_cntrl->pm_state)) { in mhi_pm_mission_mode_transition() 460 to_mhi_pm_state_str(mhi_cntrl->pm_state), in mhi_pm_disable_transition() 469 prev_state = mhi_cntrl->pm_state; in mhi_pm_disable_transition() [all …]
|
D | internal.h | 435 #define MHI_REG_ACCESS_VALID(pm_state) ((pm_state & (MHI_PM_POR | MHI_PM_M0 | \ argument 439 #define MHI_PM_IN_ERROR_STATE(pm_state) (pm_state >= MHI_PM_FW_DL_ERR) argument 440 #define MHI_PM_IN_FATAL_STATE(pm_state) (pm_state == MHI_PM_LD_ERR_FATAL_DETECT) argument 441 #define MHI_DB_ACCESS_VALID(mhi_cntrl) (mhi_cntrl->pm_state & \ 443 #define MHI_WAKE_DB_CLEAR_VALID(pm_state) (pm_state & (MHI_PM_M0 | \ argument 445 #define MHI_WAKE_DB_SET_VALID(pm_state) (pm_state & MHI_PM_M2) argument 446 #define MHI_WAKE_DB_FORCE_SET_VALID(pm_state) MHI_WAKE_DB_CLEAR_VALID(pm_state) argument 447 #define MHI_EVENT_ACCESS_INVALID(pm_state) (pm_state == MHI_PM_DISABLE || \ argument 448 MHI_PM_IN_ERROR_STATE(pm_state)) 449 #define MHI_PM_IN_SUSPEND_STATE(pm_state) (pm_state & \ argument
|
D | boot.c | 70 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() 184 if (!MHI_REG_ACCESS_VALID(mhi_cntrl->pm_state)) { in mhi_fw_load_amss() 207 MHI_PM_IN_ERROR_STATE(mhi_cntrl->pm_state) || in mhi_fw_load_amss() 214 if (MHI_PM_IN_ERROR_STATE(mhi_cntrl->pm_state) || in mhi_fw_load_amss() 242 if (!MHI_REG_ACCESS_VALID(mhi_cntrl->pm_state)) { in mhi_fw_load_sbl() 261 MHI_PM_IN_ERROR_STATE(mhi_cntrl->pm_state) || in mhi_fw_load_sbl() 266 if (MHI_PM_IN_ERROR_STATE(mhi_cntrl->pm_state)) in mhi_fw_load_sbl() 272 if (MHI_REG_ACCESS_VALID(mhi_cntrl->pm_state)) { in mhi_fw_load_sbl() 397 if (MHI_PM_IN_ERROR_STATE(mhi_cntrl->pm_state)) { in mhi_fw_load_handler() [all …]
|
D | main.c | 412 enum mhi_pm_state pm_state = 0; in mhi_intvec_threaded_handler() local 416 if (!MHI_REG_ACCESS_VALID(mhi_cntrl->pm_state)) { in mhi_intvec_threaded_handler() 430 pm_state = mhi_tryset_pm_state(mhi_cntrl, in mhi_intvec_threaded_handler() 444 if (pm_state == MHI_PM_SYS_ERR_DETECT) { in mhi_intvec_threaded_handler() 744 if (unlikely(MHI_EVENT_ACCESS_INVALID(mhi_cntrl->pm_state))) in mhi_process_ctrl_ev_ring() 910 if (unlikely(MHI_EVENT_ACCESS_INVALID(mhi_cntrl->pm_state))) in mhi_process_data_event_ring() 984 enum mhi_pm_state pm_state = 0; in mhi_ctrl_ev_task() local 992 if (!MHI_REG_ACCESS_VALID(mhi_cntrl->pm_state)) { in mhi_ctrl_ev_task() 1015 pm_state = mhi_tryset_pm_state(mhi_cntrl, in mhi_ctrl_ev_task() 1019 if (pm_state == MHI_PM_SYS_ERR_DETECT) in mhi_ctrl_ev_task() [all …]
|
D | debugfs.c | 21 to_mhi_pm_state_str(mhi_cntrl->pm_state), in mhi_debugfs_states_show() 202 if (!MHI_REG_ACCESS_VALID(mhi_cntrl->pm_state)) in mhi_debugfs_regdump_show() 206 to_mhi_pm_state_str(mhi_cntrl->pm_state), in mhi_debugfs_regdump_show()
|
/kernel/linux/linux-5.10/drivers/cpuidle/ |
D | cpuidle-cps.c | 26 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()
|
/kernel/linux/linux-5.10/arch/arm/mach-exynos/ |
D | suspend.c | 71 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() 345 writel_relaxed(0x0, pm_state.sysram_base + EXYNOS5420_CPU_STATE); in exynos5420_pm_prepare() 346 if (pm_state.secure_firmware) in exynos5420_pm_prepare() 347 exynos_smc(SMC_CMD_REG, SMC_REG_ID_SFR_W(pm_state.sysram_phys + in exynos5420_pm_prepare() 486 writel_relaxed(pm_state.cpu_state, in exynos5420_pm_resume() 487 pm_state.sysram_base + EXYNOS5420_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() [all …]
|
/kernel/linux/linux-5.10/drivers/net/wireless/st/cw1200/ |
D | pm.c | 160 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()
|
D | main.c | 420 err = cw1200_pm_init(&priv->pm_state, priv); in cw1200_register_common() 433 cw1200_pm_deinit(&priv->pm_state); in cw1200_register_common() 478 cw1200_pm_deinit(&priv->pm_state); in cw1200_unregister_common()
|
D | cw1200.h | 173 struct cw1200_pm_state pm_state; member
|
/kernel/linux/linux-5.10/arch/x86/platform/olpc/ |
D | olpc-xo1-pm.c | 47 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()
|
/kernel/linux/linux-5.10/drivers/dma/sh/ |
D | shdma-base.c | 113 schan->pm_state = SHDMA_PM_BUSY; in shdma_tx_submit() 126 if (schan->pm_state != SHDMA_PM_ESTABLISHED) { in shdma_tx_submit() 139 if (schan->pm_state == SHDMA_PM_PENDING) in shdma_tx_submit() 141 schan->pm_state = SHDMA_PM_ESTABLISHED; in shdma_tx_submit() 148 schan->pm_state = SHDMA_PM_PENDING; in shdma_tx_submit() 413 schan->pm_state = SHDMA_PM_ESTABLISHED; in __ld_cleanup() 414 } else if (schan->pm_state == SHDMA_PM_PENDING) { in __ld_cleanup() 811 if (schan->pm_state == SHDMA_PM_ESTABLISHED) in shdma_issue_pending() 814 schan->pm_state = SHDMA_PM_PENDING; in shdma_issue_pending() 878 schan->pm_state = SHDMA_PM_ESTABLISHED; in shdma_reset() [all …]
|
/kernel/linux/linux-5.10/drivers/acpi/ |
D | sleep.c | 559 static int acpi_suspend_begin(suspend_state_t pm_state) in acpi_suspend_begin() argument 561 u32 acpi_state = acpi_suspend_states[pm_state]; in acpi_suspend_begin() 587 static int acpi_suspend_enter(suspend_state_t pm_state) in acpi_suspend_enter() argument 655 static int acpi_suspend_state_valid(suspend_state_t pm_state) in acpi_suspend_state_valid() argument 659 switch (pm_state) { in acpi_suspend_state_valid() 663 acpi_state = acpi_suspend_states[pm_state]; in acpi_suspend_state_valid() 686 static int acpi_suspend_begin_old(suspend_state_t pm_state) in acpi_suspend_begin_old() argument 688 int error = acpi_suspend_begin(pm_state); in acpi_suspend_begin_old()
|
/kernel/linux/linux-5.10/drivers/pnp/ |
D | card.c | 88 clink->pm_state = PMSG_ON; in card_probe() 393 if (link->pm_state.event == state.event) in card_suspend() 395 link->pm_state = state; in card_suspend() 403 if (link->pm_state.event == PM_EVENT_ON) in card_resume() 405 link->pm_state = PMSG_ON; in card_resume()
|
/kernel/linux/linux-5.10/drivers/ide/ |
D | ide-pm.c | 28 rqpm.pm_state = mesg.event; in generic_ide_suspend() 84 rqpm.pm_state = PM_EVENT_ON; in generic_ide_resume() 112 if (pm->pm_state == PM_EVENT_FREEZE) in ide_complete_power_step()
|
/kernel/linux/linux-5.10/drivers/media/platform/omap3isp/ |
D | ispresizer.h | 103 int pm_state; member
|
/kernel/linux/linux-5.10/drivers/tty/serial/ |
D | serial_core.c | 54 enum uart_pm_state pm_state); 1888 enum uart_pm_state pm_state; in uart_line_info() local 1913 pm_state = state->pm_state; in uart_line_info() 1914 if (pm_state != UART_PM_STATE_ON) in uart_line_info() 1919 if (pm_state != UART_PM_STATE_ON) in uart_line_info() 1920 uart_change_pm(state, pm_state); in uart_line_info() 2198 enum uart_pm_state pm_state) in uart_change_pm() argument 2202 if (state->pm_state != pm_state) { in uart_change_pm() 2204 port->ops->pm(port, pm_state, state->pm_state); in uart_change_pm() 2205 state->pm_state = pm_state; in uart_change_pm() [all …]
|
/kernel/linux/linux-5.10/drivers/dma/sf-pdma/ |
D | sf-pdma.h | 98 enum sf_pdma_pm_state pm_state; member
|
/kernel/linux/linux-5.10/include/linux/ |
D | shdma-base.h | 72 enum shdma_pm_state pm_state; member
|
/kernel/linux/linux-5.10/drivers/dma/ |
D | fsl-edma.c | 356 fsl_chan->pm_state = RUNNING; in fsl_edma_probe() 451 fsl_chan->pm_state = SUSPENDED; in fsl_edma_suspend_late() 467 fsl_chan->pm_state = RUNNING; in fsl_edma_resume_early()
|
D | fsldma.c | 416 if (unlikely(chan->pm_state != RUNNING)) { in fsl_dma_tx_submit() 1180 chan->pm_state = RUNNING; in fsl_dma_chan_probe() 1346 chan->pm_state = SUSPENDED; in fsldma_suspend_late() 1356 chan->pm_state = RUNNING; in fsldma_suspend_late() 1378 chan->pm_state = RUNNING; in fsldma_resume_early()
|
/kernel/linux/linux-5.10/drivers/video/fbdev/nvidia/ |
D | nv_type.h | 136 int pm_state; member
|
/kernel/linux/linux-5.10/drivers/misc/cardreader/ |
D | rts5209.c | 50 static void rts5209_force_power_down(struct rtsx_pcr *pcr, u8 pm_state) in rts5209_force_power_down() argument
|
D | rts5229.c | 47 static void rts5229_force_power_down(struct rtsx_pcr *pcr, u8 pm_state) in rts5229_force_power_down() argument
|
D | rtsx_pcr.c | 1099 static void rtsx_base_force_power_down(struct rtsx_pcr *pcr, u8 pm_state) in rtsx_base_force_power_down() argument 1113 static void __maybe_unused rtsx_pci_power_off(struct rtsx_pcr *pcr, u8 pm_state) in rtsx_pci_power_off() argument 1122 rtsx_pci_write_register(pcr, HOST_SLEEP_STATE, 0x03, pm_state); in rtsx_pci_power_off() 1125 pcr->ops->force_power_down(pcr, pm_state); in rtsx_pci_power_off() 1127 rtsx_base_force_power_down(pcr, pm_state); in rtsx_pci_power_off()
|