Lines Matching refs:write_len
610 size_t total_len, write_len; in fsi_slave_sysfs_raw_write() local
619 for (total_len = 0; total_len < count; total_len += write_len) { in fsi_slave_sysfs_raw_write()
620 write_len = aligned_access_size(off, count - total_len); in fsi_slave_sysfs_raw_write()
622 rc = fsi_slave_write(slave, off, buf + total_len, write_len); in fsi_slave_sysfs_raw_write()
626 off += write_len; in fsi_slave_sysfs_raw_write()
734 size_t total_len, write_len; in cfam_write() local
745 for (total_len = 0; total_len < count; total_len += write_len) { in cfam_write()
748 write_len = min_t(size_t, count, 4); in cfam_write()
749 write_len -= off & 0x3; in cfam_write()
751 rc = copy_from_user(&data, buf + total_len, write_len); in cfam_write()
756 rc = fsi_slave_write(slave, off, &data, write_len); in cfam_write()
759 off += write_len; in cfam_write()