Lines Matching refs:hw_id_kset
749 struct kset hw_id_kset; /* ip_discovery/die/#die/#hw_id/, contains ip_hw_instance */ member
869 #define to_ip_hw_id(x) container_of(to_kset(x), struct ip_hw_id, hw_id_kset)
875 if (!list_empty(&ip_hw_id->hw_id_kset.list)) in ip_hw_id_release()
1050 kobject_set_name(&ip_hw_id->hw_id_kset.kobj, "%d", ii); in amdgpu_discovery_sysfs_ips()
1051 ip_hw_id->hw_id_kset.kobj.kset = &ip_die_entry->ip_kset; in amdgpu_discovery_sysfs_ips()
1052 ip_hw_id->hw_id_kset.kobj.ktype = &ip_hw_id_ktype; in amdgpu_discovery_sysfs_ips()
1053 res = kset_register(&ip_hw_id->hw_id_kset); in amdgpu_discovery_sysfs_ips()
1061 &ip_hw_id->hw_id_kset.kobj, in amdgpu_discovery_sysfs_ips()
1101 ip_hw_instance->kobj.kset = &ip_hw_id->hw_id_kset; in amdgpu_discovery_sysfs_ips()
1220 struct kset *hw_id_kset; in amdgpu_discovery_sysfs_ip_hw_free() local
1222 hw_id_kset = &ip_hw_id->hw_id_kset; in amdgpu_discovery_sysfs_ip_hw_free()
1223 spin_lock(&hw_id_kset->list_lock); in amdgpu_discovery_sysfs_ip_hw_free()
1224 list_for_each_prev_safe(el, tmp, &hw_id_kset->list) { in amdgpu_discovery_sysfs_ip_hw_free()
1226 spin_unlock(&hw_id_kset->list_lock); in amdgpu_discovery_sysfs_ip_hw_free()
1229 spin_lock(&hw_id_kset->list_lock); in amdgpu_discovery_sysfs_ip_hw_free()
1231 spin_unlock(&hw_id_kset->list_lock); in amdgpu_discovery_sysfs_ip_hw_free()
1232 kobject_put(&ip_hw_id->hw_id_kset.kobj); in amdgpu_discovery_sysfs_ip_hw_free()