Lines Matching defs:command
140 unsigned char *command = us->iobuf;
180 command[0] = 0;
181 command[1] = thistime;
182 command[2] = sector & 0xFF;
183 command[3] = (sector >> 8) & 0xFF;
184 command[4] = (sector >> 16) & 0xFF;
186 command[5] = 0xE0 + (info->lun << 4);
187 command[5] |= (sector >> 24) & 0x0F;
188 command[6] = 0x20;
189 command[7] = 0x01;
191 // send the read command
192 result = datafab_bulk_write(us, command, 8);
223 unsigned char *command = us->iobuf;
268 command[0] = 0;
269 command[1] = thistime;
270 command[2] = sector & 0xFF;
271 command[3] = (sector >> 8) & 0xFF;
272 command[4] = (sector >> 16) & 0xFF;
274 command[5] = 0xE0 + (info->lun << 4);
275 command[5] |= (sector >> 24) & 0x0F;
276 command[6] = 0x30;
277 command[7] = 0x02;
279 // send the command
280 result = datafab_bulk_write(us, command, 8);
318 // We'll send an IDENTIFY DEVICE command and see which LUN responds...
323 unsigned char *command = us->iobuf;
330 memcpy(command, scommand, 8);
340 command[5] = 0xa0;
342 rc = datafab_bulk_write(us, command, 8);
355 command[5] = 0xb0;
357 rc = datafab_bulk_write(us, command, 8);
383 // this is a variation of the ATA "IDENTIFY DEVICE" command...according
388 unsigned char *command = us->iobuf;
401 memcpy(command, scommand, 8);
406 command[5] += (info->lun << 4);
408 rc = datafab_bulk_write(us, command, 8);
712 usb_stor_dbg(us, "Gah! Unknown command: %d (0x%x)\n",