Home
last modified time | relevance | path

Searched refs:current_state (Results 1 – 16 of 16) sorted by relevance

/drivers/pci/
Dpci-driver.c288 if (pci_dev->current_state == PCI_D0) in pci_device_remove()
289 pci_dev->current_state = PCI_UNKNOWN; in pci_device_remove()
327 if (pci_dev->current_state == PCI_D0) in pci_pm_set_unknown_state()
328 pci_dev->current_state = PCI_UNKNOWN; in pci_pm_set_unknown_state()
358 pci_power_t prev = pci_dev->current_state; in pci_legacy_suspend()
370 if (pci_dev->current_state != PCI_D0 in pci_legacy_suspend()
371 && pci_dev->current_state != PCI_UNKNOWN) { in pci_legacy_suspend()
372 WARN_ONCE(pci_dev->current_state != prev, in pci_legacy_suspend()
504 pci_power_t prev = pci_dev->current_state; in pci_pm_suspend()
515 if (pci_dev->current_state != PCI_D0 in pci_pm_suspend()
[all …]
Dpci.c454 if (dev->current_state == state) { in pci_raw_set_power_state()
457 } else if (state != PCI_D0 && dev->current_state <= PCI_D3cold in pci_raw_set_power_state()
458 && dev->current_state > state) { in pci_raw_set_power_state()
460 "(from state %d to %d)\n", dev->current_state, state); in pci_raw_set_power_state()
475 switch (dev->current_state) { in pci_raw_set_power_state()
502 if (state == PCI_D3hot || dev->current_state == PCI_D3hot) in pci_raw_set_power_state()
504 else if (state == PCI_D2 || dev->current_state == PCI_D2) in pci_raw_set_power_state()
507 dev->current_state = state; in pci_raw_set_power_state()
542 dev->current_state = (pmcsr & PCI_PM_CTRL_STATE_MASK); in pci_update_current_state()
544 dev->current_state = state; in pci_update_current_state()
[all …]
Dprobe.c707 dev->current_state = PCI_UNKNOWN; in pci_setup_device()
/drivers/net/wireless/b43/
Dlo.c592 int current_state; member
628 if (d->current_state == 0) { in lo_probe_possible_loctls()
631 } else if (d->current_state % 2 == 0) { in lo_probe_possible_loctls()
632 begin = d->current_state - 1; in lo_probe_possible_loctls()
633 end = d->current_state + 1; in lo_probe_possible_loctls()
635 begin = d->current_state - 2; in lo_probe_possible_loctls()
636 end = d->current_state + 2; in lo_probe_possible_loctls()
645 d->current_state = i; in lo_probe_possible_loctls()
675 d->current_state = i; in lo_probe_possible_loctls()
717 d.current_state = 0; in lo_probe_loctls_statemachine()
[all …]
/drivers/net/irda/
Dvlsi_ir.c170 seq_printf(seq, "pci-power-state: %u\n", (unsigned) pdev->current_state); in vlsi_proc_pdev()
365 if (idev->pdev->current_state == 0) in vlsi_seq_show()
1634 pdev->current_state = 0; /* hw must be running now */ in vlsi_irda_probe()
1746 if (pdev->current_state != 0) { /* already suspended */ in vlsi_irda_suspend()
1747 if (state.event > pdev->current_state) { /* simply go deeper */ in vlsi_irda_suspend()
1749 pdev->current_state = state.event; in vlsi_irda_suspend()
1752 …: invalid suspend request %u -> %u\n", __func__, pci_name(pdev), pdev->current_state, state.event); in vlsi_irda_suspend()
1767 pdev->current_state = state.event; in vlsi_irda_suspend()
1785 if (pdev->current_state == 0) { in vlsi_irda_resume()
1793 pdev->current_state = PM_EVENT_ON; in vlsi_irda_resume()
/drivers/usb/core/
Dhcd-pci.c75 dev->current_state = PCI_D0; in usb_hcd_pci_probe()
221 if (dev->current_state != PCI_D0) in usb_hcd_pci_suspend()
/drivers/video/riva/
Drivafb.h51 struct riva_regs current_state; member
Dfbdev.c826 par->current_state = newmode; in riva_load_video_mode()
827 riva_load_state(par, &par->current_state); in riva_load_video_mode()
/drivers/pci/pcie/
Daspm.c464 if (child_dev->current_state == PCI_D1 || in pcie_aspm_check_state()
465 child_dev->current_state == PCI_D2 || in pcie_aspm_check_state()
466 child_dev->current_state == PCI_D3hot || in pcie_aspm_check_state()
467 child_dev->current_state == PCI_D3cold) in pcie_aspm_check_state()
/drivers/xen/xenbus/
Dxenbus_client.c161 int current_state; in xenbus_switch_state() local
168 &current_state); in xenbus_switch_state()
/drivers/acpi/
Dprocessor_throttling.c301 int current_state; in acpi_processor_tstate_has_changed() local
317 current_state = pr->throttling.state; in acpi_processor_tstate_has_changed()
318 if (current_state > throttling_limit) { in acpi_processor_tstate_has_changed()
332 } else if (current_state == throttling_limit) { in acpi_processor_tstate_has_changed()
/drivers/ata/
Data_piix.c1111 if (pdev->current_state == PCI_D0) in piix_pci_device_suspend()
1112 pdev->current_state = PCI_UNKNOWN; in piix_pci_device_suspend()
/drivers/video/aty/
Dradeon_pm.c2526 rinfo->pdev->current_state = state; in radeonfb_whack_power_state()
/drivers/net/
D3c59x.c2919 state = VORTEX_PCI(vp)->current_state; in vortex_ioctl()
/drivers/message/fusion/
Dmptbase.c1981 u32 device_state = pdev->current_state; in mpt_resume()
/drivers/net/wireless/
Dairo.c5546 pci_power_t prev_state = pdev->current_state; in airo_pci_resume()