Lines Matching refs:c45_ids
529 const int num_ids = ARRAY_SIZE(phydev->c45_ids.device_ids); in phy_bus_match()
540 if (phydev->c45_ids.device_ids[i] == 0xffffffff) in phy_bus_match()
543 if (phy_id_compare(phydev->c45_ids.device_ids[i], in phy_bus_match()
636 struct phy_c45_device_ids *c45_ids) in phy_device_create() argument
671 if (c45_ids) in phy_device_create()
672 dev->c45_ids = *c45_ids; in phy_device_create()
694 if (is_c45 && c45_ids) { in phy_device_create()
695 const int num_ids = ARRAY_SIZE(c45_ids->device_ids); in phy_device_create()
699 if (c45_ids->device_ids[i] == 0xffffffff) in phy_device_create()
703 c45_ids->device_ids[i]); in phy_device_create()
785 struct phy_c45_device_ids *c45_ids) in get_phy_c45_ids() argument
787 const int num_ids = ARRAY_SIZE(c45_ids->device_ids); in get_phy_c45_ids()
850 c45_ids->device_ids[i] = phy_reg << 16; in get_phy_c45_ids()
855 c45_ids->device_ids[i] |= phy_reg; in get_phy_c45_ids()
858 c45_ids->devices_in_package = devs_in_pkg; in get_phy_c45_ids()
860 c45_ids->mmds_present = devs_in_pkg & ~BIT(0); in get_phy_c45_ids()
947 struct phy_c45_device_ids c45_ids; in get_phy_device() local
951 c45_ids.devices_in_package = 0; in get_phy_device()
952 c45_ids.mmds_present = 0; in get_phy_device()
953 memset(c45_ids.device_ids, 0xff, sizeof(c45_ids.device_ids)); in get_phy_device()
956 r = get_phy_c45_ids(bus, addr, &c45_ids); in get_phy_device()
969 r = get_phy_c45_ids(bus, addr, &c45_ids); in get_phy_device()
972 true, &c45_ids); in get_phy_device()
975 return phy_device_create(bus, addr, phy_id, is_c45, &c45_ids); in get_phy_device()
1050 &phydev->c45_ids); in phy_get_c45_ids()