/drivers/i2c/chips/ |
D | tsl2550.c | 51 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/ |
D | core.c | 117 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/ |
D | fan.c | 322 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()
|
D | thermal.c | 1760 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/ |
D | pmac.c | 1217 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/ |
D | chipsfb.c | 460 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()
|
D | w100fb.c | 965 struct power_state { struct 976 static struct power_state w100_pwr_state; argument
|
/drivers/input/serio/ |
D | i8042.c | 912 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()
|
D | serio.c | 940 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/ |
D | mediabay.c | 699 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/ |
D | uli526x.c | 1180 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/ |
D | vp702x.c | 33 u8 power_state; member
|
/drivers/serial/ |
D | pmac_zilog.c | 1625 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/ |
D | radeon_pm.c | 2610 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()
|
D | aty128fb.c | 2434 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()
|
D | atyfb_base.c | 1988 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/ |
D | hgpk.c | 329 if (psmouse->ps2dev.serio->dev.power.power_state.event != in hgpk_reconnect()
|
/drivers/ata/ |
D | sata_inic162x.c | 804 if (pdev->dev.power.power_state.event == PM_EVENT_SUSPEND) { in inic_pci_device_resume()
|
D | sata_sil24.c | 1348 if (pdev->dev.power.power_state.event == PM_EVENT_SUSPEND) in sil24_pci_device_resume()
|
D | libata-core.c | 5387 host->dev->power.power_state = mesg; in ata_host_suspend() 5406 host->dev->power.power_state = PMSG_ON; in ata_host_resume()
|
D | ahci.c | 2323 if (pdev->dev.power.power_state.event == PM_EVENT_SUSPEND) { in ahci_pci_device_resume()
|
D | sata_nv.c | 2446 if (pdev->dev.power.power_state.event == PM_EVENT_SUSPEND) { in nv_pci_device_resume()
|
/drivers/video/nvidia/ |
D | nvidia.c | 1077 dev->dev.power.power_state = mesg; in nvidiafb_suspend()
|
/drivers/video/i810/ |
D | i810_main.c | 1571 dev->dev.power.power_state = mesg; in i810fb_suspend()
|
/drivers/video/savage/ |
D | savagefb_driver.c | 2385 dev->dev.power.power_state = mesg; in savagefb_suspend()
|