Lines Matching refs:command
346 unsigned char *command = us->iobuf; in usbat_set_shuttle_features() local
348 command[0] = 0x40; in usbat_set_shuttle_features()
349 command[1] = USBAT_CMD_SET_FEAT; in usbat_set_shuttle_features()
355 command[2] = epp_control; in usbat_set_shuttle_features()
363 command[3] = external_trigger; in usbat_set_shuttle_features()
370 command[4] = test_pattern; in usbat_set_shuttle_features()
376 command[5] = mask_byte; in usbat_set_shuttle_features()
384 command[6] = subcountL; in usbat_set_shuttle_features()
385 command[7] = subcountH; in usbat_set_shuttle_features()
387 return usbat_execute_command(us, command, 8); in usbat_set_shuttle_features()
449 unsigned char *command = us->iobuf; in usbat_read_block() local
454 command[0] = 0xC0; in usbat_read_block()
455 command[1] = USBAT_ATA | USBAT_CMD_READ_BLOCK; in usbat_read_block()
456 command[2] = USBAT_ATA_DATA; in usbat_read_block()
457 command[3] = 0; in usbat_read_block()
458 command[4] = 0; in usbat_read_block()
459 command[5] = 0; in usbat_read_block()
460 command[6] = LSB_of(len); in usbat_read_block()
461 command[7] = MSB_of(len); in usbat_read_block()
463 result = usbat_execute_command(us, command, 8); in usbat_read_block()
483 unsigned char *command = us->iobuf; in usbat_write_block() local
488 command[0] = 0x40; in usbat_write_block()
489 command[1] = access | USBAT_CMD_WRITE_BLOCK; in usbat_write_block()
490 command[2] = USBAT_ATA_DATA; in usbat_write_block()
491 command[3] = 0; in usbat_write_block()
492 command[4] = 0; in usbat_write_block()
493 command[5] = 0; in usbat_write_block()
494 command[6] = LSB_of(len); in usbat_write_block()
495 command[7] = MSB_of(len); in usbat_write_block()
497 result = usbat_execute_command(us, command, 8); in usbat_write_block()
531 unsigned char *command = us->iobuf; in usbat_hp8200e_rw_block_test() local
560 command[0] = 0x40; in usbat_hp8200e_rw_block_test()
561 command[1] = access | USBAT_CMD_WRITE_REGS; in usbat_hp8200e_rw_block_test()
562 command[2] = 0x07; in usbat_hp8200e_rw_block_test()
563 command[3] = 0x17; in usbat_hp8200e_rw_block_test()
564 command[4] = 0xFC; in usbat_hp8200e_rw_block_test()
565 command[5] = 0xE7; in usbat_hp8200e_rw_block_test()
566 command[6] = LSB_of(num_registers*2); in usbat_hp8200e_rw_block_test()
567 command[7] = MSB_of(num_registers*2); in usbat_hp8200e_rw_block_test()
572 command[cmdlen-8] = (direction==DMA_TO_DEVICE ? 0x40 : 0xC0); in usbat_hp8200e_rw_block_test()
573 command[cmdlen-7] = access | in usbat_hp8200e_rw_block_test()
576 command[cmdlen-6] = data_reg; in usbat_hp8200e_rw_block_test()
577 command[cmdlen-5] = status_reg; in usbat_hp8200e_rw_block_test()
578 command[cmdlen-4] = timeout; in usbat_hp8200e_rw_block_test()
579 command[cmdlen-3] = qualifier; in usbat_hp8200e_rw_block_test()
580 command[cmdlen-2] = LSB_of(len); in usbat_hp8200e_rw_block_test()
581 command[cmdlen-1] = MSB_of(len); in usbat_hp8200e_rw_block_test()
583 result = usbat_execute_command(us, command, cmdlen); in usbat_hp8200e_rw_block_test()
684 unsigned char *command = us->iobuf; in usbat_multiple_write() local
689 command[0] = 0x40; in usbat_multiple_write()
690 command[1] = USBAT_ATA | USBAT_CMD_WRITE_REGS; in usbat_multiple_write()
693 command[2] = 0; in usbat_multiple_write()
694 command[3] = 0; in usbat_multiple_write()
695 command[4] = 0; in usbat_multiple_write()
696 command[5] = 0; in usbat_multiple_write()
699 command[6] = LSB_of(num_registers*2); in usbat_multiple_write()
700 command[7] = MSB_of(num_registers*2); in usbat_multiple_write()
703 result = usbat_execute_command(us, command, 8); in usbat_multiple_write()
742 unsigned char *command = us->iobuf; in usbat_read_blocks() local
744 command[0] = 0xC0; in usbat_read_blocks()
745 command[1] = USBAT_ATA | USBAT_CMD_COND_READ_BLOCK; in usbat_read_blocks()
746 command[2] = USBAT_ATA_DATA; in usbat_read_blocks()
747 command[3] = USBAT_ATA_STATUS; in usbat_read_blocks()
748 command[4] = 0xFD; /* Timeout (ms); */ in usbat_read_blocks()
749 command[5] = USBAT_QUAL_FCQ; in usbat_read_blocks()
750 command[6] = LSB_of(len); in usbat_read_blocks()
751 command[7] = MSB_of(len); in usbat_read_blocks()
754 result = usbat_execute_command(us, command, 8); in usbat_read_blocks()
784 unsigned char *command = us->iobuf; in usbat_write_blocks() local
786 command[0] = 0x40; in usbat_write_blocks()
787 command[1] = USBAT_ATA | USBAT_CMD_COND_WRITE_BLOCK; in usbat_write_blocks()
788 command[2] = USBAT_ATA_DATA; in usbat_write_blocks()
789 command[3] = USBAT_ATA_STATUS; in usbat_write_blocks()
790 command[4] = 0xFD; /* Timeout (ms) */ in usbat_write_blocks()
791 command[5] = USBAT_QUAL_FCQ; in usbat_write_blocks()
792 command[6] = LSB_of(len); in usbat_write_blocks()
793 command[7] = MSB_of(len); in usbat_write_blocks()
796 result = usbat_execute_command(us, command, 8); in usbat_write_blocks()
1059 unsigned char command[3] = { 0x01, 0xA0, 0xEC }; in usbat_flash_get_sector_count() local
1072 rc = usbat_multiple_write(us, registers, command, 3); in usbat_flash_get_sector_count()
1121 unsigned char command[7]; in usbat_flash_read_data() local
1165 usbat_pack_ata_sector_cmd(command, thistime, sector, 0x20); in usbat_flash_read_data()
1168 result = usbat_multiple_write(us, registers, command, 7); in usbat_flash_read_data()
1212 unsigned char command[7]; in usbat_flash_write_data() local
1260 usbat_pack_ata_sector_cmd(command, thistime, sector, 0x30); in usbat_flash_write_data()
1263 result = usbat_multiple_write(us, registers, command, 7); in usbat_flash_write_data()