Searched refs:battr (Results 1 – 8 of 8) sorted by relevance
| /linux/fs/sysfs/ |
| H A D | file.c | 86 const struct bin_attribute *battr = of->kn->priv; in sysfs_kf_bin_read() local 100 if (!battr->read) in sysfs_kf_bin_read() 103 return battr->read(of->file, kobj, battr, buf, pos, count); in sysfs_kf_bin_read() 149 const struct bin_attribute *battr = of->kn->priv; in sysfs_kf_bin_write() local 161 if (!battr->write) in sysfs_kf_bin_write() 164 return battr->write(of->file, kobj, battr, buf, pos, count); in sysfs_kf_bin_write() 170 const struct bin_attribute *battr = of->kn->priv; in sysfs_kf_bin_mmap() local 173 return battr->mmap(of->file, kobj, battr, vma); in sysfs_kf_bin_mmap() 179 const struct bin_attribute *battr = of->kn->priv; in sysfs_kf_bin_llseek() local 182 if (battr->llseek) in sysfs_kf_bin_llseek() [all …]
|
| H A D | sysfs.h | 34 const struct bin_attribute *battr, umode_t mode, size_t size,
|
| /linux/drivers/misc/ |
| H A D | sram.c | 32 part = (struct sram_partition *)container_of(attr, struct sram_partition, battr); in sram_read() 48 part = (struct sram_partition *)container_of(attr, struct sram_partition, battr); in sram_write() 80 sysfs_bin_attr_init(&part->battr); in sram_add_export() 81 part->battr.attr.name = devm_kasprintf(sram->dev, GFP_KERNEL, in sram_add_export() 84 if (!part->battr.attr.name) in sram_add_export() 87 part->battr.attr.mode = S_IRUSR | S_IWUSR; in sram_add_export() 88 part->battr.read = sram_read; in sram_add_export() 89 part->battr.write = sram_write; in sram_add_export() 90 part->battr.size = block->size; in sram_add_export() 92 return device_create_bin_file(sram->dev, &part->battr); in sram_add_export() [all …]
|
| H A D | sram.h | 17 struct bin_attribute battr; member
|
| /linux/drivers/platform/x86/amd/hsmp/ |
| H A D | plat.c | 66 const struct bin_attribute *battr, int id) in hsmp_is_sock_attr_visible() argument 70 sock_ind = (uintptr_t)battr->private; in hsmp_is_sock_attr_visible() 76 return battr->attr.mode; in hsmp_is_sock_attr_visible()
|
| H A D | acpi.c | 245 const struct bin_attribute *battr, int id) in hsmp_is_sock_attr_visible() argument 248 return battr->attr.mode; in hsmp_is_sock_attr_visible()
|
| /linux/kernel/module/ |
| H A D | sysfs.c | 29 const struct bin_attribute *battr, in module_sect_read() argument 48 ? battr->private : NULL); in module_sect_read()
|
| /linux/drivers/hwmon/occ/ |
| H A D | p9_sbe.c | 33 const struct bin_attribute *battr, char *buf, loff_t pos, in ffdc_read() argument
|