Lines Matching refs:c45_ids
455 const int num_ids = ARRAY_SIZE(phydev->c45_ids.device_ids); in phy_bus_match()
466 if (phydev->c45_ids.device_ids[i] == 0xffffffff) in phy_bus_match()
470 (phydev->c45_ids.device_ids[i] & in phy_bus_match()
610 struct phy_c45_device_ids *c45_ids) in phy_device_create() argument
644 if (c45_ids) in phy_device_create()
645 dev->c45_ids = *c45_ids; in phy_device_create()
666 if (is_c45 && c45_ids) { in phy_device_create()
667 const int num_ids = ARRAY_SIZE(c45_ids->device_ids); in phy_device_create()
671 if (c45_ids->device_ids[i] == 0xffffffff) in phy_device_create()
675 c45_ids->device_ids[i]); in phy_device_create()
757 struct phy_c45_device_ids *c45_ids) in get_phy_c45_ids() argument
759 const int num_ids = ARRAY_SIZE(c45_ids->device_ids); in get_phy_c45_ids()
822 c45_ids->device_ids[i] = phy_reg << 16; in get_phy_c45_ids()
827 c45_ids->device_ids[i] |= phy_reg; in get_phy_c45_ids()
830 c45_ids->devices_in_package = devs_in_pkg; in get_phy_c45_ids()
832 c45_ids->mmds_present = devs_in_pkg & ~BIT(0); in get_phy_c45_ids()
898 struct phy_c45_device_ids c45_ids; in get_phy_device() local
902 c45_ids.devices_in_package = 0; in get_phy_device()
903 c45_ids.mmds_present = 0; in get_phy_device()
904 memset(c45_ids.device_ids, 0xff, sizeof(c45_ids.device_ids)); in get_phy_device()
907 r = get_phy_c45_ids(bus, addr, &c45_ids); in get_phy_device()
914 return phy_device_create(bus, addr, phy_id, is_c45, &c45_ids); in get_phy_device()