Lines Matching refs:kobj
30 static inline struct cma *cma_from_kobj(struct kobject *kobj) in cma_from_kobj() argument
32 return container_of(kobj, struct cma_kobject, kobj)->cma; in cma_from_kobj()
35 static ssize_t alloc_pages_success_show(struct kobject *kobj, in alloc_pages_success_show() argument
38 struct cma *cma = cma_from_kobj(kobj); in alloc_pages_success_show()
45 static ssize_t alloc_pages_fail_show(struct kobject *kobj, in alloc_pages_fail_show() argument
48 struct cma *cma = cma_from_kobj(kobj); in alloc_pages_fail_show()
54 static void cma_kobj_release(struct kobject *kobj) in cma_kobj_release() argument
56 struct cma *cma = cma_from_kobj(kobj); in cma_kobj_release()
100 err = kobject_init_and_add(&cma_kobj->kobj, &cma_ktype, in cma_sysfs_init()
103 kobject_put(&cma_kobj->kobj); in cma_sysfs_init()
112 kobject_put(&cma->cma_kobj->kobj); in cma_sysfs_init()