Lines Matching refs:kobj
18 #define to_dma_buf_entry_from_kobj(x) container_of(x, struct dma_buf_sysfs_entry, kobj)
27 static ssize_t dma_buf_stats_attribute_show(struct kobject *kobj, in dma_buf_stats_attribute_show() argument
36 sysfs_entry = to_dma_buf_entry_from_kobj(kobj); in dma_buf_stats_attribute_show()
74 static void dma_buf_sysfs_release(struct kobject *kobj) in dma_buf_sysfs_release() argument
78 sysfs_entry = to_dma_buf_entry_from_kobj(kobj); in dma_buf_sysfs_release()
96 kobject_del(&sysfs_entry->kobj); in dma_buf_stats_teardown()
97 kobject_put(&sysfs_entry->kobj); in dma_buf_stats_teardown()
103 static int dmabuf_sysfs_uevent_filter(struct kset *kset, struct kobject *kobj) in dmabuf_sysfs_uevent_filter() argument
124 &dma_buf_stats_kset->kobj); in dma_buf_init_sysfs_statistics()
146 container_of((struct kobject *)work, struct dma_buf_sysfs_entry, kobj); in sysfs_add_workfn()
162 memset(&dmabuf->sysfs_entry->kobj, 0, sizeof(dmabuf->sysfs_entry->kobj)); in sysfs_add_workfn()
163 dmabuf->sysfs_entry->kobj.kset = dma_buf_per_buffer_stats_kset; in sysfs_add_workfn()
164 if (kobject_init_and_add(&dmabuf->sysfs_entry->kobj, &dma_buf_ktype, NULL, in sysfs_add_workfn()
166 kobject_put(&dmabuf->sysfs_entry->kobj); in sysfs_add_workfn()
204 work = (struct work_struct *)&dmabuf->sysfs_entry->kobj; in dma_buf_stats_setup()