Lines Matching refs:c45_ids
494 const int num_ids = ARRAY_SIZE(phydev->c45_ids.device_ids); in phy_bus_match()
505 if (phydev->c45_ids.device_ids[i] == 0xffffffff) in phy_bus_match()
509 (phydev->c45_ids.device_ids[i] & in phy_bus_match()
602 struct phy_c45_device_ids *c45_ids) in phy_device_create() argument
636 if (c45_ids) in phy_device_create()
637 dev->c45_ids = *c45_ids; in phy_device_create()
658 if (is_c45 && c45_ids) { in phy_device_create()
659 const int num_ids = ARRAY_SIZE(c45_ids->device_ids); in phy_device_create()
663 if (c45_ids->device_ids[i] == 0xffffffff) in phy_device_create()
667 c45_ids->device_ids[i]); in phy_device_create()
749 struct phy_c45_device_ids *c45_ids) in get_phy_c45_ids() argument
751 const int num_ids = ARRAY_SIZE(c45_ids->device_ids); in get_phy_c45_ids()
814 c45_ids->device_ids[i] = phy_reg << 16; in get_phy_c45_ids()
819 c45_ids->device_ids[i] |= phy_reg; in get_phy_c45_ids()
822 c45_ids->devices_in_package = devs_in_pkg; in get_phy_c45_ids()
824 c45_ids->mmds_present = devs_in_pkg & ~BIT(0); in get_phy_c45_ids()
911 struct phy_c45_device_ids c45_ids; in get_phy_device() local
915 c45_ids.devices_in_package = 0; in get_phy_device()
916 c45_ids.mmds_present = 0; in get_phy_device()
917 memset(c45_ids.device_ids, 0xff, sizeof(c45_ids.device_ids)); in get_phy_device()
920 r = get_phy_c45_ids(bus, addr, &c45_ids); in get_phy_device()
933 r = get_phy_c45_ids(bus, addr, &c45_ids); in get_phy_device()
936 true, &c45_ids); in get_phy_device()
939 return phy_device_create(bus, addr, phy_id, is_c45, &c45_ids); in get_phy_device()
1013 &phydev->c45_ids); in phy_get_c45_ids()