Searched refs:len_to_copy (Results 1 – 4 of 4) sorted by relevance
/freebsd/sys/cam/ctl/ |
H A D | ctl_tpc_local.c | 137 int len_to_copy; in tpcl_datamove() local 200 len_to_copy = min(ext_sglist[i].len - ext_watermark, in tpcl_datamove() 220 __func__, len_to_copy)); in tpcl_datamove() 223 memcpy(ext_ptr, kern_ptr, len_to_copy); in tpcl_datamove() 226 __func__, len_to_copy)); in tpcl_datamove() 229 memcpy(kern_ptr, ext_ptr, len_to_copy); in tpcl_datamove() 232 ctsio->ext_data_filled += len_to_copy; in tpcl_datamove() 233 ctsio->kern_data_resid -= len_to_copy; in tpcl_datamove() 235 ext_watermark += len_to_copy; in tpcl_datamove() 241 kern_watermark += len_to_copy; in tpcl_datamove()
|
H A D | ctl_frontend_ioctl.c | 339 int len_to_copy; in ctl_ioctl_do_datamove() local 410 len_to_copy = MIN(ext_sglist[i].len - ext_watermark, in ctl_ioctl_do_datamove() 430 "bytes to user\n", len_to_copy)); in ctl_ioctl_do_datamove() 433 if (copyout(kern_ptr, ext_ptr, len_to_copy) != 0) { in ctl_ioctl_do_datamove() 439 "bytes from user\n", len_to_copy)); in ctl_ioctl_do_datamove() 442 if (copyin(ext_ptr, kern_ptr, len_to_copy)!= 0){ in ctl_ioctl_do_datamove() 448 ctsio->ext_data_filled += len_to_copy; in ctl_ioctl_do_datamove() 449 ctsio->kern_data_resid -= len_to_copy; in ctl_ioctl_do_datamove() 451 ext_watermark += len_to_copy; in ctl_ioctl_do_datamove() 457 kern_watermark += len_to_copy; in ctl_ioctl_do_datamove()
|
H A D | ctl_frontend_cam_sim.c | 288 int len_to_copy; in cfcs_datamove() local 357 len_to_copy = MIN(cam_sglist[i].ds_len - cam_watermark, in cfcs_datamove() 377 __func__, len_to_copy)); in cfcs_datamove() 380 bcopy(ctl_ptr, cam_ptr, len_to_copy); in cfcs_datamove() 383 __func__, len_to_copy)); in cfcs_datamove() 386 bcopy(cam_ptr, ctl_ptr, len_to_copy); in cfcs_datamove() 389 io->scsiio.ext_data_filled += len_to_copy; in cfcs_datamove() 390 io->scsiio.kern_data_resid -= len_to_copy; in cfcs_datamove() 392 cam_watermark += len_to_copy; in cfcs_datamove() 398 ctl_watermark += len_to_copy; in cfcs_datamove()
|
/freebsd/sys/cam/scsi/ |
H A D | scsi_pass.c | 1215 bus_size_t kern_watermark, user_watermark, len_to_copy; in passcopysglist() local 1222 len_to_copy = 0; in passcopysglist() 1230 len_to_copy = min(user_sglist[i].ds_len -user_watermark, in passcopysglist() 1238 user_watermark += len_to_copy; in passcopysglist() 1239 kern_watermark += len_to_copy; in passcopysglist() 1242 error = copyout(kern_ptr, user_ptr, len_to_copy); in passcopysglist() 1246 "error %d\n", __func__, len_to_copy, in passcopysglist() 1251 error = copyin(user_ptr, kern_ptr, len_to_copy); in passcopysglist() 1255 "error %d\n", __func__, len_to_copy, in passcopysglist()
|