Searched refs:battr (Results 1 – 8 of 8) sorted by relevance
| /linux-6.15/fs/sysfs/ |
| H A D | file.c | 100 if (!battr->read && !battr->read_new) in sysfs_kf_bin_read() 106 return battr->read(of->file, kobj, battr, buf, pos, count); in sysfs_kf_bin_read() 164 if (!battr->write && !battr->write_new) in sysfs_kf_bin_write() 170 return battr->write(of->file, kobj, battr, buf, pos, count); in sysfs_kf_bin_write() 179 return battr->mmap(of->file, kobj, battr, vma); in sysfs_kf_bin_mmap() 189 return battr->llseek(of->file, kobj, battr, offset, whence); in sysfs_kf_bin_llseek() 338 if (battr->read && battr->read_new) in sysfs_add_bin_file_mode_ns() 341 if (battr->write && battr->write_new) in sysfs_add_bin_file_mode_ns() 346 else if ((battr->read || battr->read_new) && (battr->write || battr->write_new)) in sysfs_add_bin_file_mode_ns() 348 else if (battr->read || battr->read_new) in sysfs_add_bin_file_mode_ns() [all …]
|
| H A D | sysfs.h | 34 const struct bin_attribute *battr, umode_t mode, size_t size,
|
| /linux-6.15/drivers/misc/ |
| H 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_new = sram_read; in sram_add_export() 87 part->battr.write_new = 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 …]
|
| H A D | sram.h | 17 struct bin_attribute battr; member
|
| /linux-6.15/drivers/platform/x86/amd/hsmp/ |
| H A D | plat.c | 65 const struct bin_attribute *battr, int id) in hsmp_is_sock_attr_visible() argument 69 sock_ind = (uintptr_t)battr->private; in hsmp_is_sock_attr_visible() 75 return battr->attr.mode; in hsmp_is_sock_attr_visible()
|
| H A D | acpi.c | 239 const struct bin_attribute *battr, int id) in hsmp_is_sock_attr_visible() argument 242 return battr->attr.mode; in hsmp_is_sock_attr_visible()
|
| /linux-6.15/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-6.15/drivers/hwmon/occ/ |
| H A D | p9_sbe.c | 33 const struct bin_attribute *battr, char *buf, loff_t pos, in ffdc_read() argument
|