Lines Matching refs:battr
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()
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()
155 if (part->battr.size) in sram_free_partitions()
156 device_remove_bin_file(sram->dev, &part->battr); in sram_free_partitions()