Lines Matching refs:kobj
77 struct kobject *kobj = attr_sd->s_parent->s_dir.kobj; in fill_read_buffer() local
92 count = ops->show(kobj, attr_sd->s_attr.attr, buffer->page); in fill_read_buffer()
201 struct kobject *kobj = attr_sd->s_parent->s_dir.kobj; in flush_write_buffer() local
209 rc = ops->store(kobj, attr_sd->s_attr.attr, buffer->page, count); in flush_write_buffer()
335 struct kobject *kobj = attr_sd->s_parent->s_dir.kobj; in sysfs_open_file() local
350 if (kobj->ktype && kobj->ktype->sysfs_ops) in sysfs_open_file()
351 ops = kobj->ktype->sysfs_ops; in sysfs_open_file()
354 "kobject: %s\n", kobject_name(kobj)); in sysfs_open_file()
535 int sysfs_create_file(struct kobject * kobj, const struct attribute * attr) in sysfs_create_file() argument
537 BUG_ON(!kobj || !kobj->sd || !attr); in sysfs_create_file()
539 return sysfs_add_file(kobj->sd, attr, SYSFS_KOBJ_ATTR); in sysfs_create_file()
550 int sysfs_add_file_to_group(struct kobject *kobj, in sysfs_add_file_to_group() argument
557 dir_sd = sysfs_get_dirent(kobj->sd, group); in sysfs_add_file_to_group()
559 dir_sd = sysfs_get(kobj->sd); in sysfs_add_file_to_group()
578 int sysfs_chmod_file(struct kobject *kobj, struct attribute *attr, mode_t mode) in sysfs_chmod_file() argument
587 victim_sd = sysfs_get_dirent(kobj->sd, attr->name); in sysfs_chmod_file()
633 void sysfs_remove_file(struct kobject * kobj, const struct attribute * attr) in sysfs_remove_file() argument
635 sysfs_hash_and_remove(kobj->sd, attr->name); in sysfs_remove_file()
645 void sysfs_remove_file_from_group(struct kobject *kobj, in sysfs_remove_file_from_group() argument
651 dir_sd = sysfs_get_dirent(kobj->sd, group); in sysfs_remove_file_from_group()
653 dir_sd = sysfs_get(kobj->sd); in sysfs_remove_file_from_group()
662 struct kobject *kobj; member
675 kobject_put(ss->kobj); in sysfs_schedule_callback_work()
700 int sysfs_schedule_callback(struct kobject *kobj, void (*func)(void *), in sysfs_schedule_callback() argument
712 kobject_get(kobj); in sysfs_schedule_callback()
713 ss->kobj = kobj; in sysfs_schedule_callback()