/linux-4.4.14/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_ethtool.c | 441 static u32 bnxt_fw_to_ethtool_support_spds(struct bnxt_link_info *link_info) in bnxt_fw_to_ethtool_support_spds() argument 443 u16 fw_speeds = link_info->support_speeds; in bnxt_fw_to_ethtool_support_spds() 467 static u32 bnxt_fw_to_ethtool_advertised_spds(struct bnxt_link_info *link_info) in bnxt_fw_to_ethtool_advertised_spds() argument 469 u16 fw_speeds = link_info->auto_link_speeds; in bnxt_fw_to_ethtool_advertised_spds() 521 struct bnxt_link_info *link_info = &bp->link_info; in bnxt_get_settings() local 524 cmd->supported = bnxt_fw_to_ethtool_support_spds(link_info); in bnxt_get_settings() 526 if (link_info->auto_link_speeds) in bnxt_get_settings() 529 if (BNXT_AUTO_MODE(link_info->auto_mode)) { in bnxt_get_settings() 531 bnxt_fw_to_ethtool_advertised_spds(link_info); in bnxt_get_settings() 538 if (link_info->auto_pause_setting & BNXT_LINK_PAUSE_BOTH) { in bnxt_get_settings() [all …]
|
D | bnxt.c | 4301 if (bp->link_info.link_up) in bnxt_tx_enable() 4307 if (bp->link_info.link_up) { in bnxt_report_link() 4313 if (bp->link_info.duplex == BNXT_LINK_DUPLEX_FULL) in bnxt_report_link() 4317 if (bp->link_info.pause == BNXT_LINK_PAUSE_BOTH) in bnxt_report_link() 4319 else if (bp->link_info.pause == BNXT_LINK_PAUSE_TX) in bnxt_report_link() 4321 else if (bp->link_info.pause == BNXT_LINK_PAUSE_RX) in bnxt_report_link() 4325 speed = bnxt_fw_to_ethtool_speed(bp->link_info.link_speed); in bnxt_report_link() 4337 struct bnxt_link_info *link_info = &bp->link_info; in bnxt_update_link() local 4340 u8 link_up = link_info->link_up; in bnxt_update_link() 4351 memcpy(&link_info->phy_qcfg_resp, resp, sizeof(*resp)); in bnxt_update_link() [all …]
|
D | bnxt_sriov.c | 186 pf_link_speed = bnxt_fw_to_ethtool_speed(bp->link_info.link_speed); in bnxt_set_vf_bw() 712 memcpy(&phy_qcfg_resp, &bp->link_info.phy_qcfg_resp, in bnxt_vf_set_link()
|
D | bnxt.h | 992 struct bnxt_link_info link_info; member
|
/linux-4.4.14/drivers/staging/octeon/ |
D | ethernet-mdio.c | 119 cvmx_helper_link_info_t link_info; in cvm_oct_adjust_link() local 123 link_info.u64 = 0; in cvm_oct_adjust_link() 124 link_info.s.link_up = priv->last_link ? 1 : 0; in cvm_oct_adjust_link() 125 link_info.s.full_duplex = priv->phydev->duplex ? 1 : 0; in cvm_oct_adjust_link() 126 link_info.s.speed = priv->phydev->speed; in cvm_oct_adjust_link() 128 cvmx_helper_link_set(priv->port, link_info); in cvm_oct_adjust_link() 129 cvm_oct_note_carrier(priv, link_info); in cvm_oct_adjust_link() 137 cvmx_helper_link_info_t link_info; in cvm_oct_common_stop() local 152 link_info.u64 = 0; in cvm_oct_common_stop() 155 cvmx_helper_link_set(priv->port, link_info); in cvm_oct_common_stop() [all …]
|
D | ethernet-rgmii.c | 70 cvmx_helper_link_info_t link_info; in cvm_oct_rgmii_poll() local 84 link_info = cvmx_helper_link_get(priv->port); in cvm_oct_rgmii_poll() 85 if (link_info.u64 == priv->link_info) { in cvm_oct_rgmii_poll() 86 if (link_info.s.speed == 10) { in cvm_oct_rgmii_poll() 128 link_info = cvmx_helper_link_autoconf(priv->port); in cvm_oct_rgmii_poll() 129 priv->link_info = link_info.u64; in cvm_oct_rgmii_poll() 139 if (link_info.s.link_up) { in cvm_oct_rgmii_poll() 145 cvm_oct_note_carrier(priv, link_info); in cvm_oct_rgmii_poll()
|
D | ethernet.c | 490 cvmx_helper_link_info_t link_info; in cvm_oct_common_open() local 511 link_info = cvmx_helper_link_get(priv->port); in cvm_oct_common_open() 512 if (!link_info.s.link_up) in cvm_oct_common_open() 524 cvmx_helper_link_info_t link_info; in cvm_oct_link_poll() local 526 link_info = cvmx_helper_link_get(priv->port); in cvm_oct_link_poll() 527 if (link_info.u64 == priv->link_info) in cvm_oct_link_poll() 530 link_info = cvmx_helper_link_autoconf(priv->port); in cvm_oct_link_poll() 531 priv->link_info = link_info.u64; in cvm_oct_link_poll() 533 if (link_info.s.link_up) { in cvm_oct_link_poll() 539 cvm_oct_note_carrier(priv, link_info); in cvm_oct_link_poll()
|
D | octeon-ethernet.h | 46 u64 link_info; member
|
/linux-4.4.14/arch/mips/cavium-octeon/executive/ |
D | cvmx-helper-board.c | 473 cvmx_helper_link_info_t link_info) in cvmx_helper_board_link_set_phy() argument 496 && (link_info.s.speed == 0)) { in cvmx_helper_board_link_set_phy() 568 switch (link_info.s.speed) { in cvmx_helper_board_link_set_phy() 571 link_info.s.full_duplex; in cvmx_helper_board_link_set_phy() 573 !link_info.s.full_duplex; in cvmx_helper_board_link_set_phy() 577 link_info.s.full_duplex; in cvmx_helper_board_link_set_phy() 579 !link_info.s.full_duplex; in cvmx_helper_board_link_set_phy() 583 link_info.s.full_duplex; in cvmx_helper_board_link_set_phy() 585 !link_info.s.full_duplex; in cvmx_helper_board_link_set_phy() 609 reg_control.s.duplex = link_info.s.full_duplex; in cvmx_helper_board_link_set_phy() [all …]
|
D | cvmx-helper.c | 801 cvmx_helper_link_info_t link_info; in __cvmx_helper_errata_fix_ipd_ptr_alignment() local 963 link_info.u64 = 0; in __cvmx_helper_errata_fix_ipd_ptr_alignment() 964 cvmx_helper_link_set(FIX_IPD_OUTPORT, link_info); in __cvmx_helper_errata_fix_ipd_ptr_alignment() 1116 cvmx_helper_link_info_t link_info; in cvmx_helper_link_autoconf() local 1121 link_info.u64 = 0; in cvmx_helper_link_autoconf() 1122 return link_info; in cvmx_helper_link_autoconf() 1125 link_info = cvmx_helper_link_get(ipd_port); in cvmx_helper_link_autoconf() 1126 if (link_info.u64 == port_link_info[ipd_port].u64) in cvmx_helper_link_autoconf() 1127 return link_info; in cvmx_helper_link_autoconf() 1130 cvmx_helper_link_set(ipd_port, link_info); in cvmx_helper_link_autoconf() [all …]
|
D | cvmx-helper-rgmii.c | 302 cvmx_helper_link_info_t link_info) in __cvmx_helper_rgmii_link_set() argument 373 else if (!link_info.s.link_up) in __cvmx_helper_rgmii_link_set() 377 new_gmx_cfg.s.duplex = link_info.s.full_duplex; in __cvmx_helper_rgmii_link_set() 380 if (link_info.s.speed == 10) { in __cvmx_helper_rgmii_link_set() 383 } else if (link_info.s.speed == 100) { in __cvmx_helper_rgmii_link_set() 392 if (link_info.s.speed == 10) { in __cvmx_helper_rgmii_link_set() 396 } else if (link_info.s.speed == 100) { in __cvmx_helper_rgmii_link_set() 407 if ((link_info.s.speed == 10) || (link_info.s.speed == 100)) { in __cvmx_helper_rgmii_link_set()
|
D | cvmx-helper-sgmii.c | 208 link_info) in __cvmx_helper_sgmii_hardware_init_link_speed() 247 pcsx_miscx_ctl_reg.s.gmxeno = !link_info.s.link_up; in __cvmx_helper_sgmii_hardware_init_link_speed() 250 if (link_info.s.link_up) in __cvmx_helper_sgmii_hardware_init_link_speed() 251 gmxx_prtx_cfg.s.duplex = link_info.s.full_duplex; in __cvmx_helper_sgmii_hardware_init_link_speed() 254 switch (link_info.s.speed) { in __cvmx_helper_sgmii_hardware_init_link_speed() 513 cvmx_helper_link_info_t link_info) in __cvmx_helper_sgmii_link_set() argument 519 link_info); in __cvmx_helper_sgmii_link_set()
|
D | cvmx-helper-xaui.c | 308 int __cvmx_helper_xaui_link_set(int ipd_port, cvmx_helper_link_info_t link_info) in __cvmx_helper_xaui_link_set() argument 318 if (!link_info.s.link_up) in __cvmx_helper_xaui_link_set()
|
D | cvmx-helper-spi.c | 199 int __cvmx_helper_spi_link_set(int ipd_port, cvmx_helper_link_info_t link_info) in __cvmx_helper_spi_link_set() argument
|
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/ |
D | base.c | 1558 rtlpriv->link_info.bcn_rx_inperiod++; in rtl_beacon_statistic() 1602 rtlpriv->link_info.num_rx_in4period[idx] = in rtl_watchdog_wq_callback() 1603 rtlpriv->link_info.num_rx_in4period[idx + 1]; in rtl_watchdog_wq_callback() 1604 rtlpriv->link_info.num_tx_in4period[idx] = in rtl_watchdog_wq_callback() 1605 rtlpriv->link_info.num_tx_in4period[idx + 1]; in rtl_watchdog_wq_callback() 1607 rtlpriv->link_info.num_rx_in4period[3] = in rtl_watchdog_wq_callback() 1608 rtlpriv->link_info.num_rx_inperiod; in rtl_watchdog_wq_callback() 1609 rtlpriv->link_info.num_tx_in4period[3] = in rtl_watchdog_wq_callback() 1610 rtlpriv->link_info.num_tx_inperiod; in rtl_watchdog_wq_callback() 1613 rtlpriv->link_info.num_rx_in4period[idx]; in rtl_watchdog_wq_callback() [all …]
|
D | pci.c | 641 rtlpriv->link_info.tidtx_inperiod[tid]++; in _rtl_pci_tx_isr() 666 if (((rtlpriv->link_info.num_rx_inperiod + in _rtl_pci_tx_isr() 667 rtlpriv->link_info.num_tx_inperiod) > 8) || in _rtl_pci_tx_isr() 668 (rtlpriv->link_info.num_rx_inperiod > 2)) { in _rtl_pci_tx_isr() 890 rtlpriv->link_info.num_rx_inperiod++; in _rtl_pci_rx_interrupt() 920 if (((rtlpriv->link_info.num_rx_inperiod + in _rtl_pci_rx_interrupt() 921 rtlpriv->link_info.num_tx_inperiod) > 8) || in _rtl_pci_rx_interrupt() 922 (rtlpriv->link_info.num_rx_inperiod > 2)) { in _rtl_pci_rx_interrupt() 1011 rtlpriv->link_info.num_tx_inperiod++; in _rtl_pci_interrupt() 1019 rtlpriv->link_info.num_tx_inperiod++; in _rtl_pci_interrupt() [all …]
|
D | ps.c | 431 if (rtlpriv->link_info.busytraffic) in rtl_lps_enter() 626 if (rtlpriv->link_info.busytraffic) in rtl_swlps_rf_sleep()
|
D | usb.c | 482 rtlpriv->link_info.num_rx_inperiod++; in _rtl_usb_rx_process_agg() 524 rtlpriv->link_info.num_rx_inperiod++; in _rtl_usb_rx_process_noagg()
|
D | core.c | 1421 if (rtlpriv->link_info.higher_busytraffic) { in rtl_op_sw_scan_start() 1458 if (rtlpriv->link_info.higher_busytraffic) in rtl_op_sw_scan_complete()
|
D | wifi.h | 2586 struct rt_link_detect link_info; member
|
/linux-4.4.14/drivers/staging/rdma/hfi1/ |
D | diag.c | 978 struct hfi1_link_info link_info; in hfi1_ioctl() local 1014 memset(&link_info, 0, sizeof(link_info)); in hfi1_ioctl() 1016 if (copy_from_user(&link_info, in hfi1_ioctl() 1018 sizeof(link_info))) in hfi1_ioctl() 1021 value = link_info.port_state; in hfi1_ioctl() 1022 index = link_info.port_number; in hfi1_ioctl() 1082 memset(&link_info, 0, sizeof(link_info)); in hfi1_ioctl() 1083 if (copy_from_user(&link_info, in hfi1_ioctl() 1085 sizeof(link_info))) in hfi1_ioctl() 1087 index = link_info.port_number; in hfi1_ioctl() [all …]
|
/linux-4.4.14/arch/mips/include/asm/octeon/ |
D | cvmx-helper-spi.h | 83 cvmx_helper_link_info_t link_info);
|
D | cvmx-helper-sgmii.h | 86 cvmx_helper_link_info_t link_info);
|
D | cvmx-helper-xaui.h | 86 cvmx_helper_link_info_t link_info);
|
D | cvmx-helper-rgmii.h | 92 cvmx_helper_link_info_t link_info);
|
D | cvmx-helper-board.h | 106 cvmx_helper_link_info_t link_info);
|
D | cvmx-helper.h | 194 cvmx_helper_link_info_t link_info);
|
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/ |
D | hal_bt_coexist.c | 46 if (rtlpriv->link_info.busytraffic) { in _rtl8723_dm_bt_check_wifi_state() 50 if (rtlpriv->link_info.tx_busy_traffic) in _rtl8723_dm_bt_check_wifi_state() 57 if (rtlpriv->link_info.rx_busy_traffic) in _rtl8723_dm_bt_check_wifi_state() 534 if (rtlpriv->link_info.tx_busy_traffic) in rtl8723e_dm_bt_is_wifi_up_link()
|
D | hal_btc.c | 102 if (rtlpriv->link_info.busytraffic || in rtl8723e_dm_bt_is_wifi_busy() 103 rtlpriv->link_info.rx_busy_traffic || in rtl8723e_dm_bt_is_wifi_busy() 104 rtlpriv->link_info.tx_busy_traffic) in rtl8723e_dm_bt_is_wifi_busy()
|
/linux-4.4.14/drivers/net/ethernet/intel/i40e/ |
D | i40e_ethtool.c | 259 struct i40e_link_status *hw_link_info = &hw->phy.link_info; in i40e_get_settings_link_up() 480 struct i40e_link_status *hw_link_info = &hw->phy.link_info; in i40e_get_settings() 481 bool link_up = hw_link_info->link_info & I40E_AQ_LINK_UP; in i40e_get_settings() 617 hw->phy.link_info.link_info & I40E_AQ_LINK_UP) in i40e_set_settings() 665 if (!(hw->phy.link_info.an_info & I40E_AQ_AN_COMPLETED)) { in i40e_set_settings() 678 if (hw->phy.link_info.an_info & I40E_AQ_AN_COMPLETED) { in i40e_set_settings() 683 hw->phy.link_info.phy_type != in i40e_set_settings() 730 hw->phy.link_info.requested_speeds = config.link_speed; in i40e_set_settings() 734 if (hw->phy.link_info.link_info & I40E_AQ_LINK_UP) { in i40e_set_settings() 771 bool link_up = hw->phy.link_info.link_info & I40E_AQ_LINK_UP; in i40e_nway_reset() [all …]
|
D | i40e_common.c | 1183 switch (hw->phy.link_info.phy_type) { in i40e_get_media_type() 1801 struct i40e_link_status *hw_link_info = &hw->phy.link_info; in i40e_aq_get_link_info() 1826 hw_link_info->link_info = resp->link_info; in i40e_aq_get_link_info() 2249 *link_up = hw->phy.link_info.link_info & I40E_AQ_LINK_UP; in i40e_get_link_status() 2267 if (hw->phy.link_info.link_info & I40E_AQ_MEDIA_AVAILABLE) { in i40e_update_link_info() 2273 memcpy(hw->phy.link_info.module_type, &abilities.module_type, in i40e_update_link_info() 2274 sizeof(hw->phy.link_info.module_type)); in i40e_update_link_info()
|
D | i40e_virtchnl_pf.c | 76 struct i40e_link_status *ls = &pf->hw.phy.link_info; in i40e_vc_notify_vf_link_state() 87 ls->link_info & I40E_AQ_LINK_UP; in i40e_vc_notify_vf_link_state() 2278 switch (pf->hw.phy.link_info.link_speed) { in i40e_ndo_set_vf_bw() 2409 pf->hw.phy.link_info.link_info & I40E_AQ_LINK_UP; in i40e_ndo_set_vf_link_state() 2411 pf->hw.phy.link_info.link_speed; in i40e_ndo_set_vf_link_state()
|
D | i40e_type.h | 160 u8 link_info; member 223 struct i40e_link_status link_info; member
|
D | i40e_ptp.c | 384 hw_link_info = &hw->phy.link_info; in i40e_ptp_set_increment()
|
D | i40e_main.c | 5039 (vsi->back->hw.phy.link_info.link_speed == I40E_LINK_SPEED_1GB || in i40e_print_link_message() 5040 vsi->back->hw.phy.link_info.link_speed == I40E_LINK_SPEED_100MB)) in i40e_print_link_message() 5044 switch (vsi->back->hw.phy.link_info.link_speed) { in i40e_print_link_message() 5106 if ((pf->hw.phy.link_info.link_info & I40E_AQ_LINK_UP) && in i40e_up_complete() 5114 if ((pf->hw.phy.link_info.link_info & in i40e_up_complete() 5116 (!(pf->hw.phy.link_info.an_info & in i40e_up_complete() 6019 old_link = (pf->hw.phy.link_info_old.link_info & I40E_AQ_LINK_UP); in i40e_link_event() 6029 new_link_speed = pf->hw.phy.link_info.link_speed; in i40e_link_event() 6155 hw->phy.link_info_old = hw->phy.link_info; in i40e_handle_link_event() 6166 if ((status->link_info & I40E_AQ_MEDIA_AVAILABLE) && in i40e_handle_link_event() [all …]
|
D | i40e_adminq_cmd.h | 1724 u8 link_info; member
|
/linux-4.4.14/net/tipc/ |
D | netlink_compat.c | 571 struct tipc_link_info link_info; in tipc_nl_compat_link_dump() local 575 link_info.dest = nla_get_flag(link[TIPC_NLA_LINK_DEST]); in tipc_nl_compat_link_dump() 576 link_info.up = htonl(nla_get_flag(link[TIPC_NLA_LINK_UP])); in tipc_nl_compat_link_dump() 577 strcpy(link_info.str, nla_data(link[TIPC_NLA_LINK_NAME])); in tipc_nl_compat_link_dump() 580 &link_info, sizeof(link_info)); in tipc_nl_compat_link_dump()
|
/linux-4.4.14/drivers/net/ethernet/intel/i40evf/ |
D | i40e_type.h | 160 u8 link_info; member 223 struct i40e_link_status link_info; member
|
D | i40e_adminq_cmd.h | 1721 u8 link_info; member
|
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/btcoexist/ |
D | halbtcoutsrc.c | 49 if (rtlpriv->link_info.busytraffic) in halbtc_is_wifi_busy() 113 if (rtlpriv->link_info.tx_busy_traffic) in halbtc_is_wifi_uplink()
|
/linux-4.4.14/drivers/net/ethernet/cavium/liquidio/ |
D | lio_main.c | 115 struct oct_link_info link_info; member
|