Home
last modified time | relevance | path

Searched refs:is_c45 (Results 1 - 25 of 26) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/
H A Dhns_mdio.c193 u8 is_c45, u8 op, u8 phy_id, u16 cmd) in hns_mdio_cmd_write()
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
230 dev_dbg(&bus->dev, "phy id=%d, is_c45=%d, devad=%d, reg=%#x, write data=%d\n", in hns_mdio_write()
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
290 dev_dbg(&bus->dev, "phy id=%d, is_c45 in hns_mdio_read()
192 hns_mdio_cmd_write(struct hns_mdio_device *mdio_dev, u8 is_c45, u8 op, u8 phy_id, u16 cmd) hns_mdio_cmd_write() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/mdio/
H A Dfwnode_mdio.c118 bool is_c45; in fwnode_mdiobus_register_phy() local
132 is_c45 = fwnode_device_is_compatible(child, "ethernet-phy-ieee802.3-c45"); in fwnode_mdiobus_register_phy()
133 if (is_c45 || fwnode_get_phy_id(child, &phy_id)) in fwnode_mdiobus_register_phy()
134 phy = get_phy_device(bus, addr, is_c45); in fwnode_mdiobus_register_phy()
/kernel/linux/linux-5.10/drivers/net/mdio/
H A 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()
/kernel/linux/linux-5.10/drivers/net/phy/
H A Dphy_device.c464 if (phydev->is_c45) { in phy_bus_match()
551 bool is_c45, in phy_device_create()
584 dev->is_c45 = is_c45; in phy_device_create()
608 if (is_c45 && c45_ids) { in phy_device_create()
824 * @is_c45: If true the PHY uses the 802.3 clause 45 protocol
838 struct phy_device *get_phy_device(struct mii_bus *bus, int addr, bool is_c45) in get_phy_device() argument
848 if (is_c45) in get_phy_device()
856 return phy_device_create(bus, addr, phy_id, is_c45, &c45_ids); in get_phy_device()
1325 if (phydev->is_c45) in phy_attach_direct()
550 phy_device_create(struct mii_bus *bus, int addr, u32 phy_id, bool is_c45, struct phy_c45_device_ids *c45_ids) phy_device_create() argument
[all...]
H A Dbcm84881.c50 if (!phydev->is_c45 || in bcm84881_probe()
H A Dphy-core.c477 } else if (phydev->is_c45) { in __phy_read_mmd()
533 } else if (phydev->is_c45) { in __phy_write_mmd()
H A Dphy.c177 if (phydev->is_c45 && !(phydev->c45_ids.devices_in_package & BIT(0))) in phy_restart_aneg()
198 else if (phydev->is_c45) in phy_aneg_done()
694 if (phydev->is_c45 && !(phydev->c45_ids.devices_in_package & BIT(0))) in phy_config_aneg()
H A Dphylink.c988 if (phy->is_c45 && in phylink_bringup_phy()
1815 } else if (phydev->is_c45) { in phylink_phy_read()
1855 } else if (phydev->is_c45) { in phylink_phy_write()
2228 return phy->is_c45 && in phylink_phy_no_inband()
H A Dmarvell10g.c377 if (!phydev->is_c45 || in mv3310_probe()
H A Dsfp.c1465 static int sfp_sm_probe_phy(struct sfp *sfp, bool is_c45) in sfp_sm_probe_phy() argument
1470 phy = get_phy_device(sfp->i2c_mii, SFP_PHY_ADDR, is_c45); in sfp_sm_probe_phy()
/kernel/linux/linux-6.6/drivers/net/phy/
H A Dphy_device.c538 if (phydev->is_c45) { in phy_bus_match()
635 bool is_c45, in phy_device_create()
669 dev->is_c45 = is_c45; in phy_device_create()
694 if (is_c45 && c45_ids) { in phy_device_create()
931 * @is_c45: If true the PHY uses the 802.3 clause 45 protocol
945 struct phy_device *get_phy_device(struct mii_bus *bus, int addr, bool is_c45) in get_phy_device() argument
955 if (is_c45) in get_phy_device()
968 if (!is_c45 && phy_id == 0 && bus->read_c45) { in get_phy_device()
975 return phy_device_create(bus, addr, phy_id, is_c45, in get_phy_device()
634 phy_device_create(struct mii_bus *bus, int addr, u32 phy_id, bool is_c45, struct phy_c45_device_ids *c45_ids) phy_device_create() argument
[all...]
H A Dbcm84881.c50 if (!phydev->is_c45 || in bcm84881_probe()
H A Dphy-core.c561 } else if (phydev->is_c45) { in __phy_read_mmd()
617 } else if (phydev->is_c45) { in __phy_write_mmd()
H A Dphy.c185 if (phydev->is_c45 && !(phydev->c45_ids.devices_in_package & BIT(0))) in phy_restart_aneg()
206 else if (phydev->is_c45) in phy_aneg_done()
933 if (phydev->is_c45 && !(phydev->c45_ids.devices_in_package & BIT(0))) in phy_config_aneg()
H A Dphylink.c1794 if (phy->is_c45 && config.rate_matching == RATE_MATCH_NONE && in phylink_bringup_phy()
2768 if (phydev->is_c45) { in phylink_phy_read()
2810 if (phydev->is_c45) { in phylink_phy_write()
3283 return phy->is_c45 && phy_id_compare(phy->c45_ids.device_ids[1], in phylink_phy_no_inband()
H A Dmxl-gpy.c284 if (!phydev->is_c45) { in gpy_probe()
H A Dsfp.c1761 static int sfp_sm_probe_phy(struct sfp *sfp, int addr, bool is_c45) in sfp_sm_probe_phy() argument
1766 phy = get_phy_device(sfp->i2c_mii, addr, is_c45); in sfp_sm_probe_phy()
/kernel/linux/linux-6.6/drivers/net/ethernet/hisilicon/
H A Dhns_mdio.c193 u8 is_c45, u8 op, u8 phy_id, u16 cmd) in hns_mdio_cmd_write()
196 u8 st = is_c45 ? MDIO_ST_CLAUSE_45 : MDIO_ST_CLAUSE_22; in hns_mdio_cmd_write()
192 hns_mdio_cmd_write(struct hns_mdio_device *mdio_dev, u8 is_c45, u8 op, u8 phy_id, u16 cmd) hns_mdio_cmd_write() argument
/kernel/linux/linux-5.10/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.c914 if ((netdev->phydev) && (!netdev->phydev->is_c45)) in hns_get_strings()
1000 if ((!netdev->phydev) || (netdev->phydev->is_c45)) in hns_get_sset_count()
/kernel/linux/linux-5.10/include/linux/
H A Dphy.h476 * @c45_ids: 802.3-c45 Device Identifiers if is_c45.
477 * @is_c45: Set to true if this PHY uses clause 45 addressing.
550 unsigned is_c45:1; member
1350 bool is_c45,
1353 struct phy_device *get_phy_device(struct mii_bus *bus, int addr, bool is_c45);
1358 struct phy_device *get_phy_device(struct mii_bus *bus, int addr, bool is_c45) in get_phy_device() argument
/kernel/linux/linux-6.6/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.c919 if ((netdev->phydev) && (!netdev->phydev->is_c45)) in hns_get_strings()
979 if ((!netdev->phydev) || (netdev->phydev->is_c45)) in hns_get_sset_count()
/kernel/linux/linux-6.6/include/linux/
H A Dphy.h547 * @c45_ids: 802.3-c45 Device Identifiers if is_c45.
548 * @is_c45: Set to true if this PHY uses clause 45 addressing.
646 unsigned is_c45:1; member
1660 bool is_c45,
1668 struct phy_device *get_phy_device(struct mii_bus *bus, int addr, bool is_c45);
1700 struct phy_device *get_phy_device(struct mii_bus *bus, int addr, bool is_c45) in get_phy_device() argument
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/
H A Dfec_main.c1813 bool is_c45 = !!(regnum & MII_ADDR_C45); in fec_enet_mdio_read() local
1819 if (is_c45) { in fec_enet_mdio_read()
1872 bool is_c45 = !!(regnum & MII_ADDR_C45); in fec_enet_mdio_write() local
1878 if (is_c45) { in fec_enet_mdio_write()

Completed in 49 milliseconds

12