Home
last modified time | relevance | path

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

123

/linux-6.12.1/drivers/bus/mhi/host/
Dpm.c123 unsigned long cur_state = mhi_cntrl->pm_state; in mhi_tryset_pm_state()
136 mhi_cntrl->pm_state = state; in mhi_tryset_pm_state()
137 return mhi_cntrl->pm_state; in mhi_tryset_pm_state()
180 if (MHI_PM_IN_FATAL_STATE(mhi_cntrl->pm_state)) { in mhi_ready_state_transition()
218 if (!MHI_REG_ACCESS_VALID(mhi_cntrl->pm_state)) { in mhi_ready_state_transition()
404 if (MHI_REG_ACCESS_VALID(mhi_cntrl->pm_state)) in mhi_pm_mission_mode_transition()
408 mhi_cntrl->pm_state = MHI_PM_LD_ERR_FATAL_DETECT; in mhi_pm_mission_mode_transition()
429 if (MHI_PM_IN_ERROR_STATE(mhi_cntrl->pm_state)) { in mhi_pm_mission_mode_transition()
483 to_mhi_pm_state_str(mhi_cntrl->pm_state)); in mhi_pm_disable_transition()
488 if (!MHI_PM_IN_FATAL_STATE(mhi_cntrl->pm_state)) { in mhi_pm_disable_transition()
[all …]
Dinternal.h150 #define MHI_REG_ACCESS_VALID(pm_state) ((pm_state & (MHI_PM_POR | MHI_PM_M0 | \ argument
155 #define MHI_PM_IN_ERROR_STATE(pm_state) (pm_state >= MHI_PM_FW_DL_ERR) argument
156 #define MHI_PM_IN_FATAL_STATE(pm_state) (pm_state == MHI_PM_LD_ERR_FATAL_DETECT) argument
157 #define MHI_DB_ACCESS_VALID(mhi_cntrl) (mhi_cntrl->pm_state & mhi_cntrl->db_access)
158 #define MHI_WAKE_DB_CLEAR_VALID(pm_state) (pm_state & (MHI_PM_M0 | \ argument
160 #define MHI_WAKE_DB_SET_VALID(pm_state) (pm_state & MHI_PM_M2) argument
161 #define MHI_WAKE_DB_FORCE_SET_VALID(pm_state) MHI_WAKE_DB_CLEAR_VALID(pm_state) argument
162 #define MHI_EVENT_ACCESS_INVALID(pm_state) (pm_state == MHI_PM_DISABLE || \ argument
163 MHI_PM_IN_ERROR_STATE(pm_state))
164 #define MHI_PM_IN_SUSPEND_STATE(pm_state) (pm_state & \ argument
Dtrace.h151 TP_PROTO(struct mhi_controller *mhi_cntrl, int pm_state),
153 TP_ARGS(mhi_cntrl, pm_state),
157 __field(int, pm_state)
162 if (pm_state)
163 pm_state = __fls(pm_state);
164 __entry->pm_state = pm_state;
168 __print_symbolic(__entry->pm_state, MHI_PM_STATE_LIST))
Dboot.c76 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()
190 if (!MHI_REG_ACCESS_VALID(mhi_cntrl->pm_state)) { in mhi_fw_load_bhie()
215 MHI_PM_IN_ERROR_STATE(mhi_cntrl->pm_state) || in mhi_fw_load_bhie()
221 if (MHI_PM_IN_ERROR_STATE(mhi_cntrl->pm_state) || in mhi_fw_load_bhie()
249 if (!MHI_REG_ACCESS_VALID(mhi_cntrl->pm_state)) { in mhi_fw_load_bhi()
268 MHI_PM_IN_ERROR_STATE(mhi_cntrl->pm_state) || in mhi_fw_load_bhi()
272 if (MHI_PM_IN_ERROR_STATE(mhi_cntrl->pm_state)) in mhi_fw_load_bhi()
278 if (MHI_REG_ACCESS_VALID(mhi_cntrl->pm_state)) { in mhi_fw_load_bhi()
400 if (MHI_PM_IN_ERROR_STATE(mhi_cntrl->pm_state)) { in mhi_fw_load_handler()
Dmain.c486 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()
824 if (unlikely(MHI_EVENT_ACCESS_INVALID(mhi_cntrl->pm_state))) in mhi_process_ctrl_ev_ring()
878 enum mhi_pm_state pm_state; in mhi_process_ctrl_ev_ring() local
882 pm_state = mhi_tryset_pm_state(mhi_cntrl, in mhi_process_ctrl_ev_ring()
885 if (pm_state == MHI_PM_SYS_ERR_DETECT) in mhi_process_ctrl_ev_ring()
991 if (unlikely(MHI_EVENT_ACCESS_INVALID(mhi_cntrl->pm_state))) in mhi_process_data_event_ring()
1069 enum mhi_pm_state pm_state = 0; in mhi_ctrl_ev_task() local
[all …]
Ddebugfs.c21 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.12.1/arch/arm/mach-exynos/
Dsuspend.c71 static struct exynos_pm_state pm_state; variable
336 pm_state.pmu_spare3 = pmu_raw_readl(S5P_PMU_SPARE3); in exynos5420_pm_prepare()
344 pm_state.cpu_state = readl_relaxed(pm_state.sysram_base + in exynos5420_pm_prepare()
346 writel_relaxed(0x0, pm_state.sysram_base + EXYNOS5420_CPU_STATE); in exynos5420_pm_prepare()
347 if (pm_state.secure_firmware) in exynos5420_pm_prepare()
348 exynos_smc(SMC_CMD_REG, SMC_REG_ID_SFR_W(pm_state.sysram_phys + in exynos5420_pm_prepare()
487 writel_relaxed(pm_state.cpu_state, in exynos5420_pm_resume()
488 pm_state.sysram_base + EXYNOS5420_CPU_STATE); in exynos5420_pm_resume()
489 if (pm_state.secure_firmware) in exynos5420_pm_resume()
491 SMC_REG_ID_SFR_W(pm_state.sysram_phys + in exynos5420_pm_resume()
[all …]
/linux-6.12.1/drivers/cpuidle/
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()
/linux-6.12.1/drivers/net/wireless/st/cw1200/
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()
Dmain.c425 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()
Dcw1200.h173 struct cw1200_pm_state pm_state; member
/linux-6.12.1/arch/x86/platform/olpc/
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()
/linux-6.12.1/drivers/acpi/
Dsleep.c562 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()
/linux-6.12.1/sound/soc/sof/
Dtrace.c39 void sof_fw_trace_suspend(struct snd_sof_dev *sdev, pm_message_t pm_state) in sof_fw_trace_suspend() argument
44 sdev->ipc->ops->fw_tracing->suspend(sdev, pm_state); in sof_fw_trace_suspend()
Dpm.c201 pm_message_t pm_state; in sof_suspend() local
235 pm_state.event = target_state; in sof_suspend()
238 sof_fw_trace_suspend(sdev, pm_state); in sof_suspend()
241 sof_suspend_clients(sdev, pm_state); in sof_suspend()
/linux-6.12.1/drivers/dma/sh/
Dshdma-base.c113 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.12.1/drivers/dma/qcom/
Dgpi.c486 enum gpi_pm_state pm_state; member
509 enum gpi_pm_state pm_state; member
845 if (!REG_ACCESS_VALID(gpii->pm_state)) { in gpi_handle_irq()
847 TO_GPI_PM_STR(gpii->pm_state)); in gpi_handle_irq()
938 if (gchan->pm_state != ACTIVE_STATE) { in gpi_process_imed_data_event()
940 TO_GPI_PM_STR(gchan->pm_state)); in gpi_process_imed_data_event()
1018 if (unlikely(gchan->pm_state != ACTIVE_STATE)) { in gpi_process_xfer_compl_event()
1020 TO_GPI_PM_STR(gchan->pm_state)); in gpi_process_xfer_compl_event()
1148 if (!REG_ACCESS_VALID(gpii->pm_state)) { in gpi_ev_tasklet()
1151 TO_GPI_PM_STR(gpii->pm_state)); in gpi_ev_tasklet()
[all …]
/linux-6.12.1/drivers/pnp/
Dcard.c88 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.12.1/drivers/tty/serial/
Dserial_core.c56 enum uart_pm_state pm_state);
2036 enum uart_pm_state pm_state; in uart_line_info() local
2062 pm_state = state->pm_state; in uart_line_info()
2063 if (pm_state != UART_PM_STATE_ON) in uart_line_info()
2068 if (pm_state != UART_PM_STATE_ON) in uart_line_info()
2069 uart_change_pm(state, pm_state); in uart_line_info()
2352 enum uart_pm_state pm_state) in uart_change_pm() argument
2356 if (state->pm_state != pm_state) { in uart_change_pm()
2358 port->ops->pm(port, pm_state, state->pm_state); in uart_change_pm()
2359 state->pm_state = pm_state; in uart_change_pm()
[all …]
/linux-6.12.1/drivers/media/platform/ti/omap3isp/
Dispresizer.h103 int pm_state; member
/linux-6.12.1/drivers/dma/sf-pdma/
Dsf-pdma.h94 enum sf_pdma_pm_state pm_state; member
/linux-6.12.1/include/linux/
Dshdma-base.h72 enum shdma_pm_state pm_state; member
/linux-6.12.1/drivers/dma/
Dfsldma.c417 if (unlikely(chan->pm_state != RUNNING)) { in fsl_dma_tx_submit()
1181 chan->pm_state = RUNNING; in fsl_dma_chan_probe()
1345 chan->pm_state = SUSPENDED; in fsldma_suspend_late()
1355 chan->pm_state = RUNNING; in fsldma_suspend_late()
1377 chan->pm_state = RUNNING; in fsldma_resume_early()
Dfsl-edma-main.c564 fsl_chan->pm_state = RUNNING; in fsl_edma_probe()
696 fsl_chan->pm_state = SUSPENDED; in fsl_edma_suspend_late()
714 fsl_chan->pm_state = RUNNING; in fsl_edma_resume_early()
/linux-6.12.1/drivers/video/fbdev/nvidia/
Dnv_type.h136 int pm_state; member

123