/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/ |
H A D | hns_mdio.c | 193 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 D | fwnode_mdio.c | 118 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 D | of_mdio.c | 112 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 D | phy_device.c | 464 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 D | bcm84881.c | 50 if (!phydev->is_c45 || in bcm84881_probe()
|
H A D | phy-core.c | 477 } else if (phydev->is_c45) { in __phy_read_mmd() 533 } else if (phydev->is_c45) { in __phy_write_mmd()
|
H A D | phy.c | 177 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 D | phylink.c | 988 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 D | marvell10g.c | 377 if (!phydev->is_c45 || in mv3310_probe()
|
H A D | sfp.c | 1465 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 D | phy_device.c | 538 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 D | bcm84881.c | 50 if (!phydev->is_c45 || in bcm84881_probe()
|
H A D | phy-core.c | 561 } else if (phydev->is_c45) { in __phy_read_mmd() 617 } else if (phydev->is_c45) { in __phy_write_mmd()
|
H A D | phy.c | 185 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 D | phylink.c | 1794 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 D | mxl-gpy.c | 284 if (!phydev->is_c45) { in gpy_probe()
|
H A D | sfp.c | 1761 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 D | hns_mdio.c | 193 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 D | hns_dsaf_mac.c | 721 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 D | hns_ethtool.c | 914 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 D | phy.h | 476 * @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 D | hns_dsaf_mac.c | 721 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 D | hns_ethtool.c | 919 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 D | phy.h | 547 * @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 D | fec_main.c | 1813 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()
|