Searched refs:battr (Results 1 – 6 of 6) sorted by relevance
/linux-6.3-rc2/fs/sysfs/ |
A D | file.c | 80 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() 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() 167 return battr->mmap(of->file, kobj, battr, vma); in sysfs_kf_bin_mmap() 174 if (battr->f_mapping) in sysfs_kf_bin_open() 313 if (battr->mmap) in sysfs_add_bin_file_mode_ns() 315 else if (battr->read && battr->write) in sysfs_add_bin_file_mode_ns() 317 else if (battr->read) in sysfs_add_bin_file_mode_ns() [all …]
|
A D | sysfs.h | 34 const struct bin_attribute *battr, umode_t mode,
|
/linux-6.3-rc2/kernel/module/ |
A D | sysfs.c | 23 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-6.3-rc2/drivers/misc/ |
A D | sram.c | 31 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() 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() 155 if (part->battr.size) in sram_free_partitions() [all …]
|
A D | sram.h | 17 struct bin_attribute battr; member
|
/linux-6.3-rc2/drivers/hwmon/occ/ |
A D | p9_sbe.c | 33 struct bin_attribute *battr, char *buf, loff_t pos, in ffdc_read() argument
|
Completed in 12 milliseconds