Searched refs:save_cmnd (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/drivers/usb/storage/
H A Dcypress_atacb.c85 unsigned char save_cmnd[MAX_COMMAND_SIZE]; cypress_atacb_passthrough() local
92 memcpy(save_cmnd, srb->cmnd, sizeof(save_cmnd)); cypress_atacb_passthrough()
96 if (save_cmnd[1] >> 5) /* MULTIPLE_COUNT */ cypress_atacb_passthrough()
99 switch ((save_cmnd[1] >> 1) & 0xf) { cypress_atacb_passthrough()
120 if (save_cmnd[0] == ATA_16) { cypress_atacb_passthrough()
121 srb->cmnd[ 6] = save_cmnd[ 4]; /* features */ cypress_atacb_passthrough()
122 srb->cmnd[ 7] = save_cmnd[ 6]; /* sector count */ cypress_atacb_passthrough()
123 srb->cmnd[ 8] = save_cmnd[ 8]; /* lba low */ cypress_atacb_passthrough()
124 srb->cmnd[ 9] = save_cmnd[10]; /* lba med */ cypress_atacb_passthrough()
125 srb->cmnd[10] = save_cmnd[12]; /* lba high */ cypress_atacb_passthrough()
126 srb->cmnd[11] = save_cmnd[13]; /* device */ cypress_atacb_passthrough()
127 srb->cmnd[12] = save_cmnd[14]; /* command */ cypress_atacb_passthrough()
129 if (save_cmnd[1] & 0x01) {/* extended bit set for LBA48 */ cypress_atacb_passthrough()
131 if (save_cmnd[3] || save_cmnd[5] || save_cmnd[7] || save_cmnd[9] cypress_atacb_passthrough()
132 || save_cmnd[11]) cypress_atacb_passthrough()
136 srb->cmnd[ 6] = save_cmnd[3]; /* features */ cypress_atacb_passthrough()
137 srb->cmnd[ 7] = save_cmnd[4]; /* sector count */ cypress_atacb_passthrough()
138 srb->cmnd[ 8] = save_cmnd[5]; /* lba low */ cypress_atacb_passthrough()
139 srb->cmnd[ 9] = save_cmnd[6]; /* lba med */ cypress_atacb_passthrough()
140 srb->cmnd[10] = save_cmnd[7]; /* lba high */ cypress_atacb_passthrough()
141 srb->cmnd[11] = save_cmnd[8]; /* device */ cypress_atacb_passthrough()
142 srb->cmnd[12] = save_cmnd[9]; /* command */ cypress_atacb_passthrough()
170 save_cmnd[2] & 0x20) { cypress_atacb_passthrough()
239 memcpy(srb->cmnd, save_cmnd, sizeof(save_cmnd)); cypress_atacb_passthrough()

Completed in 68 milliseconds