Searched refs:len_to_copy (Results 1 - 4 of 4) sorted by relevance

/freebsd-11-stable/sys/cam/ctl/
H A Dctl_tpc_local.c141 int len_to_copy; local
204 len_to_copy = min(ext_sglist[i].len - ext_watermark,
224 __func__, len_to_copy));
227 memcpy(ext_ptr, kern_ptr, len_to_copy);
230 __func__, len_to_copy));
233 memcpy(kern_ptr, ext_ptr, len_to_copy);
236 ctsio->ext_data_filled += len_to_copy;
237 ctsio->kern_data_resid -= len_to_copy;
239 ext_watermark += len_to_copy;
245 kern_watermark += len_to_copy;
[all...]
H A Dctl_frontend_ioctl.c143 int len_to_copy; local
214 len_to_copy = MIN(ext_sglist[i].len - ext_watermark,
234 "bytes to user\n", len_to_copy));
237 if (copyout(kern_ptr, ext_ptr, len_to_copy) != 0) {
243 "bytes from user\n", len_to_copy));
246 if (copyin(ext_ptr, kern_ptr, len_to_copy)!= 0){
252 ctsio->ext_data_filled += len_to_copy;
253 ctsio->kern_data_resid -= len_to_copy;
255 ext_watermark += len_to_copy;
261 kern_watermark += len_to_copy;
[all...]
H A Dctl_frontend_cam_sim.c295 int len_to_copy; local
364 len_to_copy = MIN(cam_sglist[i].ds_len - cam_watermark,
384 __func__, len_to_copy));
387 bcopy(ctl_ptr, cam_ptr, len_to_copy);
390 __func__, len_to_copy));
393 bcopy(cam_ptr, ctl_ptr, len_to_copy);
396 io->scsiio.ext_data_filled += len_to_copy;
397 io->scsiio.kern_data_resid -= len_to_copy;
399 cam_watermark += len_to_copy;
405 ctl_watermark += len_to_copy;
[all...]
/freebsd-11-stable/sys/cam/scsi/
H A Dscsi_pass.c1210 bus_size_t kern_watermark, user_watermark, len_copied, len_to_copy; local
1217 len_to_copy = 0;
1226 len_to_copy = min(user_sglist[i].ds_len -user_watermark,
1234 user_watermark += len_to_copy;
1235 kern_watermark += len_to_copy;
1237 if (!useracc(user_ptr, len_to_copy,
1241 user_ptr, len_to_copy);
1247 error = copyout(kern_ptr, user_ptr, len_to_copy);
1251 "error %d\n", __func__, len_to_copy,
1256 error = copyin(user_ptr, kern_ptr, len_to_copy);
[all...]

Completed in 58 milliseconds