Lines Matching refs:command

315 			 unsigned char *command,  in sddr09_send_scsi_command()  argument
317 return sddr09_send_command(us, 0, USB_DIR_OUT, command, command_len); in sddr09_send_scsi_command()
327 unsigned char *command = us->iobuf;
330 memset(command, 0, 6);
331 command[1] = LUNBITS;
333 result = sddr09_send_scsi_command(us, command, 6);
348 unsigned char *command = us->iobuf; in sddr09_request_sense() local
351 memset(command, 0, 12); in sddr09_request_sense()
352 command[0] = 0x03; in sddr09_request_sense()
353 command[1] = LUNBITS; in sddr09_request_sense()
354 command[4] = buflen; in sddr09_request_sense()
356 result = sddr09_send_scsi_command(us, command, 12); in sddr09_request_sense()
392 unsigned char *command = us->iobuf; in sddr09_readX() local
395 command[0] = 0xE8; in sddr09_readX()
396 command[1] = LUNBITS | x; in sddr09_readX()
397 command[2] = MSB_of(fromaddress>>16); in sddr09_readX()
398 command[3] = LSB_of(fromaddress>>16); in sddr09_readX()
399 command[4] = MSB_of(fromaddress & 0xFFFF); in sddr09_readX()
400 command[5] = LSB_of(fromaddress & 0xFFFF); in sddr09_readX()
401 command[6] = 0; in sddr09_readX()
402 command[7] = 0; in sddr09_readX()
403 command[8] = 0; in sddr09_readX()
404 command[9] = 0; in sddr09_readX()
405 command[10] = MSB_of(nr_of_pages); in sddr09_readX()
406 command[11] = LSB_of(nr_of_pages); in sddr09_readX()
408 result = sddr09_send_scsi_command(us, command, 12); in sddr09_readX()
522 unsigned char *command = us->iobuf; in sddr09_erase() local
527 memset(command, 0, 12); in sddr09_erase()
528 command[0] = 0xEA; in sddr09_erase()
529 command[1] = LUNBITS; in sddr09_erase()
530 command[6] = MSB_of(Eaddress>>16); in sddr09_erase()
531 command[7] = LSB_of(Eaddress>>16); in sddr09_erase()
532 command[8] = MSB_of(Eaddress & 0xFFFF); in sddr09_erase()
533 command[9] = LSB_of(Eaddress & 0xFFFF); in sddr09_erase()
535 result = sddr09_send_scsi_command(us, command, 12); in sddr09_erase()
574 unsigned char *command = us->iobuf; in sddr09_writeX() local
577 command[0] = 0xE9; in sddr09_writeX()
578 command[1] = LUNBITS; in sddr09_writeX()
580 command[2] = MSB_of(Waddress>>16); in sddr09_writeX()
581 command[3] = LSB_of(Waddress>>16); in sddr09_writeX()
582 command[4] = MSB_of(Waddress & 0xFFFF); in sddr09_writeX()
583 command[5] = LSB_of(Waddress & 0xFFFF); in sddr09_writeX()
585 command[6] = MSB_of(Eaddress>>16); in sddr09_writeX()
586 command[7] = LSB_of(Eaddress>>16); in sddr09_writeX()
587 command[8] = MSB_of(Eaddress & 0xFFFF); in sddr09_writeX()
588 command[9] = LSB_of(Eaddress & 0xFFFF); in sddr09_writeX()
590 command[10] = MSB_of(nr_of_pages); in sddr09_writeX()
591 command[11] = LSB_of(nr_of_pages); in sddr09_writeX()
593 result = sddr09_send_scsi_command(us, command, 12); in sddr09_writeX()
636 unsigned char *command = us->iobuf;
642 command[0] = 0xE7;
643 command[1] = LUNBITS;
644 command[2] = 0;
648 command[4*nsg+2] = ct;
649 command[4*nsg+1] = ((address >> 9) & 0xFF);
650 command[4*nsg+0] = ((address >> 17) & 0xFF);
651 command[4*nsg-1] = ((address >> 25) & 0xFF);
656 command[4*nsg+2] = ct;
657 command[4*nsg+1] = ((address >> 9) & 0xFF);
658 command[4*nsg+0] = ((address >> 17) & 0xFF);
659 command[4*nsg-1] = ((address >> 25) & 0xFF);
664 command[4*nsg+2] = ct;
665 command[4*nsg+1] = ((address >> 9) & 0xFF);
666 command[4*nsg+0] = ((address >> 17) & 0xFF);
667 command[4*nsg-1] = ((address >> 25) & 0xFF);
669 command[2] = nsg;
671 result = sddr09_send_scsi_command(us, command, 4*nsg+3);
710 unsigned char *command = us->iobuf; in sddr09_read_status() local
716 memset(command, 0, 12); in sddr09_read_status()
717 command[0] = 0xEC; in sddr09_read_status()
718 command[1] = LUNBITS; in sddr09_read_status()
720 result = sddr09_send_scsi_command(us, command, 12); in sddr09_read_status()
1071 unsigned char *command = us->iobuf; in sddr09_read_deviceID() local
1075 memset(command, 0, 12); in sddr09_read_deviceID()
1076 command[0] = 0xED; in sddr09_read_deviceID()
1077 command[1] = LUNBITS; in sddr09_read_deviceID()
1079 result = sddr09_send_scsi_command(us, command, 12); in sddr09_read_deviceID()
1125 unsigned char *command = us->iobuf;
1127 memset(command, 0, 12);
1128 command[0] = 0xEB;
1129 command[1] = LUNBITS;
1131 return sddr09_send_scsi_command(us, command, 12);