Searched refs:len_to_copy (Results 1 - 4 of 4) sorted by relevance
/freebsd-12-stable/sys/cam/ctl/ |
H A D | ctl_tpc_local.c | 141 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 D | ctl_frontend_ioctl.c | 344 int len_to_copy; local 415 len_to_copy = MIN(ext_sglist[i].len - ext_watermark, 435 "bytes to user\n", len_to_copy)); 438 if (copyout(kern_ptr, ext_ptr, len_to_copy) != 0) { 444 "bytes from user\n", len_to_copy)); 447 if (copyin(ext_ptr, kern_ptr, len_to_copy)!= 0){ 453 ctsio->ext_data_filled += len_to_copy; 454 ctsio->kern_data_resid -= len_to_copy; 456 ext_watermark += len_to_copy; 462 kern_watermark += len_to_copy; [all...] |
H A D | ctl_frontend_cam_sim.c | 292 int len_to_copy; local 361 len_to_copy = MIN(cam_sglist[i].ds_len - cam_watermark, 381 __func__, len_to_copy)); 384 bcopy(ctl_ptr, cam_ptr, len_to_copy); 387 __func__, len_to_copy)); 390 bcopy(cam_ptr, ctl_ptr, len_to_copy); 393 io->scsiio.ext_data_filled += len_to_copy; 394 io->scsiio.kern_data_resid -= len_to_copy; 396 cam_watermark += len_to_copy; 402 ctl_watermark += len_to_copy; [all...] |
/freebsd-12-stable/sys/cam/scsi/ |
H A D | scsi_pass.c | 1208 bus_size_t kern_watermark, user_watermark, len_copied, len_to_copy; local 1215 len_to_copy = 0; 1224 len_to_copy = min(user_sglist[i].ds_len -user_watermark, 1232 user_watermark += len_to_copy; 1233 kern_watermark += len_to_copy; 1235 if (!useracc(user_ptr, len_to_copy, 1239 user_ptr, len_to_copy); 1245 error = copyout(kern_ptr, user_ptr, len_to_copy); 1249 "error %d\n", __func__, len_to_copy, 1254 error = copyin(user_ptr, kern_ptr, len_to_copy); [all...] |
Completed in 85 milliseconds