Changeset View
Changeset View
Standalone View
Standalone View
sys/cam/scsi/scsi_pass.c
Show First 20 Lines • Show All 1,674 Lines • ▼ Show 20 Lines | bailout: | ||||
return (error); | return (error); | ||||
} | } | ||||
static int | static int | ||||
passmemdone(struct cam_periph *periph, struct pass_io_req *io_req) | passmemdone(struct cam_periph *periph, struct pass_io_req *io_req) | ||||
{ | { | ||||
struct pass_softc *softc; | struct pass_softc *softc; | ||||
union ccb *ccb; | |||||
int error; | int error; | ||||
int i; | int i; | ||||
error = 0; | error = 0; | ||||
softc = (struct pass_softc *)periph->softc; | softc = (struct pass_softc *)periph->softc; | ||||
ccb = &io_req->ccb; | |||||
switch (io_req->data_flags) { | switch (io_req->data_flags) { | ||||
case CAM_DATA_VADDR: | case CAM_DATA_VADDR: | ||||
/* | /* | ||||
* Copy back to the user buffer if this was a read. | * Copy back to the user buffer if this was a read. | ||||
*/ | */ | ||||
for (i = 0; i < io_req->num_bufs; i++) { | for (i = 0; i < io_req->num_bufs; i++) { | ||||
if (io_req->dirs[i] != CAM_DIR_IN) | if (io_req->dirs[i] != CAM_DIR_IN) | ||||
▲ Show 20 Lines • Show All 560 Lines • Show Last 20 Lines |