Lines Matching refs:kobj_topology
753 if (!sys_props.kobj_topology) { in kfd_topology_update_sysfs()
754 sys_props.kobj_topology = in kfd_topology_update_sysfs()
755 kfd_alloc_struct(sys_props.kobj_topology); in kfd_topology_update_sysfs()
756 if (!sys_props.kobj_topology) in kfd_topology_update_sysfs()
759 ret = kobject_init_and_add(sys_props.kobj_topology, in kfd_topology_update_sysfs()
766 sys_props.kobj_topology); in kfd_topology_update_sysfs()
773 ret = sysfs_create_file(sys_props.kobj_topology, in kfd_topology_update_sysfs()
781 ret = sysfs_create_file(sys_props.kobj_topology, in kfd_topology_update_sysfs()
795 if (sys_props.kobj_topology) { in kfd_topology_release_sysfs()
796 sysfs_remove_file(sys_props.kobj_topology, in kfd_topology_release_sysfs()
798 sysfs_remove_file(sys_props.kobj_topology, in kfd_topology_release_sysfs()
805 kobject_del(sys_props.kobj_topology); in kfd_topology_release_sysfs()
806 kobject_put(sys_props.kobj_topology); in kfd_topology_release_sysfs()
807 sys_props.kobj_topology = NULL; in kfd_topology_release_sysfs()