Lines Matching refs:ip_kset

754 	struct kset ip_kset;     /* ip_discovery/die/#die/, contains ip_hw_id  */  member
915 #define to_ip_die_entry(x) container_of(to_kset(x), struct ip_die_entry, ip_kset)
934 if (!list_empty(&ip_die_entry->ip_kset.list)) in ip_die_entry_release()
1051 ip_hw_id->hw_id_kset.kobj.kset = &ip_die_entry->ip_kset; in amdgpu_discovery_sysfs_ips()
1060 res = sysfs_create_link(&ip_die_entry->ip_kset.kobj, in amdgpu_discovery_sysfs_ips()
1066 kobject_name(&ip_die_entry->ip_kset.kobj)); in amdgpu_discovery_sysfs_ips()
1154 kobject_set_name(&ip_die_entry->ip_kset.kobj, "%d", le16_to_cpu(dhdr->die_id)); in amdgpu_discovery_sysfs_recurse()
1155 ip_die_entry->ip_kset.kobj.kset = die_kset; in amdgpu_discovery_sysfs_recurse()
1156 ip_die_entry->ip_kset.kobj.ktype = &ip_die_entry_ktype; in amdgpu_discovery_sysfs_recurse()
1157 res = kset_register(&ip_die_entry->ip_kset); in amdgpu_discovery_sysfs_recurse()
1238 struct kset *ip_kset; in amdgpu_discovery_sysfs_die_free() local
1240 ip_kset = &ip_die_entry->ip_kset; in amdgpu_discovery_sysfs_die_free()
1241 spin_lock(&ip_kset->list_lock); in amdgpu_discovery_sysfs_die_free()
1242 list_for_each_prev_safe(el, tmp, &ip_kset->list) { in amdgpu_discovery_sysfs_die_free()
1244 spin_unlock(&ip_kset->list_lock); in amdgpu_discovery_sysfs_die_free()
1246 spin_lock(&ip_kset->list_lock); in amdgpu_discovery_sysfs_die_free()
1248 spin_unlock(&ip_kset->list_lock); in amdgpu_discovery_sysfs_die_free()
1249 kobject_put(&ip_die_entry->ip_kset.kobj); in amdgpu_discovery_sysfs_die_free()