Lines Matching refs:command

327 			 unsigned char *command,  in sddr09_send_scsi_command()  argument
329 return sddr09_send_command(us, 0, USB_DIR_OUT, command, command_len); in sddr09_send_scsi_command()
339 unsigned char *command = us->iobuf;
342 memset(command, 0, 6);
343 command[1] = LUNBITS;
345 result = sddr09_send_scsi_command(us, command, 6);
360 unsigned char *command = us->iobuf; in sddr09_request_sense() local
363 memset(command, 0, 12); in sddr09_request_sense()
364 command[0] = 0x03; in sddr09_request_sense()
365 command[1] = LUNBITS; in sddr09_request_sense()
366 command[4] = buflen; in sddr09_request_sense()
368 result = sddr09_send_scsi_command(us, command, 12); in sddr09_request_sense()
404 unsigned char *command = us->iobuf; in sddr09_readX() local
407 command[0] = 0xE8; in sddr09_readX()
408 command[1] = LUNBITS | x; in sddr09_readX()
409 command[2] = MSB_of(fromaddress>>16); in sddr09_readX()
410 command[3] = LSB_of(fromaddress>>16); in sddr09_readX()
411 command[4] = MSB_of(fromaddress & 0xFFFF); in sddr09_readX()
412 command[5] = LSB_of(fromaddress & 0xFFFF); in sddr09_readX()
413 command[6] = 0; in sddr09_readX()
414 command[7] = 0; in sddr09_readX()
415 command[8] = 0; in sddr09_readX()
416 command[9] = 0; in sddr09_readX()
417 command[10] = MSB_of(nr_of_pages); in sddr09_readX()
418 command[11] = LSB_of(nr_of_pages); in sddr09_readX()
420 result = sddr09_send_scsi_command(us, command, 12); in sddr09_readX()
534 unsigned char *command = us->iobuf; in sddr09_erase() local
539 memset(command, 0, 12); in sddr09_erase()
540 command[0] = 0xEA; in sddr09_erase()
541 command[1] = LUNBITS; in sddr09_erase()
542 command[6] = MSB_of(Eaddress>>16); in sddr09_erase()
543 command[7] = LSB_of(Eaddress>>16); in sddr09_erase()
544 command[8] = MSB_of(Eaddress & 0xFFFF); in sddr09_erase()
545 command[9] = LSB_of(Eaddress & 0xFFFF); in sddr09_erase()
547 result = sddr09_send_scsi_command(us, command, 12); in sddr09_erase()
586 unsigned char *command = us->iobuf; in sddr09_writeX() local
589 command[0] = 0xE9; in sddr09_writeX()
590 command[1] = LUNBITS; in sddr09_writeX()
592 command[2] = MSB_of(Waddress>>16); in sddr09_writeX()
593 command[3] = LSB_of(Waddress>>16); in sddr09_writeX()
594 command[4] = MSB_of(Waddress & 0xFFFF); in sddr09_writeX()
595 command[5] = LSB_of(Waddress & 0xFFFF); in sddr09_writeX()
597 command[6] = MSB_of(Eaddress>>16); in sddr09_writeX()
598 command[7] = LSB_of(Eaddress>>16); in sddr09_writeX()
599 command[8] = MSB_of(Eaddress & 0xFFFF); in sddr09_writeX()
600 command[9] = LSB_of(Eaddress & 0xFFFF); in sddr09_writeX()
602 command[10] = MSB_of(nr_of_pages); in sddr09_writeX()
603 command[11] = LSB_of(nr_of_pages); in sddr09_writeX()
605 result = sddr09_send_scsi_command(us, command, 12); in sddr09_writeX()
648 unsigned char *command = us->iobuf;
654 command[0] = 0xE7;
655 command[1] = LUNBITS;
656 command[2] = 0;
660 command[4*nsg+2] = ct;
661 command[4*nsg+1] = ((address >> 9) & 0xFF);
662 command[4*nsg+0] = ((address >> 17) & 0xFF);
663 command[4*nsg-1] = ((address >> 25) & 0xFF);
668 command[4*nsg+2] = ct;
669 command[4*nsg+1] = ((address >> 9) & 0xFF);
670 command[4*nsg+0] = ((address >> 17) & 0xFF);
671 command[4*nsg-1] = ((address >> 25) & 0xFF);
676 command[4*nsg+2] = ct;
677 command[4*nsg+1] = ((address >> 9) & 0xFF);
678 command[4*nsg+0] = ((address >> 17) & 0xFF);
679 command[4*nsg-1] = ((address >> 25) & 0xFF);
681 command[2] = nsg;
683 result = sddr09_send_scsi_command(us, command, 4*nsg+3);
722 unsigned char *command = us->iobuf; in sddr09_read_status() local
728 memset(command, 0, 12); in sddr09_read_status()
729 command[0] = 0xEC; in sddr09_read_status()
730 command[1] = LUNBITS; in sddr09_read_status()
732 result = sddr09_send_scsi_command(us, command, 12); in sddr09_read_status()
1080 unsigned char *command = us->iobuf; in sddr09_read_deviceID() local
1084 memset(command, 0, 12); in sddr09_read_deviceID()
1085 command[0] = 0xED; in sddr09_read_deviceID()
1086 command[1] = LUNBITS; in sddr09_read_deviceID()
1088 result = sddr09_send_scsi_command(us, command, 12); in sddr09_read_deviceID()
1134 unsigned char *command = us->iobuf;
1136 memset(command, 0, 12);
1137 command[0] = 0xEB;
1138 command[1] = LUNBITS;
1140 return sddr09_send_scsi_command(us, command, 12);