/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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() 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() 1421 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()
|
/kernel/linux/linux-5.10/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 | 882 if (hw->phy.media_type == e1000_media_type_internal_serdes) in igb_config_fc_after_link_up() 885 if (hw->phy.media_type == e1000_media_type_copper) in igb_config_fc_after_link_up() 899 if ((hw->phy.media_type == e1000_media_type_copper) && mac->autoneg) { in igb_config_fc_after_link_up() 1067 if ((hw->phy.media_type == e1000_media_type_internal_serdes) in igb_config_fc_after_link_up() 1345 switch (hw->phy.media_type) { in igb_valid_led_default() 1454 if (hw->phy.media_type == e1000_media_type_fiber) { in igb_blink_led() 1496 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() 1983 if (hw->phy.media_type == e1000_media_type_internal_serdes) { in igb_link_test() 3042 (hw->phy.media_type != e1000_media_type_copper)) in igb_get_eee() 3122 (hw->phy.media_type != e1000_media_type_copper)) in igb_set_eee() [all …]
|
/kernel/linux/linux-5.10/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() 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 …]
|
/kernel/linux/linux-5.10/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() 2059 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() 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 …]
|
D | e1000_main.c | 419 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() 3717 if (hw->media_type == e1000_media_type_copper) { in e1000_update_stats() 4764 if (hw->media_type != e1000_media_type_copper) in e1000_mii_ioctl() 4791 if (hw->media_type == e1000_media_type_copper) { in e1000_mii_ioctl() 5023 if ((hw->media_type == e1000_media_type_fiber) && in e1000_set_spd_dplx() [all …]
|
/kernel/linux/linux-5.10/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
|
/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns3/hns3vf/ |
D | hclgevf_main.h | 159 u8 media_type; member 200 u8 media_type; member
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/igc/ |
D | igc_base.c | 161 if (hw->phy.media_type != igc_media_type_copper) { in igc_init_phy_params_base() 222 hw->phy.media_type = igc_media_type_copper; in igc_get_invariants_base()
|
/kernel/linux/linux-5.10/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() 931 &media_type)) { in hns_mac_get_info() 933 if (!strncmp(media_type_defs[i].name, media_type, in hns_mac_get_info() 935 mac_cb->media_type = media_type_defs[i].value; in hns_mac_get_info()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_common.c | 55 switch (hw->phy.media_type) { in ixgbe_device_supports_autoneg_fc() 141 switch (hw->phy.media_type) { in ixgbe_setup_fc_generic() 175 if (hw->phy.media_type == ixgbe_media_type_backplane) in ixgbe_setup_fc_generic() 178 else if (hw->phy.media_type == ixgbe_media_type_copper) in ixgbe_setup_fc_generic() 188 if (hw->phy.media_type == ixgbe_media_type_backplane) { in ixgbe_setup_fc_generic() 191 } else if (hw->phy.media_type == ixgbe_media_type_copper) { in ixgbe_setup_fc_generic() 209 if (hw->phy.media_type == ixgbe_media_type_backplane) in ixgbe_setup_fc_generic() 212 else if (hw->phy.media_type == ixgbe_media_type_copper) in ixgbe_setup_fc_generic() 241 if (hw->phy.media_type == ixgbe_media_type_backplane) { in ixgbe_setup_fc_generic() 250 } else if ((hw->phy.media_type == ixgbe_media_type_copper) && in ixgbe_setup_fc_generic() [all …]
|
/kernel/linux/linux-5.10/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,
|
/kernel/linux/linux-5.10/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() 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 …]
|
D | bnx2x_ethtool.c | 196 switch (bp->link_params.phy[phy_idx].media_type) { in bnx2x_get_port_type() 266 u32 media_type; in bnx2x_get_link_ksettings() local 277 media_type = bp->link_params.phy[bnx2x_get_cur_phy_idx(bp)].media_type; in bnx2x_get_link_ksettings() 278 if (media_type == ETH_PHY_SFP_1G_FIBER) { in bnx2x_get_link_ksettings() 326 if (media_type == ETH_PHY_KR) { in bnx2x_get_link_ksettings() 337 if (media_type == ETH_PHY_KR) { in bnx2x_get_link_ksettings() 646 (bp->link_params.phy[phy_idx].media_type != in bnx2x_set_link_ksettings()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns3/ |
D | hns3_ethtool.c | 692 u8 media_type; in hns3_get_link_ksettings() local 697 ops->get_media_type(h, &media_type, &module_type); in hns3_get_link_ksettings() 701 switch (media_type) { in hns3_get_link_ksettings() 749 u8 media_type = HNAE3_MEDIA_TYPE_UNKNOWN; in hns3_check_ksettings_param() local 769 ops->get_media_type(handle, &media_type, &module_type); in hns3_check_ksettings_param() 772 media_type != HNAE3_MEDIA_TYPE_COPPER) { in hns3_check_ksettings_param()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qed/ |
D | qed_main.c | 1803 static int qed_get_port_type(u32 media_type) in qed_get_port_type() argument 1807 switch (media_type) { in qed_get_port_type() 1869 u32 media_type, tcvr_state, tcvr_type; in qed_fill_link_capability() local 1872 if (qed_mcp_get_media_type(hwfn, ptt, &media_type)) in qed_fill_link_capability() 1873 media_type = MEDIA_UNSPECIFIED; in qed_fill_link_capability() 1886 media_type, tcvr_state, tcvr_type, speed_mask, board_cfg); in qed_fill_link_capability() 1888 switch (media_type) { in qed_fill_link_capability() 2106 u32 media_type, speed_mask; in qed_fill_link() local 2173 qed_mcp_get_media_type(hwfn, ptt, &media_type); in qed_fill_link() 2174 if_link->port = qed_get_port_type(media_type); in qed_fill_link()
|
/kernel/linux/linux-5.10/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,
|