Lines Matching refs:cmnd
87 if (likely(srb->cmnd[0] != ATA_16 && srb->cmnd[0] != ATA_12)) { in cypress_atacb_passthrough()
92 memcpy(save_cmnd, srb->cmnd, sizeof(save_cmnd)); in cypress_atacb_passthrough()
93 memset(srb->cmnd, 0, MAX_COMMAND_SIZE); in cypress_atacb_passthrough()
111 srb->cmnd[0] = 0x24; /* bVSCBSignature : vendor-specific command in cypress_atacb_passthrough()
114 srb->cmnd[1] = 0x24; /* bVSCBSubCommand : 0x24 for ATACB */ in cypress_atacb_passthrough()
116 srb->cmnd[3] = 0xff - 1; /* features, sector count, lba low, lba med in cypress_atacb_passthrough()
118 srb->cmnd[4] = 1; /* TransferBlockCount : 512 */ in cypress_atacb_passthrough()
121 srb->cmnd[ 6] = save_cmnd[ 4]; /* features */ in cypress_atacb_passthrough()
122 srb->cmnd[ 7] = save_cmnd[ 6]; /* sector count */ in cypress_atacb_passthrough()
123 srb->cmnd[ 8] = save_cmnd[ 8]; /* lba low */ in cypress_atacb_passthrough()
124 srb->cmnd[ 9] = save_cmnd[10]; /* lba med */ in cypress_atacb_passthrough()
125 srb->cmnd[10] = save_cmnd[12]; /* lba high */ in cypress_atacb_passthrough()
126 srb->cmnd[11] = save_cmnd[13]; /* device */ in cypress_atacb_passthrough()
127 srb->cmnd[12] = save_cmnd[14]; /* command */ in cypress_atacb_passthrough()
137 srb->cmnd[ 6] = save_cmnd[3]; /* features */ in cypress_atacb_passthrough()
138 srb->cmnd[ 7] = save_cmnd[4]; /* sector count */ in cypress_atacb_passthrough()
139 srb->cmnd[ 8] = save_cmnd[5]; /* lba low */ in cypress_atacb_passthrough()
140 srb->cmnd[ 9] = save_cmnd[6]; /* lba med */ in cypress_atacb_passthrough()
141 srb->cmnd[10] = save_cmnd[7]; /* lba high */ in cypress_atacb_passthrough()
142 srb->cmnd[11] = save_cmnd[8]; /* device */ in cypress_atacb_passthrough()
143 srb->cmnd[12] = save_cmnd[9]; /* command */ in cypress_atacb_passthrough()
147 if ((srb->cmnd[12] == ATA_CMD_SET_FEATURES) in cypress_atacb_passthrough()
148 && (srb->cmnd[6] == SETFEATURES_XFER)) in cypress_atacb_passthrough()
151 if (srb->cmnd[12] == ATA_CMD_ID_ATA || srb->cmnd[12] == ATA_CMD_ID_ATAPI) in cypress_atacb_passthrough()
152 srb->cmnd[2] |= (1<<7); /* set IdentifyPacketDevice for these cmds */ in cypress_atacb_passthrough()
187 srb->cmnd = ses.cmnd; in cypress_atacb_passthrough()
188 srb->cmnd[2] = 1; in cypress_atacb_passthrough()
240 memcpy(srb->cmnd, save_cmnd, sizeof(save_cmnd)); in cypress_atacb_passthrough()
241 if (srb->cmnd[0] == ATA_12) in cypress_atacb_passthrough()