Lines Matching refs:battr
83 struct bin_attribute *battr = of->kn->priv; in sysfs_kf_bin_read() local
97 if (!battr->read) in sysfs_kf_bin_read()
100 return battr->read(of->file, kobj, battr, buf, pos, count); in sysfs_kf_bin_read()
146 struct bin_attribute *battr = of->kn->priv; in sysfs_kf_bin_write() local
158 if (!battr->write) in sysfs_kf_bin_write()
161 return battr->write(of->file, kobj, battr, buf, pos, count); in sysfs_kf_bin_write()
167 struct bin_attribute *battr = of->kn->priv; in sysfs_kf_bin_mmap() local
170 return battr->mmap(of->file, kobj, battr, vma); in sysfs_kf_bin_mmap()
285 struct bin_attribute *battr = (void *)attr; in sysfs_add_file_mode_ns() local
287 if (battr->mmap) in sysfs_add_file_mode_ns()
289 else if (battr->read && battr->write) in sysfs_add_file_mode_ns()
291 else if (battr->read) in sysfs_add_file_mode_ns()
293 else if (battr->write) in sysfs_add_file_mode_ns()
298 size = battr->size; in sysfs_add_file_mode_ns()