Lines Matching refs:write_len
588 size_t total_len, write_len; in fsi_slave_sysfs_raw_write() local
597 for (total_len = 0; total_len < count; total_len += write_len) { in fsi_slave_sysfs_raw_write()
598 write_len = aligned_access_size(off, count - total_len); in fsi_slave_sysfs_raw_write()
600 rc = fsi_slave_write(slave, off, buf + total_len, write_len); in fsi_slave_sysfs_raw_write()
604 off += write_len; in fsi_slave_sysfs_raw_write()
700 size_t total_len, write_len; in cfam_write() local
711 for (total_len = 0; total_len < count; total_len += write_len) { in cfam_write()
714 write_len = min_t(size_t, count, 4); in cfam_write()
715 write_len -= off & 0x3; in cfam_write()
717 rc = copy_from_user(&data, buf + total_len, write_len); in cfam_write()
722 rc = fsi_slave_write(slave, off, &data, write_len); in cfam_write()
725 off += write_len; in cfam_write()