/drivers/pci/ |
D | pci-driver.c | 428 if (pci_dev->current_state == PCI_D0) in pci_device_remove() 429 pci_dev->current_state = PCI_UNKNOWN; in pci_device_remove() 464 if (kexec_in_progress && (pci_dev->current_state <= PCI_D3hot)) in pci_device_shutdown() 481 if (pci_dev->current_state != PCI_D0) { in pci_restore_standard_config() 512 if (pci_dev->current_state == PCI_D0) in pci_pm_set_unknown_state() 513 pci_dev->current_state = PCI_UNKNOWN; in pci_pm_set_unknown_state() 542 pci_power_t prev = pci_dev->current_state; in pci_legacy_suspend() 550 if (!pci_dev->state_saved && pci_dev->current_state != PCI_D0 in pci_legacy_suspend() 551 && pci_dev->current_state != PCI_UNKNOWN) { in pci_legacy_suspend() 552 WARN_ONCE(pci_dev->current_state != prev, in pci_legacy_suspend() [all …]
|
D | pci.c | 545 if (dev->current_state == state) in pci_raw_set_power_state() 558 if (state != PCI_D0 && dev->current_state <= PCI_D3cold in pci_raw_set_power_state() 559 && dev->current_state > state) { in pci_raw_set_power_state() 561 dev->current_state, state); in pci_raw_set_power_state() 576 switch (dev->current_state) { in pci_raw_set_power_state() 600 if (state == PCI_D3hot || dev->current_state == PCI_D3hot) in pci_raw_set_power_state() 602 else if (state == PCI_D2 || dev->current_state == PCI_D2) in pci_raw_set_power_state() 606 dev->current_state = (pmcsr & PCI_PM_CTRL_STATE_MASK); in pci_raw_set_power_state() 607 if (dev->current_state != state && printk_ratelimit()) in pci_raw_set_power_state() 609 dev->current_state); in pci_raw_set_power_state() [all …]
|
D | msi.c | 254 BUG_ON(entry->dev->current_state != PCI_D0); in __read_msi_msg() 309 if (entry->dev->current_state != PCI_D0) { in __write_msi_msg() 830 if (!dev || dev->no_msi || dev->current_state != PCI_D0) in pci_msi_supported()
|
D | pci-acpi.c | 315 if (pci_dev->current_state == PCI_D3cold) { in pci_acpi_wake_dev()
|
/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/gpu/drm/radeon/ |
D | rs780_dpm.c | 380 struct igp_ps *current_state = rs780_get_ps(rdev->pm.dpm.current_ps); in rs780_force_voltage() local 382 if ((current_state->max_voltage == RS780_VDDC_LEVEL_HIGH) && in rs780_force_voltage() 383 (current_state->min_voltage == RS780_VDDC_LEVEL_HIGH)) in rs780_force_voltage() 407 struct igp_ps *current_state = rs780_get_ps(rdev->pm.dpm.current_ps); in rs780_force_fbdiv() local 409 if (current_state->sclk_low == current_state->sclk_high) in rs780_force_fbdiv() 568 struct igp_ps *current_state = rs780_get_ps(old_ps); in rs780_set_uvd_clock_before_set_eng_clock() local 574 if (new_state->sclk_high >= current_state->sclk_high) in rs780_set_uvd_clock_before_set_eng_clock() 585 struct igp_ps *current_state = rs780_get_ps(old_ps); in rs780_set_uvd_clock_after_set_eng_clock() local 591 if (new_state->sclk_high < current_state->sclk_high) in rs780_set_uvd_clock_after_set_eng_clock()
|
D | rv770_dpm.c | 1435 struct rv7xx_ps *current_state = rv770_get_ps(old_ps); in rv770_set_uvd_clock_before_set_eng_clock() local 1441 if (new_state->high.sclk >= current_state->high.sclk) in rv770_set_uvd_clock_before_set_eng_clock() 1452 struct rv7xx_ps *current_state = rv770_get_ps(old_ps); in rv770_set_uvd_clock_after_set_eng_clock() local 1458 if (new_state->high.sclk < current_state->high.sclk) in rv770_set_uvd_clock_after_set_eng_clock() 1748 struct rv7xx_ps *current_state = rv770_get_ps(radeon_current_state); in rv770_program_dcodt_before_state_switch() local 1755 if (current_state->high.mclk <= pi->mclk_odt_threshold) in rv770_program_dcodt_before_state_switch() 1777 struct rv7xx_ps *current_state = rv770_get_ps(radeon_current_state); in rv770_program_dcodt_after_state_switch() local 1784 if (current_state->high.mclk <= pi->mclk_odt_threshold) in rv770_program_dcodt_after_state_switch()
|
D | rv6xx_dpm.c | 1517 struct rv6xx_ps *current_state = rv6xx_get_ps(old_ps); in rv6xx_set_uvd_clock_before_set_eng_clock() local 1523 if (new_state->high.sclk >= current_state->high.sclk) in rv6xx_set_uvd_clock_before_set_eng_clock() 1534 struct rv6xx_ps *current_state = rv6xx_get_ps(old_ps); in rv6xx_set_uvd_clock_after_set_eng_clock() local 1540 if (new_state->high.sclk < current_state->high.sclk) in rv6xx_set_uvd_clock_after_set_eng_clock()
|
D | ni_dpm.c | 3513 struct ni_ps *current_state = ni_get_ps(old_ps); in ni_set_uvd_clock_before_set_eng_clock() local 3520 current_state->performance_levels[current_state->performance_level_count - 1].sclk) in ni_set_uvd_clock_before_set_eng_clock() 3531 struct ni_ps *current_state = ni_get_ps(old_ps); in ni_set_uvd_clock_after_set_eng_clock() local 3538 current_state->performance_levels[current_state->performance_level_count - 1].sclk) in ni_set_uvd_clock_after_set_eng_clock()
|
/drivers/net/irda/ |
D | vlsi_ir.c | 169 seq_printf(seq, "pci-power-state: %u\n", (unsigned) pdev->current_state); in vlsi_proc_pdev() 360 if (idev->pdev->current_state == 0) in vlsi_seq_show() 1633 pdev->current_state = 0; /* hw must be running now */ in vlsi_irda_probe() 1742 if (pdev->current_state != 0) { /* already suspended */ in vlsi_irda_suspend() 1743 if (state.event > pdev->current_state) { /* simply go deeper */ in vlsi_irda_suspend() 1745 pdev->current_state = state.event; in vlsi_irda_suspend() 1748 …: invalid suspend request %u -> %u\n", __func__, pci_name(pdev), pdev->current_state, state.event); in vlsi_irda_suspend() 1763 pdev->current_state = state.event; in vlsi_irda_suspend() 1781 if (pdev->current_state == 0) { in vlsi_irda_resume() 1789 pdev->current_state = PM_EVENT_ON; in vlsi_irda_resume()
|
/drivers/scsi/isci/ |
D | remote_node_context.c | 87 u32 current_state = sci_rnc->sm.current_state_id; in sci_remote_node_context_is_ready() local 89 if (current_state == SCI_RNC_READY) { in sci_remote_node_context_is_ready() 98 u32 current_state = sci_rnc->sm.current_state_id; in sci_remote_node_context_is_suspended() local 100 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/fbdev/riva/ |
D | rivafb.h | 51 struct riva_regs current_state; member
|
/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() 782 if (ppd->sdma_state.current_state == qib_sdma_state_s99_running) in qib_sdma_process_event() 793 switch (ss->current_state) { in __qib_sdma_process_event()
|
D | qib.h | 505 enum qib_sdma_states current_state; member 1346 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() 3383 if (ppd->sdma_state.current_state == qib_sdma_state_s20_idle && in get_7220_link_buf() 3384 ppd->sdma_state.current_state != qib_sdma_state_s00_hw_down) { in get_7220_link_buf() 3752 if (ppd->sdma_state.current_state != in qib_7220_ib_updown()
|
/drivers/acpi/ |
D | processor_throttling.c | 320 int current_state; in acpi_processor_tstate_has_changed() local 339 current_state = pr->throttling.state; in acpi_processor_tstate_has_changed() 340 if (current_state > throttling_limit) { in acpi_processor_tstate_has_changed() 354 } else if (current_state == throttling_limit) { in acpi_processor_tstate_has_changed()
|
/drivers/xen/xenbus/ |
D | xenbus_client.c | 187 int current_state; in __xenbus_switch_state() local 202 err = xenbus_scanf(xbt, dev->nodename, "state", "%d", ¤t_state); in __xenbus_switch_state()
|
/drivers/net/ethernet/chelsio/cxgb4/ |
D | cxgb4_dcb.c | 108 enum cxgb4_dcb_state current_state = dcb->state; in cxgb4_dcb_state_fsm() local 113 switch (current_state) { in cxgb4_dcb_state_fsm() 237 current_state, transition_to); in cxgb4_dcb_state_fsm()
|
/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 | 1026 if (pdev->current_state == PCI_D0) in piix_pci_device_suspend() 1027 pdev->current_state = PCI_UNKNOWN; in piix_pci_device_suspend()
|
/drivers/usb/core/ |
D | hcd-pci.c | 578 pci_power_name(pci_dev->current_state)); in hcd_pci_suspend_noirq()
|
/drivers/pci/hotplug/ |
D | acpiphp_glue.c | 518 dev->current_state = PCI_D0; in enable_slot()
|
/drivers/scsi/mpt3sas/ |
D | mpt3sas_base.c | 3076 u32 current_state; in _base_wait_on_iocstate() local 3081 current_state = mpt3sas_base_get_iocstate(ioc, 1); in _base_wait_on_iocstate() 3082 if (current_state == ioc_state) in _base_wait_on_iocstate() 3084 if (count && current_state == MPI2_IOC_STATE_FAULT) in _base_wait_on_iocstate() 3093 return current_state; in _base_wait_on_iocstate()
|
/drivers/scsi/mpt2sas/ |
D | mpt2sas_base.c | 2903 u32 current_state; in _base_wait_on_iocstate() local 2908 current_state = mpt2sas_base_get_iocstate(ioc, 1); in _base_wait_on_iocstate() 2909 if (current_state == ioc_state) in _base_wait_on_iocstate() 2911 if (count && current_state == MPI2_IOC_STATE_FAULT) in _base_wait_on_iocstate() 2920 return current_state; in _base_wait_on_iocstate()
|