Home
last modified time | relevance | path

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

/drivers/i2c/chips/
Dtsl2550.c51 unsigned int power_state : 1; member
92 data->power_state = state; in tsl2550_set_power_state()
213 return sprintf(buf, "%u\n", data->power_state); in tsl2550_show_power_state()
237 static DEVICE_ATTR(power_state, S_IWUSR | S_IRUGO,
259 if (data->power_state == 0) in tsl2550_store_operating_mode()
308 if (!data->power_state) in tsl2550_show_lux1_input()
351 data->power_state = 1; in tsl2550_init_client()
/drivers/pnp/pnpacpi/
Dcore.c117 int power_state; in pnpacpi_suspend() local
119 power_state = acpi_pm_device_sleep_state(&dev->dev, NULL); in pnpacpi_suspend()
120 if (power_state < 0) in pnpacpi_suspend()
121 power_state = (state.event == PM_EVENT_ON) ? in pnpacpi_suspend()
124 return acpi_bus_set_power((acpi_handle) dev->data, power_state); in pnpacpi_suspend()
/drivers/acpi/
Dfan.c322 int power_state = 0; in acpi_fan_resume() local
327 result = acpi_bus_get_power(device->handle, &power_state); in acpi_fan_resume()
335 acpi_bus_set_power(device->handle, power_state); in acpi_fan_resume()
Dthermal.c1760 int i, j, power_state, result; in acpi_thermal_resume() local
1776 handles[j], &power_state); in acpi_thermal_resume()
1777 if (result || (power_state != ACPI_STATE_D0)) { in acpi_thermal_resume()
/drivers/ide/
Dpmac.c1217 if (mesg.event != mdev->ofdev.dev.power.power_state.event in pmac_ide_macio_suspend()
1221 mdev->ofdev.dev.power.power_state = mesg; in pmac_ide_macio_suspend()
1234 if (mdev->ofdev.dev.power.power_state.event != PM_EVENT_ON) { in pmac_ide_macio_resume()
1237 mdev->ofdev.dev.power.power_state = PMSG_ON; in pmac_ide_macio_resume()
1322 if (mesg.event != pdev->dev.power.power_state.event in pmac_ide_pci_suspend()
1326 pdev->dev.power.power_state = mesg; in pmac_ide_pci_suspend()
1338 if (pdev->dev.power.power_state.event != PM_EVENT_ON) { in pmac_ide_pci_resume()
1341 pdev->dev.power.power_state = PMSG_ON; in pmac_ide_pci_resume()
/drivers/video/
Dchipsfb.c460 if (state.event == pdev->dev.power.power_state.event) in chipsfb_pci_suspend()
470 pdev->dev.power.power_state = state; in chipsfb_pci_suspend()
483 pdev->dev.power.power_state = PMSG_ON; in chipsfb_pci_resume()
Dw100fb.c965 struct power_state { struct
976 static struct power_state w100_pwr_state; argument
/drivers/input/serio/
Di8042.c912 if (dev->dev.power.power_state.event != state.event) { in i8042_suspend()
916 dev->dev.power.power_state = state; in i8042_suspend()
934 if (dev->dev.power.power_state.event == PM_EVENT_ON) in i8042_resume()
982 dev->dev.power.power_state = PMSG_ON; in i8042_resume()
Dserio.c940 if (dev->power.power_state.event != state.event) { in serio_suspend()
944 dev->power.power_state = state; in serio_suspend()
956 if (dev->power.power_state.event != PM_EVENT_ON) { in serio_resume()
957 dev->power.power_state = PMSG_ON; in serio_resume()
/drivers/macintosh/
Dmediabay.c699 if (state.event != mdev->ofdev.dev.power.power_state.event in media_bay_suspend()
706 mdev->ofdev.dev.power.power_state = state; in media_bay_suspend()
715 if (mdev->ofdev.dev.power.power_state.event != PM_EVENT_ON) { in media_bay_resume()
716 mdev->ofdev.dev.power.power_state = PMSG_ON; in media_bay_resume()
/drivers/net/tulip/
Duli526x.c1180 pci_power_t power_state; in uli526x_suspend() local
1196 power_state = pci_choose_state(pdev, state); in uli526x_suspend()
1197 pci_enable_wake(pdev, power_state, 0); in uli526x_suspend()
1198 err = pci_set_power_state(pdev, power_state); in uli526x_suspend()
/drivers/media/dvb/dvb-usb/
Dvp702x.c33 u8 power_state; member
/drivers/serial/
Dpmac_zilog.c1625 if (pm_state.event == mdev->ofdev.dev.power.power_state.event) in pmz_suspend()
1669 mdev->ofdev.dev.power.power_state = pm_state; in pmz_suspend()
1685 if (mdev->ofdev.dev.power.power_state.event == PM_EVENT_ON) in pmz_resume()
1738 mdev->ofdev.dev.power.power_state.event = PM_EVENT_ON; in pmz_resume()
/drivers/video/aty/
Dradeon_pm.c2610 if (mesg.event == pdev->dev.power.power_state.event) in radeonfb_pci_suspend()
2694 pdev->dev.power.power_state = mesg; in radeonfb_pci_suspend()
2712 if (pdev->dev.power.power_state.event == PM_EVENT_ON) in radeonfb_pci_resume()
2722 pci_name(pdev), pdev->dev.power.power_state.event); in radeonfb_pci_resume()
2728 if (pdev->dev.power.power_state.event == PM_EVENT_SUSPEND) { in radeonfb_pci_resume()
2781 pdev->dev.power.power_state = PMSG_ON; in radeonfb_pci_resume()
Daty128fb.c2434 if (state.event == pdev->dev.power.power_state.event) in aty128_pci_suspend()
2473 pdev->dev.power.power_state = state; in aty128_pci_suspend()
2483 if (pdev->dev.power.power_state.event == PM_EVENT_ON) in aty128_do_resume()
2517 pdev->dev.power.power_state = PMSG_ON; in aty128_do_resume()
Datyfb_base.c1988 if (state.event == pdev->dev.power.power_state.event) in atyfb_pci_suspend()
2027 pdev->dev.power.power_state = state; in atyfb_pci_suspend()
2051 if (pdev->dev.power.power_state.event == PM_EVENT_ON) in atyfb_pci_resume()
2063 pdev->dev.power.power_state.event == PM_EVENT_SUSPEND) in atyfb_pci_resume()
2083 pdev->dev.power.power_state = PMSG_ON; in atyfb_pci_resume()
/drivers/input/mouse/
Dhgpk.c329 if (psmouse->ps2dev.serio->dev.power.power_state.event != in hgpk_reconnect()
/drivers/ata/
Dsata_inic162x.c804 if (pdev->dev.power.power_state.event == PM_EVENT_SUSPEND) { in inic_pci_device_resume()
Dsata_sil24.c1348 if (pdev->dev.power.power_state.event == PM_EVENT_SUSPEND) in sil24_pci_device_resume()
Dlibata-core.c5387 host->dev->power.power_state = mesg; in ata_host_suspend()
5406 host->dev->power.power_state = PMSG_ON; in ata_host_resume()
Dahci.c2323 if (pdev->dev.power.power_state.event == PM_EVENT_SUSPEND) { in ahci_pci_device_resume()
Dsata_nv.c2446 if (pdev->dev.power.power_state.event == PM_EVENT_SUSPEND) { in nv_pci_device_resume()
/drivers/video/nvidia/
Dnvidia.c1077 dev->dev.power.power_state = mesg; in nvidiafb_suspend()
/drivers/video/i810/
Di810_main.c1571 dev->dev.power.power_state = mesg; in i810fb_suspend()
/drivers/video/savage/
Dsavagefb_driver.c2385 dev->dev.power.power_state = mesg; in savagefb_suspend()