/kernel/linux/linux-6.6/tools/net/ynl/ |
H A D | ethtool.py | 403 mdix = mdix_ctrl.get(linkinfo['tp-mdix-ctrl'], None) 404 if mdix: 405 mdix = mdix + ' (forced)' 407 mdix = mdix_ctrl.get(linkinfo['tp-mdix'], 'Unknown (auto)') 408 print(f'MDI-X: {mdix}')
|
/kernel/linux/linux-6.6/drivers/net/phy/ |
H A D | nxp-cbtx.c | 65 phydev->mdix = ETH_TP_MDI_X; in cbtx_mdix_status() 67 phydev->mdix = ETH_TP_MDI; in cbtx_mdix_status()
|
H A D | adin.c | 686 phydev->mdix = ETH_TP_MDI_X; in adin_mdix_update() 688 phydev->mdix = ETH_TP_MDI; in adin_mdix_update() 704 phydev->mdix = ETH_TP_MDI_X; in adin_mdix_update() 706 phydev->mdix = ETH_TP_MDI; in adin_mdix_update()
|
H A D | ncn26000.c | 56 phydev->mdix = ETH_TP_MDI; in ncn26000_config_aneg()
|
H A D | rockchip.c | 159 err = rockchip_set_polarity(phydev, phydev->mdix); in rockchip_config_aneg()
|
H A D | bcm84881.c | 163 phydev->mdix = 0; in bcm84881_read_status()
|
H 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()
|
H A D | micrel.c | 751 phydev->mdix = ETH_TP_MDI; in ksz8081_mdix_update() 753 phydev->mdix = ETH_TP_MDI_X; in ksz8081_mdix_update() 1353 phydev->mdix = ETH_TP_MDI; in ksz9131_mdix_update() 1355 phydev->mdix = ETH_TP_MDI_X; in ksz9131_mdix_update() 1771 phydev->mdix = ETH_TP_MDI_X; in ksz886x_mdix_update() 1773 phydev->mdix = ETH_TP_MDI; in ksz886x_mdix_update() 2158 int ret, val, mdix; in ksz886x_cable_test_one_pair() local 2165 mdix = ETH_TP_MDI; in ksz886x_cable_test_one_pair() 2167 mdix = ETH_TP_MDI_X; in ksz886x_cable_test_one_pair() 2171 ret = ksz8081_config_mdix(phydev, mdix); in ksz886x_cable_test_one_pair() [all...] |
H A D | phy-c45.c | 645 * genphy_c45_read_mdix - read mdix status from PMA 660 phydev->mdix = ETH_TP_MDI; in genphy_c45_read_mdix() 664 phydev->mdix = ETH_TP_MDI_X; in genphy_c45_read_mdix() 668 phydev->mdix = ETH_TP_MDI_INVALID; in genphy_c45_read_mdix()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/marvell/prestera/ |
H 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() 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 D | prestera.h | 111 u8 mdix; member 126 u8 mdix; member 221 u8 mdix; member
|
H A D | prestera_hw.h | 167 u8 *mdix, u64 *lmode_bmap, 171 u8 mdix);
|
H A D | prestera_main.c | 178 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() 708 port->cfg_phy.mdix = ETH_TP_MDI_AUTO; in prestera_port_create() 713 port->cfg_phy.mdix); in prestera_port_create()
|
H A D | prestera_hw.c | 263 u8 mdix; member 328 u8 mdix; member 1161 u8 *mdix, u64 *lmode_bmap, in prestera_hw_port_phy_mode_get() 1177 if (mdix) in prestera_hw_port_phy_mode_get() 1178 *mdix = prestera_hw_mdix_to_eth(resp.param.link_evt.phy.mdix); in prestera_hw_port_phy_mode_get() 1192 u8 mdix) in prestera_hw_port_phy_mode_set() 1210 req.param.link.phy.mdix = prestera_hw_mdix_from_eth(mdix); in prestera_hw_port_phy_mode_set() 1160 prestera_hw_port_phy_mode_get(const struct prestera_port *port, u8 *mdix, u64 *lmode_bmap, bool *fc_pause, bool *fc_asym) prestera_hw_port_phy_mode_get() argument 1190 prestera_hw_port_phy_mode_set(const struct prestera_port *port, bool admin, bool adv, u32 mode, u64 modes, u8 mdix) prestera_hw_port_phy_mode_set() argument
|
/kernel/linux/linux-5.10/drivers/net/phy/ |
H A D | phy-c45.c | 364 * genphy_c45_read_mdix - read mdix status from PMA 379 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()
|
H A D | adin.c | 581 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()
|
H A D | rockchip.c | 159 err = rockchip_set_polarity(phydev, phydev->mdix); in rockchip_config_aneg()
|
H A D | bcm84881.c | 163 phydev->mdix = 0; in bcm84881_read_status()
|
H A D | marvell10g.c | 702 phydev->mdix = cssr1 & MV_PCS_CSSR1_MDIX ? in mv3310_read_status_copper() 734 phydev->mdix = ETH_TP_MDI_INVALID; in mv3310_read_status()
|
/kernel/linux/linux-5.10/drivers/net/phy/mscc/ |
H 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() 2074 rc = vsc85xx_mdix_get(phydev, &phydev->mdix); in vsc85xx_read_status()
|
/kernel/linux/linux-6.6/drivers/net/phy/mscc/ |
H A D | mscc_main.c | 192 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()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/igb/ |
H A D | e1000_mac.c | 1564 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()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/igb/ |
H 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()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/prestera/ |
H A D | prestera_hw.c | 205 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/igc/ |
H A D | igc_hw.h | 156 u8 mdix; member
|