Home
last modified time | relevance | path

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

12

/linux/drivers/net/ethernet/marvell/prestera/
A Dprestera_ethtool.c503 &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 Dprestera.h89 u8 mdix; member
104 u8 mdix; member
191 u8 mdix; member
A Dprestera_hw.h143 u8 *mdix, u64 *lmode_bmap,
147 u8 mdix);
A Dprestera_main.c126 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 Dprestera_hw.c217 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 Dmicrel.c507 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 Dphy-c45.c422 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 Dadin.c646 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 Drockchip.c159 err = rockchip_set_polarity(phydev, phydev->mdix); in rockchip_config_aneg()
A Dicplus.c339 phydev->mdix = ETH_TP_MDI_X; in ip101a_g_read_status()
341 phydev->mdix = ETH_TP_MDI; in ip101a_g_read_status()
A Dbcm84881.c163 phydev->mdix = 0; in bcm84881_read_status()
A Dsmsc.c184 phydev->mdix = phydev->mdix_ctrl; in lan87xx_config_aneg()
A Dmarvell10g.c925 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 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()
2185 rc = vsc85xx_mdix_get(phydev, &phydev->mdix); in vsc85xx_read_status()
/linux/drivers/net/ethernet/intel/igb/
A De1000_mac.c1595 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 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()
A De1000_hw.h428 u8 mdix; member
/linux/drivers/net/ethernet/hisilicon/hns/
A Dhns_ethtool.c64 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 Digc_hw.h156 u8 mdix; member
A Digc_ethtool.c1789 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 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()
A Dhw.h628 u8 mdix; member
A 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()
/linux/drivers/net/ethernet/intel/e1000/
A 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()
A De1000_hw.c1104 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()

Completed in 82 milliseconds

12