Home
last modified time | relevance | path

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

1234

/Linux-v6.6/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 …]
/Linux-v6.6/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()
/Linux-v6.6/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()
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 …]
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()
/Linux-v6.6/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()
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/
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()
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/
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()
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/
Dtxgbe_main.c323 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()
Dtxgbe_hw.c294 if (wx->media_type != sp_media_copper) { in txgbe_reset_hw()
Dtxgbe_phy.c265 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/
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
/Linux-v6.6/drivers/net/ethernet/hisilicon/hns3/hns3vf/
Dhclgevf_main.h144 u8 media_type; member
165 u8 media_type; member
/Linux-v6.6/drivers/net/ethernet/hisilicon/hns/
Dhns_dsaf_mac.c81 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()
Dhns_ae_adapt.c128 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/
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 …]
/Linux-v6.6/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,
/Linux-v6.6/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()
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/
Dqed_main.c1775 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/
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,

1234