Home
last modified time | relevance | path

Searched refs:suspend_state (Results 1 – 25 of 26) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/char/
Dapm-emulation.c111 enum apm_suspend_state suspend_state; member
225 if (as->suspend_state == SUSPEND_PENDING && in apm_read()
227 as->suspend_state = SUSPEND_READ; in apm_read()
273 switch (as->suspend_state) { in apm_ioctl()
280 as->suspend_state = SUSPEND_ACKED; in apm_ioctl()
298 as->suspend_state != SUSPEND_ACKED)) in apm_ioctl()
306 as->suspend_state = SUSPEND_WAIT; in apm_ioctl()
319 as->suspend_state = SUSPEND_NONE; in apm_ioctl()
342 if (as->suspend_state == SUSPEND_PENDING || in apm_release()
343 as->suspend_state == SUSPEND_READ) in apm_release()
[all …]
/kernel/linux/linux-5.10/drivers/regulator/
Dof_regulator.c30 struct regulator_state *suspend_state; in of_get_regulation_constraints() local
194 suspend_state = &constraints->state_mem; in of_get_regulation_constraints()
197 suspend_state = &constraints->state_disk; in of_get_regulation_constraints()
200 suspend_state = &constraints->state_standby; in of_get_regulation_constraints()
209 if (!suspend_np || !suspend_state) in of_get_regulation_constraints()
220 suspend_state->mode = mode; in of_get_regulation_constraints()
229 suspend_state->enabled = ENABLE_IN_SUSPEND; in of_get_regulation_constraints()
232 suspend_state->enabled = DISABLE_IN_SUSPEND; in of_get_regulation_constraints()
236 suspend_state->min_uV = pval; in of_get_regulation_constraints()
240 suspend_state->max_uV = pval; in of_get_regulation_constraints()
[all …]
Ds2mps11.c40 DECLARE_BITMAP(suspend_state, S2MPS_REGULATOR_MAX);
236 if (test_bit(rdev_id, s2mps11->suspend_state)) in s2mps11_regulator_enable()
243 if (test_bit(rdev_id, s2mps11->suspend_state)) in s2mps11_regulator_enable()
251 if (test_bit(rdev_id, s2mps11->suspend_state)) in s2mps11_regulator_enable()
317 set_bit(rdev_id, s2mps11->suspend_state); in s2mps11_regulator_set_suspend_disable()
/kernel/linux/linux-5.10/drivers/gpu/drm/stm/
Ddrv.c123 WARN_ON(ldev->suspend_state); in drv_suspend()
129 ldev->suspend_state = state; in drv_suspend()
141 if (WARN_ON(!ldev->suspend_state)) in drv_resume()
145 ret = drm_atomic_helper_resume(ddev, ldev->suspend_state); in drv_resume()
149 ldev->suspend_state = NULL; in drv_resume()
Dltdc.h40 struct drm_atomic_state *suspend_state; member
/kernel/linux/linux-5.10/drivers/soc/ti/
Dpm33xx.c189 static int am33xx_pm_suspend(suspend_state_t suspend_state) in am33xx_pm_suspend() argument
193 if (suspend_state == PM_SUSPEND_MEM && in am33xx_pm_suspend()
204 ret = pm_ops->soc_suspend(suspend_state, am33xx_rtc_only_idle, in am33xx_pm_suspend()
217 ret = pm_ops->soc_suspend(suspend_state, am33xx_do_wfi_sram, in am33xx_pm_suspend()
252 if (suspend_state == PM_SUSPEND_MEM && pm_ops->check_off_mode_enable()) in am33xx_pm_suspend()
258 static int am33xx_pm_enter(suspend_state_t suspend_state) in am33xx_pm_enter() argument
262 switch (suspend_state) { in am33xx_pm_enter()
265 ret = am33xx_pm_suspend(suspend_state); in am33xx_pm_enter()
/kernel/linux/linux-5.10/drivers/gpu/drm/
Ddrm_modeset_helper.c211 dev->mode_config.suspend_state = state; in drm_mode_config_helper_suspend()
238 if (WARN_ON(!dev->mode_config.suspend_state)) in drm_mode_config_helper_resume()
241 ret = drm_atomic_helper_resume(dev, dev->mode_config.suspend_state); in drm_mode_config_helper_resume()
244 dev->mode_config.suspend_state = NULL; in drm_mode_config_helper_resume()
/kernel/linux/linux-5.10/drivers/mfd/
Dtc6393xb.c103 } suspend_state; member
766 tc6393xb->suspend_state.ccr = ioread16(tc6393xb->scr + SCR_CCR); in tc6393xb_suspend()
767 tc6393xb->suspend_state.fer = ioread8(tc6393xb->scr + SCR_FER); in tc6393xb_suspend()
770 tc6393xb->suspend_state.gpo_dsr[i] = in tc6393xb_suspend()
772 tc6393xb->suspend_state.gpo_doecr[i] = in tc6393xb_suspend()
774 tc6393xb->suspend_state.gpi_bcr[i] = in tc6393xb_suspend()
801 iowrite8(tc6393xb->suspend_state.fer, tc6393xb->scr + SCR_FER); in tc6393xb_resume()
803 iowrite16(tc6393xb->suspend_state.ccr, tc6393xb->scr + SCR_CCR); in tc6393xb_resume()
812 iowrite8(tc6393xb->suspend_state.gpo_dsr[i], in tc6393xb_resume()
814 iowrite8(tc6393xb->suspend_state.gpo_doecr[i], in tc6393xb_resume()
[all …]
/kernel/linux/linux-5.10/drivers/input/misc/
Dmax77693-haptic.c58 bool suspend_state; member
307 haptic->suspend_state = false; in max77693_haptic_probe()
385 haptic->suspend_state = true; in max77693_haptic_suspend()
396 if (haptic->suspend_state) { in max77693_haptic_resume()
398 haptic->suspend_state = false; in max77693_haptic_resume()
/kernel/linux/linux-5.10/arch/arm/mach-omap2/
Dpm.c80 static int omap_pm_enter(suspend_state_t suspend_state) in omap_pm_enter() argument
87 switch (suspend_state) { in omap_pm_enter()
/kernel/linux/linux-5.10/drivers/net/wireless/st/cw1200/
Dpm.c259 pm_state->suspend_state = state; in cw1200_wow_suspend()
308 state = pm_state->suspend_state; in cw1200_wow_resume()
309 pm_state->suspend_state = NULL; in cw1200_wow_resume()
Dpm.h19 struct cw1200_suspend_state *suspend_state; member
/kernel/linux/linux-5.10/drivers/scsi/aic7xxx/
Daic79xx_pci.c388 ahd->suspend_state.pci_state.devconfig = in ahd_pci_suspend()
390 ahd->suspend_state.pci_state.command = in ahd_pci_suspend()
392 ahd->suspend_state.pci_state.csize_lattime = in ahd_pci_suspend()
401 ahd->suspend_state.pci_state.devconfig, /*bytes*/4); in ahd_pci_resume()
403 ahd->suspend_state.pci_state.command, /*bytes*/1); in ahd_pci_resume()
405 ahd->suspend_state.pci_state.csize_lattime, /*bytes*/1); in ahd_pci_resume()
Daic79xx.h1204 struct ahd_suspend_state suspend_state; member
/kernel/linux/linux-5.10/arch/arm/mach-shmobile/
Dsuspend.c19 static int shmobile_suspend_default_enter(suspend_state_t suspend_state) in shmobile_suspend_default_enter() argument
/kernel/linux/linux-5.10/sound/pci/
Dsis7019.c128 void *suspend_state[SIS_SUSPEND_PAGES]; member
375 sis->suspend_state[0], in __sis_map_silence()
1016 kfree(sis->suspend_state[i]); in sis_free_suspend()
1200 memcpy_fromio(sis->suspend_state[i], ioaddr, 4096); in sis_suspend()
1230 memcpy_toio(ioaddr, sis->suspend_state[i], 4096); in sis_resume()
1234 memset(sis->suspend_state[0], 0, 4096); in sis_resume()
1269 sis->suspend_state[i] = kmalloc(4096, GFP_KERNEL); in sis_alloc_suspend()
1270 if (!sis->suspend_state[i]) in sis_alloc_suspend()
1273 memset(sis->suspend_state[0], 0, 4096); in sis_alloc_suspend()
/kernel/linux/linux-5.10/drivers/gpu/drm/mediatek/
Dmtk_drm_drv.h46 struct drm_atomic_state *suspend_state; member
/kernel/linux/linux-5.10/include/drm/
Ddrm_mode_config.h945 struct drm_atomic_state *suspend_state; member
/kernel/linux/linux-5.10/drivers/gpu/drm/vmwgfx/
Dvmwgfx_kms.c2647 dev_priv->suspend_state = drm_atomic_helper_suspend(dev); in vmw_kms_suspend()
2648 if (IS_ERR(dev_priv->suspend_state)) { in vmw_kms_suspend()
2649 int ret = PTR_ERR(dev_priv->suspend_state); in vmw_kms_suspend()
2652 dev_priv->suspend_state = NULL; in vmw_kms_suspend()
2675 if (WARN_ON(!dev_priv->suspend_state)) in vmw_kms_resume()
2678 ret = drm_atomic_helper_resume(dev, dev_priv->suspend_state); in vmw_kms_resume()
2679 dev_priv->suspend_state = NULL; in vmw_kms_resume()
Dvmwgfx_drv.c1397 if (dev_priv->suspend_state) in vmw_pm_freeze()
1434 if (dev_priv->suspend_state) in vmw_pm_restore()
Dvmwgfx_drv.h544 struct drm_atomic_state *suspend_state; member
/kernel/linux/linux-5.10/include/net/bluetooth/
Dmgmt.h1037 __u8 suspend_state; member
Dhci_core.h484 enum suspended_state suspend_state; member
/kernel/linux/linux-5.10/drivers/usb/serial/
Dcp210x.c494 __le16 suspend_state; member
509 __le16 suspend_state; member
/kernel/linux/linux-5.10/net/bluetooth/
Dhci_request.c1192 if (next == hdev->suspend_state) { in hci_req_prepare_suspend()
1197 hdev->suspend_state = next; in hci_req_prepare_suspend()
1305 hdev->suspend_state = next; in hci_req_prepare_suspend()

12