Lines Matching refs:c45_ids
485 const int num_ids = ARRAY_SIZE(phydev->c45_ids.device_ids); in phy_bus_match()
496 if (phydev->c45_ids.device_ids[i] == 0xffffffff) in phy_bus_match()
500 (phydev->c45_ids.device_ids[i] & in phy_bus_match()
582 struct phy_c45_device_ids *c45_ids) in phy_device_create() argument
615 if (c45_ids) in phy_device_create()
616 dev->c45_ids = *c45_ids; in phy_device_create()
637 if (is_c45 && c45_ids) { in phy_device_create()
638 const int num_ids = ARRAY_SIZE(c45_ids->device_ids); in phy_device_create()
642 if (c45_ids->device_ids[i] == 0xffffffff) in phy_device_create()
646 c45_ids->device_ids[i]); in phy_device_create()
728 struct phy_c45_device_ids *c45_ids) in get_phy_c45_ids() argument
730 const int num_ids = ARRAY_SIZE(c45_ids->device_ids); in get_phy_c45_ids()
793 c45_ids->device_ids[i] = phy_reg << 16; in get_phy_c45_ids()
798 c45_ids->device_ids[i] |= phy_reg; in get_phy_c45_ids()
801 c45_ids->devices_in_package = devs_in_pkg; in get_phy_c45_ids()
803 c45_ids->mmds_present = devs_in_pkg & ~BIT(0); in get_phy_c45_ids()
869 struct phy_c45_device_ids c45_ids; in get_phy_device() local
873 c45_ids.devices_in_package = 0; in get_phy_device()
874 c45_ids.mmds_present = 0; in get_phy_device()
875 memset(c45_ids.device_ids, 0xff, sizeof(c45_ids.device_ids)); in get_phy_device()
878 r = get_phy_c45_ids(bus, addr, &c45_ids); in get_phy_device()
885 return phy_device_create(bus, addr, phy_id, is_c45, &c45_ids); in get_phy_device()