Lines Matching refs:srb

60 void usb_stor_pad12_command(struct scsi_cmnd *srb, struct us_data *us)  in usb_stor_pad12_command()  argument
69 for (; srb->cmd_len < 12; srb->cmd_len++) in usb_stor_pad12_command()
70 srb->cmnd[srb->cmd_len] = 0; in usb_stor_pad12_command()
73 usb_stor_invoke_transport(srb, us); in usb_stor_pad12_command()
76 void usb_stor_ufi_command(struct scsi_cmnd *srb, struct us_data *us) in usb_stor_ufi_command() argument
86 for (; srb->cmd_len < 12; srb->cmd_len++) in usb_stor_ufi_command()
87 srb->cmnd[srb->cmd_len] = 0; in usb_stor_ufi_command()
90 srb->cmd_len = 12; in usb_stor_ufi_command()
95 switch (srb->cmnd[0]) { in usb_stor_ufi_command()
99 srb->cmnd[4] = 36; in usb_stor_ufi_command()
104 srb->cmnd[7] = 0; in usb_stor_ufi_command()
105 srb->cmnd[8] = 8; in usb_stor_ufi_command()
110 srb->cmnd[4] = 18; in usb_stor_ufi_command()
115 usb_stor_invoke_transport(srb, us); in usb_stor_ufi_command()
118 void usb_stor_transparent_scsi_command(struct scsi_cmnd *srb, in usb_stor_transparent_scsi_command() argument
122 usb_stor_invoke_transport(srb, us); in usb_stor_transparent_scsi_command()
135 unsigned int buflen, struct scsi_cmnd *srb, struct scatterlist **sgptr, in usb_stor_access_xfer_buf() argument
141 unsigned int nents = scsi_sg_count(srb); in usb_stor_access_xfer_buf()
146 sg = scsi_sglist(srb); in usb_stor_access_xfer_buf()
182 unsigned int buflen, struct scsi_cmnd *srb) in usb_stor_set_xfer_buf() argument
187 buflen = min(buflen, scsi_bufflen(srb)); in usb_stor_set_xfer_buf()
188 buflen = usb_stor_access_xfer_buf(buffer, buflen, srb, &sg, &offset, in usb_stor_set_xfer_buf()
190 if (buflen < scsi_bufflen(srb)) in usb_stor_set_xfer_buf()
191 scsi_set_resid(srb, scsi_bufflen(srb) - buflen); in usb_stor_set_xfer_buf()