Lines Matching refs:phy_id

408  * @phy_uid: Used to match against phydev->phy_id (the UID of the PHY)
410 * @phy_uid_mask: Applied to phydev->phy_id and fixup->phy_uid before
454 * @phy_uid: A phy id matches fixup->phy_id (or PHY_ANY_UID) in phy_fixup_list
506 if (!phy_id_compare(phydev->phy_id, fixup->phy_uid,
555 phydrv->phy_id, phydrv->phy_id_mask))
560 return phy_id_compare(phydev->phy_id, phydrv->phy_id,
570 return sysfs_emit(buf, "0x%.8lx\n", (unsigned long)phydev->phy_id);
572 static DEVICE_ATTR_RO(phy_id);
625 static int phy_request_driver_module(struct phy_device *dev, u32 phy_id)
630 MDIO_ID_ARGS(phy_id));
638 ret, (unsigned long)phy_id);
645 struct phy_device *phy_device_create(struct mii_bus *bus, int addr, u32 phy_id,
682 dev->phy_id = phy_id;
720 ret = phy_request_driver_module(dev, phy_id);
885 * @phy_id: where to store the ID retrieved.
888 * placing it in @phy_id. Return zero on successful read and the ID is
892 static int get_phy_c22_id(struct mii_bus *bus, int addr, u32 *phy_id)
903 *phy_id = phy_reg << 16;
912 *phy_id |= phy_reg;
914 /* If the phy_id is mostly Fs, there is no device there */
915 if ((*phy_id & 0x1fffffff) == 0x1fffffff)
924 int fwnode_get_phy_id(struct fwnode_handle *fwnode, u32 *phy_id)
937 *phy_id = ((upper & GENMASK(15, 0)) << 16) | (lower & GENMASK(15, 0));
964 u32 phy_id = 0;
974 r = get_phy_c22_id(bus, addr, &phy_id);
984 if (!is_c45 && phy_id == 0 && bus->read_c45) {
987 return phy_device_create(bus, addr, phy_id,
991 return phy_device_create(bus, addr, phy_id, is_c45, &c45_ids);
3676 .phy_id = 0xffffffff,