Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/net/ethernet/hisilicon/
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()
223 u8 is_c45 = !!(regnum & MII_ADDR_C45); in hns_mdio_write() local
231 phy_id, is_c45, devad, reg, data); in hns_mdio_write()
240 if (!is_c45) { in hns_mdio_write()
248 hns_mdio_cmd_write(mdio_dev, is_c45, in hns_mdio_write()
266 hns_mdio_cmd_write(mdio_dev, is_c45, op, phy_id, cmd_reg_cfg); in hns_mdio_write()
285 u8 is_c45 = !!(regnum & MII_ADDR_C45); in hns_mdio_read() local
292 phy_id, is_c45, devad, reg); in hns_mdio_read()
301 if (!is_c45) { in hns_mdio_read()
[all …]
/Linux-v5.4/drivers/of/
Dof_mdio.c49 bool is_c45; in of_mdiobus_register_phy() local
53 is_c45 = of_device_is_compatible(child, in of_mdiobus_register_phy()
56 if (!is_c45 && !of_get_phy_id(child, &phy_id)) in of_mdiobus_register_phy()
59 phy = get_phy_device(mdio, addr, is_c45); in of_mdiobus_register_phy()
/Linux-v5.4/drivers/net/phy/
Dphy_device.c489 if (phydev->is_c45) { in phy_bus_match()
576 bool is_c45, in phy_device_create() argument
608 dev->is_c45 = is_c45; in phy_device_create()
630 if (is_c45 && c45_ids) { in phy_device_create()
777 bool is_c45, struct phy_c45_device_ids *c45_ids) in get_phy_id() argument
781 if (is_c45) in get_phy_id()
813 struct phy_device *get_phy_device(struct mii_bus *bus, int addr, bool is_c45) in get_phy_device() argument
819 r = get_phy_id(bus, addr, &phy_id, is_c45, &c45_ids); in get_phy_device()
827 return phy_device_create(bus, addr, phy_id, is_c45, &c45_ids); in get_phy_device()
1219 if (phydev->is_c45) in phy_attach_direct()
[all …]
Dphy.c152 if (phydev->is_c45 && !(phydev->c45_ids.devices_in_package & BIT(0))) in phy_restart_aneg()
173 else if (phydev->is_c45) in phy_aneg_done()
514 if (phydev->is_c45 && !(phydev->c45_ids.devices_in_package & BIT(0))) in phy_config_aneg()
Dphy-core.c384 } else if (phydev->is_c45) { in __phy_read_mmd()
441 } else if (phydev->is_c45) { in __phy_write_mmd()
Dmarvell10g.c215 if (!phydev->is_c45 || in mv3310_probe()
Dphylink.c1486 } else if (phydev->is_c45) { in phylink_phy_read()
1526 } else if (phydev->is_c45) { in phylink_phy_write()
/Linux-v5.4/include/linux/
Dphy.h369 unsigned is_c45:1; member
997 bool is_c45,
1000 struct phy_device *get_phy_device(struct mii_bus *bus, int addr, bool is_c45);
1005 struct phy_device *get_phy_device(struct mii_bus *bus, int addr, bool is_c45) in get_phy_device() argument
/Linux-v5.4/drivers/net/ethernet/hisilicon/hns/
Dhns_dsaf_mac.c691 bool is_c45; in hns_mac_register_phydev() local
700 is_c45 = 1; in hns_mac_register_phydev()
702 is_c45 = 0; in hns_mac_register_phydev()
706 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()
/Linux-v5.4/drivers/net/ethernet/freescale/
Dfec_main.c1774 bool is_c45 = !!(regnum & MII_ADDR_C45); in fec_enet_mdio_read() local
1782 if (is_c45) { in fec_enet_mdio_read()
1840 bool is_c45 = !!(regnum & MII_ADDR_C45); in fec_enet_mdio_write() local
1850 if (is_c45) { in fec_enet_mdio_write()