Lines Matching defs:phy_id
322 * @phy_uid: Used to match against phydev->phy_id (the UID of the PHY)
324 * @phy_uid_mask: Applied to phydev->phy_id and fixup->phy_uid before
368 * @phy_uid: A phy id matches fixup->phy_id (or PHY_ANY_UID) in phy_fixup_list
422 (phydev->phy_id & fixup->phy_uid_mask))
469 if ((phydrv->phy_id & phydrv->phy_id_mask) ==
476 return (phydrv->phy_id & phydrv->phy_id_mask) ==
477 (phydev->phy_id & phydrv->phy_id_mask);
486 return sprintf(buf, "0x%.8lx\n", (unsigned long)phydev->phy_id);
488 static DEVICE_ATTR_RO(phy_id);
530 static int phy_request_driver_module(struct phy_device *dev, u32 phy_id)
535 MDIO_ID_ARGS(phy_id));
543 ret, (unsigned long)phy_id);
550 struct phy_device *phy_device_create(struct mii_bus *bus, int addr, u32 phy_id,
585 dev->phy_id = phy_id;
622 ret = phy_request_driver_module(dev, phy_id);
783 * @phy_id: where to store the ID retrieved.
786 * placing it in @phy_id. Return zero on successful read and the ID is
790 static int get_phy_c22_id(struct mii_bus *bus, int addr, u32 *phy_id)
801 *phy_id = phy_reg << 16;
810 *phy_id |= phy_reg;
812 /* If the phy_id is mostly Fs, there is no device there */
813 if ((*phy_id & 0x1fffffff) == 0x1fffffff)
841 u32 phy_id = 0;
851 r = get_phy_c22_id(bus, addr, &phy_id);
856 return phy_device_create(bus, addr, phy_id, is_c45, &c45_ids);
3006 .phy_id = 0xffffffff,