Home
last modified time | relevance | path

Searched refs:is_c45 (Results 1 – 14 of 14) sorted by relevance

/linux-6.15/drivers/net/mdio/
H A Dfwnode_mdio.c127 bool is_c45; in fwnode_mdiobus_register_phy() local
141 is_c45 = fwnode_device_is_compatible(child, "ethernet-phy-ieee802.3-c45"); in fwnode_mdiobus_register_phy()
142 if (is_c45 || fwnode_get_phy_id(child, &phy_id)) in fwnode_mdiobus_register_phy()
143 phy = get_phy_device(bus, addr, is_c45); in fwnode_mdiobus_register_phy()
/linux-6.15/drivers/net/phy/
H A Dphy-core.c378 static int mmd_phy_read(struct mii_bus *bus, int phy_addr, bool is_c45, in mmd_phy_read() argument
381 if (is_c45) in mmd_phy_read()
389 static int mmd_phy_write(struct mii_bus *bus, int phy_addr, bool is_c45, in mmd_phy_write() argument
392 if (is_c45) in mmd_phy_write()
418 phydev->is_c45, devad, regnum); in __phy_read_mmd()
462 phydev->is_c45, devad, regnum, val); in __phy_write_mmd()
515 return mmd_phy_read(phydev->mdio.bus, addr, phydev->is_c45, devad, in __phy_package_read_mmd()
548 return mmd_phy_write(phydev->mdio.bus, addr, phydev->is_c45, devad, in __phy_package_write_mmd()
H A Dphy_device.c559 if (phydev->is_c45) { in phy_bus_match()
656 bool is_c45, in phy_device_create() argument
691 dev->is_c45 = is_c45; in phy_device_create()
716 if (is_c45 && c45_ids) { in phy_device_create()
971 struct phy_device *get_phy_device(struct mii_bus *bus, int addr, bool is_c45) in get_phy_device() argument
981 if (is_c45) in get_phy_device()
994 if (!is_c45 && phy_id == 0 && bus->read_c45) { in get_phy_device()
1001 return phy_device_create(bus, addr, phy_id, is_c45, &c45_ids); in get_phy_device()
1517 if (phydev->is_c45) in phy_attach_direct()
3319 else if (phydev->is_c45) in phy_probe()
H A Dbcm84881.c62 if (!phydev->is_c45 || in bcm84881_probe()
H A Dphy.c188 if (phydev->is_c45 && !(phydev->c45_ids.devices_in_package & BIT(0))) in phy_restart_aneg()
209 else if (phydev->is_c45) in phy_aneg_done()
986 if (phydev->is_c45 && !(phydev->c45_ids.devices_in_package & BIT(0))) in phy_config_aneg()
H A Dphylink.c2026 if (phy->is_c45 && state->rate_matching == RATE_MATCH_NONE && in phylink_validate_phy()
3219 if (phydev->is_c45) { in phylink_phy_read()
3261 if (phydev->is_c45) { in phylink_phy_write()
H A Dmxl-gpy.c311 if (!phydev->is_c45) { in gpy_probe()
H A Dmarvell10g.c498 if (!phydev->is_c45 || in mv3310_probe()
H A Dsfp.c1855 static int sfp_sm_probe_phy(struct sfp *sfp, int addr, bool is_c45) in sfp_sm_probe_phy() argument
1860 phy = get_phy_device(sfp->i2c_mii, addr, is_c45); in sfp_sm_probe_phy()
/linux-6.15/drivers/net/phy/realtek/
H A Drealtek_main.c1134 bool is_c45) in rtlgen_is_c45_match() argument
1136 if (phydev->is_c45) in rtlgen_is_c45_match()
1137 return is_c45 && (id == phydev->c45_ids.device_ids[1]); in rtlgen_is_c45_match()
1139 return !is_c45 && (id == phydev->phy_id); in rtlgen_is_c45_match()
1169 if (phydev->is_c45) in rtl_internal_nbaset_match_phy_device()
/linux-6.15/drivers/net/ethernet/hisilicon/hns/
H A Dhns_dsaf_mac.c721 bool is_c45; in hns_mac_register_phydev() local
730 is_c45 = true; in hns_mac_register_phydev()
732 is_c45 = false; in hns_mac_register_phydev()
736 phy = get_phy_device(mdio, addr, is_c45); in hns_mac_register_phydev()
H A Dhns_ethtool.c917 if ((netdev->phydev) && (!netdev->phydev->is_c45)) in hns_get_strings()
977 if ((!netdev->phydev) || (netdev->phydev->is_c45)) in hns_get_sset_count()
/linux-6.15/drivers/net/ethernet/hisilicon/
H A Dhns_mdio.c193 u8 is_c45, u8 op, u8 phy_id, u16 cmd) in hns_mdio_cmd_write() argument
196 u8 st = is_c45 ? MDIO_ST_CLAUSE_45 : MDIO_ST_CLAUSE_22; in hns_mdio_cmd_write()
/linux-6.15/include/linux/
H A Dphy.h619 unsigned is_c45:1; member
1754 bool is_c45,
1762 struct phy_device *get_phy_device(struct mii_bus *bus, int addr, bool is_c45);
1794 struct phy_device *get_phy_device(struct mii_bus *bus, int addr, bool is_c45) in get_phy_device() argument