Lines Matching refs:c45_ids
496 const int num_ids = ARRAY_SIZE(phydev->c45_ids.device_ids); in phy_bus_match()
507 if (phydev->c45_ids.device_ids[i] == 0xffffffff) in phy_bus_match()
511 (phydev->c45_ids.device_ids[i] & in phy_bus_match()
604 struct phy_c45_device_ids *c45_ids) in phy_device_create() argument
639 if (c45_ids) in phy_device_create()
640 dev->c45_ids = *c45_ids; in phy_device_create()
661 if (is_c45 && c45_ids) { in phy_device_create()
662 const int num_ids = ARRAY_SIZE(c45_ids->device_ids); in phy_device_create()
666 if (c45_ids->device_ids[i] == 0xffffffff) in phy_device_create()
670 c45_ids->device_ids[i]); in phy_device_create()
752 struct phy_c45_device_ids *c45_ids) in get_phy_c45_ids() argument
754 const int num_ids = ARRAY_SIZE(c45_ids->device_ids); in get_phy_c45_ids()
817 c45_ids->device_ids[i] = phy_reg << 16; in get_phy_c45_ids()
822 c45_ids->device_ids[i] |= phy_reg; in get_phy_c45_ids()
825 c45_ids->devices_in_package = devs_in_pkg; in get_phy_c45_ids()
827 c45_ids->mmds_present = devs_in_pkg & ~BIT(0); in get_phy_c45_ids()
914 struct phy_c45_device_ids c45_ids; in get_phy_device() local
918 c45_ids.devices_in_package = 0; in get_phy_device()
919 c45_ids.mmds_present = 0; in get_phy_device()
920 memset(c45_ids.device_ids, 0xff, sizeof(c45_ids.device_ids)); in get_phy_device()
923 r = get_phy_c45_ids(bus, addr, &c45_ids); in get_phy_device()
936 r = get_phy_c45_ids(bus, addr, &c45_ids); in get_phy_device()
939 true, &c45_ids); in get_phy_device()
942 return phy_device_create(bus, addr, phy_id, is_c45, &c45_ids); in get_phy_device()
1017 &phydev->c45_ids); in phy_get_c45_ids()