Lines Matching refs:cmnd

81 	if (srb->cmnd[0] != INQUIRY)  in fix_inquiry_data()
111 if (srb->cmnd[0] != READ_CAPACITY) in fix_read_capacity()
137 srb->cmnd[srb->cmd_len] = 0; in usb_stor_qic157_command()
164 srb->cmnd[srb->cmd_len] = 0; in usb_stor_ATAPI_command()
170 switch (srb->cmnd[0]) { in usb_stor_ATAPI_command()
176 old_cmnd = srb->cmnd[0]; in usb_stor_ATAPI_command()
178 srb->cmnd[11] = 0; in usb_stor_ATAPI_command()
179 srb->cmnd[10] = 0; in usb_stor_ATAPI_command()
180 srb->cmnd[9] = 0; in usb_stor_ATAPI_command()
181 srb->cmnd[8] = srb->cmnd[4]; in usb_stor_ATAPI_command()
182 srb->cmnd[7] = 0; in usb_stor_ATAPI_command()
183 srb->cmnd[6] = 0; in usb_stor_ATAPI_command()
184 srb->cmnd[5] = 0; in usb_stor_ATAPI_command()
185 srb->cmnd[4] = 0; in usb_stor_ATAPI_command()
186 srb->cmnd[3] = 0; in usb_stor_ATAPI_command()
187 srb->cmnd[2] = srb->cmnd[2]; in usb_stor_ATAPI_command()
188 srb->cmnd[1] = srb->cmnd[1]; in usb_stor_ATAPI_command()
189 srb->cmnd[0] = srb->cmnd[0] | 0x40; in usb_stor_ATAPI_command()
196 srb->cmnd[11] = 0; in usb_stor_ATAPI_command()
197 srb->cmnd[10] = 0; in usb_stor_ATAPI_command()
198 srb->cmnd[9] = 0; in usb_stor_ATAPI_command()
199 srb->cmnd[8] = srb->cmnd[4]; in usb_stor_ATAPI_command()
200 srb->cmnd[7] = 0; in usb_stor_ATAPI_command()
201 srb->cmnd[6] = 0; in usb_stor_ATAPI_command()
202 srb->cmnd[5] = srb->cmnd[3]; in usb_stor_ATAPI_command()
203 srb->cmnd[4] = srb->cmnd[2]; in usb_stor_ATAPI_command()
204 srb->cmnd[3] = srb->cmnd[1] & 0x1F; in usb_stor_ATAPI_command()
205 srb->cmnd[2] = 0; in usb_stor_ATAPI_command()
206 srb->cmnd[1] = srb->cmnd[1] & 0xE0; in usb_stor_ATAPI_command()
207 srb->cmnd[0] = srb->cmnd[0] | 0x20; in usb_stor_ATAPI_command()
242 srb->cmnd[srb->cmd_len] = 0; in usb_stor_ufi_command()
248 switch (srb->cmnd[0]) { in usb_stor_ufi_command()
252 srb->cmnd[4] = 36; in usb_stor_ufi_command()
259 old_cmnd = srb->cmnd[0]; in usb_stor_ufi_command()
261 srb->cmnd[11] = 0; in usb_stor_ufi_command()
262 srb->cmnd[10] = 0; in usb_stor_ufi_command()
263 srb->cmnd[9] = 0; in usb_stor_ufi_command()
267 if (srb->cmnd[0] == MODE_SELECT) in usb_stor_ufi_command()
268 srb->cmnd[8] = srb->cmnd[4]; in usb_stor_ufi_command()
270 srb->cmnd[8] = 8; in usb_stor_ufi_command()
272 srb->cmnd[7] = 0; in usb_stor_ufi_command()
273 srb->cmnd[6] = 0; in usb_stor_ufi_command()
274 srb->cmnd[5] = 0; in usb_stor_ufi_command()
275 srb->cmnd[4] = 0; in usb_stor_ufi_command()
276 srb->cmnd[3] = 0; in usb_stor_ufi_command()
277 srb->cmnd[2] = srb->cmnd[2]; in usb_stor_ufi_command()
278 srb->cmnd[1] = srb->cmnd[1]; in usb_stor_ufi_command()
279 srb->cmnd[0] = srb->cmnd[0] | 0x40; in usb_stor_ufi_command()
284 srb->cmnd[7] = 0; in usb_stor_ufi_command()
285 srb->cmnd[8] = 8; in usb_stor_ufi_command()
290 srb->cmnd[4] = 18; in usb_stor_ufi_command()
297 srb->cmnd[11] = 0; in usb_stor_ufi_command()
298 srb->cmnd[10] = 0; in usb_stor_ufi_command()
299 srb->cmnd[9] = 0; in usb_stor_ufi_command()
300 srb->cmnd[8] = srb->cmnd[4]; in usb_stor_ufi_command()
301 srb->cmnd[7] = 0; in usb_stor_ufi_command()
302 srb->cmnd[6] = 0; in usb_stor_ufi_command()
303 srb->cmnd[5] = srb->cmnd[3]; in usb_stor_ufi_command()
304 srb->cmnd[4] = srb->cmnd[2]; in usb_stor_ufi_command()
305 srb->cmnd[3] = srb->cmnd[1] & 0x1F; in usb_stor_ufi_command()
306 srb->cmnd[2] = 0; in usb_stor_ufi_command()
307 srb->cmnd[1] = srb->cmnd[1] & 0xE0; in usb_stor_ufi_command()
308 srb->cmnd[0] = srb->cmnd[0] | 0x20; in usb_stor_ufi_command()
340 old_cmnd = srb->cmnd[0]; in usb_stor_transparent_scsi_command()
342 switch (srb->cmnd[0]) { in usb_stor_transparent_scsi_command()
347 srb->cmnd[11] = 0; in usb_stor_transparent_scsi_command()
348 srb->cmnd[10] = 0; in usb_stor_transparent_scsi_command()
349 srb->cmnd[9] = 0; in usb_stor_transparent_scsi_command()
350 srb->cmnd[8] = srb->cmnd[4]; in usb_stor_transparent_scsi_command()
351 srb->cmnd[7] = 0; in usb_stor_transparent_scsi_command()
352 srb->cmnd[6] = 0; in usb_stor_transparent_scsi_command()
353 srb->cmnd[5] = srb->cmnd[3]; in usb_stor_transparent_scsi_command()
354 srb->cmnd[4] = srb->cmnd[2]; in usb_stor_transparent_scsi_command()
355 srb->cmnd[3] = srb->cmnd[1] & 0x1F; in usb_stor_transparent_scsi_command()
356 srb->cmnd[2] = 0; in usb_stor_transparent_scsi_command()
357 srb->cmnd[1] = srb->cmnd[1] & 0xE0; in usb_stor_transparent_scsi_command()
358 srb->cmnd[0] = srb->cmnd[0] | 0x20; in usb_stor_transparent_scsi_command()
365 srb->cmnd[11] = 0; in usb_stor_transparent_scsi_command()
366 srb->cmnd[10] = 0; in usb_stor_transparent_scsi_command()
367 srb->cmnd[9] = 0; in usb_stor_transparent_scsi_command()
368 srb->cmnd[8] = srb->cmnd[4]; in usb_stor_transparent_scsi_command()
369 srb->cmnd[7] = 0; in usb_stor_transparent_scsi_command()
370 srb->cmnd[6] = 0; in usb_stor_transparent_scsi_command()
371 srb->cmnd[5] = 0; in usb_stor_transparent_scsi_command()
372 srb->cmnd[4] = 0; in usb_stor_transparent_scsi_command()
373 srb->cmnd[3] = 0; in usb_stor_transparent_scsi_command()
374 srb->cmnd[2] = srb->cmnd[2]; in usb_stor_transparent_scsi_command()
375 srb->cmnd[1] = srb->cmnd[1]; in usb_stor_transparent_scsi_command()
376 srb->cmnd[0] = srb->cmnd[0] | 0x40; in usb_stor_transparent_scsi_command()