/linux/drivers/bus/mhi/core/ |
A D | pm.c | 126 mhi_cntrl->pm_state = state; in mhi_tryset_pm_state() 127 return mhi_cntrl->pm_state; in mhi_tryset_pm_state() 547 to_mhi_pm_state_str(mhi_cntrl->pm_state), in mhi_pm_disable_transition() 566 to_mhi_pm_state_str(mhi_cntrl->pm_state), in mhi_pm_sys_error_transition() 574 prev_state = mhi_cntrl->pm_state; in mhi_pm_sys_error_transition() 691 to_mhi_pm_state_str(mhi_cntrl->pm_state), in mhi_pm_sys_error_transition() 976 mhi_cntrl->pm_state == MHI_PM_M0 || in __mhi_device_get_sync() 1071 mhi_cntrl->pm_state = MHI_PM_DISABLE; in mhi_async_power_up() 1080 mhi_cntrl->pm_state = MHI_PM_POR; in mhi_async_power_up() 1138 mhi_cntrl->pm_state = MHI_PM_DISABLE; in mhi_async_power_up() [all …]
|
A D | internal.h | 449 #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
|
A 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() 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() 510 mhi_cntrl->pm_state = MHI_PM_FW_DL_ERR; in mhi_fw_load_handler() [all …]
|
A D | main.c | 469 enum mhi_pm_state pm_state = 0; in mhi_intvec_threaded_handler() local 473 if (!MHI_REG_ACCESS_VALID(mhi_cntrl->pm_state)) { in mhi_intvec_threaded_handler() 487 pm_state = mhi_tryset_pm_state(mhi_cntrl, in mhi_intvec_threaded_handler() 863 enum mhi_pm_state pm_state; in mhi_process_ctrl_ev_ring() local 867 pm_state = mhi_tryset_pm_state(mhi_cntrl, in mhi_process_ctrl_ev_ring() 870 if (pm_state == MHI_PM_SYS_ERR_DETECT) in mhi_process_ctrl_ev_ring() 1049 enum mhi_pm_state pm_state = 0; in mhi_ctrl_ev_task() local 1057 if (!MHI_REG_ACCESS_VALID(mhi_cntrl->pm_state)) { in mhi_ctrl_ev_task() 1080 pm_state = mhi_tryset_pm_state(mhi_cntrl, in mhi_ctrl_ev_task() 1084 if (pm_state == MHI_PM_SYS_ERR_DETECT) in mhi_ctrl_ev_task() [all …]
|
A 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/arch/arm/mach-exynos/ |
A 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() 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 …]
|
/linux/drivers/cpuidle/ |
A 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/drivers/net/wireless/st/cw1200/ |
A 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()
|
A 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()
|
A D | cw1200.h | 173 struct cw1200_pm_state pm_state; member
|
/linux/arch/x86/platform/olpc/ |
A 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/drivers/acpi/ |
A D | sleep.c | 535 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()
|
/linux/drivers/dma/sh/ |
A 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 …]
|
/linux/drivers/dma/qcom/ |
A D | gpi.c | 492 enum gpi_pm_state pm_state; member 515 enum gpi_pm_state pm_state; member 853 TO_GPI_PM_STR(gpii->pm_state)); in gpi_handle_irq() 1246 gchan->pm_state = ACTIVE_STATE; in gpi_start_chan() 1343 gpii->pm_state = ACTIVE_STATE; in gpi_alloc_ev_chan() 1571 gpii->pm_state = PAUSE_STATE; in gpi_pause() 1605 gpii->pm_state = ACTIVE_STATE; in gpi_resume() 1892 gchan->pm_state = CONFIG_STATE; in gpi_ch_init() 1978 cur_state = gchan->pm_state; in gpi_free_chan_resources() 2011 cur_state = gpii->pm_state; in gpi_free_chan_resources() [all …]
|
/linux/drivers/pnp/ |
A 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/drivers/tty/serial/ |
A D | serial_core.c | 49 enum uart_pm_state pm_state); 1825 enum uart_pm_state pm_state; in uart_line_info() local 1850 pm_state = state->pm_state; in uart_line_info() 1851 if (pm_state != UART_PM_STATE_ON) in uart_line_info() 1856 if (pm_state != UART_PM_STATE_ON) in uart_line_info() 1857 uart_change_pm(state, pm_state); in uart_line_info() 2140 enum uart_pm_state pm_state) in uart_change_pm() argument 2144 if (state->pm_state != pm_state) { in uart_change_pm() 2146 port->ops->pm(port, pm_state, state->pm_state); in uart_change_pm() 2147 state->pm_state = pm_state; in uart_change_pm() [all …]
|
/linux/drivers/media/platform/omap3isp/ |
A D | ispresizer.h | 103 int pm_state; member
|
/linux/drivers/dma/ |
A 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()
|
A 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()
|
/linux/drivers/dma/sf-pdma/ |
A D | sf-pdma.h | 98 enum sf_pdma_pm_state pm_state; member
|
/linux/include/linux/ |
A D | shdma-base.h | 72 enum shdma_pm_state pm_state; member
|
/linux/drivers/video/fbdev/nvidia/ |
A D | nv_type.h | 136 int pm_state; member
|
/linux/drivers/misc/cardreader/ |
A D | rts5209.c | 50 static void rts5209_force_power_down(struct rtsx_pcr *pcr, u8 pm_state) in rts5209_force_power_down() argument
|
A D | rts5229.c | 47 static void rts5229_force_power_down(struct rtsx_pcr *pcr, u8 pm_state) in rts5229_force_power_down() argument
|
A D | rtsx_pcr.c | 1131 static void rtsx_base_force_power_down(struct rtsx_pcr *pcr, u8 pm_state) in rtsx_base_force_power_down() argument 1145 static void __maybe_unused rtsx_pci_power_off(struct rtsx_pcr *pcr, u8 pm_state) in rtsx_pci_power_off() argument 1154 rtsx_pci_write_register(pcr, HOST_SLEEP_STATE, 0x03, pm_state); in rtsx_pci_power_off() 1157 pcr->ops->force_power_down(pcr, pm_state); in rtsx_pci_power_off() 1159 rtsx_base_force_power_down(pcr, pm_state); in rtsx_pci_power_off()
|