Lines Matching refs:command

324 			 unsigned char *command,  in sddr09_send_scsi_command()  argument
326 return sddr09_send_command(us, 0, USB_DIR_OUT, command, command_len); in sddr09_send_scsi_command()
336 unsigned char *command = us->iobuf;
339 memset(command, 0, 6);
340 command[1] = LUNBITS;
342 result = sddr09_send_scsi_command(us, command, 6);
357 unsigned char *command = us->iobuf; in sddr09_request_sense() local
360 memset(command, 0, 12); in sddr09_request_sense()
361 command[0] = 0x03; in sddr09_request_sense()
362 command[1] = LUNBITS; in sddr09_request_sense()
363 command[4] = buflen; in sddr09_request_sense()
365 result = sddr09_send_scsi_command(us, command, 12); in sddr09_request_sense()
401 unsigned char *command = us->iobuf; in sddr09_readX() local
404 command[0] = 0xE8; in sddr09_readX()
405 command[1] = LUNBITS | x; in sddr09_readX()
406 command[2] = MSB_of(fromaddress>>16); in sddr09_readX()
407 command[3] = LSB_of(fromaddress>>16); in sddr09_readX()
408 command[4] = MSB_of(fromaddress & 0xFFFF); in sddr09_readX()
409 command[5] = LSB_of(fromaddress & 0xFFFF); in sddr09_readX()
410 command[6] = 0; in sddr09_readX()
411 command[7] = 0; in sddr09_readX()
412 command[8] = 0; in sddr09_readX()
413 command[9] = 0; in sddr09_readX()
414 command[10] = MSB_of(nr_of_pages); in sddr09_readX()
415 command[11] = LSB_of(nr_of_pages); in sddr09_readX()
417 result = sddr09_send_scsi_command(us, command, 12); in sddr09_readX()
531 unsigned char *command = us->iobuf; in sddr09_erase() local
536 memset(command, 0, 12); in sddr09_erase()
537 command[0] = 0xEA; in sddr09_erase()
538 command[1] = LUNBITS; in sddr09_erase()
539 command[6] = MSB_of(Eaddress>>16); in sddr09_erase()
540 command[7] = LSB_of(Eaddress>>16); in sddr09_erase()
541 command[8] = MSB_of(Eaddress & 0xFFFF); in sddr09_erase()
542 command[9] = LSB_of(Eaddress & 0xFFFF); in sddr09_erase()
544 result = sddr09_send_scsi_command(us, command, 12); in sddr09_erase()
583 unsigned char *command = us->iobuf; in sddr09_writeX() local
586 command[0] = 0xE9; in sddr09_writeX()
587 command[1] = LUNBITS; in sddr09_writeX()
589 command[2] = MSB_of(Waddress>>16); in sddr09_writeX()
590 command[3] = LSB_of(Waddress>>16); in sddr09_writeX()
591 command[4] = MSB_of(Waddress & 0xFFFF); in sddr09_writeX()
592 command[5] = LSB_of(Waddress & 0xFFFF); in sddr09_writeX()
594 command[6] = MSB_of(Eaddress>>16); in sddr09_writeX()
595 command[7] = LSB_of(Eaddress>>16); in sddr09_writeX()
596 command[8] = MSB_of(Eaddress & 0xFFFF); in sddr09_writeX()
597 command[9] = LSB_of(Eaddress & 0xFFFF); in sddr09_writeX()
599 command[10] = MSB_of(nr_of_pages); in sddr09_writeX()
600 command[11] = LSB_of(nr_of_pages); in sddr09_writeX()
602 result = sddr09_send_scsi_command(us, command, 12); in sddr09_writeX()
645 unsigned char *command = us->iobuf;
651 command[0] = 0xE7;
652 command[1] = LUNBITS;
653 command[2] = 0;
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);
673 command[4*nsg+2] = ct;
674 command[4*nsg+1] = ((address >> 9) & 0xFF);
675 command[4*nsg+0] = ((address >> 17) & 0xFF);
676 command[4*nsg-1] = ((address >> 25) & 0xFF);
678 command[2] = nsg;
680 result = sddr09_send_scsi_command(us, command, 4*nsg+3);
719 unsigned char *command = us->iobuf; in sddr09_read_status() local
725 memset(command, 0, 12); in sddr09_read_status()
726 command[0] = 0xEC; in sddr09_read_status()
727 command[1] = LUNBITS; in sddr09_read_status()
729 result = sddr09_send_scsi_command(us, command, 12); in sddr09_read_status()
1077 unsigned char *command = us->iobuf; in sddr09_read_deviceID() local
1081 memset(command, 0, 12); in sddr09_read_deviceID()
1082 command[0] = 0xED; in sddr09_read_deviceID()
1083 command[1] = LUNBITS; in sddr09_read_deviceID()
1085 result = sddr09_send_scsi_command(us, command, 12); in sddr09_read_deviceID()
1131 unsigned char *command = us->iobuf;
1133 memset(command, 0, 12);
1134 command[0] = 0xEB;
1135 command[1] = LUNBITS;
1137 return sddr09_send_scsi_command(us, command, 12);