Lines Matching refs:command

286 /* send vendor interface command (0x41) */
316 unsigned char *command,
318 return sddr09_send_command(us, 0, USB_DIR_OUT, command, command_len);
328 unsigned char *command = us->iobuf;
331 memset(command, 0, 6);
332 command[1] = LUNBITS;
334 result = sddr09_send_scsi_command(us, command, 6);
349 unsigned char *command = us->iobuf;
352 memset(command, 0, 12);
353 command[0] = 0x03;
354 command[1] = LUNBITS;
355 command[4] = buflen;
357 result = sddr09_send_scsi_command(us, command, 12);
376 * A read data command gets data in 512-byte pages.
377 * A read control command gets control in 64-byte chunks.
378 * A read both command gets data+control in 576-byte chunks.
393 unsigned char *command = us->iobuf;
396 command[0] = 0xE8;
397 command[1] = LUNBITS | x;
398 command[2] = MSB_of(fromaddress>>16);
399 command[3] = LSB_of(fromaddress>>16);
400 command[4] = MSB_of(fromaddress & 0xFFFF);
401 command[5] = LSB_of(fromaddress & 0xFFFF);
402 command[6] = 0;
403 command[7] = 0;
404 command[8] = 0;
405 command[9] = 0;
406 command[10] = MSB_of(nr_of_pages);
407 command[11] = LSB_of(nr_of_pages);
409 result = sddr09_send_scsi_command(us, command, 12);
523 unsigned char *command = us->iobuf;
528 memset(command, 0, 12);
529 command[0] = 0xEA;
530 command[1] = LUNBITS;
531 command[6] = MSB_of(Eaddress>>16);
532 command[7] = LSB_of(Eaddress>>16);
533 command[8] = MSB_of(Eaddress & 0xFFFF);
534 command[9] = LSB_of(Eaddress & 0xFFFF);
536 result = sddr09_send_scsi_command(us, command, 12);
575 unsigned char *command = us->iobuf;
578 command[0] = 0xE9;
579 command[1] = LUNBITS;
581 command[2] = MSB_of(Waddress>>16);
582 command[3] = LSB_of(Waddress>>16);
583 command[4] = MSB_of(Waddress & 0xFFFF);
584 command[5] = LSB_of(Waddress & 0xFFFF);
586 command[6] = MSB_of(Eaddress>>16);
587 command[7] = LSB_of(Eaddress>>16);
588 command[8] = MSB_of(Eaddress & 0xFFFF);
589 command[9] = LSB_of(Eaddress & 0xFFFF);
591 command[10] = MSB_of(nr_of_pages);
592 command[11] = LSB_of(nr_of_pages);
594 result = sddr09_send_scsi_command(us, command, 12);
637 unsigned char *command = us->iobuf;
643 command[0] = 0xE7;
644 command[1] = LUNBITS;
645 command[2] = 0;
649 command[4*nsg+2] = ct;
650 command[4*nsg+1] = ((address >> 9) & 0xFF);
651 command[4*nsg+0] = ((address >> 17) & 0xFF);
652 command[4*nsg-1] = ((address >> 25) & 0xFF);
657 command[4*nsg+2] = ct;
658 command[4*nsg+1] = ((address >> 9) & 0xFF);
659 command[4*nsg+0] = ((address >> 17) & 0xFF);
660 command[4*nsg-1] = ((address >> 25) & 0xFF);
665 command[4*nsg+2] = ct;
666 command[4*nsg+1] = ((address >> 9) & 0xFF);
667 command[4*nsg+0] = ((address >> 17) & 0xFF);
668 command[4*nsg-1] = ((address >> 25) & 0xFF);
670 command[2] = nsg;
672 result = sddr09_send_scsi_command(us, command, 4*nsg+3);
711 unsigned char *command = us->iobuf;
717 memset(command, 0, 12);
718 command[0] = 0xEC;
719 command[1] = LUNBITS;
721 result = sddr09_send_scsi_command(us, command, 12);
1066 * signifying that the secret command to read an 128-bit ID is available.
1072 unsigned char *command = us->iobuf;
1076 memset(command, 0, 12);
1077 command[0] = 0xED;
1078 command[1] = LUNBITS;
1080 result = sddr09_send_scsi_command(us, command, 12);
1126 unsigned char *command = us->iobuf;
1128 memset(command, 0, 12);
1129 command[0] = 0xEB;
1130 command[1] = LUNBITS;
1132 return sddr09_send_scsi_command(us, command, 12);
1181 /* Byte 3 announces the availability of another read ID command */
1480 // 70: current command
1562 /* for a faked command, we have to follow with a faked sense */
1693 sensecode = 0x20; /* invalid command */
1707 usb_stor_dbg(us, "Send control for command %s\n", ptr);