1 #include <linux/sched.h>
2 #include <linux/errno.h>
3 #include <linux/slab.h>
30 if (MiscReg03 & 0x02) {
88 "Execution SM Init Code Fail !! result = %x\n",
result);
165 cswlen = 0, partial = 0;
166 unsigned int residue;
178 unsigned int pipe = fDir;
190 transfer_length, 0, &partial);
224 if (residue && !(us->
fflags & US_FL_IGNORE_RESIDUE)) {
225 residue =
min(residue, transfer_length);
227 scsi_set_resid(us->
srb,
max(scsi_get_resid(us->
srb),
328 DWORD bn = ((Cdb[2] << 24) & 0xff000000) |
329 ((Cdb[3] << 16) & 0x00ff0000) |
330 ((Cdb[4] << 8) & 0x0000ff00) |
331 ((Cdb[5] << 0) & 0x000000ff);
332 WORD blen = ((Cdb[7] << 8) & 0xff00) | ((Cdb[8] << 0) & 0x00ff);
363 "scsi cmd %X --- SCSIOP_ALLOW_MEDIUM_REMOVAL\n", cmd);