Lines Matching refs:tgt
492 static void esp_write_tgt_config3(struct esp *esp, int tgt) in esp_write_tgt_config3() argument
495 u8 val = esp->target[tgt].esp_config3; in esp_write_tgt_config3()
504 static void esp_write_tgt_sync(struct esp *esp, int tgt) in esp_write_tgt_sync() argument
506 u8 off = esp->target[tgt].esp_offset; in esp_write_tgt_sync()
507 u8 per = esp->target[tgt].esp_period; in esp_write_tgt_sync()
640 int tgt, lun; in esp_autosense() local
643 tgt = dev->id; in esp_autosense()
649 tgt, lun); in esp_autosense()
675 val = tgt; in esp_autosense()
680 esp_write_tgt_sync(esp, tgt); in esp_autosense()
681 esp_write_tgt_config3(esp, tgt); in esp_autosense()
726 int tgt, lun, i; in esp_maybe_execute_command() local
745 tgt = dev->id; in esp_maybe_execute_command()
747 tp = &esp->target[tgt]; in esp_maybe_execute_command()
849 val = tgt; in esp_maybe_execute_command()
854 esp_write_tgt_sync(esp, tgt); in esp_maybe_execute_command()
855 esp_write_tgt_config3(esp, tgt); in esp_maybe_execute_command()
860 printk("ESP: tgt[%d] lun[%d] scsi_cmd [ ", tgt, lun); in esp_maybe_execute_command()
893 int tgt = dev->id; in esp_cmd_is_done() local
925 esp->host->unique_id, tgt, lun); in esp_cmd_is_done()
1468 int tgt; in esp_msgin_reject() local
1470 tgt = cmd->device->id; in esp_msgin_reject()
1471 tp = &esp->target[tgt]; in esp_msgin_reject()
1609 int tgt = cmd->device->id; in esp_msgin_extended() local
1611 tp = &esp->target[tgt]; in esp_msgin_extended()