Lines Matching refs:command
316 unsigned char *command, in sddr09_send_scsi_command() argument
318 return sddr09_send_command(us, 0, USB_DIR_OUT, command, command_len); in sddr09_send_scsi_command()
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; in sddr09_request_sense() local
352 memset(command, 0, 12); in sddr09_request_sense()
353 command[0] = 0x03; in sddr09_request_sense()
354 command[1] = LUNBITS; in sddr09_request_sense()
355 command[4] = buflen; in sddr09_request_sense()
357 result = sddr09_send_scsi_command(us, command, 12); in sddr09_request_sense()
393 unsigned char *command = us->iobuf; in sddr09_readX() local
396 command[0] = 0xE8; in sddr09_readX()
397 command[1] = LUNBITS | x; in sddr09_readX()
398 command[2] = MSB_of(fromaddress>>16); in sddr09_readX()
399 command[3] = LSB_of(fromaddress>>16); in sddr09_readX()
400 command[4] = MSB_of(fromaddress & 0xFFFF); in sddr09_readX()
401 command[5] = LSB_of(fromaddress & 0xFFFF); in sddr09_readX()
402 command[6] = 0; in sddr09_readX()
403 command[7] = 0; in sddr09_readX()
404 command[8] = 0; in sddr09_readX()
405 command[9] = 0; in sddr09_readX()
406 command[10] = MSB_of(nr_of_pages); in sddr09_readX()
407 command[11] = LSB_of(nr_of_pages); in sddr09_readX()
409 result = sddr09_send_scsi_command(us, command, 12); in sddr09_readX()
523 unsigned char *command = us->iobuf; in sddr09_erase() local
528 memset(command, 0, 12); in sddr09_erase()
529 command[0] = 0xEA; in sddr09_erase()
530 command[1] = LUNBITS; in sddr09_erase()
531 command[6] = MSB_of(Eaddress>>16); in sddr09_erase()
532 command[7] = LSB_of(Eaddress>>16); in sddr09_erase()
533 command[8] = MSB_of(Eaddress & 0xFFFF); in sddr09_erase()
534 command[9] = LSB_of(Eaddress & 0xFFFF); in sddr09_erase()
536 result = sddr09_send_scsi_command(us, command, 12); in sddr09_erase()
575 unsigned char *command = us->iobuf; in sddr09_writeX() local
578 command[0] = 0xE9; in sddr09_writeX()
579 command[1] = LUNBITS; in sddr09_writeX()
581 command[2] = MSB_of(Waddress>>16); in sddr09_writeX()
582 command[3] = LSB_of(Waddress>>16); in sddr09_writeX()
583 command[4] = MSB_of(Waddress & 0xFFFF); in sddr09_writeX()
584 command[5] = LSB_of(Waddress & 0xFFFF); in sddr09_writeX()
586 command[6] = MSB_of(Eaddress>>16); in sddr09_writeX()
587 command[7] = LSB_of(Eaddress>>16); in sddr09_writeX()
588 command[8] = MSB_of(Eaddress & 0xFFFF); in sddr09_writeX()
589 command[9] = LSB_of(Eaddress & 0xFFFF); in sddr09_writeX()
591 command[10] = MSB_of(nr_of_pages); in sddr09_writeX()
592 command[11] = LSB_of(nr_of_pages); in sddr09_writeX()
594 result = sddr09_send_scsi_command(us, command, 12); in sddr09_writeX()
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; in sddr09_read_status() local
717 memset(command, 0, 12); in sddr09_read_status()
718 command[0] = 0xEC; in sddr09_read_status()
719 command[1] = LUNBITS; in sddr09_read_status()
721 result = sddr09_send_scsi_command(us, command, 12); in sddr09_read_status()
1072 unsigned char *command = us->iobuf; in sddr09_read_deviceID() local
1076 memset(command, 0, 12); in sddr09_read_deviceID()
1077 command[0] = 0xED; in sddr09_read_deviceID()
1078 command[1] = LUNBITS; in sddr09_read_deviceID()
1080 result = sddr09_send_scsi_command(us, command, 12); in sddr09_read_deviceID()
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);