Home
last modified time | relevance | path

Searched refs:link_state (Results 1 – 25 of 216) sorted by relevance

123456789

/kernel/linux/linux-5.10/include/trace/events/
Dufs.h160 int dev_state, int link_state),
162 TP_ARGS(dev_name, err, usecs, dev_state, link_state),
169 __field(int, link_state)
177 __entry->link_state = link_state;
185 __print_symbolic(__entry->link_state, UFS_LINK_STATES),
192 int dev_state, int link_state),
193 TP_ARGS(dev_name, err, usecs, dev_state, link_state));
197 int dev_state, int link_state),
198 TP_ARGS(dev_name, err, usecs, dev_state, link_state));
202 int dev_state, int link_state),
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/dpaa2/
Ddpmac.c129 struct dpmac_link_state *link_state) in dpmac_set_link_state() argument
139 cmd_params->options = cpu_to_le64(link_state->options); in dpmac_set_link_state()
140 cmd_params->rate = cpu_to_le32(link_state->rate); in dpmac_set_link_state()
141 dpmac_set_field(cmd_params->state, STATE, link_state->up); in dpmac_set_link_state()
143 link_state->state_valid); in dpmac_set_link_state()
144 cmd_params->supported = cpu_to_le64(link_state->supported); in dpmac_set_link_state()
145 cmd_params->advertising = cpu_to_le64(link_state->advertising); in dpmac_set_link_state()
Ddpaa2-eth-dcb.c11 if (!(priv->link_state.options & DPNI_LINK_OPT_PFC_PAUSE)) in dpaa2_eth_dcbnl_ieee_getpfc()
79 tx_pause = dpaa2_eth_tx_pause_enabled(priv->link_state.options); in dpaa2_eth_dcbnl_ieee_setpfc()
80 if (!dpaa2_eth_rx_pause_enabled(priv->link_state.options) || !tx_pause) in dpaa2_eth_dcbnl_ieee_setpfc()
83 link_cfg.rate = priv->link_state.rate; in dpaa2_eth_dcbnl_ieee_setpfc()
84 link_cfg.options = priv->link_state.options; in dpaa2_eth_dcbnl_ieee_setpfc()
Ddpaa2-ethtool.c105 if (!(priv->link_state.options & DPNI_LINK_OPT_HALF_DUPLEX)) in dpaa2_eth_get_link_ksettings()
107 link_settings->base.speed = priv->link_state.rate; in dpaa2_eth_get_link_ksettings()
128 u64 link_options = priv->link_state.options; in dpaa2_eth_get_pauseparam()
159 cfg.rate = priv->link_state.rate; in dpaa2_eth_set_pauseparam()
160 cfg.options = priv->link_state.options; in dpaa2_eth_set_pauseparam()
170 if (cfg.options == priv->link_state.options) in dpaa2_eth_set_pauseparam()
179 priv->link_state.options = cfg.options; in dpaa2_eth_set_pauseparam()
/kernel/linux/linux-5.10/drivers/net/phy/
Dphylink.c561 struct phylink_link_state link_state; in phylink_mac_initial_config() local
565 link_state = pl->phy_state; in phylink_mac_initial_config()
569 phylink_get_fixed_state(pl, &link_state); in phylink_mac_initial_config()
573 link_state = pl->link_config; in phylink_mac_initial_config()
574 if (link_state.interface == PHY_INTERFACE_MODE_SGMII) in phylink_mac_initial_config()
575 link_state.pause = MLO_PAUSE_NONE; in phylink_mac_initial_config()
582 link_state.link = false; in phylink_mac_initial_config()
584 phylink_apply_manual_flow(pl, &link_state); in phylink_mac_initial_config()
585 phylink_major_config(pl, force_restart, &link_state); in phylink_mac_initial_config()
603 struct phylink_link_state link_state) in phylink_link_up() argument
[all …]
/kernel/linux/linux-5.10/drivers/usb/gadget/udc/bdc/
Dbdc_udc.c181 u32 link_state; in handle_link_state_change() local
184 link_state = BDC_PST(uspc); in handle_link_state_change()
185 switch (link_state) { in handle_link_state_change()
225 dev_dbg(bdc->dev, "link state:%d\n", link_state); in handle_link_state_change()
469 u8 link_state; in bdc_udc_wakeup() local
482 link_state = BDC_PST(uspc); in bdc_udc_wakeup()
483 dev_dbg(bdc->dev, "link_state =%d portsc=%x", link_state, uspc); in bdc_udc_wakeup()
484 if (link_state != BDC_LINK_STATE_U3) { in bdc_udc_wakeup()
487 link_state); in bdc_udc_wakeup()
500 link_state = BDC_PST(uspc); in bdc_udc_wakeup()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/falcon/
Dtenxpress.c354 struct ef4_link_state old_state = efx->link_state; in tenxpress_phy_poll()
356 efx->link_state.up = sfx7101_link_ok(efx); in tenxpress_phy_poll()
357 efx->link_state.speed = 10000; in tenxpress_phy_poll()
358 efx->link_state.fd = true; in tenxpress_phy_poll()
359 efx->link_state.fc = ef4_mdio_get_pause(efx); in tenxpress_phy_poll()
361 sfx7101_check_bad_lp(efx, efx->link_state.up); in tenxpress_phy_poll()
363 return !ef4_link_state_equal(&efx->link_state, &old_state); in tenxpress_phy_poll()
Dqt202x_phy.c190 if (efx->link_state.up || in qt2025c_bug17190_workaround()
387 bool was_up = efx->link_state.up; in qt202x_phy_poll()
389 efx->link_state.up = qt202x_link_ok(efx); in qt202x_phy_poll()
390 efx->link_state.speed = 10000; in qt202x_phy_poll()
391 efx->link_state.fd = true; in qt202x_phy_poll()
392 efx->link_state.fc = efx->wanted_fc; in qt202x_phy_poll()
397 return efx->link_state.up != was_up; in qt202x_phy_poll()
Dtxc43128_phy.c492 bool was_up = efx->link_state.up; in txc43128_phy_poll()
494 efx->link_state.up = txc43128_phy_read_link(efx); in txc43128_phy_poll()
495 efx->link_state.speed = 10000; in txc43128_phy_poll()
496 efx->link_state.fd = true; in txc43128_phy_poll()
497 efx->link_state.fc = efx->wanted_fc; in txc43128_phy_poll()
499 if (efx->link_state.up || (efx->loopback_mode != LOOPBACK_NONE)) { in txc43128_phy_poll()
509 return efx->link_state.up != was_up; in txc43128_phy_poll()
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/
Dmcdi_port_common.c284 struct efx_link_state *link_state, in efx_mcdi_phy_decode_link() argument
290 link_state->fc = EFX_FC_AUTO | EFX_FC_TX | EFX_FC_RX; in efx_mcdi_phy_decode_link()
293 link_state->fc = EFX_FC_TX | EFX_FC_RX; in efx_mcdi_phy_decode_link()
296 link_state->fc = EFX_FC_RX; in efx_mcdi_phy_decode_link()
302 link_state->fc = 0; in efx_mcdi_phy_decode_link()
306 link_state->up = !!(flags & (1 << MC_CMD_GET_LINK_OUT_LINK_UP_LBN)); in efx_mcdi_phy_decode_link()
307 link_state->fd = !!(flags & (1 << MC_CMD_GET_LINK_OUT_FULL_DUPLEX_LBN)); in efx_mcdi_phy_decode_link()
308 link_state->speed = speed; in efx_mcdi_phy_decode_link()
404 struct efx_link_state old_state = efx->link_state; in efx_mcdi_phy_poll()
415 efx->link_state.up = false; in efx_mcdi_phy_poll()
[all …]
Dsriov.c63 int link_state) in efx_sriov_set_vf_link_state() argument
69 link_state); in efx_sriov_set_vf_link_state()
Dsriov.h22 int link_state);
/kernel/linux/linux-5.10/drivers/usb/host/
Dxhci-hub.c683 u32 link_state) in xhci_set_link_state() argument
691 temp |= PORT_LINK_STROBE | link_state; in xhci_set_link_state()
938 u32 link_state; in xhci_get_usb3_port_status() local
944 link_state = portsc & PORT_PLS_MASK; in xhci_get_usb3_port_status()
956 if (portsc & PORT_PLC && (link_state != XDEV_RESUME)) in xhci_get_usb3_port_status()
967 if (link_state == XDEV_U0) in xhci_get_usb3_port_status()
973 link_state != XDEV_RESUME && in xhci_get_usb3_port_status()
974 link_state != XDEV_RECOVERY) { in xhci_get_usb3_port_status()
987 u32 link_state; in xhci_get_usb2_port_status() local
992 link_state = portsc & PORT_PLS_MASK; in xhci_get_usb2_port_status()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/qualcomm/emac/
Demac-sgmii.h21 int (*link_change)(struct emac_adapter *adpt, bool link_state);
49 int emac_sgmii_link_change(struct emac_adapter *adpt, bool link_state);
/kernel/linux/linux-5.10/drivers/usb/dwc3/
Ddebug.h85 dwc3_gadget_link_string(enum dwc3_link_state link_state) in dwc3_gadget_link_string() argument
87 switch (link_state) { in dwc3_gadget_link_string()
126 dwc3_gadget_hs_link_string(enum dwc3_link_state link_state) in dwc3_gadget_hs_link_string() argument
128 switch (link_state) { in dwc3_gadget_hs_link_string()
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/
Ddm.c29 if ((mac->link_state < MAC80211_LINKED) && in rtl92ce_dm_dynamic_txpower()
40 if (mac->link_state >= MAC80211_LINKED) { in rtl92ce_dm_dynamic_txpower()
/kernel/linux/linux-5.10/drivers/gpu/drm/bridge/
Dmegachips-stdpxxxx-ge-b850v3-fw.c173 s32 link_state; in ge_b850v3_lvds_bridge_detect() local
175 link_state = i2c_smbus_read_word_data(stdp4028_i2c, in ge_b850v3_lvds_bridge_detect()
178 if (link_state == STDP4028_CON_STATE_CONNECTED) in ge_b850v3_lvds_bridge_detect()
181 if (link_state == 0) in ge_b850v3_lvds_bridge_detect()
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/
Ddm.c26 if ((mac->link_state < MAC80211_LINKED) && in rtl92cu_dm_dynamic_txpower()
37 if (mac->link_state >= MAC80211_LINKED) { in rtl92cu_dm_dynamic_txpower()
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/
Ddm.c107 if (rtlpriv->mac80211.link_state >= MAC80211_LINKED) { in rtl92ee_dm_cck_packet_detection_thresh()
144 bfirstconnect = (mac->link_state >= MAC80211_LINKED) && in rtl92ee_dm_dig()
146 bfirstdisconnect = (mac->link_state < MAC80211_LINKED) && in rtl92ee_dm_dig()
153 if (mac->link_state >= MAC80211_LINKED) { in rtl92ee_dm_dig()
224 if (mac->link_state >= MAC80211_LINKED) { in rtl92ee_dm_dig()
263 dm_dig->media_connect_0 = ((mac->link_state >= MAC80211_LINKED) ? in rtl92ee_dm_dig()
334 if ((mac->link_state < MAC80211_LINKED) && in rtl92ee_dm_find_minimum_rssi()
340 if (mac->link_state >= MAC80211_LINKED) { in rtl92ee_dm_find_minimum_rssi()
590 if (rtlpriv->mac80211.link_state < MAC80211_LINKED) in rtl92ee_dm_dynamic_primary_cca_ckeck()
680 if (rtlpriv->mac80211.link_state < MAC80211_LINKED) { in rtl92ee_dm_dynamic_atc_switch()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtlwifi/
Dps.c202 if (mac->link_state > MAC80211_NOLINK) in rtl_ips_nic_off_wq_callback()
229 (mac->link_state == MAC80211_NOLINK) && in rtl_ips_nic_off_wq_callback()
315 if (mac->link_state != MAC80211_LINKED) in rtl_get_fwlps_doze()
335 if (mac->link_state != MAC80211_LINKED) in rtl_lps_set_psmode()
414 if (mac->link_state != MAC80211_LINKED) in rtl_lps_enter_core()
479 if (rtlpriv->mac80211.link_state != MAC80211_LINKED) in rtl_swlps_beacon()
551 if (mac->link_state != MAC80211_LINKED) in rtl_swlps_rf_awake()
589 if ((mac->link_state != MAC80211_LINKED) || (mac->cnt_after_linked < 5)) in rtl_swlps_rf_sleep()
977 if (mac->link_state != MAC80211_LINKED) in rtl_p2p_info()
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/
Ddm.c23 if (mac->link_state == MAC80211_LINKED && in rtl8723e_dm_initial_gain_min_pwdb()
313 if (mac->link_state >= MAC80211_LINKED) in rtl8723e_dm_ctrl_initgain_by_twoport()
355 if ((mac->link_state < MAC80211_LINKED) && in rtl8723e_dm_dynamic_txpower()
366 if (mac->link_state >= MAC80211_LINKED) { in rtl8723e_dm_dynamic_txpower()
473 if (mac->link_state != MAC80211_LINKED) { in rtl8723e_dm_check_edca_turbo()
575 if (mac->link_state == MAC80211_LINKED && in rtl8723e_dm_refresh_rate_adaptive_mask()
716 if (((mac->link_state == MAC80211_NOLINK)) && in rtl8723e_dm_dynamic_bb_powersaving()
723 if (mac->link_state == MAC80211_LINKED) { in rtl8723e_dm_dynamic_bb_powersaving()
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtlwifi/rtl8723be/
Ddm.c265 if ((mac->link_state < MAC80211_LINKED) && in rtl8723be_dm_find_minimum_rssi()
271 if (mac->link_state >= MAC80211_LINKED) { in rtl8723be_dm_find_minimum_rssi()
389 bfirstconnect = (mac->link_state >= MAC80211_LINKED) && in rtl8723be_dm_dig()
391 bfirstdisconnect = (mac->link_state < MAC80211_LINKED) && in rtl8723be_dm_dig()
398 if (mac->link_state >= MAC80211_LINKED) { in rtl8723be_dm_dig()
469 if (mac->link_state >= MAC80211_LINKED) { in rtl8723be_dm_dig()
505 ((mac->link_state >= MAC80211_LINKED) ? true : false); in rtl8723be_dm_dig()
928 if (mac->link_state == MAC80211_LINKED && in rtl8723be_dm_refresh_rate_adaptive_mask()
1052 if (rtlpriv->mac80211.link_state >= MAC80211_LINKED) { in rtl8723be_dm_cck_packet_detection_thresh()
1116 if (rtlpriv->mac80211.link_state < MAC80211_LINKED) { in rtl8723be_dm_dynamic_atc_switch()
[all …]
/kernel/linux/linux-5.10/drivers/pci/pcie/
Daspm.c390 link = endpoint->bus->self->link_state; in pcie_aspm_check_latency()
804 link->pdev->link_state = NULL; in free_link_state()
869 parent = pdev->bus->parent->self->link_state; in alloc_pcie_link_state()
880 pdev->link_state = link; in alloc_pcie_link_state()
905 if (pdev->link_state) in pcie_aspm_init_link_state()
991 if (!parent || !parent->link_state) in pcie_aspm_exit_link_state()
1003 link = parent->link_state; in pcie_aspm_exit_link_state()
1026 struct pcie_link_state *link = pdev->link_state; in pcie_aspm_pm_state_change()
1044 struct pcie_link_state *link = pdev->link_state; in pcie_aspm_powersave_config_link()
1072 return bridge->link_state; in pcie_aspm_get_link()
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/
Dnfp_net_sriov.c174 int link_state) in nfp_app_set_vf_link_state() argument
186 switch (link_state) { in nfp_app_set_vf_link_state()
200 vf_ctrl |= FIELD_PREP(NFP_NET_VF_CFG_CTRL_LINK_STATE, link_state); in nfp_app_set_vf_link_state()
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtlwifi/rtl8192se/
Ddm.c60 if (mac->link_state != MAC80211_LINKED) { in _rtl92s_dm_check_edca_turbo()
224 if ((mac->link_state == MAC80211_LINKED) && in _rtl92s_dm_refresh_rateadaptive_mask()
305 if (mac->link_state >= MAC80211_LINKED) { in _rtl92s_dm_switch_baseband_mrc()
517 if (rtlpriv->mac80211.link_state >= MAC80211_LINKED || in _rtl92s_dm_ctrl_initgain_bytwoport()
577 if ((mac->link_state < MAC80211_LINKED) && in _rtl92s_dm_dynamic_txpower()
588 if (mac->link_state >= MAC80211_LINKED) { in _rtl92s_dm_dynamic_txpower()

123456789