Home
last modified time | relevance | path

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

12

/linux/drivers/net/phy/
H A Dvitesse.c338 static int vsc73xx_mdix_set(struct phy_device *phydev, u8 mdix) in vsc73xx_mdix_set() argument
345 switch (mdix) { in vsc73xx_mdix_set()
383 static int vsc73xx_mdix_get(struct phy_device *phydev, u8 *mdix) in vsc73xx_mdix_get() argument
389 *mdix = ETH_TP_MDI; in vsc73xx_mdix_get()
391 *mdix = ETH_TP_MDI_X; in vsc73xx_mdix_get()
400 ret = vsc73xx_mdix_get(phydev, &phydev->mdix); in vsc73xx_read_status()
H A Dnxp-cbtx.c65 phydev->mdix = ETH_TP_MDI_X; in cbtx_mdix_status()
67 phydev->mdix = ETH_TP_MDI; in cbtx_mdix_status()
H A Dmicrochip.c404 phydev->mdix = ETH_TP_MDI_INVALID; in lan937x_tx_read_mdix_status()
407 phydev->mdix = ETH_TP_MDI_X; in lan937x_tx_read_mdix_status()
410 phydev->mdix = ETH_TP_MDI; in lan937x_tx_read_mdix_status()
H A Dadin.c739 phydev->mdix = ETH_TP_MDI_X; in adin_mdix_update()
741 phydev->mdix = ETH_TP_MDI; in adin_mdix_update()
757 phydev->mdix = ETH_TP_MDI_X; in adin_mdix_update()
759 phydev->mdix = ETH_TP_MDI; in adin_mdix_update()
H A Dncn26000.c56 phydev->mdix = ETH_TP_MDI; in ncn26000_config_aneg()
H A Drockchip.c159 err = rockchip_set_polarity(phydev, phydev->mdix); in rockchip_config_aneg()
H 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()
H A Dbcm84881.c175 phydev->mdix = 0; in bcm84881_read_status()
H A Dmicrel.c847 phydev->mdix = ETH_TP_MDI; in ksz8081_mdix_update()
849 phydev->mdix = ETH_TP_MDI_X; in ksz8081_mdix_update()
1452 phydev->mdix = phydev->mdix_ctrl; in ksz9131_mdix_update()
1460 phydev->mdix = ETH_TP_MDI; in ksz9131_mdix_update()
1462 phydev->mdix = ETH_TP_MDI_X; in ksz9131_mdix_update()
1464 phydev->mdix = ETH_TP_MDI_INVALID; in ksz9131_mdix_update()
1904 phydev->mdix = ETH_TP_MDI_X; in ksz886x_mdix_update()
1906 phydev->mdix = ETH_TP_MDI; in ksz886x_mdix_update()
2375 int ret, val, mdix; in ksz886x_cable_test_one_pair() local
2382 mdix = ETH_TP_MDI; in ksz886x_cable_test_one_pair()
[all …]
H A Dphy-c45.c661 phydev->mdix = ETH_TP_MDI; in genphy_c45_read_mdix()
665 phydev->mdix = ETH_TP_MDI_X; in genphy_c45_read_mdix()
669 phydev->mdix = ETH_TP_MDI_INVALID; in genphy_c45_read_mdix()
H A Dmxl-gpy.c512 phydev->mdix = ETH_TP_MDI_X; in gpy_update_mdix()
514 phydev->mdix = ETH_TP_MDI; in gpy_update_mdix()
/linux/tools/net/ynl/
H A Dethtool.py416 mdix = mdix_ctrl.get(linkinfo['tp-mdix-ctrl'], None)
417 if mdix:
418 mdix = mdix + ' (forced)'
420 mdix = mdix_ctrl.get(linkinfo['tp-mdix'], 'Unknown (auto)')
/linux/drivers/net/ethernet/marvell/prestera/
H 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()
576 port->cfg_phy.mdix = ecmd->base.eth_tp_mdix_ctrl; in prestera_port_mdix_set()
581 port->cfg_phy.mdix); in prestera_port_mdix_set()
619 port->cfg_phy.mdix); in prestera_port_link_mode_set()
H A Dprestera.h111 u8 mdix; member
126 u8 mdix; member
221 u8 mdix; member
H A Dprestera_hw.h167 u8 *mdix, u64 *lmode_bmap,
171 u8 mdix);
H A Dprestera_hw.c263 u8 mdix; member
328 u8 mdix; member
1163 u8 *mdix, u64 *lmode_bmap, in prestera_hw_port_phy_mode_get() argument
1179 if (mdix) in prestera_hw_port_phy_mode_get()
1180 *mdix = prestera_hw_mdix_to_eth(resp.param.link_evt.phy.mdix); in prestera_hw_port_phy_mode_get()
1194 u8 mdix) in prestera_hw_port_phy_mode_set() argument
1212 req.param.link.phy.mdix = prestera_hw_mdix_from_eth(mdix); in prestera_hw_port_phy_mode_set()
H A Dprestera_main.c178 port->cfg_phy.mdix); in prestera_port_open()
215 port->cfg_phy.mdix); in prestera_port_close()
577 port->cfg_phy.mdix); in prestera_port_autoneg_set()
709 port->cfg_phy.mdix = ETH_TP_MDI_AUTO; in prestera_port_create()
714 port->cfg_phy.mdix); in prestera_port_create()
/linux/drivers/net/phy/mscc/
H A Dmscc_main.c192 static int vsc85xx_mdix_get(struct phy_device *phydev, u8 *mdix) in vsc85xx_mdix_get() argument
198 *mdix = ETH_TP_MDI_X; in vsc85xx_mdix_get()
200 *mdix = ETH_TP_MDI; in vsc85xx_mdix_get()
205 static int vsc85xx_mdix_set(struct phy_device *phydev, u8 mdix) in vsc85xx_mdix_set() argument
211 if (mdix == ETH_TP_MDI || mdix == ETH_TP_MDI_X) { in vsc85xx_mdix_set()
226 if (mdix == ETH_TP_MDI) in vsc85xx_mdix_set()
228 else if (mdix == ETH_TP_MDI_X) in vsc85xx_mdix_set()
2198 rc = vsc85xx_mdix_get(phydev, &phydev->mdix); in vsc85xx_read_status()
/linux/drivers/net/phy/qcom/
H A Dqcom-phy-lib.c248 phydev->mdix = ETH_TP_MDI_X; in at803x_read_specific_status()
250 phydev->mdix = ETH_TP_MDI; in at803x_read_specific_status()
/linux/drivers/net/ethernet/intel/igb/
H 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()
H 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()
/linux/drivers/net/ethernet/intel/igc/
H A Digc_hw.h144 u8 mdix; member
/linux/drivers/net/ethernet/hisilicon/hns/
H 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/e1000e/
H A Dethtool.c189 if (hw->phy.mdix == AUTO_ALL_MODES) in e1000_get_link_ksettings()
192 cmd->base.eth_tp_mdix_ctrl = hw->phy.mdix; in e1000_get_link_ksettings()
257 adapter->hw.phy.mdix = AUTO_ALL_MODES; in e1000_set_spd_dplx()
330 hw->phy.mdix = AUTO_ALL_MODES; in e1000_set_link_ksettings()
332 hw->phy.mdix = cmd->base.eth_tp_mdix_ctrl; in e1000_set_link_ksettings()
/linux/drivers/net/ethernet/intel/e1000/
H 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()

12