/linux-6.1.9/drivers/bus/mhi/host/ |
D | internal.h | 111 #define MHI_REG_ACCESS_VALID(pm_state) ((pm_state & (MHI_PM_POR | MHI_PM_M0 | \ argument 115 #define MHI_PM_IN_ERROR_STATE(pm_state) (pm_state >= MHI_PM_FW_DL_ERR) argument 116 #define MHI_PM_IN_FATAL_STATE(pm_state) (pm_state == MHI_PM_LD_ERR_FATAL_DETECT) argument 117 #define MHI_DB_ACCESS_VALID(mhi_cntrl) (mhi_cntrl->pm_state & mhi_cntrl->db_access) 118 #define MHI_WAKE_DB_CLEAR_VALID(pm_state) (pm_state & (MHI_PM_M0 | \ argument 120 #define MHI_WAKE_DB_SET_VALID(pm_state) (pm_state & MHI_PM_M2) argument 121 #define MHI_WAKE_DB_FORCE_SET_VALID(pm_state) MHI_WAKE_DB_CLEAR_VALID(pm_state) argument 122 #define MHI_EVENT_ACCESS_INVALID(pm_state) (pm_state == MHI_PM_DISABLE || \ argument 123 MHI_PM_IN_ERROR_STATE(pm_state)) 124 #define MHI_PM_IN_SUSPEND_STATE(pm_state) (pm_state & \ argument
|
D | pm.c | 114 unsigned long cur_state = mhi_cntrl->pm_state; in mhi_tryset_pm_state() 126 mhi_cntrl->pm_state = state; in mhi_tryset_pm_state() 127 return mhi_cntrl->pm_state; in mhi_tryset_pm_state() 169 if (MHI_PM_IN_FATAL_STATE(mhi_cntrl->pm_state)) { in mhi_ready_state_transition() 203 if (!MHI_REG_ACCESS_VALID(mhi_cntrl->pm_state)) { in mhi_ready_state_transition() 389 if (MHI_REG_ACCESS_VALID(mhi_cntrl->pm_state)) in mhi_pm_mission_mode_transition() 393 mhi_cntrl->pm_state = MHI_PM_LD_ERR_FATAL_DETECT; in mhi_pm_mission_mode_transition() 414 if (MHI_PM_IN_ERROR_STATE(mhi_cntrl->pm_state)) { in mhi_pm_mission_mode_transition() 467 to_mhi_pm_state_str(mhi_cntrl->pm_state)); in mhi_pm_disable_transition() 472 if (!MHI_PM_IN_FATAL_STATE(mhi_cntrl->pm_state)) { in mhi_pm_disable_transition() [all …]
|
D | boot.c | 76 to_mhi_pm_state_str(mhi_cntrl->pm_state), in __mhi_download_rddm_in_panic() 90 mhi_cntrl->pm_state = MHI_PM_LD_ERR_FATAL_DETECT; in __mhi_download_rddm_in_panic() 192 if (!MHI_REG_ACCESS_VALID(mhi_cntrl->pm_state)) { in mhi_fw_load_bhie() 217 MHI_PM_IN_ERROR_STATE(mhi_cntrl->pm_state) || in mhi_fw_load_bhie() 223 if (MHI_PM_IN_ERROR_STATE(mhi_cntrl->pm_state) || in mhi_fw_load_bhie() 251 if (!MHI_REG_ACCESS_VALID(mhi_cntrl->pm_state)) { in mhi_fw_load_bhi() 270 MHI_PM_IN_ERROR_STATE(mhi_cntrl->pm_state) || in mhi_fw_load_bhi() 274 if (MHI_PM_IN_ERROR_STATE(mhi_cntrl->pm_state)) in mhi_fw_load_bhi() 280 if (MHI_REG_ACCESS_VALID(mhi_cntrl->pm_state)) { in mhi_fw_load_bhi() 402 if (MHI_PM_IN_ERROR_STATE(mhi_cntrl->pm_state)) { in mhi_fw_load_handler() [all …]
|
D | main.c | 483 enum mhi_pm_state pm_state = 0; in mhi_intvec_threaded_handler() local 487 if (!MHI_REG_ACCESS_VALID(mhi_cntrl->pm_state)) { in mhi_intvec_threaded_handler() 501 pm_state = mhi_tryset_pm_state(mhi_cntrl, in mhi_intvec_threaded_handler() 506 if (pm_state != MHI_PM_SYS_ERR_DETECT || ee == mhi_cntrl->ee) in mhi_intvec_threaded_handler() 820 if (unlikely(MHI_EVENT_ACCESS_INVALID(mhi_cntrl->pm_state))) in mhi_process_ctrl_ev_ring() 872 enum mhi_pm_state pm_state; in mhi_process_ctrl_ev_ring() local 876 pm_state = mhi_tryset_pm_state(mhi_cntrl, in mhi_process_ctrl_ev_ring() 879 if (pm_state == MHI_PM_SYS_ERR_DETECT) in mhi_process_ctrl_ev_ring() 984 if (unlikely(MHI_EVENT_ACCESS_INVALID(mhi_cntrl->pm_state))) in mhi_process_data_event_ring() 1058 enum mhi_pm_state pm_state = 0; in mhi_ctrl_ev_task() local [all …]
|
D | debugfs.c | 21 to_mhi_pm_state_str(mhi_cntrl->pm_state), in mhi_debugfs_states_show() 204 if (!MHI_REG_ACCESS_VALID(mhi_cntrl->pm_state)) in mhi_debugfs_regdump_show() 208 to_mhi_pm_state_str(mhi_cntrl->pm_state), in mhi_debugfs_regdump_show()
|
/linux-6.1.9/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 …]
|
/linux-6.1.9/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()
|
/linux-6.1.9/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
|
/linux-6.1.9/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()
|
/linux-6.1.9/sound/soc/sof/ |
D | pm.c | 184 pm_message_t pm_state; in sof_suspend() local 212 pm_state.event = target_state; in sof_suspend() 216 sof_fw_trace_suspend(sdev, pm_state); in sof_suspend() 218 sof_suspend_clients(sdev, pm_state); in sof_suspend() 223 sof_fw_trace_suspend(sdev, pm_state); in sof_suspend() 226 sof_suspend_clients(sdev, pm_state); in sof_suspend()
|
D | trace.c | 37 void sof_fw_trace_suspend(struct snd_sof_dev *sdev, pm_message_t pm_state) in sof_fw_trace_suspend() argument 42 sdev->ipc->ops->fw_tracing->suspend(sdev, pm_state); in sof_fw_trace_suspend()
|
/linux-6.1.9/drivers/acpi/ |
D | sleep.c | 558 static int acpi_suspend_begin(suspend_state_t pm_state) in acpi_suspend_begin() argument 560 u32 acpi_state = acpi_suspend_states[pm_state]; in acpi_suspend_begin() 586 static int acpi_suspend_enter(suspend_state_t pm_state) in acpi_suspend_enter() argument 652 static int acpi_suspend_state_valid(suspend_state_t pm_state) in acpi_suspend_state_valid() argument 656 switch (pm_state) { in acpi_suspend_state_valid() 660 acpi_state = acpi_suspend_states[pm_state]; in acpi_suspend_state_valid() 683 static int acpi_suspend_begin_old(suspend_state_t pm_state) in acpi_suspend_begin_old() argument 685 int error = acpi_suspend_begin(pm_state); in acpi_suspend_begin_old()
|
/linux-6.1.9/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() 803 if (schan->pm_state == SHDMA_PM_ESTABLISHED) in shdma_issue_pending() 806 schan->pm_state = SHDMA_PM_PENDING; in shdma_issue_pending() 870 schan->pm_state = SHDMA_PM_ESTABLISHED; in shdma_reset() [all …]
|
/linux-6.1.9/drivers/dma/qcom/ |
D | gpi.c | 492 enum gpi_pm_state pm_state; member 515 enum gpi_pm_state pm_state; member 851 if (!REG_ACCESS_VALID(gpii->pm_state)) { in gpi_handle_irq() 853 TO_GPI_PM_STR(gpii->pm_state)); in gpi_handle_irq() 944 if (gchan->pm_state != ACTIVE_STATE) { in gpi_process_imed_data_event() 946 TO_GPI_PM_STR(gchan->pm_state)); in gpi_process_imed_data_event() 1024 if (unlikely(gchan->pm_state != ACTIVE_STATE)) { in gpi_process_xfer_compl_event() 1026 TO_GPI_PM_STR(gchan->pm_state)); in gpi_process_xfer_compl_event() 1154 if (!REG_ACCESS_VALID(gpii->pm_state)) { in gpi_ev_tasklet() 1157 TO_GPI_PM_STR(gpii->pm_state)); in gpi_ev_tasklet() [all …]
|
/linux-6.1.9/drivers/pnp/ |
D | card.c | 88 clink->pm_state = PMSG_ON; in card_probe() 395 if (link->pm_state.event == state.event) in card_suspend() 397 link->pm_state = state; in card_suspend() 405 if (link->pm_state.event == PM_EVENT_ON) in card_resume() 407 link->pm_state = PMSG_ON; in card_resume()
|
/linux-6.1.9/drivers/media/platform/ti/omap3isp/ |
D | ispresizer.h | 103 int pm_state; member
|
/linux-6.1.9/drivers/dma/sf-pdma/ |
D | sf-pdma.h | 94 enum sf_pdma_pm_state pm_state; member
|
/linux-6.1.9/drivers/tty/serial/ |
D | serial_core.c | 55 enum uart_pm_state pm_state); 1972 enum uart_pm_state pm_state; in uart_line_info() local 1997 pm_state = state->pm_state; in uart_line_info() 1998 if (pm_state != UART_PM_STATE_ON) in uart_line_info() 2003 if (pm_state != UART_PM_STATE_ON) in uart_line_info() 2004 uart_change_pm(state, pm_state); in uart_line_info() 2286 enum uart_pm_state pm_state) in uart_change_pm() argument 2290 if (state->pm_state != pm_state) { in uart_change_pm() 2292 port->ops->pm(port, pm_state, state->pm_state); in uart_change_pm() 2293 state->pm_state = pm_state; in uart_change_pm() [all …]
|
/linux-6.1.9/include/linux/ |
D | shdma-base.h | 72 enum shdma_pm_state pm_state; member
|
/linux-6.1.9/drivers/dma/ |
D | fsl-edma.c | 357 fsl_chan->pm_state = RUNNING; in fsl_edma_probe() 458 fsl_chan->pm_state = SUSPENDED; in fsl_edma_suspend_late() 474 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()
|
/linux-6.1.9/drivers/video/fbdev/nvidia/ |
D | nv_type.h | 136 int pm_state; member
|
/linux-6.1.9/drivers/misc/cardreader/ |
D | rts5209.c | 50 static void rts5209_force_power_down(struct rtsx_pcr *pcr, u8 pm_state, bool runtime) in rts5209_force_power_down() argument
|