Lines Matching refs:kobj
498 static ssize_t sysprops_show(struct kobject *kobj, struct attribute *attr, in sysprops_show() argument
530 static ssize_t iolink_show(struct kobject *kobj, struct attribute *attr, in iolink_show() argument
565 static ssize_t mem_show(struct kobject *kobj, struct attribute *attr, in mem_show() argument
592 static ssize_t kfd_cache_show(struct kobject *kobj, struct attribute *attr, in kfd_cache_show() argument
631 static ssize_t node_show(struct kobject *kobj, struct attribute *attr, in node_show() argument
753 static void kfd_remove_sysfs_file(struct kobject *kobj, struct attribute *attr) in kfd_remove_sysfs_file() argument
755 sysfs_remove_file(kobj, attr); in kfd_remove_sysfs_file()
756 kobject_del(kobj); in kfd_remove_sysfs_file()
757 kobject_put(kobj); in kfd_remove_sysfs_file()
770 if (iolink->kobj) { in kfd_remove_sysfs_node_entry()
771 kfd_remove_sysfs_file(iolink->kobj, in kfd_remove_sysfs_node_entry()
773 iolink->kobj = NULL; in kfd_remove_sysfs_node_entry()
782 if (cache->kobj) { in kfd_remove_sysfs_node_entry()
783 kfd_remove_sysfs_file(cache->kobj, in kfd_remove_sysfs_node_entry()
785 cache->kobj = NULL; in kfd_remove_sysfs_node_entry()
794 if (mem->kobj) { in kfd_remove_sysfs_node_entry()
795 kfd_remove_sysfs_file(mem->kobj, &mem->attr); in kfd_remove_sysfs_node_entry()
796 mem->kobj = NULL; in kfd_remove_sysfs_node_entry()
873 mem->kobj = kzalloc(sizeof(struct kobject), GFP_KERNEL); in kfd_build_sysfs_node_entry()
874 if (!mem->kobj) in kfd_build_sysfs_node_entry()
876 ret = kobject_init_and_add(mem->kobj, &mem_type, in kfd_build_sysfs_node_entry()
884 ret = sysfs_create_file(mem->kobj, &mem->attr); in kfd_build_sysfs_node_entry()
892 cache->kobj = kzalloc(sizeof(struct kobject), GFP_KERNEL); in kfd_build_sysfs_node_entry()
893 if (!cache->kobj) in kfd_build_sysfs_node_entry()
895 ret = kobject_init_and_add(cache->kobj, &cache_type, in kfd_build_sysfs_node_entry()
903 ret = sysfs_create_file(cache->kobj, &cache->attr); in kfd_build_sysfs_node_entry()
911 iolink->kobj = kzalloc(sizeof(struct kobject), GFP_KERNEL); in kfd_build_sysfs_node_entry()
912 if (!iolink->kobj) in kfd_build_sysfs_node_entry()
914 ret = kobject_init_and_add(iolink->kobj, &iolink_type, in kfd_build_sysfs_node_entry()
922 ret = sysfs_create_file(iolink->kobj, &iolink->attr); in kfd_build_sysfs_node_entry()
967 &sysprops_type, &kfd_device->kobj, in kfd_topology_update_sysfs()