Searched refs:current_state (Results 1 - 51 of 51) sorted by relevance

/linux-4.1.27/drivers/net/ethernet/ti/
H A Dnetcp_xgbepcsr.c316 u32 *current_state, u32 *lane_down) netcp_xgbe_check_link_status()
339 switch (current_state[i]) { netcp_xgbe_check_link_status()
346 current_state[i] = 1; netcp_xgbe_check_link_status()
359 current_state[i] = 2; netcp_xgbe_check_link_status()
366 current_state[i] = 1; netcp_xgbe_check_link_status()
373 current_state[i] = 0; netcp_xgbe_check_link_status()
378 pr_err("XGBE: unknown current_state[%d] %d\n", netcp_xgbe_check_link_status()
379 i, current_state[i]); netcp_xgbe_check_link_status()
392 status &= (current_state[i] == 1); netcp_xgbe_check_link_status()
401 u32 current_state[2] = {0, 0}; netcp_xgbe_serdes_check_lane() local
410 current_state, netcp_xgbe_serdes_check_lane()
314 netcp_xgbe_check_link_status(void __iomem *serdes_regs, void __iomem *sw_regs, u32 lanes, u32 *current_state, u32 *lane_down) netcp_xgbe_check_link_status() argument
/linux-4.1.27/drivers/pci/
H A Dpci-driver.c428 if (pci_dev->current_state == PCI_D0) pci_device_remove()
429 pci_dev->current_state = PCI_UNKNOWN; pci_device_remove()
464 if (kexec_in_progress && (pci_dev->current_state <= PCI_D3hot)) pci_device_shutdown()
481 if (pci_dev->current_state != PCI_D0) { pci_restore_standard_config()
512 if (pci_dev->current_state == PCI_D0) pci_pm_set_unknown_state()
513 pci_dev->current_state = PCI_UNKNOWN; pci_pm_set_unknown_state()
542 pci_power_t prev = pci_dev->current_state; pci_legacy_suspend()
550 if (!pci_dev->state_saved && pci_dev->current_state != PCI_D0 pci_legacy_suspend()
551 && pci_dev->current_state != PCI_UNKNOWN) { pci_legacy_suspend()
552 WARN_ONCE(pci_dev->current_state != prev, pci_legacy_suspend()
569 pci_power_t prev = pci_dev->current_state; pci_legacy_suspend_late()
577 if (!pci_dev->state_saved && pci_dev->current_state != PCI_D0 pci_legacy_suspend_late()
578 && pci_dev->current_state != PCI_UNKNOWN) { pci_legacy_suspend_late()
579 WARN_ONCE(pci_dev->current_state != prev, pci_legacy_suspend_late()
706 pci_power_t prev = pci_dev->current_state; pci_pm_suspend()
714 if (!pci_dev->state_saved && pci_dev->current_state != PCI_D0 pci_pm_suspend()
715 && pci_dev->current_state != PCI_UNKNOWN) { pci_pm_suspend()
716 WARN_ONCE(pci_dev->current_state != prev, pci_pm_suspend()
742 pci_power_t prev = pci_dev->current_state; pci_pm_suspend_noirq()
750 if (!pci_dev->state_saved && pci_dev->current_state != PCI_D0 pci_pm_suspend_noirq()
751 && pci_dev->current_state != PCI_UNKNOWN) { pci_pm_suspend_noirq()
752 WARN_ONCE(pci_dev->current_state != prev, pci_pm_suspend_noirq()
1114 pci_power_t prev = pci_dev->current_state; pci_pm_runtime_suspend()
1138 if (!pci_dev->state_saved && pci_dev->current_state != PCI_D0 pci_pm_runtime_suspend()
1139 && pci_dev->current_state != PCI_UNKNOWN) { pci_pm_runtime_suspend()
1140 WARN_ONCE(pci_dev->current_state != prev, pci_pm_runtime_suspend()
H A Dpci.c554 if (dev->current_state == state) pci_raw_set_power_state()
567 if (state != PCI_D0 && dev->current_state <= PCI_D3cold pci_raw_set_power_state()
568 && dev->current_state > state) { pci_raw_set_power_state()
570 dev->current_state, state); pci_raw_set_power_state()
585 switch (dev->current_state) { pci_raw_set_power_state()
609 if (state == PCI_D3hot || dev->current_state == PCI_D3hot) pci_raw_set_power_state()
611 else if (state == PCI_D2 || dev->current_state == PCI_D2) pci_raw_set_power_state()
615 dev->current_state = (pmcsr & PCI_PM_CTRL_STATE_MASK); pci_raw_set_power_state()
616 if (dev->current_state != state && printk_ratelimit()) pci_raw_set_power_state()
618 dev->current_state); pci_raw_set_power_state()
657 if (dev->current_state == PCI_D3cold) pci_update_current_state()
660 dev->current_state = PCI_D3cold; pci_update_current_state()
664 dev->current_state = (pmcsr & PCI_PM_CTRL_STATE_MASK); pci_update_current_state()
666 dev->current_state = state; pci_update_current_state()
700 dev->current_state = PCI_D0; pci_platform_power_transition()
765 dev->current_state = state; __pci_dev_set_current_state()
834 if (dev->current_state == state) pci_set_power_state()
1290 dev->current_state = (pmcsr & PCI_PM_CTRL_STATE_MASK); pci_enable_device_flags()
1685 if (bridge && bridge->current_state != PCI_D0) pci_pme_list_scan()
2031 return pci_target_state(pci_dev) == pci_dev->current_state; pci_dev_keep_suspended()
2043 * pdev->current_state is set to PCI_D3cold during suspending, pci_config_pm_runtime_get()
2052 if (pdev->current_state == PCI_D3cold) pci_config_pm_runtime_get()
3243 if (dev->current_state != PCI_D0) pci_pm_reset()
H A Dmsi.c312 BUG_ON(entry->dev->current_state != PCI_D0); __pci_read_msi_msg()
342 if (entry->dev->current_state != PCI_D0) { __pci_write_msi_msg()
861 if (!dev || dev->no_msi || dev->current_state != PCI_D0) pci_msi_supported()
H A Dpci-acpi.c324 if (pci_dev->current_state == PCI_D3cold) { pci_acpi_wake_dev()
H A Dprobe.c1163 dev->current_state = PCI_UNKNOWN; pci_setup_device()
/linux-4.1.27/drivers/video/fbdev/riva/
H A Drivafb.h51 struct riva_regs current_state; member in struct:riva_par
H A Dfbdev.c820 par->current_state = newmode; riva_load_video_mode()
821 riva_load_state(par, &par->current_state); riva_load_video_mode()
/linux-4.1.27/include/net/
H A Dllc_c_st.h43 u8 current_state; member in struct:llc_conn_state
/linux-4.1.27/drivers/net/wireless/b43/
H A Dlo.c568 int current_state; member in struct:b43_lo_g_statemachine
604 if (d->current_state == 0) { lo_probe_possible_loctls()
607 } else if (d->current_state % 2 == 0) { lo_probe_possible_loctls()
608 begin = d->current_state - 1; lo_probe_possible_loctls()
609 end = d->current_state + 1; lo_probe_possible_loctls()
611 begin = d->current_state - 2; lo_probe_possible_loctls()
612 end = d->current_state + 2; lo_probe_possible_loctls()
621 d->current_state = i; lo_probe_possible_loctls()
651 d->current_state = i; lo_probe_possible_loctls()
693 d.current_state = 0; lo_probe_loctls_statemachine()
696 (d.current_state >= 0 lo_probe_loctls_statemachine()
697 && d.current_state <= 8)); lo_probe_loctls_statemachine()
/linux-4.1.27/drivers/gpu/drm/radeon/
H A Drs780_dpm.c380 struct igp_ps *current_state = rs780_get_ps(rdev->pm.dpm.current_ps); rs780_force_voltage() local
382 if ((current_state->max_voltage == RS780_VDDC_LEVEL_HIGH) && rs780_force_voltage()
383 (current_state->min_voltage == RS780_VDDC_LEVEL_HIGH)) rs780_force_voltage()
407 struct igp_ps *current_state = rs780_get_ps(rdev->pm.dpm.current_ps); rs780_force_fbdiv() local
409 if (current_state->sclk_low == current_state->sclk_high) rs780_force_fbdiv()
568 struct igp_ps *current_state = rs780_get_ps(old_ps); rs780_set_uvd_clock_before_set_eng_clock() local
574 if (new_state->sclk_high >= current_state->sclk_high) rs780_set_uvd_clock_before_set_eng_clock()
585 struct igp_ps *current_state = rs780_get_ps(old_ps); rs780_set_uvd_clock_after_set_eng_clock() local
591 if (new_state->sclk_high < current_state->sclk_high) rs780_set_uvd_clock_after_set_eng_clock()
H A Drv770_dpm.c1437 struct rv7xx_ps *current_state = rv770_get_ps(old_ps); rv770_set_uvd_clock_before_set_eng_clock() local
1443 if (new_state->high.sclk >= current_state->high.sclk) rv770_set_uvd_clock_before_set_eng_clock()
1454 struct rv7xx_ps *current_state = rv770_get_ps(old_ps); rv770_set_uvd_clock_after_set_eng_clock() local
1460 if (new_state->high.sclk < current_state->high.sclk) rv770_set_uvd_clock_after_set_eng_clock()
1750 struct rv7xx_ps *current_state = rv770_get_ps(radeon_current_state); rv770_program_dcodt_before_state_switch() local
1757 if (current_state->high.mclk <= pi->mclk_odt_threshold) rv770_program_dcodt_before_state_switch()
1779 struct rv7xx_ps *current_state = rv770_get_ps(radeon_current_state); rv770_program_dcodt_after_state_switch() local
1786 if (current_state->high.mclk <= pi->mclk_odt_threshold) rv770_program_dcodt_after_state_switch()
H A Drv6xx_dpm.c1517 struct rv6xx_ps *current_state = rv6xx_get_ps(old_ps); rv6xx_set_uvd_clock_before_set_eng_clock() local
1523 if (new_state->high.sclk >= current_state->high.sclk) rv6xx_set_uvd_clock_before_set_eng_clock()
1534 struct rv6xx_ps *current_state = rv6xx_get_ps(old_ps); rv6xx_set_uvd_clock_after_set_eng_clock() local
1540 if (new_state->high.sclk < current_state->high.sclk) rv6xx_set_uvd_clock_after_set_eng_clock()
H A Dni_dpm.c3513 struct ni_ps *current_state = ni_get_ps(old_ps); ni_set_uvd_clock_before_set_eng_clock() local
3520 current_state->performance_levels[current_state->performance_level_count - 1].sclk) ni_set_uvd_clock_before_set_eng_clock()
3531 struct ni_ps *current_state = ni_get_ps(old_ps); ni_set_uvd_clock_after_set_eng_clock() local
3538 current_state->performance_levels[current_state->performance_level_count - 1].sclk) ni_set_uvd_clock_after_set_eng_clock()
/linux-4.1.27/arch/powerpc/platforms/pseries/
H A Dhotplug-cpu.c42 static DEFINE_PER_CPU(enum cpu_state_vals, current_state) = CPU_STATE_OFFLINE;
66 return per_cpu(current_state, cpu); get_cpu_current_state()
71 per_cpu(current_state, cpu) = state; set_cpu_current_state()
/linux-4.1.27/drivers/net/irda/
H A Dvlsi_ir.c170 seq_printf(seq, "pci-power-state: %u\n", (unsigned) pdev->current_state); vlsi_proc_pdev()
352 if (idev->pdev->current_state == 0) vlsi_seq_show()
1615 pdev->current_state = 0; /* hw must be running now */ vlsi_irda_probe()
1708 * operations on our own (particularly reflecting the pdev->current_state)
1725 if (pdev->current_state != 0) { /* already suspended */ vlsi_irda_suspend()
1726 if (state.event > pdev->current_state) { /* simply go deeper */ vlsi_irda_suspend()
1728 pdev->current_state = state.event; vlsi_irda_suspend()
1733 pdev->current_state, state.event); vlsi_irda_suspend()
1748 pdev->current_state = state.event; vlsi_irda_suspend()
1766 if (pdev->current_state == 0) { vlsi_irda_resume()
1774 pdev->current_state = PM_EVENT_ON; vlsi_irda_resume()
1778 * - pci layer initially setting pdev->current_state = 4 (unknown) vlsi_irda_resume()
1785 * now we explicitly set pdev->current_state = 0 after enabling the vlsi_irda_resume()
/linux-4.1.27/drivers/scsi/isci/
H A Dremote_node_context.c84 u32 current_state = sci_rnc->sm.current_state_id; sci_remote_node_context_is_ready() local
86 if (current_state == SCI_RNC_READY) { sci_remote_node_context_is_ready()
95 u32 current_state = sci_rnc->sm.current_state_id; sci_remote_node_context_is_suspended() local
97 if (current_state == SCI_RNC_TX_RX_SUSPENDED) sci_remote_node_context_is_suspended()
H A Dport.c778 u32 current_state; port_timeout() local
785 current_state = iport->sm.current_state_id; port_timeout()
787 if (current_state == SCI_PORT_RESETTING) { port_timeout()
792 } else if (current_state == SCI_PORT_STOPPED) { port_timeout()
800 } else if (current_state == SCI_PORT_STOPPING) { port_timeout()
810 "in state %d.\n", __func__, iport, current_state); port_timeout() local
/linux-4.1.27/net/llc/
H A Dllc_c_st.c4899 .current_state = LLC_CONN_STATE_ADM,
4903 .current_state = LLC_CONN_STATE_SETUP,
4907 .current_state = LLC_CONN_STATE_NORMAL,
4911 .current_state = LLC_CONN_STATE_BUSY,
4915 .current_state = LLC_CONN_STATE_REJ,
4919 .current_state = LLC_CONN_STATE_AWAIT,
4923 .current_state = LLC_CONN_STATE_AWAIT_BUSY,
4927 .current_state = LLC_CONN_STATE_AWAIT_REJ,
4931 .current_state = LLC_CONN_STATE_D_CONN,
4935 .current_state = LLC_CONN_STATE_RESET,
4939 .current_state = LLC_CONN_STATE_ERROR,
4943 .current_state = LLC_CONN_STATE_TEMP,
/linux-4.1.27/drivers/infiniband/hw/qib/
H A Dqib_sdma.c225 ss->previous_state = ss->current_state; sdma_set_state()
228 ss->current_state = next_state; sdma_set_state()
782 if (ppd->sdma_state.current_state == qib_sdma_state_s99_running) qib_sdma_process_event()
793 switch (ss->current_state) { __qib_sdma_process_event()
H A Dqib_iba7220.c926 switch (ppd->sdma_state.current_state) { sdma_7220_errors()
1815 switch (ppd->sdma_state.current_state) { sdma_7220_intr()
3385 if (ppd->sdma_state.current_state == qib_sdma_state_s20_idle && get_7220_link_buf()
3386 ppd->sdma_state.current_state != qib_sdma_state_s00_hw_down) { get_7220_link_buf()
3754 if (ppd->sdma_state.current_state != qib_7220_ib_updown()
H A Dqib.h505 enum qib_sdma_states current_state; member in struct:qib_sdma_state
1345 return ppd->sdma_state.current_state == qib_sdma_state_s99_running; __qib_sdma_running()
H A Dqib_iba7322.c1614 qib_sdma_state_names[ppd->sdma_state.current_state], sdma_7322_p_errors()
1619 switch (ppd->sdma_state.current_state) { sdma_7322_p_errors()
/linux-4.1.27/drivers/acpi/
H A Dprocessor_throttling.c320 int current_state; acpi_processor_tstate_has_changed() local
339 current_state = pr->throttling.state; acpi_processor_tstate_has_changed()
340 if (current_state > throttling_limit) { acpi_processor_tstate_has_changed()
354 } else if (current_state == throttling_limit) { acpi_processor_tstate_has_changed()
/linux-4.1.27/kernel/
H A Dauditsc.c206 ctx->current_state = AUDIT_RECORD_CONTEXT; audit_set_auditable()
764 ctx->current_state = state; list_for_each_entry_rcu()
791 ctx->current_state = state; list_for_each_entry_rcu()
1470 if (context->in_syscall && context->current_state == AUDIT_RECORD_CONTEXT) __audit_free()
1528 context->current_state = state; __audit_syscall_entry()
1557 if (context->in_syscall && context->current_state == AUDIT_RECORD_CONTEXT) __audit_syscall_exit()
1952 ctx->current_state = AUDIT_RECORD_CONTEXT; auditsc_get_stamp()
H A Daudit.h110 enum audit_state state, current_state; member in struct:audit_context
/linux-4.1.27/arch/powerpc/kernel/
H A Dpci_of_scan.c167 dev->current_state = PCI_UNKNOWN; /* unknown power state */ of_create_pci_dev()
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_dcb.c108 enum cxgb4_dcb_state current_state = dcb->state; cxgb4_dcb_state_fsm() local
113 switch (current_state) { cxgb4_dcb_state_fsm()
237 current_state, transition_to); cxgb4_dcb_state_fsm()
/linux-4.1.27/sound/pci/lx6464es/
H A Dlx_core.c641 u16 current_state; lx_pipe_wait_for_state() local
642 int err = lx_pipe_state(chip, pipe, is_capture, &current_state); lx_pipe_wait_for_state()
647 if (current_state == state) lx_pipe_wait_for_state()
/linux-4.1.27/drivers/pci/pcie/
H A Daspm.c312 if ((endpoint->current_state != PCI_D0) && pcie_aspm_check_latency()
313 (endpoint->current_state != PCI_UNKNOWN)) pcie_aspm_check_latency()
/linux-4.1.27/drivers/xen/xenbus/
H A Dxenbus_client.c195 int current_state; __xenbus_switch_state() local
210 err = xenbus_scanf(xbt, dev->nodename, "state", "%d", &current_state); __xenbus_switch_state()
/linux-4.1.27/arch/x86/pci/
H A Dfixup.c448 dev->current_state = PCI_D3cold; pci_pre_fixup_toshiba_ohci1394()
/linux-4.1.27/drivers/usb/core/
H A Dhcd-pci.c576 pci_power_name(pci_dev->current_state)); hcd_pci_suspend_noirq()
/linux-4.1.27/drivers/staging/iio/light/
H A Dtsl2x7x_core.c864 u8 current_state = chip->tsl2x7x_chip_status; tsl2x7x_prox_cal() local
906 if (current_state == TSL2X7X_CHIP_WORKING) tsl2x7x_prox_cal()
/linux-4.1.27/drivers/ata/
H A Data_piix.c1026 if (pdev->current_state == PCI_D0) piix_pci_device_suspend()
1027 pdev->current_state = PCI_UNKNOWN; piix_pci_device_suspend()
/linux-4.1.27/drivers/scsi/mpt2sas/
H A Dmpt2sas_base.c2932 u32 current_state; _base_wait_on_iocstate() local
2937 current_state = mpt2sas_base_get_iocstate(ioc, 1); _base_wait_on_iocstate()
2938 if (current_state == ioc_state) _base_wait_on_iocstate()
2940 if (count && current_state == MPI2_IOC_STATE_FAULT) _base_wait_on_iocstate()
2949 return current_state; _base_wait_on_iocstate()
H A Dmpt2sas_scsih.c8317 pci_power_t device_state = pdev->current_state; _scsih_resume()
/linux-4.1.27/drivers/scsi/mpt3sas/
H A Dmpt3sas_base.c3108 u32 current_state; _base_wait_on_iocstate() local
3113 current_state = mpt3sas_base_get_iocstate(ioc, 1); _base_wait_on_iocstate()
3114 if (current_state == ioc_state) _base_wait_on_iocstate()
3116 if (count && current_state == MPI2_IOC_STATE_FAULT) _base_wait_on_iocstate()
3125 return current_state; _base_wait_on_iocstate()
H A Dmpt3sas_scsih.c7932 pci_power_t device_state = pdev->current_state; _scsih_resume()
/linux-4.1.27/drivers/scsi/pm8001/
H A Dpm8001_init.c1039 device_state = pdev->current_state; pm8001_pci_resume()
/linux-4.1.27/drivers/pci/hotplug/
H A Dacpiphp_glue.c518 dev->current_state = PCI_D0; enable_slot()
/linux-4.1.27/arch/sparc/kernel/
H A Dpci.c330 dev->current_state = PCI_UNKNOWN; /* unknown power state */ of_create_pci_dev()
/linux-4.1.27/drivers/staging/lustre/lustre/obdclass/
H A Dlprocfs_status.c842 seq_printf(m, "current_state: %s\n", lprocfs_rd_state()
/linux-4.1.27/sound/pci/hda/
H A Dhda_intel.c1030 pci->current_state = PCI_D3cold; azx_vs_set_state()
/linux-4.1.27/drivers/net/ethernet/3com/
H A D3c59x.c3039 state = VORTEX_PCI(vp)->current_state; vortex_ioctl()
3250 if (VORTEX_PCI(vp)->current_state < PCI_D3hot) acpi_set_WOL()
/linux-4.1.27/drivers/net/ethernet/qlogic/qlcnic/
H A Dqlcnic_main.c3839 if (oth_pdev->current_state != PCI_D3cold) { qlcnic_is_first_func()
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8192de/
H A Dphy.c3165 } else if (rtlpci->pdev->current_state != PCI_D0) { rtl92d_phy_set_rf_power_state()
/linux-4.1.27/drivers/video/fbdev/aty/
H A Dradeon_pm.c2533 rinfo->pdev->current_state = state; radeonfb_whack_power_state()
/linux-4.1.27/include/linux/
H A Dpci.h293 pci_power_t current_state; /* Current operating state. In ACPI-speak, member in struct:pci_dev
/linux-4.1.27/drivers/net/wireless/
H A Dairo.c5613 pci_power_t prev_state = pdev->current_state; airo_pci_resume()
/linux-4.1.27/drivers/message/fusion/
H A Dmptbase.c2164 u32 device_state = pdev->current_state; mpt_resume()

Completed in 2491 milliseconds