Home
last modified time | relevance | path

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

/linux-6.12.1/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()
173 struct bin_attribute *battr = of->kn->priv; in sysfs_kf_bin_llseek() local
176 if (battr->llseek) in sysfs_kf_bin_llseek()
[all …]
Dsysfs.h34 const struct bin_attribute *battr, umode_t mode,
/linux-6.12.1/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()
103 sysfs_bin_attr_init(&sattr->battr); in add_sect_attrs()
105 sattr->battr.attr.name = in add_sect_attrs()
107 if (!sattr->battr.attr.name) { in add_sect_attrs()
112 sattr->battr.read = module_sect_read; in add_sect_attrs()
113 sattr->battr.size = MODULE_SECT_READ_SIZE; in add_sect_attrs()
114 sattr->battr.attr.mode = 0400; in add_sect_attrs()
[all …]
/linux-6.12.1/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-6.12.1/drivers/hwmon/occ/
Dp9_sbe.c33 struct bin_attribute *battr, char *buf, loff_t pos, in ffdc_read() argument
/linux-6.12.1/drivers/platform/x86/amd/
Dhsmp.c623 struct bin_attribute *battr, int id) in hsmp_is_sock_attr_visible() argument
626 return battr->attr.mode; in hsmp_is_sock_attr_visible()