| /drivers/bus/mhi/host/ |
| A D | pm.c | 136 mhi_cntrl->pm_state = state; in mhi_tryset_pm_state() 137 return mhi_cntrl->pm_state; in mhi_tryset_pm_state() 589 to_mhi_pm_state_str(mhi_cntrl->pm_state), in mhi_pm_disable_transition() 609 to_mhi_pm_state_str(mhi_cntrl->pm_state), in mhi_pm_sys_error_transition() 617 prev_state = mhi_cntrl->pm_state; in mhi_pm_sys_error_transition() 754 to_mhi_pm_state_str(mhi_cntrl->pm_state), in mhi_pm_sys_error_transition() 1041 mhi_cntrl->pm_state == MHI_PM_M0 || in __mhi_device_get_sync() 1137 mhi_cntrl->pm_state = MHI_PM_DISABLE; in mhi_async_power_up() 1142 mhi_cntrl->pm_state = MHI_PM_POR; in mhi_async_power_up() 1199 mhi_cntrl->pm_state = MHI_PM_DISABLE; in mhi_async_power_up() [all …]
|
| A D | internal.h | 157 #define MHI_REG_ACCESS_VALID(pm_state) ((pm_state & (MHI_PM_POR | MHI_PM_M0 | \ argument 162 #define MHI_PM_IN_ERROR_STATE(pm_state) (pm_state >= MHI_PM_FW_DL_ERR) argument 163 #define MHI_PM_IN_FATAL_STATE(pm_state) (pm_state == MHI_PM_LD_ERR_FATAL_DETECT) argument 164 #define MHI_DB_ACCESS_VALID(mhi_cntrl) (mhi_cntrl->pm_state & mhi_cntrl->db_access) 165 #define MHI_WAKE_DB_CLEAR_VALID(pm_state) (pm_state & (MHI_PM_M0 | \ argument 167 #define MHI_WAKE_DB_SET_VALID(pm_state) (pm_state & MHI_PM_M2) argument 168 #define MHI_WAKE_DB_FORCE_SET_VALID(pm_state) MHI_WAKE_DB_CLEAR_VALID(pm_state) argument 169 #define MHI_EVENT_ACCESS_INVALID(pm_state) (pm_state == MHI_PM_DISABLE || \ argument 170 MHI_PM_IN_ERROR_STATE(pm_state)) 171 #define MHI_PM_IN_SUSPEND_STATE(pm_state) (pm_state & \ argument
|
| A D | trace.h | 152 TP_PROTO(struct mhi_controller *mhi_cntrl, int pm_state), 154 TP_ARGS(mhi_cntrl, pm_state), 158 __field(int, pm_state) 163 if (pm_state) 164 pm_state = __fls(pm_state); 165 __entry->pm_state = pm_state; 169 __print_symbolic(__entry->pm_state, MHI_PM_STATE_LIST))
|
| A 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() 199 if (MHI_REG_ACCESS_VALID(mhi_cntrl->pm_state)) { in mhi_fw_load_error_dump() 220 if (!MHI_REG_ACCESS_VALID(mhi_cntrl->pm_state)) { in mhi_fw_load_bhie() 245 MHI_PM_IN_ERROR_STATE(mhi_cntrl->pm_state) || in mhi_fw_load_bhie() 251 if (MHI_PM_IN_ERROR_STATE(mhi_cntrl->pm_state) || in mhi_fw_load_bhie() 268 if (!MHI_REG_ACCESS_VALID(mhi_cntrl->pm_state)) { in mhi_fw_load_bhi() 285 MHI_PM_IN_ERROR_STATE(mhi_cntrl->pm_state) || in mhi_fw_load_bhi() 289 if (MHI_PM_IN_ERROR_STATE(mhi_cntrl->pm_state)) in mhi_fw_load_bhi() 502 if (MHI_PM_IN_ERROR_STATE(mhi_cntrl->pm_state)) { in mhi_fw_load_handler()
|
| A D | main.c | 486 enum mhi_pm_state pm_state = 0; in mhi_intvec_threaded_handler() local 490 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) in mhi_intvec_threaded_handler() 888 enum mhi_pm_state pm_state; in mhi_process_ctrl_ev_ring() local 892 pm_state = mhi_tryset_pm_state(mhi_cntrl, in mhi_process_ctrl_ev_ring() 895 if (pm_state == MHI_PM_SYS_ERR_DETECT) in mhi_process_ctrl_ev_ring() 1079 enum mhi_pm_state pm_state = 0; in mhi_ctrl_ev_task() local 1087 if (!MHI_REG_ACCESS_VALID(mhi_cntrl->pm_state)) { in mhi_ctrl_ev_task() 1110 pm_state = mhi_tryset_pm_state(mhi_cntrl, in mhi_ctrl_ev_task() [all …]
|
| A D | debugfs.c | 22 to_mhi_pm_state_str(mhi_cntrl->pm_state), in mhi_debugfs_states_show() 205 if (!MHI_REG_ACCESS_VALID(mhi_cntrl->pm_state)) in mhi_debugfs_regdump_show() 209 to_mhi_pm_state_str(mhi_cntrl->pm_state), in mhi_debugfs_regdump_show()
|
| /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()
|
| /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 | 425 err = cw1200_pm_init(&priv->pm_state, priv); in cw1200_register_common() 438 cw1200_pm_deinit(&priv->pm_state); in cw1200_register_common() 483 cw1200_pm_deinit(&priv->pm_state); in cw1200_unregister_common()
|
| A D | cw1200.h | 173 struct cw1200_pm_state pm_state; member
|
| /drivers/acpi/ |
| A D | sleep.c | 562 static int acpi_suspend_begin(suspend_state_t pm_state) in acpi_suspend_begin() argument 564 u32 acpi_state = acpi_suspend_states[pm_state]; in acpi_suspend_begin() 590 static int acpi_suspend_enter(suspend_state_t pm_state) in acpi_suspend_enter() argument 664 static int acpi_suspend_state_valid(suspend_state_t pm_state) in acpi_suspend_state_valid() argument 668 switch (pm_state) { in acpi_suspend_state_valid() 672 acpi_state = acpi_suspend_states[pm_state]; in acpi_suspend_state_valid() 696 static int acpi_suspend_begin_old(suspend_state_t pm_state) in acpi_suspend_begin_old() argument 698 int error = acpi_suspend_begin(pm_state); in acpi_suspend_begin_old()
|
| /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() 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 …]
|
| /drivers/dma/qcom/ |
| A D | gpi.c | 488 enum gpi_pm_state pm_state; member 511 enum gpi_pm_state pm_state; member 838 TO_GPI_PM_STR(gpii->pm_state)); in gpi_handle_irq() 1230 gchan->pm_state = ACTIVE_STATE; in gpi_start_chan() 1327 gpii->pm_state = ACTIVE_STATE; in gpi_alloc_ev_chan() 1555 gpii->pm_state = PAUSE_STATE; in gpi_pause() 1589 gpii->pm_state = ACTIVE_STATE; in gpi_resume() 1898 gchan->pm_state = CONFIG_STATE; in gpi_ch_init() 1983 cur_state = gchan->pm_state; in gpi_free_chan_resources() 2016 cur_state = gpii->pm_state; in gpi_free_chan_resources() [all …]
|
| /drivers/pnp/ |
| A D | card.c | 88 clink->pm_state = PMSG_ON; in card_probe() 363 if (link->pm_state.event == state.event) in card_suspend() 365 link->pm_state = state; in card_suspend() 373 if (link->pm_state.event == PM_EVENT_ON) in card_resume() 375 link->pm_state = PMSG_ON; in card_resume()
|
| /drivers/tty/serial/ |
| A D | serial_core.c | 56 enum uart_pm_state pm_state); 2018 enum uart_pm_state pm_state; in uart_line_info() local 2044 pm_state = state->pm_state; in uart_line_info() 2045 if (pm_state != UART_PM_STATE_ON) in uart_line_info() 2307 enum uart_pm_state pm_state) in uart_change_pm() argument 2311 if (state->pm_state != pm_state) { in uart_change_pm() 2313 port->ops->pm(port, pm_state, state->pm_state); in uart_change_pm() 2314 state->pm_state = pm_state; in uart_change_pm() 2627 enum uart_pm_state pm_state; in uart_poll_init() local 2645 pm_state = state->pm_state; in uart_poll_init() [all …]
|
| /drivers/dma/ |
| A D | fsldma.c | 417 if (unlikely(chan->pm_state != RUNNING)) { in fsl_dma_tx_submit() 1181 chan->pm_state = RUNNING; in fsl_dma_chan_probe() 1347 chan->pm_state = SUSPENDED; in fsldma_suspend_late() 1357 chan->pm_state = RUNNING; in fsldma_suspend_late() 1379 chan->pm_state = RUNNING; in fsldma_resume_early()
|
| A D | fsl-edma-main.c | 808 fsl_chan->pm_state = RUNNING; in fsl_edma_probe() 940 fsl_chan->pm_state = SUSPENDED; in fsl_edma_suspend_late() 958 fsl_chan->pm_state = RUNNING; in fsl_edma_resume_early()
|
| A D | fsldma.h | 181 enum fsldma_pm_state pm_state; member
|
| /drivers/media/platform/ti/omap3isp/ |
| A D | ispresizer.h | 103 int pm_state; member
|
| /drivers/dma/sf-pdma/ |
| A D | sf-pdma.h | 94 enum sf_pdma_pm_state pm_state; member
|
| /drivers/video/fbdev/nvidia/ |
| A D | nv_type.h | 136 int pm_state; member
|
| /drivers/misc/cardreader/ |
| A 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
|
| A D | rts5229.c | 47 static void rts5229_force_power_down(struct rtsx_pcr *pcr, u8 pm_state, bool runtime) in rts5229_force_power_down() argument
|
| A D | rts5261.c | 60 static void rts5261_force_power_down(struct rtsx_pcr *pcr, u8 pm_state, bool runtime) in rts5261_force_power_down() argument 68 if (pm_state == HOST_ENTER_S3) in rts5261_force_power_down()
|
| /drivers/net/ethernet/mellanox/mlx5/core/ipoib/ |
| A D | ipoib.c | 215 MLX5_SET(qpc, qpc, pm_state, MLX5_QP_PM_MIGRATED); in mlx5i_init_underlay_qp() 290 MLX5_SET(qpc, qpc, pm_state, MLX5_QP_PM_MIGRATED); in mlx5i_create_underlay_qp()
|