Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/net/ethernet/hisilicon/
Dhns_mdio.c197 u8 is_c45, u8 op, u8 phy_id, u16 cmd) in hns_mdio_cmd_write() argument
200 u8 st = is_c45 ? MDIO_ST_CLAUSE_45 : MDIO_ST_CLAUSE_22; in hns_mdio_cmd_write()
227 u8 is_c45 = !!(regnum & MII_ADDR_C45); in hns_mdio_write() local
235 phy_id, is_c45, devad, reg, data); in hns_mdio_write()
244 if (!is_c45) { in hns_mdio_write()
252 hns_mdio_cmd_write(mdio_dev, is_c45, in hns_mdio_write()
270 hns_mdio_cmd_write(mdio_dev, is_c45, op, phy_id, cmd_reg_cfg); in hns_mdio_write()
289 u8 is_c45 = !!(regnum & MII_ADDR_C45); in hns_mdio_read() local
296 phy_id, is_c45, devad, reg); in hns_mdio_read()
305 if (!is_c45) { in hns_mdio_read()
[all …]
/Linux-v4.19/drivers/of/
Dof_mdio.c51 bool is_c45; in of_mdiobus_register_phy() local
55 is_c45 = of_device_is_compatible(child, in of_mdiobus_register_phy()
58 if (!is_c45 && !of_get_phy_id(child, &phy_id)) in of_mdiobus_register_phy()
61 phy = get_phy_device(mdio, addr, is_c45); in of_mdiobus_register_phy()
/Linux-v4.19/drivers/net/phy/
Dphy_device.c337 if (phydev->is_c45) { in phy_bus_match()
404 bool is_c45, in phy_device_create() argument
435 dev->is_c45 = is_c45; in phy_device_create()
582 bool is_c45, struct phy_c45_device_ids *c45_ids) in get_phy_id() argument
586 if (is_c45) in get_phy_id()
625 struct phy_device *get_phy_device(struct mii_bus *bus, int addr, bool is_c45) in get_phy_device() argument
631 r = get_phy_id(bus, addr, &phy_id, is_c45, &c45_ids); in get_phy_device()
639 return phy_device_create(bus, addr, phy_id, is_c45, &c45_ids); in get_phy_device()
987 if (phydev->is_c45) in phy_attach_direct()
Dphy-core.c267 } else if (phydev->is_c45) { in phy_read_mmd()
305 } else if (phydev->is_c45) { in phy_write_mmd()
Dphy.c128 if (phydev->is_c45 && !(phydev->c45_ids.devices_in_package & BIT(0))) in phy_restart_aneg()
153 if (phydev->is_c45 && !(phydev->c45_ids.devices_in_package & BIT(0))) in phy_aneg_done()
478 if (phydev->is_c45 && !(phydev->c45_ids.devices_in_package & BIT(0))) in phy_config_aneg()
Dmarvell10g.c225 if (!phydev->is_c45 || in mv3310_probe()
Dphylink.c1373 } else if (phydev->is_c45) { in phylink_phy_read()
1413 } else if (phydev->is_c45) { in phylink_phy_write()
/Linux-v4.19/include/linux/
Dphy.h409 unsigned is_c45:1; member
912 bool is_c45,
915 struct phy_device *get_phy_device(struct mii_bus *bus, int addr, bool is_c45);
920 struct phy_device *get_phy_device(struct mii_bus *bus, int addr, bool is_c45) in get_phy_device() argument
/Linux-v4.19/drivers/net/ethernet/hisilicon/hns/
Dhns_dsaf_mac.c695 bool is_c45; in hns_mac_register_phydev() local
704 is_c45 = 1; in hns_mac_register_phydev()
706 is_c45 = 0; in hns_mac_register_phydev()
710 phy = get_phy_device(mdio, addr, is_c45); in hns_mac_register_phydev()
Dhns_ethtool.c910 if ((netdev->phydev) && (!netdev->phydev->is_c45)) in hns_get_strings()
996 if ((!netdev->phydev) || (netdev->phydev->is_c45)) in hns_get_sset_count()