Lines Matching refs:srb

519 			result = usb_stor_bulk_srb(us, pipe, us->srb);  in ene_send_scsi_cmd()
559 if (us->srb != NULL) in ene_send_scsi_cmd()
560 scsi_set_resid(us->srb, max(scsi_get_resid(us->srb), in ene_send_scsi_cmd()
570 static int do_scsi_request_sense(struct us_data *us, struct scsi_cmnd *srb) in do_scsi_request_sense() argument
582 usb_stor_set_xfer_buf(buf, sizeof(buf), srb); in do_scsi_request_sense()
586 static int do_scsi_inquiry(struct us_data *us, struct scsi_cmnd *srb) in do_scsi_inquiry() argument
594 usb_stor_set_xfer_buf(data_ptr, 36, srb); in do_scsi_inquiry()
598 static int sd_scsi_test_unit_ready(struct us_data *us, struct scsi_cmnd *srb) in sd_scsi_test_unit_ready() argument
612 static int sd_scsi_mode_sense(struct us_data *us, struct scsi_cmnd *srb) in sd_scsi_mode_sense() argument
623 usb_stor_set_xfer_buf(mediaWP, 12, srb); in sd_scsi_mode_sense()
625 usb_stor_set_xfer_buf(mediaNoWP, 12, srb); in sd_scsi_mode_sense()
631 static int sd_scsi_read_capacity(struct us_data *us, struct scsi_cmnd *srb) in sd_scsi_read_capacity() argument
666 usb_stor_access_xfer_buf(buf, 8, srb, &sg, &offset, TO_XFER_BUF); in sd_scsi_read_capacity()
671 static int sd_scsi_read(struct us_data *us, struct scsi_cmnd *srb) in sd_scsi_read() argument
674 unsigned char *cdb = srb->cmnd; in sd_scsi_read()
707 result = ene_send_scsi_cmd(us, FDIR_READ, scsi_sglist(srb), 1); in sd_scsi_read()
711 static int sd_scsi_write(struct us_data *us, struct scsi_cmnd *srb) in sd_scsi_write() argument
714 unsigned char *cdb = srb->cmnd; in sd_scsi_write()
747 result = ene_send_scsi_cmd(us, FDIR_WRITE, scsi_sglist(srb), 1); in sd_scsi_write()
1451 static int ms_scsi_test_unit_ready(struct us_data *us, struct scsi_cmnd *srb) in ms_scsi_test_unit_ready() argument
1466 static int ms_scsi_mode_sense(struct us_data *us, struct scsi_cmnd *srb) in ms_scsi_mode_sense() argument
1477 usb_stor_set_xfer_buf(mediaWP, 12, srb); in ms_scsi_mode_sense()
1479 usb_stor_set_xfer_buf(mediaNoWP, 12, srb); in ms_scsi_mode_sense()
1484 static int ms_scsi_read_capacity(struct us_data *us, struct scsi_cmnd *srb) in ms_scsi_read_capacity() argument
1514 usb_stor_access_xfer_buf(buf, 8, srb, &sg, &offset, TO_XFER_BUF); in ms_scsi_read_capacity()
1635 static int ms_scsi_read(struct us_data *us, struct scsi_cmnd *srb) in ms_scsi_read() argument
1638 unsigned char *cdb = srb->cmnd; in ms_scsi_read()
1669 result = ene_send_scsi_cmd(us, FDIR_READ, scsi_sglist(srb), 1); in ms_scsi_read()
1727 usb_stor_set_xfer_buf(buf, blenByte, srb); in ms_scsi_read()
1734 static int ms_scsi_write(struct us_data *us, struct scsi_cmnd *srb) in ms_scsi_write() argument
1738 unsigned char *cdb = srb->cmnd; in ms_scsi_write()
1770 result = ene_send_scsi_cmd(us, FDIR_WRITE, scsi_sglist(srb), 1); in ms_scsi_write()
1781 usb_stor_set_xfer_buf(buf, blenByte, srb); in ms_scsi_write()
1938 if (us->srb != NULL) in ene_load_bincode()
1939 scsi_set_resid(us->srb, 0); in ene_load_bincode()
2220 static int sd_scsi_irp(struct us_data *us, struct scsi_cmnd *srb) in sd_scsi_irp() argument
2225 switch (srb->cmnd[0]) { in sd_scsi_irp()
2227 result = sd_scsi_test_unit_ready(us, srb); in sd_scsi_irp()
2230 result = do_scsi_request_sense(us, srb); in sd_scsi_irp()
2233 result = do_scsi_inquiry(us, srb); in sd_scsi_irp()
2236 result = sd_scsi_mode_sense(us, srb); in sd_scsi_irp()
2244 result = sd_scsi_read_capacity(us, srb); in sd_scsi_irp()
2247 result = sd_scsi_read(us, srb); in sd_scsi_irp()
2250 result = sd_scsi_write(us, srb); in sd_scsi_irp()
2265 static int ms_scsi_irp(struct us_data *us, struct scsi_cmnd *srb) in ms_scsi_irp() argument
2270 switch (srb->cmnd[0]) { in ms_scsi_irp()
2272 result = ms_scsi_test_unit_ready(us, srb); in ms_scsi_irp()
2275 result = do_scsi_request_sense(us, srb); in ms_scsi_irp()
2278 result = do_scsi_inquiry(us, srb); in ms_scsi_irp()
2281 result = ms_scsi_mode_sense(us, srb); in ms_scsi_irp()
2284 result = ms_scsi_read_capacity(us, srb); in ms_scsi_irp()
2287 result = ms_scsi_read(us, srb); in ms_scsi_irp()
2290 result = ms_scsi_write(us, srb); in ms_scsi_irp()
2302 static int ene_transport(struct scsi_cmnd *srb, struct us_data *us) in ene_transport() argument
2308 scsi_set_resid(srb, 0); in ene_transport()
2314 result = sd_scsi_irp(us, srb); in ene_transport()
2317 result = ms_scsi_irp(us, srb); in ene_transport()