Home
last modified time | relevance | path

Searched refs:media_type (Results 1 – 25 of 84) sorted by relevance

1234

/drivers/net/ethernet/dec/tulip/
Dde2104x.c313 u32 media_type; member
903 media_name[de->media_type]); in de_link_up()
917 unsigned media = de->media_type; in de_set_media()
958 de->media_type = media[i]; in de_next_media()
975 if (de->media_type != DE_MEDIA_AUI && (status & LinkFailStatus)) in de21040_media_timer()
984 media_name[de->media_type], status); in de21040_media_timer()
993 if (de->media_type == DE_MEDIA_AUI) { in de21040_media_timer()
1012 media_name[de->media_type], status); in de21040_media_timer()
1059 if ((de->media_type == DE_MEDIA_TP_AUTO || in de21041_media_timer()
1060 de->media_type == DE_MEDIA_TP || in de21041_media_timer()
[all …]
/drivers/net/ethernet/atheros/atl1e/
Datl1e_param.c68 ATL1E_PARAM(media_type, "MediaType Select");
249 val = media_type[bd]; in atl1e_check_options()
251 adapter->hw.media_type = (u16) val; in atl1e_check_options()
253 adapter->hw.media_type = (u16)(opt.def); in atl1e_check_options()
/drivers/net/ethernet/intel/igb/
De1000_82575.c184 if (hw->phy.media_type != e1000_media_type_copper) { in igb_init_phy_params_82575()
465 (hw->phy.media_type == e1000_media_type_copper) in igb_init_mac_params_82575()
532 hw->phy.media_type = e1000_media_type_internal_serdes; in igb_set_sfp_media_type_82575()
535 hw->phy.media_type = e1000_media_type_internal_serdes; in igb_set_sfp_media_type_82575()
538 hw->phy.media_type = e1000_media_type_copper; in igb_set_sfp_media_type_82575()
540 hw->phy.media_type = e1000_media_type_unknown; in igb_set_sfp_media_type_82575()
545 hw->phy.media_type = e1000_media_type_unknown; in igb_set_sfp_media_type_82575()
623 hw->phy.media_type = e1000_media_type_copper; in igb_get_invariants_82575()
632 hw->phy.media_type = e1000_media_type_internal_serdes; in igb_get_invariants_82575()
637 hw->phy.media_type = e1000_media_type_copper; in igb_get_invariants_82575()
[all …]
De1000_mac.c913 if (hw->phy.media_type == e1000_media_type_internal_serdes) in igb_config_fc_after_link_up()
916 if (hw->phy.media_type == e1000_media_type_copper) in igb_config_fc_after_link_up()
930 if ((hw->phy.media_type == e1000_media_type_copper) && mac->autoneg) { in igb_config_fc_after_link_up()
1098 if ((hw->phy.media_type == e1000_media_type_internal_serdes) in igb_config_fc_after_link_up()
1376 switch (hw->phy.media_type) { in igb_valid_led_default()
1485 if (hw->phy.media_type == e1000_media_type_fiber) { in igb_blink_led()
1527 switch (hw->phy.media_type) { in igb_led_off()
Digb_ethtool.c148 if (hw->phy.media_type == e1000_media_type_copper) { in igb_get_link_ksettings()
225 hw->phy.media_type != e1000_media_type_copper) in igb_get_link_ksettings()
234 if ((hw->phy.media_type == e1000_media_type_fiber) || in igb_get_link_ksettings()
241 if (hw->phy.media_type == e1000_media_type_copper) in igb_get_link_ksettings()
281 if (hw->phy.media_type != e1000_media_type_copper) in igb_set_link_ksettings()
299 if (hw->phy.media_type == e1000_media_type_fiber) { in igb_set_link_ksettings()
431 retval = ((hw->phy.media_type == e1000_media_type_copper) ? in igb_set_pauseparam()
1982 if (hw->phy.media_type == e1000_media_type_internal_serdes) { in igb_link_test()
3037 (hw->phy.media_type != e1000_media_type_copper)) in igb_get_eee()
3117 (hw->phy.media_type != e1000_media_type_copper)) in igb_set_eee()
[all …]
/drivers/net/ethernet/intel/e1000e/
Dmac.c866 if (hw->phy.media_type == e1000_media_type_internal_serdes || in e1000e_setup_fiber_serdes_link()
1014 if (hw->phy.media_type == e1000_media_type_fiber || in e1000e_config_fc_after_link_up()
1015 hw->phy.media_type == e1000_media_type_internal_serdes) in e1000e_config_fc_after_link_up()
1018 if (hw->phy.media_type == e1000_media_type_copper) in e1000e_config_fc_after_link_up()
1032 if ((hw->phy.media_type == e1000_media_type_copper) && mac->autoneg) { in e1000e_config_fc_after_link_up()
1174 if ((hw->phy.media_type == e1000_media_type_internal_serdes) && in e1000e_config_fc_after_link_up()
1539 if (hw->phy.media_type == e1000_media_type_fiber) { in e1000e_setup_led_generic()
1548 } else if (hw->phy.media_type == e1000_media_type_copper) { in e1000e_setup_led_generic()
1579 if (hw->phy.media_type == e1000_media_type_fiber) { in e1000e_blink_led_generic()
1623 switch (hw->phy.media_type) { in e1000e_led_on_generic()
[all …]
Dethtool.c117 if (hw->phy.media_type == e1000_media_type_copper) { in e1000_get_link_ksettings()
176 cmd->base.autoneg = ((hw->phy.media_type == e1000_media_type_fiber) || in e1000_get_link_ksettings()
180 if ((hw->phy.media_type == e1000_media_type_copper) && in e1000_get_link_ksettings()
192 if (hw->phy.media_type != e1000_media_type_copper) in e1000_get_link_ksettings()
216 if ((adapter->hw.phy.media_type == e1000_media_type_fiber) && in e1000_set_spd_dplx()
235 if (adapter->hw.phy.media_type == e1000_media_type_copper) { in e1000_set_spd_dplx()
286 if (hw->phy.media_type != e1000_media_type_copper) { in e1000_set_link_ksettings()
304 if (hw->phy.media_type == e1000_media_type_fiber) in e1000_set_link_ksettings()
400 if (hw->phy.media_type == e1000_media_type_fiber) { in e1000_set_pauseparam()
1422 if (hw->phy.media_type == e1000_media_type_copper && in e1000_integrated_phy_loopback()
[all …]
D80003es2lan.c43 if (hw->phy.media_type != e1000_media_type_copper) { in e1000_init_phy_params_80003es2lan()
122 hw->phy.media_type = e1000_media_type_internal_serdes; in e1000_init_mac_params_80003es2lan()
128 hw->phy.media_type = e1000_media_type_copper; in e1000_init_mac_params_80003es2lan()
645 if (hw->phy.media_type == e1000_media_type_copper) { in e1000_get_link_up_info_80003es2lan()
854 if (hw->phy.media_type != e1000_media_type_copper) in e1000_initialize_hw_bits_80003es2lan()
1085 if (hw->phy.media_type == e1000_media_type_copper) { in e1000_cfg_on_link_up_80003es2lan()
D82571.c50 if (hw->phy.media_type != e1000_media_type_copper) { in e1000_init_phy_params_82571()
204 hw->phy.media_type = e1000_media_type_fiber; in e1000_init_mac_params_82571()
215 hw->phy.media_type = e1000_media_type_internal_serdes; in e1000_init_mac_params_82571()
223 hw->phy.media_type = e1000_media_type_copper; in e1000_init_mac_params_82571()
1054 if (hw->phy.media_type == e1000_media_type_internal_serdes) in e1000_reset_hw_82571()
/drivers/net/ethernet/atheros/atlx/
Datl1.c640 if (hw->media_type == MEDIA_TYPE_AUTO_SENSOR || in atl1_phy_reset()
641 hw->media_type == MEDIA_TYPE_1000M_FULL) in atl1_phy_reset()
644 switch (hw->media_type) { in atl1_phy_reset()
717 switch (hw->media_type) { in atl1_phy_setup_autoneg_adv()
1306 switch (hw->media_type) { in atl1_check_link()
1357 if (hw->media_type != MEDIA_TYPE_AUTO_SENSOR && in atl1_check_link()
1358 hw->media_type != MEDIA_TYPE_1000M_FULL) { in atl1_check_link()
1359 switch (hw->media_type) { in atl1_check_link()
3205 if (hw->media_type == MEDIA_TYPE_AUTO_SENSOR || in atl1_get_link_ksettings()
3206 hw->media_type == MEDIA_TYPE_1000M_FULL) { in atl1_get_link_ksettings()
[all …]
/drivers/net/ethernet/intel/e1000/
De1000_hw.c344 hw->media_type = e1000_media_type_internal_serdes; in e1000_set_media_type()
350 hw->media_type = e1000_media_type_fiber; in e1000_set_media_type()
353 hw->media_type = e1000_media_type_copper; in e1000_set_media_type()
358 hw->media_type = e1000_media_type_fiber; in e1000_set_media_type()
362 hw->media_type = e1000_media_type_copper; in e1000_set_media_type()
647 if (hw->media_type != e1000_media_type_internal_serdes) in e1000_adjust_serdes_amplitude()
749 ret_val = (hw->media_type == e1000_media_type_copper) ? in e1000_setup_link()
814 if (hw->media_type == e1000_media_type_fiber) in e1000_setup_fiber_serdes_link()
901 if (hw->media_type == e1000_media_type_internal_serdes || in e1000_setup_fiber_serdes_link()
2060 if (((hw->media_type == e1000_media_type_fiber) && in e1000_config_fc_after_link_up()
[all …]
De1000_ethtool.c93 if (hw->media_type == e1000_media_type_copper) { in e1000_get_link_ksettings()
140 cmd->base.autoneg = ((hw->media_type == e1000_media_type_fiber) || in e1000_get_link_ksettings()
144 if ((hw->media_type == e1000_media_type_copper) && in e1000_get_link_ksettings()
179 if (hw->media_type != e1000_media_type_copper) in e1000_set_link_ksettings()
194 if (hw->media_type == e1000_media_type_fiber) in e1000_set_link_ksettings()
297 retval = ((hw->media_type == e1000_media_type_fiber) ? in e1000_set_pauseparam()
407 hw->media_type == e1000_media_type_copper) { in e1000_get_regs()
1231 if (hw->media_type == e1000_media_type_copper && in e1000_integrated_phy_loopback()
1264 if (hw->media_type == e1000_media_type_copper) { in e1000_set_phy_loopback()
1305 if (hw->media_type == e1000_media_type_fiber || in e1000_setup_loopback_test()
[all …]
De1000_main.c419 if (hw->media_type == e1000_media_type_copper) { in e1000_power_up_phy()
440 hw->media_type == e1000_media_type_copper) { in e1000_power_down_phy()
901 if (hw->media_type == e1000_media_type_copper) { in e1000_init_hw_struct()
1621 if ((hw->media_type == e1000_media_type_fiber || in e1000_configure_tx()
1622 hw->media_type == e1000_media_type_internal_serdes)) in e1000_configure_tx()
2395 switch (hw->media_type) { in e1000_has_link()
3716 if (hw->media_type == e1000_media_type_copper) { in e1000_update_stats()
4763 if (hw->media_type != e1000_media_type_copper) in e1000_mii_ioctl()
4790 if (hw->media_type == e1000_media_type_copper) { in e1000_mii_ioctl()
5022 if ((hw->media_type == e1000_media_type_fiber) && in e1000_set_spd_dplx()
[all …]
/drivers/atm/
Dfore200e.h684 typedef enum media_type { enum
692 #define FORE200E_MEDIA_INDEX(media_type) ((media_type)>>4) argument
713 enum media_type media_type; /* media type id */ member
/drivers/net/ethernet/hisilicon/hns3/hns3vf/
Dhclgevf_main.h165 u8 media_type; member
206 u8 media_type; member
/drivers/net/ethernet/hisilicon/hns/
Dhns_dsaf_mac.c102 if (mac_cb->media_type == HNAE_MEDIA_TYPE_FIBER) { in hns_mac_get_link_status()
840 const char *media_type; in hns_mac_get_info() local
846 mac_cb->media_type = HNAE_MEDIA_TYPE_UNKNOWN; in hns_mac_get_info()
959 &media_type)) { in hns_mac_get_info()
961 if (!strncmp(media_type_defs[i].name, media_type, in hns_mac_get_info()
963 mac_cb->media_type = media_type_defs[i].value; in hns_mac_get_info()
Dhns_ae_adapt.c129 ae_handle->media_type = vf_cb->mac_cb->media_type; in hns_ae_get_handle()
819 if (mac_cb->media_type != HNAE_MEDIA_TYPE_FIBER) in hns_ae_update_led_status()
/drivers/net/ethernet/intel/igc/
Digc_base.c161 if (hw->phy.media_type != igc_media_type_copper) { in igc_init_phy_params_base()
223 hw->phy.media_type = igc_media_type_copper; in igc_get_invariants_base()
/drivers/net/ethernet/intel/ixgbe/
Dixgbe_common.c55 switch (hw->phy.media_type) { in ixgbe_device_supports_autoneg_fc()
142 switch (hw->phy.media_type) { in ixgbe_setup_fc_generic()
176 if (hw->phy.media_type == ixgbe_media_type_backplane) in ixgbe_setup_fc_generic()
179 else if (hw->phy.media_type == ixgbe_media_type_copper) in ixgbe_setup_fc_generic()
189 if (hw->phy.media_type == ixgbe_media_type_backplane) { in ixgbe_setup_fc_generic()
192 } else if (hw->phy.media_type == ixgbe_media_type_copper) { in ixgbe_setup_fc_generic()
210 if (hw->phy.media_type == ixgbe_media_type_backplane) in ixgbe_setup_fc_generic()
213 else if (hw->phy.media_type == ixgbe_media_type_copper) in ixgbe_setup_fc_generic()
242 if (hw->phy.media_type == ixgbe_media_type_backplane) { in ixgbe_setup_fc_generic()
251 } else if ((hw->phy.media_type == ixgbe_media_type_copper) && in ixgbe_setup_fc_generic()
[all …]
/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_link.c4460 (phy->media_type != ETH_PHY_SFP_1G_FIBER)) { in bnx2x_warpcore_config_sfi()
4832 dev_info.port_hw_config[port].media_type); in bnx2x_link_status_update()
4835 params->phy[INT_PHY].media_type = in bnx2x_link_status_update()
4838 params->phy[EXT_PHY1].media_type = in bnx2x_link_status_update()
4841 params->phy[EXT_PHY2].media_type = in bnx2x_link_status_update()
5809 if ((!link_up) && (phy->media_type == ETH_PHY_KR) && in bnx2x_warpcore_read_status()
6501 serdes_phy_type = ((params->phy[phy_index].media_type == in bnx2x_test_link()
6503 (params->phy[phy_index].media_type == in bnx2x_test_link()
6505 (params->phy[phy_index].media_type == in bnx2x_test_link()
6507 (params->phy[phy_index].media_type == in bnx2x_test_link()
[all …]
/drivers/net/ethernet/aquantia/atlantic/hw_atl/
Dhw_atl_a0.c52 .media_type = AQ_HW_MEDIA_TYPE_FIBRE,
61 .media_type = AQ_HW_MEDIA_TYPE_TP,
71 .media_type = AQ_HW_MEDIA_TYPE_TP,
80 .media_type = AQ_HW_MEDIA_TYPE_TP,
Dhw_atl_b0.c61 .media_type = AQ_HW_MEDIA_TYPE_FIBRE,
71 .media_type = AQ_HW_MEDIA_TYPE_TP,
81 .media_type = AQ_HW_MEDIA_TYPE_TP,
90 .media_type = AQ_HW_MEDIA_TYPE_TP,
98 .media_type = AQ_HW_MEDIA_TYPE_TP,
108 .media_type = AQ_HW_MEDIA_TYPE_TP,
/drivers/net/ethernet/qlogic/qed/
Dqed_main.c1807 static int qed_get_port_type(u32 media_type) in qed_get_port_type() argument
1811 switch (media_type) { in qed_get_port_type()
1873 u32 media_type, tcvr_state, tcvr_type; in qed_fill_link_capability() local
1876 if (qed_mcp_get_media_type(hwfn, ptt, &media_type)) in qed_fill_link_capability()
1877 media_type = MEDIA_UNSPECIFIED; in qed_fill_link_capability()
1890 media_type, tcvr_state, tcvr_type, speed_mask, board_cfg); in qed_fill_link_capability()
1892 switch (media_type) { in qed_fill_link_capability()
2110 u32 media_type, speed_mask; in qed_fill_link() local
2177 qed_mcp_get_media_type(hwfn, ptt, &media_type); in qed_fill_link()
2178 if_link->port = qed_get_port_type(media_type); in qed_fill_link()
/drivers/net/ethernet/aquantia/atlantic/hw_atl2/
Dhw_atl2.c63 .media_type = AQ_HW_MEDIA_TYPE_TP,
74 .media_type = AQ_HW_MEDIA_TYPE_TP,
83 .media_type = AQ_HW_MEDIA_TYPE_TP,
/drivers/net/ethernet/hisilicon/hns3/
Dhns3_ethtool.c727 u8 media_type; in hns3_get_link_ksettings() local
732 ops->get_media_type(h, &media_type, &module_type); in hns3_get_link_ksettings()
736 switch (media_type) { in hns3_get_link_ksettings()
789 u8 media_type = HNAE3_MEDIA_TYPE_UNKNOWN; in hns3_check_ksettings_param() local
809 ops->get_media_type(handle, &media_type, &module_type); in hns3_check_ksettings_param()
812 media_type != HNAE3_MEDIA_TYPE_COPPER) { in hns3_check_ksettings_param()

1234