Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/net/ethernet/ti/
Dnetcp_xgbepcsr.c316 u32 *current_state, u32 *lane_down) in netcp_xgbe_check_link_status() argument
339 switch (current_state[i]) { in netcp_xgbe_check_link_status()
346 current_state[i] = 1; in netcp_xgbe_check_link_status()
359 current_state[i] = 2; in netcp_xgbe_check_link_status()
366 current_state[i] = 1; in netcp_xgbe_check_link_status()
373 current_state[i] = 0; in netcp_xgbe_check_link_status()
379 i, current_state[i]); in netcp_xgbe_check_link_status()
392 status &= (current_state[i] == 1); in netcp_xgbe_check_link_status()
401 u32 current_state[2] = {0, 0}; in netcp_xgbe_serdes_check_lane() local
410 current_state, in netcp_xgbe_serdes_check_lane()
/linux-4.4.14/drivers/pci/
Dpci-driver.c441 if (pci_dev->current_state == PCI_D0) in pci_device_remove()
442 pci_dev->current_state = PCI_UNKNOWN; in pci_device_remove()
477 if (kexec_in_progress && (pci_dev->current_state <= PCI_D3hot)) in pci_device_shutdown()
494 if (pci_dev->current_state != PCI_D0) { in pci_restore_standard_config()
525 if (pci_dev->current_state == PCI_D0) in pci_pm_set_unknown_state()
526 pci_dev->current_state = PCI_UNKNOWN; in pci_pm_set_unknown_state()
555 pci_power_t prev = pci_dev->current_state; in pci_legacy_suspend()
563 if (!pci_dev->state_saved && pci_dev->current_state != PCI_D0 in pci_legacy_suspend()
564 && pci_dev->current_state != PCI_UNKNOWN) { in pci_legacy_suspend()
565 WARN_ONCE(pci_dev->current_state != prev, in pci_legacy_suspend()
[all …]
Dpci.c594 if (dev->current_state == state) in pci_raw_set_power_state()
607 if (state != PCI_D0 && dev->current_state <= PCI_D3cold in pci_raw_set_power_state()
608 && dev->current_state > state) { in pci_raw_set_power_state()
610 dev->current_state, state); in pci_raw_set_power_state()
625 switch (dev->current_state) { in pci_raw_set_power_state()
649 if (state == PCI_D3hot || dev->current_state == PCI_D3hot) in pci_raw_set_power_state()
651 else if (state == PCI_D2 || dev->current_state == PCI_D2) in pci_raw_set_power_state()
655 dev->current_state = (pmcsr & PCI_PM_CTRL_STATE_MASK); in pci_raw_set_power_state()
656 if (dev->current_state != state && printk_ratelimit()) in pci_raw_set_power_state()
658 dev->current_state); in pci_raw_set_power_state()
[all …]
Dmsi.c282 BUG_ON(dev->current_state != PCI_D0); in __pci_read_msi_msg()
313 if (dev->current_state != PCI_D0) { in __pci_write_msi_msg()
824 if (!dev || dev->no_msi || dev->current_state != PCI_D0) in pci_msi_supported()
Dpci-acpi.c324 if (pci_dev->current_state == PCI_D3cold) { in pci_acpi_wake_dev()
Dprobe.c1217 dev->current_state = PCI_UNKNOWN; in pci_setup_device()
/linux-4.4.14/drivers/net/wireless/b43/
Dlo.c568 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 …]
/linux-4.4.14/arch/powerpc/platforms/pseries/
Dhotplug-cpu.c42 static DEFINE_PER_CPU(enum cpu_state_vals, current_state) = CPU_STATE_OFFLINE;
66 return per_cpu(current_state, cpu); in get_cpu_current_state()
71 per_cpu(current_state, cpu) = state; in set_cpu_current_state()
/linux-4.4.14/drivers/gpu/drm/radeon/
Drs780_dpm.c380 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()
Drv770_dpm.c1437 struct rv7xx_ps *current_state = rv770_get_ps(old_ps); in rv770_set_uvd_clock_before_set_eng_clock() local
1443 if (new_state->high.sclk >= current_state->high.sclk) in rv770_set_uvd_clock_before_set_eng_clock()
1454 struct rv7xx_ps *current_state = rv770_get_ps(old_ps); in rv770_set_uvd_clock_after_set_eng_clock() local
1460 if (new_state->high.sclk < current_state->high.sclk) in rv770_set_uvd_clock_after_set_eng_clock()
1750 struct rv7xx_ps *current_state = rv770_get_ps(radeon_current_state); in rv770_program_dcodt_before_state_switch() local
1757 if (current_state->high.mclk <= pi->mclk_odt_threshold) in rv770_program_dcodt_before_state_switch()
1779 struct rv7xx_ps *current_state = rv770_get_ps(radeon_current_state); in rv770_program_dcodt_after_state_switch() local
1786 if (current_state->high.mclk <= pi->mclk_odt_threshold) in rv770_program_dcodt_after_state_switch()
Drv6xx_dpm.c1517 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()
Dni_dpm.c3513 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()
/linux-4.4.14/include/net/
Dllc_c_st.h43 u8 current_state; member
/linux-4.4.14/drivers/video/fbdev/riva/
Drivafb.h51 struct riva_regs current_state; member
Dfbdev.c815 par->current_state = newmode; in riva_load_video_mode()
816 riva_load_state(par, &par->current_state); in riva_load_video_mode()
/linux-4.4.14/drivers/net/irda/
Dvlsi_ir.c170 seq_printf(seq, "pci-power-state: %u\n", (unsigned) pdev->current_state); in vlsi_proc_pdev()
352 if (idev->pdev->current_state == 0) in vlsi_seq_show()
1615 pdev->current_state = 0; /* hw must be running now */ in vlsi_irda_probe()
1725 if (pdev->current_state != 0) { /* already suspended */ in vlsi_irda_suspend()
1726 if (state.event > pdev->current_state) { /* simply go deeper */ in vlsi_irda_suspend()
1728 pdev->current_state = state.event; in vlsi_irda_suspend()
1733 pdev->current_state, state.event); in vlsi_irda_suspend()
1748 pdev->current_state = state.event; in vlsi_irda_suspend()
1766 if (pdev->current_state == 0) { in vlsi_irda_resume()
1774 pdev->current_state = PM_EVENT_ON; in vlsi_irda_resume()
/linux-4.4.14/drivers/scsi/isci/
Dremote_node_context.c84 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()
Dport.c778 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()
/linux-4.4.14/drivers/infiniband/hw/qib/
Dqib_sdma.c225 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()
Dqib.h505 enum qib_sdma_states current_state; member
1345 return ppd->sdma_state.current_state == qib_sdma_state_s99_running; in __qib_sdma_running()
Dqib_iba7220.c926 switch (ppd->sdma_state.current_state) { in sdma_7220_errors()
1815 switch (ppd->sdma_state.current_state) { in sdma_7220_intr()
3385 if (ppd->sdma_state.current_state == qib_sdma_state_s20_idle && in get_7220_link_buf()
3386 ppd->sdma_state.current_state != qib_sdma_state_s00_hw_down) { in get_7220_link_buf()
3754 if (ppd->sdma_state.current_state != in qib_7220_ib_updown()
Dqib_iba7322.c1614 qib_sdma_state_names[ppd->sdma_state.current_state], in sdma_7322_p_errors()
1619 switch (ppd->sdma_state.current_state) { in sdma_7322_p_errors()
/linux-4.4.14/net/llc/
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,
[all …]
/linux-4.4.14/drivers/staging/rdma/hfi1/
Dsdma.c522 if (curr_sde->state.current_state != sdma_state_s99_running) { in sdma_err_progress_check()
699 sdma_state_names[ss->current_state], in sdma_set_state()
703 ss->previous_state = ss->current_state; in sdma_set_state()
705 ss->current_state = next_state; in sdma_set_state()
1576 sdma_state_names[sde->state.current_state]); in sdma_engine_error()
1587 sdma_state_names[sde->state.current_state]); in sdma_engine_error()
1897 sdma_state_name(sde->state.current_state), in sdma_seqfile_dump_sde()
2222 if (sde->state.current_state == sdma_state_s99_running) in sdma_process_event()
2238 sdma_state_names[ss->current_state], in __sdma_process_event()
2242 switch (ss->current_state) { in __sdma_process_event()
Dsdma.h203 enum sdma_states current_state; member
535 return engine->state.current_state == sdma_state_s99_running; in __sdma_running()
/linux-4.4.14/drivers/acpi/
Dprocessor_throttling.c316 int current_state; in acpi_processor_tstate_has_changed() local
335 current_state = pr->throttling.state; in acpi_processor_tstate_has_changed()
336 if (current_state > throttling_limit) { in acpi_processor_tstate_has_changed()
350 } else if (current_state == throttling_limit) { in acpi_processor_tstate_has_changed()
/linux-4.4.14/kernel/
Dauditsc.c206 ctx->current_state = AUDIT_RECORD_CONTEXT; in audit_set_auditable()
765 ctx->current_state = state; in audit_filter_syscall()
792 ctx->current_state = state; in audit_filter_inode_name()
1470 if (context->in_syscall && context->current_state == AUDIT_RECORD_CONTEXT) in __audit_free()
1528 context->current_state = state; in __audit_syscall_entry()
1557 if (context->in_syscall && context->current_state == AUDIT_RECORD_CONTEXT) in __audit_syscall_exit()
1952 ctx->current_state = AUDIT_RECORD_CONTEXT; in auditsc_get_stamp()
Daudit.h111 enum audit_state state, current_state; member
/linux-4.4.14/drivers/xen/xenbus/
Dxenbus_client.c200 int current_state; in __xenbus_switch_state() local
215 err = xenbus_scanf(xbt, dev->nodename, "state", "%d", &current_state); in __xenbus_switch_state()
/linux-4.4.14/sound/pci/lx6464es/
Dlx_core.c641 u16 current_state; in lx_pipe_wait_for_state() local
642 int err = lx_pipe_state(chip, pipe, is_capture, &current_state); in lx_pipe_wait_for_state()
647 if (current_state == state) in lx_pipe_wait_for_state()
/linux-4.4.14/arch/powerpc/kernel/
Dpci_of_scan.c163 dev->current_state = PCI_UNKNOWN; /* unknown power state */ in of_create_pci_dev()
/linux-4.4.14/drivers/pci/pcie/
Daspm.c309 if ((endpoint->current_state != PCI_D0) && in pcie_aspm_check_latency()
310 (endpoint->current_state != PCI_UNKNOWN)) in pcie_aspm_check_latency()
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_dcb.c117 enum cxgb4_dcb_state current_state = dcb->state; in cxgb4_dcb_state_fsm() local
122 switch (current_state) { in cxgb4_dcb_state_fsm()
246 current_state, transition_to); in cxgb4_dcb_state_fsm()
/linux-4.4.14/arch/x86/pci/
Dfixup.c435 dev->current_state = PCI_D3cold; in pci_pre_fixup_toshiba_ohci1394()
/linux-4.4.14/include/linux/
Ddrbd_genl.h196 __u32_field(2, DRBD_F_REQUIRED, current_state)
Dpci.h293 pci_power_t current_state; /* Current operating state. In ACPI-speak, member
/linux-4.4.14/drivers/usb/core/
Dhcd-pci.c576 pci_power_name(pci_dev->current_state)); in hcd_pci_suspend_noirq()
/linux-4.4.14/drivers/ata/
Data_piix.c1026 if (pdev->current_state == PCI_D0) in piix_pci_device_suspend()
1027 pdev->current_state = PCI_UNKNOWN; in piix_pci_device_suspend()
/linux-4.4.14/drivers/pci/hotplug/
Dacpiphp_glue.c518 dev->current_state = PCI_D0; in enable_slot()
/linux-4.4.14/drivers/staging/iio/light/
Dtsl2x7x_core.c864 u8 current_state = chip->tsl2x7x_chip_status; in tsl2x7x_prox_cal() local
906 if (current_state == TSL2X7X_CHIP_WORKING) in tsl2x7x_prox_cal()
/linux-4.4.14/drivers/scsi/mpt3sas/
Dmpt3sas_base.c3596 u32 current_state; in _base_wait_on_iocstate() local
3601 current_state = mpt3sas_base_get_iocstate(ioc, 1); in _base_wait_on_iocstate()
3602 if (current_state == ioc_state) in _base_wait_on_iocstate()
3604 if (count && current_state == MPI2_IOC_STATE_FAULT) in _base_wait_on_iocstate()
3613 return current_state; in _base_wait_on_iocstate()
Dmpt3sas_scsih.c8672 pci_power_t device_state = pdev->current_state; in scsih_resume()
/linux-4.4.14/arch/sparc/kernel/
Dpci.c327 dev->current_state = PCI_UNKNOWN; /* unknown power state */ in of_create_pci_dev()
/linux-4.4.14/scripts/kconfig/
Dzconf.lex.c714 static yy_state_type yy_try_NUL_trans (yy_state_type current_state );
Dzconf.lex.c_shipped714 static yy_state_type yy_try_NUL_trans (yy_state_type current_state );
1677 * next_state = yy_try_NUL_trans( current_state );
/linux-4.4.14/drivers/scsi/pm8001/
Dpm8001_init.c1199 device_state = pdev->current_state; in pm8001_pci_resume()
/linux-4.4.14/scripts/dtc/
Ddtc-lexer.lex.c_shipped362 static yy_state_type yy_try_NUL_trans (yy_state_type current_state );
1543 * next_state = yy_try_NUL_trans( current_state );
/linux-4.4.14/scripts/genksyms/
Dlex.lex.c_shipped351 static yy_state_type yy_try_NUL_trans (yy_state_type current_state );
1210 * next_state = yy_try_NUL_trans( current_state );
/linux-4.4.14/drivers/net/ethernet/3com/
D3c59x.c3057 state = VORTEX_PCI(vp)->current_state; in vortex_ioctl()
3268 if (VORTEX_PCI(vp)->current_state < PCI_D3hot) in acpi_set_WOL()
/linux-4.4.14/sound/pci/hda/
Dhda_intel.c1163 pci->current_state = PCI_D3cold; in azx_vs_set_state()
/linux-4.4.14/drivers/video/fbdev/aty/
Dradeon_pm.c2533 rinfo->pdev->current_state = state; in radeonfb_whack_power_state()
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8192de/
Dphy.c3165 } else if (rtlpci->pdev->current_state != PCI_D0) { in rtl92d_phy_set_rf_power_state()
/linux-4.4.14/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_main.c3849 if (oth_pdev->current_state != PCI_D3cold) { in qlcnic_is_first_func()
/linux-4.4.14/Documentation/power/
Dpci.txt306 pci_power_t current_state; /* Current operating state. */
/linux-4.4.14/drivers/message/fusion/
Dmptbase.c2160 u32 device_state = pdev->current_state; in mpt_resume()
/linux-4.4.14/drivers/net/wireless/
Dairo.c5622 pci_power_t prev_state = pdev->current_state; in airo_pci_resume()