battr              31 drivers/misc/sram.c 	part = container_of(attr, struct sram_partition, battr);
battr              46 drivers/misc/sram.c 	part = container_of(attr, struct sram_partition, battr);
battr              78 drivers/misc/sram.c 	sysfs_bin_attr_init(&part->battr);
battr              79 drivers/misc/sram.c 	part->battr.attr.name = devm_kasprintf(sram->dev, GFP_KERNEL,
battr              82 drivers/misc/sram.c 	if (!part->battr.attr.name)
battr              85 drivers/misc/sram.c 	part->battr.attr.mode = S_IRUSR | S_IWUSR;
battr              86 drivers/misc/sram.c 	part->battr.read = sram_read;
battr              87 drivers/misc/sram.c 	part->battr.write = sram_write;
battr              88 drivers/misc/sram.c 	part->battr.size = block->size;
battr              90 drivers/misc/sram.c 	return device_create_bin_file(sram->dev, &part->battr);
battr             138 drivers/misc/sram.c 		if (part->battr.size)
battr             139 drivers/misc/sram.c 			device_remove_bin_file(sram->dev, &part->battr);
battr              12 drivers/misc/sram.h 	struct bin_attribute battr;
battr              82 fs/sysfs/file.c 	struct bin_attribute *battr = of->kn->priv;
battr              96 fs/sysfs/file.c 	if (!battr->read)
battr              99 fs/sysfs/file.c 	return battr->read(of->file, kobj, battr, buf, pos, count);
battr             145 fs/sysfs/file.c 	struct bin_attribute *battr = of->kn->priv;
battr             157 fs/sysfs/file.c 	if (!battr->write)
battr             160 fs/sysfs/file.c 	return battr->write(of->file, kobj, battr, buf, pos, count);
battr             166 fs/sysfs/file.c 	struct bin_attribute *battr = of->kn->priv;
battr             169 fs/sysfs/file.c 	return battr->mmap(of->file, kobj, battr, vma);
battr             284 fs/sysfs/file.c 		struct bin_attribute *battr = (void *)attr;
battr             286 fs/sysfs/file.c 		if (battr->mmap)
battr             288 fs/sysfs/file.c 		else if (battr->read && battr->write)
battr             290 fs/sysfs/file.c 		else if (battr->read)
battr             292 fs/sysfs/file.c 		else if (battr->write)
battr             297 fs/sysfs/file.c 		size = battr->size;