Lines Matching refs:ip_top
808 struct ip_discovery_top *ip_top = container_of(to_kset(kobj), in die_kobj_release() local
811 if (!list_empty(&ip_top->die_kset.list)) in die_kobj_release()
817 struct ip_discovery_top *ip_top = container_of(kobj, struct ip_discovery_top, in ip_disc_release() local
819 struct amdgpu_device *adev = ip_top->adev; in ip_disc_release()
821 adev->ip_top = NULL; in ip_disc_release()
822 kfree(ip_top); in ip_disc_release()
919 struct kset *die_kset = &adev->ip_top->die_kset; in amdgpu_discovery_sysfs_recurse()
972 adev->ip_top = kzalloc(sizeof(*adev->ip_top), GFP_KERNEL); in amdgpu_discovery_sysfs_init()
973 if (!adev->ip_top) in amdgpu_discovery_sysfs_init()
976 adev->ip_top->adev = adev; in amdgpu_discovery_sysfs_init()
978 res = kobject_init_and_add(&adev->ip_top->kobj, &ip_discovery_ktype, in amdgpu_discovery_sysfs_init()
985 die_kset = &adev->ip_top->die_kset; in amdgpu_discovery_sysfs_init()
987 die_kset->kobj.parent = &adev->ip_top->kobj; in amdgpu_discovery_sysfs_init()
989 res = kset_register(&adev->ip_top->die_kset); in amdgpu_discovery_sysfs_init()
1003 kobject_put(&adev->ip_top->kobj); in amdgpu_discovery_sysfs_init()
1051 die_kset = &adev->ip_top->die_kset; in amdgpu_discovery_sysfs_fini()
1060 kobject_put(&adev->ip_top->die_kset.kobj); in amdgpu_discovery_sysfs_fini()
1061 kobject_put(&adev->ip_top->kobj); in amdgpu_discovery_sysfs_fini()