Lines Matching refs:kobj
18 #define to_dma_buf_entry_from_kobj(x) container_of(x, struct dma_buf_sysfs_entry, kobj)
61 static ssize_t dma_buf_stats_attribute_show(struct kobject *kobj, in dma_buf_stats_attribute_show() argument
70 sysfs_entry = to_dma_buf_entry_from_kobj(kobj); in dma_buf_stats_attribute_show()
108 static void dma_buf_sysfs_release(struct kobject *kobj) in dma_buf_sysfs_release() argument
112 sysfs_entry = to_dma_buf_entry_from_kobj(kobj); in dma_buf_sysfs_release()
130 kobject_del(&sysfs_entry->kobj); in dma_buf_stats_teardown()
131 kobject_put(&sysfs_entry->kobj); in dma_buf_stats_teardown()
136 static int dmabuf_sysfs_uevent_filter(const struct kobject *kobj) in dmabuf_sysfs_uevent_filter() argument
157 &dma_buf_stats_kset->kobj); in dma_buf_init_sysfs_statistics()
191 memset(&dmabuf->sysfs_entry->kobj, 0, sizeof(dmabuf->sysfs_entry->kobj)); in sysfs_add_workfn()
192 dmabuf->sysfs_entry->kobj.kset = dma_buf_per_buffer_stats_kset; in sysfs_add_workfn()
193 if (kobject_init_and_add(&dmabuf->sysfs_entry->kobj, &dma_buf_ktype, NULL, in sysfs_add_workfn()
195 kobject_put(&dmabuf->sysfs_entry->kobj); in sysfs_add_workfn()