Home
last modified time | relevance | path

Searched refs:mdix (Results 1 – 25 of 34) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/net/phy/
Dphy-c45.c379 phydev->mdix = ETH_TP_MDI; in genphy_c45_read_mdix()
383 phydev->mdix = ETH_TP_MDI_X; in genphy_c45_read_mdix()
387 phydev->mdix = ETH_TP_MDI_INVALID; in genphy_c45_read_mdix()
Dadin.c581 phydev->mdix = ETH_TP_MDI_X; in adin_mdix_update()
583 phydev->mdix = ETH_TP_MDI; in adin_mdix_update()
599 phydev->mdix = ETH_TP_MDI_X; in adin_mdix_update()
601 phydev->mdix = ETH_TP_MDI; in adin_mdix_update()
Drockchip.c159 err = rockchip_set_polarity(phydev, phydev->mdix); in rockchip_config_aneg()
Dbcm84881.c163 phydev->mdix = 0; in bcm84881_read_status()
Dmarvell10g.c695 phydev->mdix = cssr1 & MV_PCS_CSSR1_MDIX ? in mv3310_read_status_copper()
727 phydev->mdix = ETH_TP_MDI_INVALID; in mv3310_read_status()
Dsmsc.c151 phydev->mdix = phydev->mdix_ctrl; in lan87xx_config_aneg()
Dat803x.c740 phydev->mdix = ETH_TP_MDI_X; in at803x_read_status()
742 phydev->mdix = ETH_TP_MDI; in at803x_read_status()
Dphy.c289 cmd->base.eth_tp_mdix = phydev->mdix; in phy_ethtool_ksettings_get()
/kernel/linux/linux-5.10/drivers/net/phy/mscc/
Dmscc_main.c189 static int vsc85xx_mdix_get(struct phy_device *phydev, u8 *mdix) in vsc85xx_mdix_get() argument
195 *mdix = ETH_TP_MDI_X; in vsc85xx_mdix_get()
197 *mdix = ETH_TP_MDI; in vsc85xx_mdix_get()
202 static int vsc85xx_mdix_set(struct phy_device *phydev, u8 mdix) in vsc85xx_mdix_set() argument
208 if (mdix == ETH_TP_MDI || mdix == ETH_TP_MDI_X) { in vsc85xx_mdix_set()
223 if (mdix == ETH_TP_MDI) in vsc85xx_mdix_set()
225 else if (mdix == ETH_TP_MDI_X) in vsc85xx_mdix_set()
2072 rc = vsc85xx_mdix_get(phydev, &phydev->mdix); in vsc85xx_read_status()
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/prestera/
Dprestera_hw.c205 struct prestera_msg_port_mdix_param mdix; member
798 *status = prestera_hw_mdix_to_eth(resp.param.mdix.status); in prestera_hw_port_mdix_get()
799 *admin_mode = prestera_hw_mdix_to_eth(resp.param.mdix.admin_mode); in prestera_hw_port_mdix_get()
812 req.param.mdix.admin_mode = prestera_hw_mdix_from_eth(mode); in prestera_hw_port_mdix_set()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/igb/
De1000_mac.c1564 if (!hw->mac.autoneg && (hw->phy.mdix == 0 || hw->phy.mdix == 3)) { in igb_validate_mdi_setting()
1566 hw->phy.mdix = 1; in igb_validate_mdi_setting()
De1000_phy.c498 switch (hw->phy.mdix) { in igb_copper_link_setup_82580()
549 switch (phy->mdix) { in igb_copper_link_setup_m88()
649 switch (phy->mdix) { in igb_copper_link_setup_m88_gen2()
770 switch (phy->mdix) { in igb_copper_link_setup_igp()
De1000_hw.h428 u8 mdix; member
Digb_ethtool.c247 if (hw->phy.mdix == AUTO_ALL_MODES) in igb_get_link_ksettings()
250 cmd->base.eth_tp_mdix_ctrl = hw->phy.mdix; in igb_get_link_ksettings()
342 hw->phy.mdix = AUTO_ALL_MODES; in igb_set_link_ksettings()
344 hw->phy.mdix = cmd->base.eth_tp_mdix_ctrl; in igb_set_link_ksettings()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/igc/
Digc_hw.h156 u8 mdix; member
Digc_ethtool.c1761 if (hw->phy.mdix == AUTO_ALL_MODES) in igc_ethtool_get_link_ksettings()
1764 cmd->base.eth_tp_mdix_ctrl = hw->phy.mdix; in igc_ethtool_get_link_ksettings()
1825 hw->phy.mdix = AUTO_ALL_MODES; in igc_ethtool_set_link_ksettings()
1827 hw->phy.mdix = cmd->base.eth_tp_mdix_ctrl; in igc_ethtool_set_link_ksettings()
/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns/
Dhns_ethtool.c65 int mdix_ctrl, mdix, retval, is_resolved; in hns_get_mdix_mode() local
80 mdix = hnae_get_bit(retval, PHY_MDIX_STATUS_B); in hns_get_mdix_mode()
102 else if (mdix) in hns_get_mdix_mode()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/e1000e/
Dethtool.c187 if (hw->phy.mdix == AUTO_ALL_MODES) in e1000_get_link_ksettings()
190 cmd->base.eth_tp_mdix_ctrl = hw->phy.mdix; in e1000_get_link_ksettings()
249 adapter->hw.phy.mdix = AUTO_ALL_MODES; in e1000_set_spd_dplx()
328 hw->phy.mdix = AUTO_ALL_MODES; in e1000_set_link_ksettings()
330 hw->phy.mdix = cmd->base.eth_tp_mdix_ctrl; in e1000_set_link_ksettings()
Dhw.h619 u8 mdix; member
Dphy.c653 switch (hw->phy.mdix) { in e1000_copper_link_setup_82577()
702 switch (phy->mdix) { in e1000e_copper_link_setup_m88()
856 switch (phy->mdix) { in e1000e_copper_link_setup_igp()
D80003es2lan.c912 switch (phy->mdix) { in e1000_copper_link_setup_gg82563_80003es2lan()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/e1000/
De1000_ethtool.c151 if (hw->mdix == AUTO_ALL_MODES) in e1000_get_link_ksettings()
154 cmd->base.eth_tp_mdix_ctrl = hw->mdix; in e1000_get_link_ksettings()
214 hw->mdix = AUTO_ALL_MODES; in e1000_set_link_ksettings()
216 hw->mdix = cmd->base.eth_tp_mdix_ctrl; in e1000_set_link_ksettings()
De1000_hw.c1104 hw->mdix = 1; in e1000_copper_link_igp_setup()
1110 switch (hw->mdix) { in e1000_copper_link_igp_setup()
1225 switch (hw->mdix) { in e1000_copper_link_mgp_setup()
3426 if (!hw->autoneg && (hw->mdix == 0 || hw->mdix == 3)) { in e1000_validate_mdi_setting()
3428 hw->mdix = 1; in e1000_validate_mdi_setting()
De1000_hw.h1382 u8 mdix; member
/kernel/linux/linux-5.10/include/linux/
Dphy.h638 u8 mdix; member

12