/drivers/pci/ |
D | pci-driver.c | 363 if (pci_dev->current_state == PCI_D0) in pci_device_remove() 364 pci_dev->current_state = PCI_UNKNOWN; in pci_device_remove() 395 if (pci_dev->current_state <= PCI_D3hot) in pci_device_shutdown() 411 if (pci_dev->current_state != PCI_D0) { in pci_restore_standard_config() 442 if (pci_dev->current_state == PCI_D0) in pci_pm_set_unknown_state() 443 pci_dev->current_state = PCI_UNKNOWN; in pci_pm_set_unknown_state() 472 pci_power_t prev = pci_dev->current_state; in pci_legacy_suspend() 480 if (!pci_dev->state_saved && pci_dev->current_state != PCI_D0 in pci_legacy_suspend() 481 && pci_dev->current_state != PCI_UNKNOWN) { in pci_legacy_suspend() 482 WARN_ONCE(pci_dev->current_state != prev, in pci_legacy_suspend() [all …]
|
D | pci.c | 507 if (dev->current_state == state) in pci_raw_set_power_state() 520 if (state != PCI_D0 && dev->current_state <= PCI_D3cold in pci_raw_set_power_state() 521 && dev->current_state > state) { in pci_raw_set_power_state() 523 "(from state %d to %d)\n", dev->current_state, state); in pci_raw_set_power_state() 538 switch (dev->current_state) { in pci_raw_set_power_state() 562 if (state == PCI_D3hot || dev->current_state == PCI_D3hot) in pci_raw_set_power_state() 564 else if (state == PCI_D2 || dev->current_state == PCI_D2) in pci_raw_set_power_state() 568 dev->current_state = (pmcsr & PCI_PM_CTRL_STATE_MASK); in pci_raw_set_power_state() 569 if (dev->current_state != state && printk_ratelimit()) in pci_raw_set_power_state() 571 "currently in D%d\n", dev->current_state); in pci_raw_set_power_state() [all …]
|
D | pci-acpi.c | 50 if (pci_dev->current_state == PCI_D3cold) { in pci_acpi_wake_dev()
|
D | msi.c | 235 BUG_ON(entry->dev->current_state != PCI_D0); in __read_msi_msg() 289 if (entry->dev->current_state != PCI_D0) { in __write_msi_msg()
|
D | probe.c | 1021 dev->current_state = PCI_UNKNOWN; in pci_setup_device()
|
/drivers/net/wireless/b43/ |
D | lo.c | 568 int current_state; member 604 if (d->current_state == 0) { in lo_probe_possible_loctls() 607 } else if (d->current_state % 2 == 0) { in lo_probe_possible_loctls() 608 begin = d->current_state - 1; in lo_probe_possible_loctls() 609 end = d->current_state + 1; in lo_probe_possible_loctls() 611 begin = d->current_state - 2; in lo_probe_possible_loctls() 612 end = d->current_state + 2; in lo_probe_possible_loctls() 621 d->current_state = i; in lo_probe_possible_loctls() 651 d->current_state = i; in lo_probe_possible_loctls() 693 d.current_state = 0; in lo_probe_loctls_statemachine() [all …]
|
/drivers/net/irda/ |
D | vlsi_ir.c | 171 seq_printf(seq, "pci-power-state: %u\n", (unsigned) pdev->current_state); in vlsi_proc_pdev() 366 if (idev->pdev->current_state == 0) in vlsi_seq_show() 1639 pdev->current_state = 0; /* hw must be running now */ in vlsi_irda_probe() 1751 if (pdev->current_state != 0) { /* already suspended */ in vlsi_irda_suspend() 1752 if (state.event > pdev->current_state) { /* simply go deeper */ in vlsi_irda_suspend() 1754 pdev->current_state = state.event; in vlsi_irda_suspend() 1757 …: invalid suspend request %u -> %u\n", __func__, pci_name(pdev), pdev->current_state, state.event); in vlsi_irda_suspend() 1772 pdev->current_state = state.event; in vlsi_irda_suspend() 1790 if (pdev->current_state == 0) { in vlsi_irda_resume() 1798 pdev->current_state = PM_EVENT_ON; in vlsi_irda_resume()
|
/drivers/scsi/isci/ |
D | remote_node_context.c | 84 u32 current_state = sci_rnc->sm.current_state_id; in sci_remote_node_context_is_ready() local 86 if (current_state == SCI_RNC_READY) { in sci_remote_node_context_is_ready() 95 u32 current_state = sci_rnc->sm.current_state_id; in sci_remote_node_context_is_suspended() local 97 if (current_state == SCI_RNC_TX_RX_SUSPENDED) in sci_remote_node_context_is_suspended()
|
D | port.c | 778 u32 current_state; in port_timeout() local 785 current_state = iport->sm.current_state_id; in port_timeout() 787 if (current_state == SCI_PORT_RESETTING) { in port_timeout() 792 } else if (current_state == SCI_PORT_STOPPED) { in port_timeout() 800 } else if (current_state == SCI_PORT_STOPPING) { in port_timeout() 810 "in state %d.\n", __func__, iport, current_state); in port_timeout()
|
/drivers/video/riva/ |
D | rivafb.h | 51 struct riva_regs current_state; member
|
D | fbdev.c | 830 par->current_state = newmode; in riva_load_video_mode() 831 riva_load_state(par, &par->current_state); in riva_load_video_mode()
|
/drivers/infiniband/hw/qib/ |
D | qib_sdma.c | 225 ss->previous_state = ss->current_state; in sdma_set_state() 228 ss->current_state = next_state; in sdma_set_state() 720 if (ppd->sdma_state.current_state == qib_sdma_state_s99_running) in qib_sdma_process_event() 731 switch (ss->current_state) { in __qib_sdma_process_event()
|
D | qib.h | 485 enum qib_sdma_states current_state; member 1320 return ppd->sdma_state.current_state == qib_sdma_state_s99_running; in __qib_sdma_running()
|
D | qib_iba7220.c | 925 switch (ppd->sdma_state.current_state) { in sdma_7220_errors() 1813 switch (ppd->sdma_state.current_state) { in sdma_7220_intr() 3387 if (ppd->sdma_state.current_state == qib_sdma_state_s20_idle && in get_7220_link_buf() 3388 ppd->sdma_state.current_state != qib_sdma_state_s00_hw_down) { in get_7220_link_buf() 3756 if (ppd->sdma_state.current_state != in qib_7220_ib_updown()
|
/drivers/acpi/ |
D | processor_throttling.c | 317 int current_state; in acpi_processor_tstate_has_changed() local 336 current_state = pr->throttling.state; in acpi_processor_tstate_has_changed() 337 if (current_state > throttling_limit) { in acpi_processor_tstate_has_changed() 351 } else if (current_state == throttling_limit) { in acpi_processor_tstate_has_changed()
|
/drivers/xen/xenbus/ |
D | xenbus_client.c | 186 int current_state; in __xenbus_switch_state() local 201 err = xenbus_scanf(xbt, dev->nodename, "state", "%d", ¤t_state); in __xenbus_switch_state()
|
/drivers/usb/core/ |
D | hcd-pci.c | 193 dev->current_state = PCI_D0; in usb_hcd_pci_probe() 562 pci_power_name(pci_dev->current_state)); in hcd_pci_suspend_noirq()
|
/drivers/pci/pcie/ |
D | aspm.c | 312 if ((endpoint->current_state != PCI_D0) && in pcie_aspm_check_latency() 313 (endpoint->current_state != PCI_UNKNOWN)) in pcie_aspm_check_latency()
|
/drivers/ata/ |
D | ata_piix.c | 1016 if (pdev->current_state == PCI_D0) in piix_pci_device_suspend() 1017 pdev->current_state = PCI_UNKNOWN; in piix_pci_device_suspend()
|
/drivers/scsi/mpt2sas/ |
D | mpt2sas_base.c | 2834 u32 current_state; in _base_wait_on_iocstate() local 2839 current_state = mpt2sas_base_get_iocstate(ioc, 1); in _base_wait_on_iocstate() 2840 if (current_state == ioc_state) in _base_wait_on_iocstate() 2842 if (count && current_state == MPI2_IOC_STATE_FAULT) in _base_wait_on_iocstate() 2851 return current_state; in _base_wait_on_iocstate()
|
/drivers/staging/iio/light/ |
D | tsl2x7x_core.c | 871 u8 current_state = chip->tsl2x7x_chip_status; in tsl2x7x_prox_cal() local 913 if (current_state == TSL2X7X_CHIP_WORKING) in tsl2x7x_prox_cal()
|
/drivers/scsi/mpt3sas/ |
D | mpt3sas_base.c | 2975 u32 current_state; in _base_wait_on_iocstate() local 2980 current_state = mpt3sas_base_get_iocstate(ioc, 1); in _base_wait_on_iocstate() 2981 if (current_state == ioc_state) in _base_wait_on_iocstate() 2983 if (count && current_state == MPI2_IOC_STATE_FAULT) in _base_wait_on_iocstate() 2992 return current_state; in _base_wait_on_iocstate()
|
/drivers/pci/hotplug/ |
D | acpiphp_glue.c | 731 dev->current_state = PCI_D0; in enable_device()
|
/drivers/scsi/pm8001/ |
D | pm8001_init.c | 964 device_state = pdev->current_state; in pm8001_pci_resume()
|
/drivers/net/ethernet/3com/ |
D | 3c59x.c | 3003 state = VORTEX_PCI(vp)->current_state; in vortex_ioctl() 3214 if (VORTEX_PCI(vp)->current_state < PCI_D3hot) in acpi_set_WOL()
|