Home
last modified time | relevance | path

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

/linux/drivers/char/
H A Dapm-emulation.c111 enum apm_suspend_state suspend_state; member
214 if (as->suspend_state == SUSPEND_PENDING && in apm_read()
216 as->suspend_state = SUSPEND_READ; in apm_read()
262 switch (as->suspend_state) { in apm_ioctl()
269 as->suspend_state = SUSPEND_ACKED; in apm_ioctl()
287 as->suspend_state != SUSPEND_ACKED)) in apm_ioctl()
295 as->suspend_state = SUSPEND_WAIT; in apm_ioctl()
308 as->suspend_state = SUSPEND_NONE; in apm_ioctl()
331 if (as->suspend_state == SUSPEND_PENDING || in apm_release()
332 as->suspend_state == SUSPEND_READ) in apm_release()
[all …]
/linux/drivers/regulator/
H A Dof_regulator.c86 struct regulator_state *suspend_state; in of_get_regulation_constraints() local
264 suspend_state = &constraints->state_mem; in of_get_regulation_constraints()
267 suspend_state = &constraints->state_disk; in of_get_regulation_constraints()
270 suspend_state = &constraints->state_standby; in of_get_regulation_constraints()
281 if (!suspend_state) { in of_get_regulation_constraints()
294 suspend_state->mode = mode; in of_get_regulation_constraints()
303 suspend_state->enabled = ENABLE_IN_SUSPEND; in of_get_regulation_constraints()
306 suspend_state->enabled = DISABLE_IN_SUSPEND; in of_get_regulation_constraints()
310 suspend_state->min_uV = pval; in of_get_regulation_constraints()
314 suspend_state->max_uV = pval; in of_get_regulation_constraints()
[all …]
H A Ds2mps11.c50 DECLARE_BITMAP(suspend_state, S2MPS_REGULATOR_MAX);
255 if (test_bit(rdev_id, s2mps11->suspend_state)) in s2mps11_regulator_enable()
262 if (test_bit(rdev_id, s2mps11->suspend_state)) in s2mps11_regulator_enable()
270 if (test_bit(rdev_id, s2mps11->suspend_state)) in s2mps11_regulator_enable()
339 set_bit(rdev_id, s2mps11->suspend_state); in s2mps11_regulator_set_suspend_disable()
/linux/drivers/soc/ti/
H A Dpm33xx.c188 static int am33xx_pm_suspend(suspend_state_t suspend_state) in am33xx_pm_suspend() argument
192 if (suspend_state == PM_SUSPEND_MEM && in am33xx_pm_suspend()
203 ret = pm_ops->soc_suspend(suspend_state, am33xx_rtc_only_idle, in am33xx_pm_suspend()
216 ret = pm_ops->soc_suspend(suspend_state, am33xx_do_wfi_sram, in am33xx_pm_suspend()
251 if (suspend_state == PM_SUSPEND_MEM && pm_ops->check_off_mode_enable()) in am33xx_pm_suspend()
257 static int am33xx_pm_enter(suspend_state_t suspend_state) in am33xx_pm_enter() argument
261 switch (suspend_state) { in am33xx_pm_enter()
264 ret = am33xx_pm_suspend(suspend_state); in am33xx_pm_enter()
/linux/drivers/input/misc/
H A Dmax77693-haptic.c60 bool suspend_state; member
317 haptic->suspend_state = false; in max77693_haptic_probe()
390 haptic->suspend_state = true; in max77693_haptic_suspend()
401 if (haptic->suspend_state) { in max77693_haptic_resume()
403 haptic->suspend_state = false; in max77693_haptic_resume()
/linux/arch/arm/mach-omap2/
H A Dpm.c74 static int omap_pm_enter(suspend_state_t suspend_state) in omap_pm_enter() argument
81 switch (suspend_state) { in omap_pm_enter()
/linux/drivers/scsi/aic7xxx/
H A Daic79xx_pci.c387 ahd->suspend_state.pci_state.devconfig = in ahd_pci_suspend()
389 ahd->suspend_state.pci_state.command = in ahd_pci_suspend()
391 ahd->suspend_state.pci_state.csize_lattime = in ahd_pci_suspend()
400 ahd->suspend_state.pci_state.devconfig, /*bytes*/4); in ahd_pci_resume()
402 ahd->suspend_state.pci_state.command, /*bytes*/1); in ahd_pci_resume()
404 ahd->suspend_state.pci_state.csize_lattime, /*bytes*/1); in ahd_pci_resume()
H A Daic79xx.h1204 struct ahd_suspend_state suspend_state; member
/linux/drivers/net/wireless/st/cw1200/
H A 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()
H A Dpm.h19 struct cw1200_suspend_state *suspend_state; member
/linux/arch/arm/mach-shmobile/
H A Dsuspend.c19 static int shmobile_suspend_default_enter(suspend_state_t suspend_state) in shmobile_suspend_default_enter() argument
/linux/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_kms.c1677 dev_priv->suspend_state = drm_atomic_helper_suspend(dev); in vmw_kms_suspend()
1678 if (IS_ERR(dev_priv->suspend_state)) { in vmw_kms_suspend()
1679 int ret = PTR_ERR(dev_priv->suspend_state); in vmw_kms_suspend()
1682 dev_priv->suspend_state = NULL; in vmw_kms_suspend()
1705 if (WARN_ON(!dev_priv->suspend_state)) in vmw_kms_resume()
1708 ret = drm_atomic_helper_resume(dev, dev_priv->suspend_state); in vmw_kms_resume()
1709 dev_priv->suspend_state = NULL; in vmw_kms_resume()
H A Dvmwgfx_drv.c1523 if (dev_priv->suspend_state) in vmw_pm_freeze()
1554 if (dev_priv->suspend_state) in vmw_pm_restore()
H A Dvmwgfx_drv.h510 struct drm_atomic_state *suspend_state; member
/linux/drivers/usb/serial/
H A Dcp210x.c516 __le16 suspend_state; member
531 __le16 suspend_state; member
583 struct cp210x_quad_port_state suspend_state; member
/linux/include/net/bluetooth/
H A Dmgmt.h1154 __u8 suspend_state; member
H A Dhci_core.h549 enum suspended_state suspend_state; member
/linux/net/bluetooth/
H A Dhci_sync.c6265 hdev->suspend_state = BT_RUNNING; in hci_suspend_sync()
6280 hdev->suspend_state = BT_SUSPEND_DISCONNECT; in hci_suspend_sync()
6296 hdev->suspend_state = BT_SUSPEND_CONFIGURE_WAKE; in hci_suspend_sync()
H A Dhci_core.c2854 mgmt_suspending(hdev, hdev->suspend_state); in hci_suspend_dev()
H A Dmgmt.c10576 ev.suspend_state = state; in mgmt_suspending()