Home
last modified time | relevance | path

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

/linux/kernel/module/
H A 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/drivers/misc/
H A 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 …]
H A Dsram.h17 struct bin_attribute battr; member
/linux/drivers/platform/x86/amd/hsmp/
H A Dplat.c78 const struct bin_attribute *battr, int id) in hsmp_is_sock_attr_visible() argument
82 sock_ind = (uintptr_t)battr->private; in hsmp_is_sock_attr_visible()
88 return battr->attr.mode; in hsmp_is_sock_attr_visible()
H A Dacpi.c239 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()