Lines Matching refs:copylen
58 ssize_t copylen; in kvm_stats_read() local
83 copylen = size_header - pos; in kvm_stats_read()
84 copylen = min(copylen, remain); in kvm_stats_read()
85 if (copylen > 0) { in kvm_stats_read()
87 if (copy_to_user(dest, src, copylen)) in kvm_stats_read()
89 remain -= copylen; in kvm_stats_read()
90 pos += copylen; in kvm_stats_read()
91 dest += copylen; in kvm_stats_read()
103 copylen = header->id_offset + KVM_STATS_NAME_SIZE - pos; in kvm_stats_read()
104 copylen = min(copylen, remain); in kvm_stats_read()
105 if (copylen > 0) { in kvm_stats_read()
107 if (copy_to_user(dest, src, copylen)) in kvm_stats_read()
109 remain -= copylen; in kvm_stats_read()
110 pos += copylen; in kvm_stats_read()
111 dest += copylen; in kvm_stats_read()
121 copylen = header->desc_offset + size_desc - pos; in kvm_stats_read()
122 copylen = min(copylen, remain); in kvm_stats_read()
123 if (copylen > 0) { in kvm_stats_read()
125 if (copy_to_user(dest, src, copylen)) in kvm_stats_read()
127 remain -= copylen; in kvm_stats_read()
128 pos += copylen; in kvm_stats_read()
129 dest += copylen; in kvm_stats_read()
133 copylen = header->data_offset + size_stats - pos; in kvm_stats_read()
134 copylen = min(copylen, remain); in kvm_stats_read()
135 if (copylen > 0) { in kvm_stats_read()
137 if (copy_to_user(dest, src, copylen)) in kvm_stats_read()
139 pos += copylen; in kvm_stats_read()