Lines Matching refs:command
328 unsigned char *command, in sddr09_send_scsi_command() argument
330 return sddr09_send_command(us, 0, USB_DIR_OUT, command, command_len); in sddr09_send_scsi_command()
340 unsigned char *command = us->iobuf;
343 memset(command, 0, 6);
344 command[1] = LUNBITS;
346 result = sddr09_send_scsi_command(us, command, 6);
361 unsigned char *command = us->iobuf; in sddr09_request_sense() local
364 memset(command, 0, 12); in sddr09_request_sense()
365 command[0] = 0x03; in sddr09_request_sense()
366 command[1] = LUNBITS; in sddr09_request_sense()
367 command[4] = buflen; in sddr09_request_sense()
369 result = sddr09_send_scsi_command(us, command, 12); in sddr09_request_sense()
405 unsigned char *command = us->iobuf; in sddr09_readX() local
408 command[0] = 0xE8; in sddr09_readX()
409 command[1] = LUNBITS | x; in sddr09_readX()
410 command[2] = MSB_of(fromaddress>>16); in sddr09_readX()
411 command[3] = LSB_of(fromaddress>>16); in sddr09_readX()
412 command[4] = MSB_of(fromaddress & 0xFFFF); in sddr09_readX()
413 command[5] = LSB_of(fromaddress & 0xFFFF); in sddr09_readX()
414 command[6] = 0; in sddr09_readX()
415 command[7] = 0; in sddr09_readX()
416 command[8] = 0; in sddr09_readX()
417 command[9] = 0; in sddr09_readX()
418 command[10] = MSB_of(nr_of_pages); in sddr09_readX()
419 command[11] = LSB_of(nr_of_pages); in sddr09_readX()
421 result = sddr09_send_scsi_command(us, command, 12); in sddr09_readX()
535 unsigned char *command = us->iobuf; in sddr09_erase() local
540 memset(command, 0, 12); in sddr09_erase()
541 command[0] = 0xEA; in sddr09_erase()
542 command[1] = LUNBITS; in sddr09_erase()
543 command[6] = MSB_of(Eaddress>>16); in sddr09_erase()
544 command[7] = LSB_of(Eaddress>>16); in sddr09_erase()
545 command[8] = MSB_of(Eaddress & 0xFFFF); in sddr09_erase()
546 command[9] = LSB_of(Eaddress & 0xFFFF); in sddr09_erase()
548 result = sddr09_send_scsi_command(us, command, 12); in sddr09_erase()
587 unsigned char *command = us->iobuf; in sddr09_writeX() local
590 command[0] = 0xE9; in sddr09_writeX()
591 command[1] = LUNBITS; in sddr09_writeX()
593 command[2] = MSB_of(Waddress>>16); in sddr09_writeX()
594 command[3] = LSB_of(Waddress>>16); in sddr09_writeX()
595 command[4] = MSB_of(Waddress & 0xFFFF); in sddr09_writeX()
596 command[5] = LSB_of(Waddress & 0xFFFF); in sddr09_writeX()
598 command[6] = MSB_of(Eaddress>>16); in sddr09_writeX()
599 command[7] = LSB_of(Eaddress>>16); in sddr09_writeX()
600 command[8] = MSB_of(Eaddress & 0xFFFF); in sddr09_writeX()
601 command[9] = LSB_of(Eaddress & 0xFFFF); in sddr09_writeX()
603 command[10] = MSB_of(nr_of_pages); in sddr09_writeX()
604 command[11] = LSB_of(nr_of_pages); in sddr09_writeX()
606 result = sddr09_send_scsi_command(us, command, 12); in sddr09_writeX()
649 unsigned char *command = us->iobuf;
655 command[0] = 0xE7;
656 command[1] = LUNBITS;
657 command[2] = 0;
661 command[4*nsg+2] = ct;
662 command[4*nsg+1] = ((address >> 9) & 0xFF);
663 command[4*nsg+0] = ((address >> 17) & 0xFF);
664 command[4*nsg-1] = ((address >> 25) & 0xFF);
669 command[4*nsg+2] = ct;
670 command[4*nsg+1] = ((address >> 9) & 0xFF);
671 command[4*nsg+0] = ((address >> 17) & 0xFF);
672 command[4*nsg-1] = ((address >> 25) & 0xFF);
677 command[4*nsg+2] = ct;
678 command[4*nsg+1] = ((address >> 9) & 0xFF);
679 command[4*nsg+0] = ((address >> 17) & 0xFF);
680 command[4*nsg-1] = ((address >> 25) & 0xFF);
682 command[2] = nsg;
684 result = sddr09_send_scsi_command(us, command, 4*nsg+3);
723 unsigned char *command = us->iobuf; in sddr09_read_status() local
729 memset(command, 0, 12); in sddr09_read_status()
730 command[0] = 0xEC; in sddr09_read_status()
731 command[1] = LUNBITS; in sddr09_read_status()
733 result = sddr09_send_scsi_command(us, command, 12); in sddr09_read_status()
1084 unsigned char *command = us->iobuf; in sddr09_read_deviceID() local
1088 memset(command, 0, 12); in sddr09_read_deviceID()
1089 command[0] = 0xED; in sddr09_read_deviceID()
1090 command[1] = LUNBITS; in sddr09_read_deviceID()
1092 result = sddr09_send_scsi_command(us, command, 12); in sddr09_read_deviceID()
1138 unsigned char *command = us->iobuf;
1140 memset(command, 0, 12);
1141 command[0] = 0xEB;
1142 command[1] = LUNBITS;
1144 return sddr09_send_scsi_command(us, command, 12);