Lines Matching defs:kobj
17 #define to_dma_buf_entry_from_kobj(x) container_of(x, struct dma_buf_sysfs_entry, kobj)
60 static ssize_t dma_buf_stats_attribute_show(struct kobject *kobj,
69 sysfs_entry = to_dma_buf_entry_from_kobj(kobj);
107 static void dma_buf_sysfs_release(struct kobject *kobj)
111 sysfs_entry = to_dma_buf_entry_from_kobj(kobj);
129 kobject_del(&sysfs_entry->kobj);
130 kobject_put(&sysfs_entry->kobj);
135 static int dmabuf_sysfs_uevent_filter(const struct kobject *kobj)
156 &dma_buf_stats_kset->kobj);
185 sysfs_entry->kobj.kset = dma_buf_per_buffer_stats_kset;
191 ret = kobject_init_and_add(&sysfs_entry->kobj, &dma_buf_ktype, NULL,
199 kobject_put(&sysfs_entry->kobj);