Home
last modified time | relevance | path

Searched refs:link_speed (Results 1 – 25 of 82) sorted by relevance

1234

/drivers/net/ethernet/oki-semi/pch_gbe/
Dpch_gbe_param.c336 hw->mac.link_speed = SPEED_10; in pch_gbe_check_copper_options()
345 hw->mac.link_speed = SPEED_10; in pch_gbe_check_copper_options()
355 hw->mac.link_speed = SPEED_10; in pch_gbe_check_copper_options()
364 hw->mac.link_speed = SPEED_10; in pch_gbe_check_copper_options()
371 hw->mac.link_speed = SPEED_10; in pch_gbe_check_copper_options()
378 hw->mac.link_speed = SPEED_10; in pch_gbe_check_copper_options()
387 hw->mac.link_speed = SPEED_100; in pch_gbe_check_copper_options()
394 hw->mac.link_speed = SPEED_100; in pch_gbe_check_copper_options()
401 hw->mac.link_speed = SPEED_100; in pch_gbe_check_copper_options()
415 hw->mac.link_speed = SPEED_1000; in pch_gbe_check_copper_options()
Dpch_gbe_phy.c259 ethtool_cmd_speed_set(&cmd, hw->mac.link_speed); in pch_gbe_phy_init_setting()
/drivers/net/ethernet/mellanox/mlx4/
Den_port.c95 switch (qport_context->link_speed & MLX4_EN_SPEED_MASK) { in mlx4_en_QUERY_PORT()
97 state->link_speed = 1000; in mlx4_en_QUERY_PORT()
101 state->link_speed = 10000; in mlx4_en_QUERY_PORT()
104 state->link_speed = 40000; in mlx4_en_QUERY_PORT()
107 state->link_speed = -1; in mlx4_en_QUERY_PORT()
Den_selftest.c131 if (priv->port_state.link_speed != SPEED_10000) in mlx4_en_test_speed()
132 return priv->port_state.link_speed; in mlx4_en_test_speed()
/drivers/net/ethernet/intel/ixgbe/
Dixgbe_82599.c503 ixgbe_link_speed link_speed = IXGBE_LINK_SPEED_UNKNOWN; in ixgbe_setup_mac_link_multispeed_fiber() local
512 status = hw->mac.ops.get_link_capabilities(hw, &link_speed, in ixgbe_setup_mac_link_multispeed_fiber()
517 speed &= link_speed; in ixgbe_setup_mac_link_multispeed_fiber()
528 status = hw->mac.ops.check_link(hw, &link_speed, &link_up, in ixgbe_setup_mac_link_multispeed_fiber()
533 if ((link_speed == IXGBE_LINK_SPEED_10GB_FULL) && link_up) in ixgbe_setup_mac_link_multispeed_fiber()
564 status = hw->mac.ops.check_link(hw, &link_speed, in ixgbe_setup_mac_link_multispeed_fiber()
580 status = hw->mac.ops.check_link(hw, &link_speed, &link_up, in ixgbe_setup_mac_link_multispeed_fiber()
585 if ((link_speed == IXGBE_LINK_SPEED_1GB_FULL) && link_up) in ixgbe_setup_mac_link_multispeed_fiber()
611 status = hw->mac.ops.check_link(hw, &link_speed, &link_up, in ixgbe_setup_mac_link_multispeed_fiber()
658 ixgbe_link_speed link_speed = IXGBE_LINK_SPEED_UNKNOWN; in ixgbe_setup_mac_link_smartspeed() local
[all …]
Dixgbe_sriov.c806 int link_speed) in ixgbe_set_vf_rate_limit() argument
813 rf_int = link_speed / tx_rate; in ixgbe_set_vf_rate_limit()
814 rf_dec = (link_speed - (rf_int * tx_rate)); in ixgbe_set_vf_rate_limit()
854 actual_link_speed = ixgbe_link_mbps(adapter->link_speed); in ixgbe_check_vf_rate_limit()
879 actual_link_speed = ixgbe_link_mbps(adapter->link_speed); in ixgbe_ndo_set_vf_bw()
Dixgbe_dcb.h139 u32 link_speed; /* For bandwidth allocation validation purpose */ member
/drivers/net/ethernet/emulex/benet/
Dbe_ethtool.c441 u16 link_speed = 0; in be_get_settings() local
445 if ((adapter->link_speed < 0) || (!(netdev->flags & IFF_UP))) { in be_get_settings()
447 &link_speed, &link_status, 0); in be_get_settings()
452 if (link_speed) { in be_get_settings()
453 ethtool_cmd_speed_set(ecmd, link_speed*10); in be_get_settings()
501 adapter->link_speed = ethtool_cmd_speed(ecmd); in be_get_settings()
506 ethtool_cmd_speed_set(ecmd, adapter->link_speed); in be_get_settings()
/drivers/net/ethernet/intel/ixgbevf/
Dethtool.c99 u32 link_speed = 0; in ixgbevf_get_settings() local
107 hw->mac.ops.check_link(hw, &link_speed, &link_up, false); in ixgbevf_get_settings()
112 (link_speed == IXGBE_LINK_SPEED_10GB_FULL) ? in ixgbevf_get_settings()
473 u32 link_speed = 0; in ixgbevf_link_test() local
476 hw->mac.ops.check_link(hw, &link_speed, &link_up, true); in ixgbevf_link_test()
Dixgbevf_main.c2354 u32 link_speed = adapter->link_speed; in ixgbevf_watchdog_task() local
2364 if ((hw->mac.ops.check_link(hw, &link_speed, in ixgbevf_watchdog_task()
2367 adapter->link_speed = link_speed; in ixgbevf_watchdog_task()
2376 link_speed = IXGBE_LINK_SPEED_10GB_FULL; in ixgbevf_watchdog_task()
2380 adapter->link_speed = link_speed; in ixgbevf_watchdog_task()
2385 (link_speed == IXGBE_LINK_SPEED_10GB_FULL) ? in ixgbevf_watchdog_task()
2392 adapter->link_speed = 0; in ixgbevf_watchdog_task()
/drivers/firewire/
Dcore-card.c121 BIB_LINK_SPEED(card->link_speed) | in generate_config_rom()
560 u32 max_receive, u32 link_speed, u64 guid) in fw_card_add() argument
565 card->link_speed = link_speed; in fw_card_add()
/drivers/net/ethernet/atheros/atl1c/
Datl1c_ethtool.c52 if (adapter->link_speed != SPEED_0) { in atl1c_get_settings()
53 ethtool_cmd_speed_set(ecmd, adapter->link_speed); in atl1c_get_settings()
Datl1c_main.c281 if (adapter->link_speed != speed || in atl1c_check_link_status()
283 adapter->link_speed = speed; in atl1c_check_link_status()
293 adapter->link_speed, in atl1c_check_link_status()
323 adapter->link_speed = SPEED_0; in atl1c_link_chg_event()
729 adapter->link_speed = SPEED_0; in atl1c_sw_init()
1396 if (hw->adapter->link_speed == SPEED_100 || in atl1c_set_aspm()
1397 hw->adapter->link_speed == SPEED_1000) { in atl1c_set_aspm()
1447 if (adapter->link_speed == SPEED_1000) in atl1c_setup_mac_ctrl()
2389 adapter->link_speed = SPEED_0; in atl1c_down()
2499 if (adapter->link_speed == SPEED_1000 || in atl1c_suspend()
[all …]
/drivers/net/wireless/bcmdhd/
Dwl_android.c195 int link_speed; in wl_android_get_link_speed() local
199 error = wldev_get_link_speed(net, &link_speed); in wl_android_get_link_speed()
204 link_speed = link_speed / 1000; in wl_android_get_link_speed()
205 bytes_written = snprintf(command, total_len, "LinkSpeed %d", link_speed); in wl_android_get_link_speed()
/drivers/scsi/lpfc/
Dlpfc_mbox.c523 mb->un.varInitLnk.link_speed = LINK_SPEED_1G; in lpfc_init_link()
527 mb->un.varInitLnk.link_speed = LINK_SPEED_2G; in lpfc_init_link()
531 mb->un.varInitLnk.link_speed = LINK_SPEED_4G; in lpfc_init_link()
535 mb->un.varInitLnk.link_speed = LINK_SPEED_8G; in lpfc_init_link()
539 mb->un.varInitLnk.link_speed = LINK_SPEED_10G; in lpfc_init_link()
543 mb->un.varInitLnk.link_speed = LINK_SPEED_16G; in lpfc_init_link()
547 mb->un.varInitLnk.link_speed = LINK_SPEED_AUTO; in lpfc_init_link()
553 mb->un.varInitLnk.link_speed = LINK_SPEED_AUTO; in lpfc_init_link()
/drivers/net/ethernet/intel/ixgb/
Dixgb.h144 u16 link_speed; member
/drivers/net/ethernet/sfc/
Dfalcon.c536 int link_speed, isolate; in falcon_reconfigure_mac_wrapper() local
541 case 10000: link_speed = 3; break; in falcon_reconfigure_mac_wrapper()
542 case 1000: link_speed = 2; break; in falcon_reconfigure_mac_wrapper()
543 case 100: link_speed = 1; break; in falcon_reconfigure_mac_wrapper()
544 default: link_speed = 0; break; in falcon_reconfigure_mac_wrapper()
555 FRF_AB_MAC_SPEED, link_speed); in falcon_reconfigure_mac_wrapper()
/drivers/net/ethernet/atheros/atl1e/
Datl1e_ethtool.c53 if (adapter->link_speed != SPEED_0) { in atl1e_get_settings()
54 ethtool_cmd_speed_set(ecmd, adapter->link_speed); in atl1e_get_settings()
Datl1e_main.c181 adapter->link_speed = SPEED_0; in atl1e_check_link()
192 if (adapter->link_speed != speed || in atl1e_check_link()
194 adapter->link_speed = speed; in atl1e_check_link()
199 adapter->link_speed, in atl1e_check_link()
244 adapter->link_speed = SPEED_0; in atl1e_link_chg_event()
569 adapter->link_speed = SPEED_0; /* hardware init */ in atl1e_sw_init()
1061 value |= ((u32)((SPEED_1000 == adapter->link_speed) ? in atl1e_setup_mac_ctrl()
1987 adapter->link_speed = SPEED_0; in atl1e_down()
/drivers/net/ethernet/atheros/atlx/
Datl2.c102 adapter->link_speed = SPEED_0; /* hardware init */ in atl2_sw_init()
586 adapter->link_speed = SPEED_0; in atl2_check_for_link()
785 adapter->link_speed = SPEED_0; in atl2_down()
1203 adapter->link_speed = SPEED_0; in atl2_check_link()
1234 if (adapter->link_speed != speed || in atl2_check_link()
1236 adapter->link_speed = speed; in atl2_check_link()
1241 adapter->link_speed, in atl2_check_link()
1261 adapter->link_speed = SPEED_0; in atl2_check_link()
1791 if (adapter->link_speed != SPEED_0) {
1792 ethtool_cmd_speed_set(ecmd, adapter->link_speed);
Datl1.c960 adapter->link_speed = SPEED_0; /* hardware init */ in atl1_sw_init()
1280 value |= ((u32) ((SPEED_1000 == adapter->link_speed) ? in atl1_setup_mac_ctrl()
1323 adapter->link_speed = SPEED_0; in atl1_check_link()
1359 if (adapter->link_speed != speed || in atl1_check_link()
1361 adapter->link_speed = speed; in atl1_check_link()
1367 netdev->name, adapter->link_speed, in atl1_check_link()
1380 adapter->link_speed = SPEED_0; in atl1_check_link()
2628 adapter->link_speed = SPEED_0; in atl1_down()
3235 u16 link_speed, link_duplex; in atl1_get_settings() local
3236 atl1_get_speed_and_duplex(hw, &link_speed, &link_duplex); in atl1_get_settings()
[all …]
/drivers/net/ethernet/intel/igbvf/
Digbvf.h193 u16 link_speed; member
/drivers/net/ethernet/brocade/bna/
Dbfa_defs_cna.h200 u8 link_speed; member
/drivers/net/ethernet/qlogic/netxen/
Dnetxen_nic_hw.c1899 adapter->link_speed = 0; in netxen_nic_set_link_parameters()
1908 adapter->link_speed = SPEED_1000; in netxen_nic_set_link_parameters()
1921 adapter->link_speed = SPEED_10; in netxen_nic_set_link_parameters()
1924 adapter->link_speed = SPEED_100; in netxen_nic_set_link_parameters()
1927 adapter->link_speed = SPEED_1000; in netxen_nic_set_link_parameters()
1930 adapter->link_speed = 0; in netxen_nic_set_link_parameters()
1953 adapter->link_speed = 0; in netxen_nic_set_link_parameters()
Dnetxen_nic_ethtool.c124 ethtool_cmd_speed_set(ecmd, adapter->link_speed); in netxen_nic_get_settings()
141 ethtool_cmd_speed_set(ecmd, adapter->link_speed); in netxen_nic_get_settings()
279 adapter->link_speed = speed; in netxen_nic_set_settings()

1234