Lines Matching refs:kobj_topology
859 if (!sys_props.kobj_topology) { in kfd_topology_update_sysfs()
860 sys_props.kobj_topology = in kfd_topology_update_sysfs()
861 kfd_alloc_struct(sys_props.kobj_topology); in kfd_topology_update_sysfs()
862 if (!sys_props.kobj_topology) in kfd_topology_update_sysfs()
865 ret = kobject_init_and_add(sys_props.kobj_topology, in kfd_topology_update_sysfs()
869 kobject_put(sys_props.kobj_topology); in kfd_topology_update_sysfs()
874 sys_props.kobj_topology); in kfd_topology_update_sysfs()
881 ret = sysfs_create_file(sys_props.kobj_topology, in kfd_topology_update_sysfs()
889 ret = sysfs_create_file(sys_props.kobj_topology, in kfd_topology_update_sysfs()
903 if (sys_props.kobj_topology) { in kfd_topology_release_sysfs()
904 sysfs_remove_file(sys_props.kobj_topology, in kfd_topology_release_sysfs()
906 sysfs_remove_file(sys_props.kobj_topology, in kfd_topology_release_sysfs()
913 kobject_del(sys_props.kobj_topology); in kfd_topology_release_sysfs()
914 kobject_put(sys_props.kobj_topology); in kfd_topology_release_sysfs()
915 sys_props.kobj_topology = NULL; in kfd_topology_release_sysfs()