Lines Matching refs:sysfs_entry
65 struct dma_buf_sysfs_entry *sysfs_entry; in dma_buf_stats_attribute_show() local
69 sysfs_entry = to_dma_buf_entry_from_kobj(kobj); in dma_buf_stats_attribute_show()
70 dmabuf = sysfs_entry->dmabuf; in dma_buf_stats_attribute_show()
109 struct dma_buf_sysfs_entry *sysfs_entry; in dma_buf_sysfs_release() local
111 sysfs_entry = to_dma_buf_entry_from_kobj(kobj); in dma_buf_sysfs_release()
112 kfree(sysfs_entry); in dma_buf_sysfs_release()
123 struct dma_buf_sysfs_entry *sysfs_entry; in dma_buf_stats_teardown() local
125 sysfs_entry = dmabuf->sysfs_entry; in dma_buf_stats_teardown()
126 if (!sysfs_entry) in dma_buf_stats_teardown()
129 kobject_del(&sysfs_entry->kobj); in dma_buf_stats_teardown()
130 kobject_put(&sysfs_entry->kobj); in dma_buf_stats_teardown()
173 struct dma_buf_sysfs_entry *sysfs_entry; in dma_buf_stats_setup() local
181 sysfs_entry = kzalloc(sizeof(struct dma_buf_sysfs_entry), GFP_KERNEL); in dma_buf_stats_setup()
182 if (!sysfs_entry) in dma_buf_stats_setup()
185 sysfs_entry->kobj.kset = dma_buf_per_buffer_stats_kset; in dma_buf_stats_setup()
186 sysfs_entry->dmabuf = dmabuf; in dma_buf_stats_setup()
188 dmabuf->sysfs_entry = sysfs_entry; in dma_buf_stats_setup()
191 ret = kobject_init_and_add(&sysfs_entry->kobj, &dma_buf_ktype, NULL, in dma_buf_stats_setup()
199 kobject_put(&sysfs_entry->kobj); in dma_buf_stats_setup()
200 dmabuf->sysfs_entry = NULL; in dma_buf_stats_setup()