Lines Matching refs:kobj
23 static ssize_t version_show(struct kobject *kobj, in version_show() argument
31 static ssize_t boot_params_data_read(struct file *fp, struct kobject *kobj, in boot_params_data_read() argument
63 static int kobj_to_setup_data_nr(struct kobject *kobj, int *nr) in kobj_to_setup_data_nr() argument
67 name = kobject_name(kobj); in kobj_to_setup_data_nr()
116 static ssize_t type_show(struct kobject *kobj, in type_show() argument
123 ret = kobj_to_setup_data_nr(kobj, &nr); in type_show()
140 struct kobject *kobj, in setup_data_data_read() argument
150 ret = kobj_to_setup_data_nr(kobj, &nr); in setup_data_data_read()
215 struct kobject *kobj; in create_setup_data_node() local
219 kobj = kobject_create_and_add(name, parent); in create_setup_data_node()
220 if (!kobj) in create_setup_data_node()
228 ret = sysfs_create_group(kobj, &setup_data_attr_group); in create_setup_data_node()
231 *kobjp = kobj; in create_setup_data_node()
235 kobject_put(kobj); in create_setup_data_node()
239 static void __init cleanup_setup_data_node(struct kobject *kobj) in cleanup_setup_data_node() argument
241 sysfs_remove_group(kobj, &setup_data_attr_group); in cleanup_setup_data_node()
242 kobject_put(kobj); in cleanup_setup_data_node()