/Linux-v6.6/drivers/net/ethernet/dec/tulip/ |
D | de2104x.c | 313 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 …]
|
/Linux-v6.6/drivers/net/ethernet/atheros/atl1e/ |
D | atl1e_param.c | 68 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()
|
/Linux-v6.6/drivers/net/ethernet/intel/e1000e/ |
D | mac.c | 866 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 …]
|
D | ethtool.c | 117 if (hw->phy.media_type == e1000_media_type_copper) { in e1000_get_link_ksettings() 178 cmd->base.autoneg = ((hw->phy.media_type == e1000_media_type_fiber) || in e1000_get_link_ksettings() 182 if ((hw->phy.media_type == e1000_media_type_copper) && in e1000_get_link_ksettings() 194 if (hw->phy.media_type != e1000_media_type_copper) in e1000_get_link_ksettings() 224 if ((adapter->hw.phy.media_type == e1000_media_type_fiber) && in e1000_set_spd_dplx() 243 if (adapter->hw.phy.media_type == e1000_media_type_copper) { in e1000_set_spd_dplx() 294 if (hw->phy.media_type != e1000_media_type_copper) { in e1000_set_link_ksettings() 312 if (hw->phy.media_type == e1000_media_type_fiber) in e1000_set_link_ksettings() 408 if (hw->phy.media_type == e1000_media_type_fiber) { in e1000_set_pauseparam() 1436 if (hw->phy.media_type == e1000_media_type_copper && in e1000_integrated_phy_loopback() [all …]
|
D | 80003es2lan.c | 43 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()
|
D | 82571.c | 50 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()
|
/Linux-v6.6/drivers/net/ethernet/intel/igb/ |
D | e1000_82575.c | 184 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 …]
|
D | e1000_mac.c | 913 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()
|
D | igb_ethtool.c | 148 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() 1986 if (hw->phy.media_type == e1000_media_type_internal_serdes) { in igb_link_test() 3041 (hw->phy.media_type != e1000_media_type_copper)) in igb_get_eee() 3121 (hw->phy.media_type != e1000_media_type_copper)) in igb_set_eee() [all …]
|
/Linux-v6.6/drivers/net/ethernet/atheros/atlx/ |
D | atl1.c | 640 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() 3207 if (hw->media_type == MEDIA_TYPE_AUTO_SENSOR || in atl1_get_link_ksettings() 3208 hw->media_type == MEDIA_TYPE_1000M_FULL) { in atl1_get_link_ksettings() [all …]
|
/Linux-v6.6/drivers/net/ethernet/intel/e1000/ |
D | e1000_hw.c | 344 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 …]
|
D | e1000_ethtool.c | 93 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() 1235 if (hw->media_type == e1000_media_type_copper && in e1000_integrated_phy_loopback() 1268 if (hw->media_type == e1000_media_type_copper) { in e1000_set_phy_loopback() 1309 if (hw->media_type == e1000_media_type_fiber || in e1000_setup_loopback_test() [all …]
|
/Linux-v6.6/drivers/net/ethernet/wangxun/txgbe/ |
D | txgbe_main.c | 323 wx->media_type = sp_media_fiber; in txgbe_init_type_code() 327 wx->media_type = sp_media_copper; in txgbe_init_type_code() 332 wx->media_type = sp_media_backplane; in txgbe_init_type_code() 336 wx->media_type = sp_media_fiber; in txgbe_init_type_code() 338 wx->media_type = sp_media_copper; in txgbe_init_type_code() 341 wx->media_type = sp_media_unknown; in txgbe_init_type_code()
|
D | txgbe_hw.c | 294 if (wx->media_type != sp_media_copper) { in txgbe_reset_hw()
|
D | txgbe_phy.c | 265 if (wx->media_type == sp_media_copper) { in txgbe_phylink_init() 758 if (txgbe->wx->media_type == sp_media_copper) in txgbe_init_phy() 822 if (txgbe->wx->media_type == sp_media_copper) { in txgbe_remove_phy()
|
/Linux-v6.6/drivers/atm/ |
D | fore200e.h | 684 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
|
/Linux-v6.6/drivers/net/ethernet/hisilicon/hns3/hns3vf/ |
D | hclgevf_main.h | 144 u8 media_type; member 165 u8 media_type; member
|
/Linux-v6.6/drivers/net/ethernet/hisilicon/hns/ |
D | hns_dsaf_mac.c | 81 if (mac_cb->media_type == HNAE_MEDIA_TYPE_FIBER) { in hns_mac_get_link_status() 811 const char *media_type; in hns_mac_get_info() local 817 mac_cb->media_type = HNAE_MEDIA_TYPE_UNKNOWN; in hns_mac_get_info() 930 &media_type)) { in hns_mac_get_info() 932 if (!strncmp(media_type_defs[i].name, media_type, in hns_mac_get_info() 934 mac_cb->media_type = media_type_defs[i].value; in hns_mac_get_info()
|
D | hns_ae_adapt.c | 128 ae_handle->media_type = vf_cb->mac_cb->media_type; in hns_ae_get_handle() 818 if (mac_cb->media_type != HNAE_MEDIA_TYPE_FIBER) in hns_ae_update_led_status()
|
/Linux-v6.6/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_common.c | 55 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 …]
|
/Linux-v6.6/drivers/net/ethernet/aquantia/atlantic/hw_atl/ |
D | hw_atl_a0.c | 52 .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,
|
D | hw_atl_b0.c | 61 .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,
|
/Linux-v6.6/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_link.c | 4460 (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() 6503 serdes_phy_type = ((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() 6509 (params->phy[phy_index].media_type == in bnx2x_test_link() [all …]
|
/Linux-v6.6/drivers/net/ethernet/qlogic/qed/ |
D | qed_main.c | 1775 static int qed_get_port_type(u32 media_type) in qed_get_port_type() argument 1779 switch (media_type) { in qed_get_port_type() 1841 u32 media_type, tcvr_state, tcvr_type; in qed_fill_link_capability() local 1844 if (qed_mcp_get_media_type(hwfn, ptt, &media_type)) in qed_fill_link_capability() 1845 media_type = MEDIA_UNSPECIFIED; in qed_fill_link_capability() 1858 media_type, tcvr_state, tcvr_type, speed_mask, board_cfg); in qed_fill_link_capability() 1860 switch (media_type) { in qed_fill_link_capability() 2078 u32 media_type, speed_mask; in qed_fill_link() local 2145 qed_mcp_get_media_type(hwfn, ptt, &media_type); in qed_fill_link() 2146 if_link->port = qed_get_port_type(media_type); in qed_fill_link()
|
/Linux-v6.6/drivers/net/ethernet/aquantia/atlantic/hw_atl2/ |
D | hw_atl2.c | 63 .media_type = AQ_HW_MEDIA_TYPE_TP, 74 .media_type = AQ_HW_MEDIA_TYPE_TP, 83 .media_type = AQ_HW_MEDIA_TYPE_TP,
|