• Home
  • Raw
  • Download

Lines Matching refs:command

283 			 unsigned char *command,  in sddr09_send_scsi_command()  argument
285 return sddr09_send_command(us, 0, USB_DIR_OUT, command, command_len); in sddr09_send_scsi_command()
295 unsigned char *command = us->iobuf;
298 memset(command, 0, 6);
299 command[1] = LUNBITS;
301 result = sddr09_send_scsi_command(us, command, 6);
316 unsigned char *command = us->iobuf; in sddr09_request_sense() local
319 memset(command, 0, 12); in sddr09_request_sense()
320 command[0] = 0x03; in sddr09_request_sense()
321 command[1] = LUNBITS; in sddr09_request_sense()
322 command[4] = buflen; in sddr09_request_sense()
324 result = sddr09_send_scsi_command(us, command, 12); in sddr09_request_sense()
360 unsigned char *command = us->iobuf; in sddr09_readX() local
363 command[0] = 0xE8; in sddr09_readX()
364 command[1] = LUNBITS | x; in sddr09_readX()
365 command[2] = MSB_of(fromaddress>>16); in sddr09_readX()
366 command[3] = LSB_of(fromaddress>>16); in sddr09_readX()
367 command[4] = MSB_of(fromaddress & 0xFFFF); in sddr09_readX()
368 command[5] = LSB_of(fromaddress & 0xFFFF); in sddr09_readX()
369 command[6] = 0; in sddr09_readX()
370 command[7] = 0; in sddr09_readX()
371 command[8] = 0; in sddr09_readX()
372 command[9] = 0; in sddr09_readX()
373 command[10] = MSB_of(nr_of_pages); in sddr09_readX()
374 command[11] = LSB_of(nr_of_pages); in sddr09_readX()
376 result = sddr09_send_scsi_command(us, command, 12); in sddr09_readX()
491 unsigned char *command = us->iobuf; in sddr09_erase() local
496 memset(command, 0, 12); in sddr09_erase()
497 command[0] = 0xEA; in sddr09_erase()
498 command[1] = LUNBITS; in sddr09_erase()
499 command[6] = MSB_of(Eaddress>>16); in sddr09_erase()
500 command[7] = LSB_of(Eaddress>>16); in sddr09_erase()
501 command[8] = MSB_of(Eaddress & 0xFFFF); in sddr09_erase()
502 command[9] = LSB_of(Eaddress & 0xFFFF); in sddr09_erase()
504 result = sddr09_send_scsi_command(us, command, 12); in sddr09_erase()
543 unsigned char *command = us->iobuf; in sddr09_writeX() local
546 command[0] = 0xE9; in sddr09_writeX()
547 command[1] = LUNBITS; in sddr09_writeX()
549 command[2] = MSB_of(Waddress>>16); in sddr09_writeX()
550 command[3] = LSB_of(Waddress>>16); in sddr09_writeX()
551 command[4] = MSB_of(Waddress & 0xFFFF); in sddr09_writeX()
552 command[5] = LSB_of(Waddress & 0xFFFF); in sddr09_writeX()
554 command[6] = MSB_of(Eaddress>>16); in sddr09_writeX()
555 command[7] = LSB_of(Eaddress>>16); in sddr09_writeX()
556 command[8] = MSB_of(Eaddress & 0xFFFF); in sddr09_writeX()
557 command[9] = LSB_of(Eaddress & 0xFFFF); in sddr09_writeX()
559 command[10] = MSB_of(nr_of_pages); in sddr09_writeX()
560 command[11] = LSB_of(nr_of_pages); in sddr09_writeX()
562 result = sddr09_send_scsi_command(us, command, 12); in sddr09_writeX()
605 unsigned char *command = us->iobuf;
611 command[0] = 0xE7;
612 command[1] = LUNBITS;
613 command[2] = 0;
617 command[4*nsg+2] = ct;
618 command[4*nsg+1] = ((address >> 9) & 0xFF);
619 command[4*nsg+0] = ((address >> 17) & 0xFF);
620 command[4*nsg-1] = ((address >> 25) & 0xFF);
625 command[4*nsg+2] = ct;
626 command[4*nsg+1] = ((address >> 9) & 0xFF);
627 command[4*nsg+0] = ((address >> 17) & 0xFF);
628 command[4*nsg-1] = ((address >> 25) & 0xFF);
633 command[4*nsg+2] = ct;
634 command[4*nsg+1] = ((address >> 9) & 0xFF);
635 command[4*nsg+0] = ((address >> 17) & 0xFF);
636 command[4*nsg-1] = ((address >> 25) & 0xFF);
638 command[2] = nsg;
640 result = sddr09_send_scsi_command(us, command, 4*nsg+3);
679 unsigned char *command = us->iobuf; in sddr09_read_status() local
685 memset(command, 0, 12); in sddr09_read_status()
686 command[0] = 0xEC; in sddr09_read_status()
687 command[1] = LUNBITS; in sddr09_read_status()
689 result = sddr09_send_scsi_command(us, command, 12); in sddr09_read_status()
1038 unsigned char *command = us->iobuf; in sddr09_read_deviceID() local
1042 memset(command, 0, 12); in sddr09_read_deviceID()
1043 command[0] = 0xED; in sddr09_read_deviceID()
1044 command[1] = LUNBITS; in sddr09_read_deviceID()
1046 result = sddr09_send_scsi_command(us, command, 12); in sddr09_read_deviceID()
1092 unsigned char *command = us->iobuf;
1094 memset(command, 0, 12);
1095 command[0] = 0xEB;
1096 command[1] = LUNBITS;
1098 return sddr09_send_scsi_command(us, command, 12);