Lines Matching refs:srb
366 static int queuecommand_lck(struct scsi_cmnd *srb,
369 struct us_data *us = host_to_us(srb->device->host);
372 if (us->srb != NULL) {
374 "Error in %s: us->srb = %p\n", __func__, us->srb);
381 srb->result = DID_NO_CONNECT << 16;
382 done(srb);
387 (srb->cmnd[0] == ATA_12 || srb->cmnd[0] == ATA_16)) {
388 memcpy(srb->sense_buffer, usb_stor_sense_invalidCDB,
390 srb->result = SAM_STAT_CHECK_CONDITION;
391 done(srb);
396 srb->scsi_done = done;
397 us->srb = srb;
413 * us->srb together with the TIMED_OUT, RESETTING, and ABORTING
419 if (!us->srb) {
425 /* Does the command match the passed srb if any ? */
426 if (srb_match && us->srb != srb_match) {
451 static int command_abort(struct scsi_cmnd *srb)
453 struct us_data *us = host_to_us(srb->device->host);
456 return command_abort_matching(us, srb);
463 static int device_reset(struct scsi_cmnd *srb)
465 struct us_data *us = host_to_us(srb->device->host);
482 static int bus_reset(struct scsi_cmnd *srb)
484 struct us_data *us = host_to_us(srb->device->host);