Home
last modified time | relevance | path

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

/Linux-v5.10/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()
284 u8 is_c45 = !!(regnum & MII_ADDR_C45); in hns_mdio_read() local
291 phy_id, is_c45, devad, reg); in hns_mdio_read()
300 if (!is_c45) { in hns_mdio_read()
[all …]
/Linux-v5.10/drivers/net/mdio/
Dof_mdio.c112 bool is_c45; in of_mdiobus_register_phy() local
120 is_c45 = of_device_is_compatible(child, in of_mdiobus_register_phy()
123 if (!is_c45 && !of_get_phy_id(child, &phy_id)) in of_mdiobus_register_phy()
126 phy = get_phy_device(mdio, addr, is_c45); in of_mdiobus_register_phy()
/Linux-v5.10/drivers/net/phy/
Dphy_device.c494 if (phydev->is_c45) { in phy_bus_match()
581 bool is_c45, in phy_device_create() argument
613 dev->is_c45 = is_c45; in phy_device_create()
637 if (is_c45 && c45_ids) { in phy_device_create()
867 struct phy_device *get_phy_device(struct mii_bus *bus, int addr, bool is_c45) in get_phy_device() argument
877 if (is_c45) in get_phy_device()
885 return phy_device_create(bus, addr, phy_id, is_c45, &c45_ids); in get_phy_device()
1345 if (phydev->is_c45) in phy_attach_direct()
2866 } else if (phydev->is_c45) { in phy_probe()
Dbcm84881.c50 if (!phydev->is_c45 || in bcm84881_probe()
Dphy-core.c477 } else if (phydev->is_c45) { in __phy_read_mmd()
533 } else if (phydev->is_c45) { in __phy_write_mmd()
Dphy.c160 if (phydev->is_c45 && !(phydev->c45_ids.devices_in_package & BIT(0))) in phy_restart_aneg()
181 else if (phydev->is_c45) in phy_aneg_done()
726 if (phydev->is_c45 && !(phydev->c45_ids.devices_in_package & BIT(0))) in phy_config_aneg()
Dphylink.c963 if (phy->is_c45 && in phylink_bringup_phy()
1764 } else if (phydev->is_c45) { in phylink_phy_read()
1804 } else if (phydev->is_c45) { in phylink_phy_write()
2175 return phy->is_c45 && in phylink_phy_no_inband()
Dmarvell10g.c370 if (!phydev->is_c45 || in mv3310_probe()
Dsfp.c1429 static int sfp_sm_probe_phy(struct sfp *sfp, bool is_c45) in sfp_sm_probe_phy() argument
1434 phy = get_phy_device(sfp->i2c_mii, SFP_PHY_ADDR, is_c45); in sfp_sm_probe_phy()
/Linux-v5.10/drivers/net/ethernet/hisilicon/hns/
Dhns_dsaf_mac.c692 bool is_c45; in hns_mac_register_phydev() local
701 is_c45 = true; in hns_mac_register_phydev()
703 is_c45 = false; in hns_mac_register_phydev()
707 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.10/include/linux/
Dphy.h549 unsigned is_c45:1; member
1348 bool is_c45,
1351 struct phy_device *get_phy_device(struct mii_bus *bus, int addr, bool is_c45);
1356 struct phy_device *get_phy_device(struct mii_bus *bus, int addr, bool is_c45) in get_phy_device() argument
/Linux-v5.10/drivers/net/ethernet/freescale/
Dfec_main.c1809 bool is_c45 = !!(regnum & MII_ADDR_C45); in fec_enet_mdio_read() local
1815 if (is_c45) { in fec_enet_mdio_read()
1868 bool is_c45 = !!(regnum & MII_ADDR_C45); in fec_enet_mdio_write() local
1874 if (is_c45) { in fec_enet_mdio_write()