Lines Matching refs:srb

45 void usb_stor_pad12_command(struct scsi_cmnd *srb, struct us_data *us)  in usb_stor_pad12_command()  argument
54 for (; srb->cmd_len < 12; srb->cmd_len++) in usb_stor_pad12_command()
55 srb->cmnd[srb->cmd_len] = 0; in usb_stor_pad12_command()
58 usb_stor_invoke_transport(srb, us); in usb_stor_pad12_command()
61 void usb_stor_ufi_command(struct scsi_cmnd *srb, struct us_data *us) in usb_stor_ufi_command() argument
72 for (; srb->cmd_len < 12; srb->cmd_len++) in usb_stor_ufi_command()
73 srb->cmnd[srb->cmd_len] = 0; in usb_stor_ufi_command()
76 srb->cmd_len = 12; in usb_stor_ufi_command()
81 switch (srb->cmnd[0]) { in usb_stor_ufi_command()
85 srb->cmnd[4] = 36; in usb_stor_ufi_command()
90 srb->cmnd[7] = 0; in usb_stor_ufi_command()
91 srb->cmnd[8] = 8; in usb_stor_ufi_command()
96 srb->cmnd[4] = 18; in usb_stor_ufi_command()
101 usb_stor_invoke_transport(srb, us); in usb_stor_ufi_command()
104 void usb_stor_transparent_scsi_command(struct scsi_cmnd *srb, in usb_stor_transparent_scsi_command() argument
108 usb_stor_invoke_transport(srb, us); in usb_stor_transparent_scsi_command()
122 unsigned int buflen, struct scsi_cmnd *srb, struct scatterlist **sgptr, in usb_stor_access_xfer_buf() argument
128 unsigned int nents = scsi_sg_count(srb); in usb_stor_access_xfer_buf()
133 sg = scsi_sglist(srb); in usb_stor_access_xfer_buf()
170 unsigned int buflen, struct scsi_cmnd *srb) in usb_stor_set_xfer_buf() argument
175 buflen = min(buflen, scsi_bufflen(srb)); in usb_stor_set_xfer_buf()
176 buflen = usb_stor_access_xfer_buf(buffer, buflen, srb, &sg, &offset, in usb_stor_set_xfer_buf()
178 if (buflen < scsi_bufflen(srb)) in usb_stor_set_xfer_buf()
179 scsi_set_resid(srb, scsi_bufflen(srb) - buflen); in usb_stor_set_xfer_buf()