/linux/drivers/net/ethernet/marvell/prestera/ |
A D | prestera_ethtool.c | 503 &state->mdix, NULL, NULL, NULL)) { in prestera_port_mdix_get() 505 state->mdix = ETH_TP_MDI_INVALID; in prestera_port_mdix_get() 508 ecmd->base.eth_tp_mdix = port->state_phy.mdix; in prestera_port_mdix_get() 509 ecmd->base.eth_tp_mdix_ctrl = port->cfg_phy.mdix; in prestera_port_mdix_get() 573 port->cfg_phy.mdix = ecmd->base.eth_tp_mdix_ctrl; in prestera_port_mdix_set() 578 port->cfg_phy.mdix); in prestera_port_mdix_set() 616 port->cfg_phy.mdix); in prestera_port_link_mode_set()
|
A D | prestera.h | 89 u8 mdix; member 104 u8 mdix; member 191 u8 mdix; member
|
A D | prestera_hw.h | 143 u8 *mdix, u64 *lmode_bmap, 147 u8 mdix);
|
A D | prestera_main.c | 126 port->cfg_phy.mdix); in prestera_port_open() 153 port->cfg_phy.mdix); in prestera_port_close() 293 port->cfg_phy.mdix); in prestera_port_autoneg_set() 419 port->cfg_phy.mdix = ETH_TP_MDI_AUTO; in prestera_port_create() 424 port->cfg_phy.mdix); in prestera_port_create()
|
A D | prestera_hw.c | 217 u8 mdix; member 281 u8 mdix; member 902 u8 *mdix, u64 *lmode_bmap, in prestera_hw_port_phy_mode_get() argument 918 if (mdix) in prestera_hw_port_phy_mode_get() 919 *mdix = prestera_hw_mdix_to_eth(resp.param.link_evt.phy.mdix); in prestera_hw_port_phy_mode_get() 933 u8 mdix) in prestera_hw_port_phy_mode_set() argument 951 req.param.link.phy.mdix = prestera_hw_mdix_from_eth(mdix); in prestera_hw_port_phy_mode_set()
|
/linux/drivers/net/phy/ |
A D | micrel.c | 507 phydev->mdix = ETH_TP_MDI; in ksz8081_mdix_update() 509 phydev->mdix = ETH_TP_MDI_X; in ksz8081_mdix_update() 1240 phydev->mdix = ETH_TP_MDI_X; in ksz886x_mdix_update() 1242 phydev->mdix = ETH_TP_MDI; in ksz886x_mdix_update() 1478 int ret, val, mdix; in ksz886x_cable_test_one_pair() local 1484 mdix = ETH_TP_MDI; in ksz886x_cable_test_one_pair() 1486 mdix = ETH_TP_MDI_X; in ksz886x_cable_test_one_pair() 1490 ret = ksz8081_config_mdix(phydev, mdix); in ksz886x_cable_test_one_pair() 1493 ret = ksz886x_config_mdix(phydev, mdix); in ksz886x_cable_test_one_pair()
|
A D | phy-c45.c | 422 phydev->mdix = ETH_TP_MDI; in genphy_c45_read_mdix() 426 phydev->mdix = ETH_TP_MDI_X; in genphy_c45_read_mdix() 430 phydev->mdix = ETH_TP_MDI_INVALID; in genphy_c45_read_mdix()
|
A D | adin.c | 646 phydev->mdix = ETH_TP_MDI_X; in adin_mdix_update() 648 phydev->mdix = ETH_TP_MDI; in adin_mdix_update() 664 phydev->mdix = ETH_TP_MDI_X; in adin_mdix_update() 666 phydev->mdix = ETH_TP_MDI; in adin_mdix_update()
|
A D | rockchip.c | 159 err = rockchip_set_polarity(phydev, phydev->mdix); in rockchip_config_aneg()
|
A D | icplus.c | 339 phydev->mdix = ETH_TP_MDI_X; in ip101a_g_read_status() 341 phydev->mdix = ETH_TP_MDI; in ip101a_g_read_status()
|
A D | bcm84881.c | 163 phydev->mdix = 0; in bcm84881_read_status()
|
A D | smsc.c | 184 phydev->mdix = phydev->mdix_ctrl; in lan87xx_config_aneg()
|
A D | marvell10g.c | 925 phydev->mdix = cssr1 & MV_PCS_CSSR1_MDIX ? in mv3310_read_status_copper() 957 phydev->mdix = ETH_TP_MDI_INVALID; in mv3310_read_status()
|
/linux/drivers/net/phy/mscc/ |
A D | mscc_main.c | 189 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() 2185 rc = vsc85xx_mdix_get(phydev, &phydev->mdix); in vsc85xx_read_status()
|
/linux/drivers/net/ethernet/intel/igb/ |
A D | e1000_mac.c | 1595 if (!hw->mac.autoneg && (hw->phy.mdix == 0 || hw->phy.mdix == 3)) { in igb_validate_mdi_setting() 1597 hw->phy.mdix = 1; in igb_validate_mdi_setting()
|
A D | e1000_phy.c | 498 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()
|
A D | e1000_hw.h | 428 u8 mdix; member
|
/linux/drivers/net/ethernet/hisilicon/hns/ |
A D | hns_ethtool.c | 64 int mdix_ctrl, mdix, retval, is_resolved; in hns_get_mdix_mode() local 79 mdix = hnae_get_bit(retval, PHY_MDIX_STATUS_B); in hns_get_mdix_mode() 101 else if (mdix) in hns_get_mdix_mode()
|
/linux/drivers/net/ethernet/intel/igc/ |
A D | igc_hw.h | 156 u8 mdix; member
|
A D | igc_ethtool.c | 1789 if (hw->phy.mdix == AUTO_ALL_MODES) in igc_ethtool_get_link_ksettings() 1792 cmd->base.eth_tp_mdix_ctrl = hw->phy.mdix; in igc_ethtool_get_link_ksettings() 1853 hw->phy.mdix = AUTO_ALL_MODES; in igc_ethtool_set_link_ksettings() 1855 hw->phy.mdix = cmd->base.eth_tp_mdix_ctrl; in igc_ethtool_set_link_ksettings()
|
/linux/drivers/net/ethernet/intel/e1000e/ |
A D | ethtool.c | 187 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()
|
A D | hw.h | 628 u8 mdix; member
|
A D | phy.c | 653 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()
|
/linux/drivers/net/ethernet/intel/e1000/ |
A D | e1000_ethtool.c | 151 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()
|
A D | e1000_hw.c | 1104 hw->mdix = 1; in e1000_copper_link_igp_setup() 1110 switch (hw->mdix) { in e1000_copper_link_igp_setup() 1226 switch (hw->mdix) { in e1000_copper_link_mgp_setup() 3427 if (!hw->autoneg && (hw->mdix == 0 || hw->mdix == 3)) { in e1000_validate_mdi_setting() 3429 hw->mdix = 1; in e1000_validate_mdi_setting()
|