Home
last modified time | relevance | path

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

1234

/openbmc/u-boot/board/freescale/t208xqds/
H A Deth_t208xqds.c202 int media_type = 0; in board_ft_fman_fixup_port() local
222 media_type = 1; in board_ft_fman_fixup_port()
234 media_type = 1; in board_ft_fman_fixup_port()
246 media_type = 1; in board_ft_fman_fixup_port()
258 media_type = 1; in board_ft_fman_fixup_port()
281 media_type = 1; in board_ft_fman_fixup_port()
293 media_type = 1; in board_ft_fman_fixup_port()
346 if (media_type) { in board_ft_fman_fixup_port()
369 media_type = 1; in board_ft_fman_fixup_port()
380 media_type = 1; in board_ft_fman_fixup_port()
[all …]
/openbmc/linux/drivers/net/ethernet/dec/tulip/
H A 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()
1072 media_name[de->media_type], in de21041_media_timer()
1099 de->media_type = DE_MEDIA_BNC; in de21041_media_timer()
1104 de->media_type = DE_MEDIA_AUI; in de21041_media_timer()
1163 de->media_type = DE_MEDIA_TP_AUTO; in de_media_interrupt()
1502 switch (de->media_type) { in __de_get_link_ksettings()
1595 de->media_type = new_media; in __de_set_link_ksettings()
[all …]
/openbmc/linux/drivers/net/ethernet/atheros/atl1e/
H A 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()
/openbmc/linux/drivers/net/ethernet/intel/e1000e/
H A 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 …]
H A Dethtool.c117 if (hw->phy.media_type == e1000_media_type_copper) { 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()
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()
1435 if (hw->phy.media_type == e1000_media_type_copper && in e1000_integrated_phy_loopback()
1549 if (hw->phy.media_type == e1000_media_type_fiber || in e1000_setup_loopback_test()
1599 if (hw->phy.media_type == e1000_media_type_fiber || in e1000_loopback_cleanup()
[all …]
H A D80003es2lan.c43 if (hw->phy.media_type != e1000_media_type_copper) { in e1000_init_phy_params_80003es2lan()
121 hw->phy.media_type = e1000_media_type_internal_serdes; in e1000_init_mac_params_80003es2lan()
127 hw->phy.media_type = e1000_media_type_copper; in e1000_init_mac_params_80003es2lan()
644 if (hw->phy.media_type == e1000_media_type_copper) { in e1000_get_link_up_info_80003es2lan()
853 if (hw->phy.media_type != e1000_media_type_copper) in e1000_initialize_hw_bits_80003es2lan()
1084 if (hw->phy.media_type == e1000_media_type_copper) { in e1000_cfg_on_link_up_80003es2lan()
H A D82571.c50 if (hw->phy.media_type != e1000_media_type_copper) { in e1000_init_phy_params_82571()
203 hw->phy.media_type = e1000_media_type_fiber; in e1000_init_mac_params_82571()
214 hw->phy.media_type = e1000_media_type_internal_serdes; in e1000_init_mac_params_82571()
222 hw->phy.media_type = e1000_media_type_copper; in e1000_init_mac_params_82571()
1053 if (hw->phy.media_type == e1000_media_type_internal_serdes) in e1000_reset_hw_82571()
/openbmc/linux/drivers/net/ethernet/intel/igb/
H A De1000_82575.c184 if (hw->phy.media_type != e1000_media_type_copper) { in igb_init_phy_params_82575()
463 (hw->phy.media_type == e1000_media_type_copper) in igb_init_mac_params_82575()
536 hw->phy.media_type = e1000_media_type_copper; in igb_set_sfp_media_type_82575()
538 hw->phy.media_type = e1000_media_type_unknown; in igb_set_sfp_media_type_82575()
543 hw->phy.media_type = e1000_media_type_unknown; in igb_set_sfp_media_type_82575()
621 hw->phy.media_type = e1000_media_type_copper; in igb_get_invariants_82575()
635 hw->phy.media_type = e1000_media_type_copper; in igb_get_invariants_82575()
651 hw->phy.media_type = e1000_media_type_copper; in igb_get_invariants_82575()
1272 if (hw->phy.media_type != e1000_media_type_copper) in igb_get_link_up_info_82575()
1294 if (hw->phy.media_type != e1000_media_type_copper) { in igb_check_for_link_82575()
[all …]
H A 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()
H A 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()
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()
3194 if ((hw->phy.media_type == e1000_media_type_copper) || in igb_get_module_info()
[all …]
/openbmc/linux/drivers/net/ethernet/atheros/atlx/
H A Datl1.c644 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()
1359 switch (hw->media_type) { in atl1_check_link()
3257 u16 old_media_type = hw->media_type; in atl1_set_link_ksettings()
3267 hw->media_type = MEDIA_TYPE_AUTO_SENSOR; in atl1_set_link_ksettings()
3286 hw->media_type = MEDIA_TYPE_10M_FULL; in atl1_set_link_ksettings()
3288 hw->media_type = MEDIA_TYPE_10M_HALF; in atl1_set_link_ksettings()
3303 switch (hw->media_type) { in atl1_set_link_ksettings()
3325 hw->media_type = old_media_type; in atl1_set_link_ksettings()
[all …]
/openbmc/linux/drivers/net/ethernet/intel/e1000/
H A De1000_hw.c345 hw->media_type = e1000_media_type_internal_serdes; in e1000_set_media_type()
351 hw->media_type = e1000_media_type_fiber; in e1000_set_media_type()
354 hw->media_type = e1000_media_type_copper; in e1000_set_media_type()
359 hw->media_type = e1000_media_type_fiber; in e1000_set_media_type()
363 hw->media_type = e1000_media_type_copper; in e1000_set_media_type()
815 if (hw->media_type == e1000_media_type_fiber) in e1000_setup_fiber_serdes_link()
2389 if (hw->media_type == e1000_media_type_fiber) { in e1000_check_for_link()
3394 if (hw->media_type != e1000_media_type_copper) { in e1000_phy_get_info()
4511 if (hw->media_type == e1000_media_type_fiber) { in e1000_setup_led()
4581 if (hw->media_type == e1000_media_type_fiber) { in e1000_led_on()
[all …]
H A De1000_ethtool.c93 if (hw->media_type == e1000_media_type_copper) { 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()
1310 hw->media_type == e1000_media_type_internal_serdes) { in e1000_setup_loopback_test()
[all …]
/openbmc/openbmc/poky/meta/recipes-core/udev/udev-extraconf/
H A Dmount.sh193 [ -e /sys/block/$name/device/media ] && media_type=`cat /sys/block/$name/device/media`
195 if [ "$ACTION" = "add" ] && [ -n "$DEVNAME" ] && [ -n "$ID_FS_TYPE" -o "$media_type" = "cdrom" ]; t…
/openbmc/u-boot/board/freescale/t4qds/
H A Deth.c276 int media_type = 0; in board_ft_fman_fixup_port() local
285 media_type = 1; in board_ft_fman_fixup_port()
294 media_type = 1; in board_ft_fman_fixup_port()
303 media_type = 1; in board_ft_fman_fixup_port()
312 media_type = 1; in board_ft_fman_fixup_port()
323 if (!media_type) { in board_ft_fman_fixup_port()
/openbmc/linux/drivers/net/ethernet/wangxun/txgbe/
H A 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()
/openbmc/linux/drivers/atm/
H A 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
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/hns3vf/
H A Dhclgevf_main.h144 u8 media_type; member
165 u8 media_type; member
/openbmc/u-boot/drivers/net/
H A De1000.c1099 (hw->media_type == e1000_media_type_copper)) { in e1000_set_phy_mode()
1779 if ((hw->media_type == e1000_media_type_fiber) in e1000_initialize_hardware_bits()
1780 || (hw->media_type == in e1000_initialize_hardware_bits()
4175 (hw->media_type == e1000_media_type_copper)) { in e1000_get_speed_and_duplex()
5022 hw->media_type = e1000_media_type_fiber; in e1000_set_media_type()
5031 hw->media_type = e1000_media_type_copper; in e1000_set_media_type()
5036 hw->media_type = e1000_media_type_fiber; in e1000_set_media_type()
5040 hw->media_type = e1000_media_type_copper; in e1000_set_media_type()
5114 hw->media_type = e1000_media_type_fiber; in e1000_sw_init()
5117 hw->media_type = e1000_media_type_copper; in e1000_sw_init()
[all …]
/openbmc/linux/drivers/net/ethernet/hisilicon/hns/
H A 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()
960 &media_type)) { in hns_mac_get_info()
962 if (!strncmp(media_type_defs[i].name, media_type, in hns_mac_get_info()
964 mac_cb->media_type = media_type_defs[i].value; in hns_mac_get_info()
/openbmc/linux/drivers/net/ethernet/intel/ixgbe/
H A 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()
210 if (hw->phy.media_type == ixgbe_media_type_backplane) in ixgbe_setup_fc_generic()
242 if (hw->phy.media_type == ixgbe_media_type_backplane) { in ixgbe_setup_fc_generic()
277 hw->phy.media_type = hw->mac.ops.get_media_type(hw); in ixgbe_start_hw_generic()
2417 switch (hw->phy.media_type) { in ixgbe_fc_autoneg()
4221 switch (hw->phy.media_type) { in ixgbe_setup_mac_link_multispeed_fiber()
[all …]
/openbmc/linux/drivers/net/ethernet/aquantia/atlantic/hw_atl/
H A 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,
H A 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,
/openbmc/linux/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_link.c11659 .media_type = ETH_PHY_BASE_T,
11695 .media_type = ETH_PHY_CX4,
11764 .media_type = ETH_PHY_BASE_T,
11795 .media_type = ETH_PHY_KR,
11950 .media_type = ETH_PHY_BASE_T,
11987 .media_type = ETH_PHY_BASE_T,
12022 .media_type = ETH_PHY_BASE_T,
12056 .media_type = ETH_PHY_BASE_T,
12090 .media_type = ETH_PHY_BASE_T,
12124 .media_type = ETH_PHY_BASE_T,
[all …]
/openbmc/linux/drivers/net/ethernet/qlogic/qed/
H A Dqed_main.c1774 static int qed_get_port_type(u32 media_type) in qed_get_port_type() argument
1778 switch (media_type) { in qed_get_port_type()
1840 u32 media_type, tcvr_state, tcvr_type; in qed_fill_link_capability() local
1843 if (qed_mcp_get_media_type(hwfn, ptt, &media_type)) in qed_fill_link_capability()
1844 media_type = MEDIA_UNSPECIFIED; in qed_fill_link_capability()
1857 media_type, tcvr_state, tcvr_type, speed_mask, board_cfg); in qed_fill_link_capability()
1859 switch (media_type) { in qed_fill_link_capability()
2077 u32 media_type, speed_mask; in qed_fill_link() local
2144 qed_mcp_get_media_type(hwfn, ptt, &media_type); in qed_fill_link()
2145 if_link->port = qed_get_port_type(media_type); in qed_fill_link()

1234