Lines Matching refs:srb
45 void usb_stor_pad12_command(struct scsi_cmnd *srb, struct us_data *us)
54 for (; srb->cmd_len < 12; srb->cmd_len++)
55 srb->cmnd[srb->cmd_len] = 0;
58 usb_stor_invoke_transport(srb, us);
61 void usb_stor_ufi_command(struct scsi_cmnd *srb, struct us_data *us)
72 for (; srb->cmd_len < 12; srb->cmd_len++)
73 srb->cmnd[srb->cmd_len] = 0;
76 srb->cmd_len = 12;
81 switch (srb->cmnd[0]) {
85 srb->cmnd[4] = 36;
90 srb->cmnd[7] = 0;
91 srb->cmnd[8] = 8;
96 srb->cmnd[4] = 18;
101 usb_stor_invoke_transport(srb, us);
104 void usb_stor_transparent_scsi_command(struct scsi_cmnd *srb,
108 usb_stor_invoke_transport(srb, us);
117 * Copy a buffer of length buflen to/from the srb's transfer buffer.
122 unsigned int buflen, struct scsi_cmnd *srb, struct scatterlist **sgptr,
128 unsigned int nents = scsi_sg_count(srb);
133 sg = scsi_sglist(srb);
166 * Store the contents of buffer into srb's transfer buffer and set the
170 unsigned int buflen, struct scsi_cmnd *srb)
175 buflen = min(buflen, scsi_bufflen(srb));
176 buflen = usb_stor_access_xfer_buf(buffer, buflen, srb, &sg, &offset,
178 if (buflen < scsi_bufflen(srb))
179 scsi_set_resid(srb, scsi_bufflen(srb) - buflen);