Home
last modified time | relevance | path

Searched refs:battr (Results 1 – 6 of 6) sorted by relevance

/Linux-v6.6/fs/sysfs/
Dfile.c80 struct bin_attribute *battr = of->kn->priv; in sysfs_kf_bin_read() local
94 if (!battr->read) in sysfs_kf_bin_read()
97 return battr->read(of->file, kobj, battr, buf, pos, count); in sysfs_kf_bin_read()
143 struct bin_attribute *battr = of->kn->priv; in sysfs_kf_bin_write() local
155 if (!battr->write) in sysfs_kf_bin_write()
158 return battr->write(of->file, kobj, battr, buf, pos, count); in sysfs_kf_bin_write()
164 struct bin_attribute *battr = of->kn->priv; in sysfs_kf_bin_mmap() local
167 return battr->mmap(of->file, kobj, battr, vma); in sysfs_kf_bin_mmap()
172 struct bin_attribute *battr = of->kn->priv; in sysfs_kf_bin_open() local
174 if (battr->f_mapping) in sysfs_kf_bin_open()
[all …]
Dsysfs.h34 const struct bin_attribute *battr, umode_t mode,
/Linux-v6.6/kernel/module/
Dsysfs.c23 struct bin_attribute battr; member
35 struct bin_attribute *battr, in module_sect_read() argument
39 container_of(battr, struct module_sect_attr, battr); in module_sect_read()
68 kfree(sect_attrs->attrs[section].battr.attr.name); in free_sect_attrs()
102 sysfs_bin_attr_init(&sattr->battr); in add_sect_attrs()
104 sattr->battr.attr.name = in add_sect_attrs()
106 if (!sattr->battr.attr.name) in add_sect_attrs()
109 sattr->battr.read = module_sect_read; in add_sect_attrs()
110 sattr->battr.size = MODULE_SECT_READ_SIZE; in add_sect_attrs()
111 sattr->battr.attr.mode = 0400; in add_sect_attrs()
[all …]
/Linux-v6.6/drivers/misc/
Dsram.c31 part = container_of(attr, struct sram_partition, battr); in sram_read()
46 part = container_of(attr, struct sram_partition, battr); in sram_write()
78 sysfs_bin_attr_init(&part->battr); in sram_add_export()
79 part->battr.attr.name = devm_kasprintf(sram->dev, GFP_KERNEL, in sram_add_export()
82 if (!part->battr.attr.name) in sram_add_export()
85 part->battr.attr.mode = S_IRUSR | S_IWUSR; in sram_add_export()
86 part->battr.read = sram_read; in sram_add_export()
87 part->battr.write = sram_write; in sram_add_export()
88 part->battr.size = block->size; in sram_add_export()
90 return device_create_bin_file(sram->dev, &part->battr); in sram_add_export()
[all …]
Dsram.h17 struct bin_attribute battr; member
/Linux-v6.6/drivers/hwmon/occ/
Dp9_sbe.c33 struct bin_attribute *battr, char *buf, loff_t pos, in ffdc_read() argument