Lines Matching refs:cmnd
516 hash = hash_ITLQ(slot->cmnd->target, slot->cmnd->lun, in free_slot()
531 hash = hash_ITL(slot->cmnd->target, slot->cmnd->lun); in free_slot()
546 slot->cmnd = NULL; in free_slot()
577 while(slot != NULL && !(slot->cmnd->target == pun && in find_ITL_Nexus()
578 slot->cmnd->lun == lun)) in find_ITL_Nexus()
590 while(slot != NULL && !(slot->cmnd->target == pun in find_ITLQ_Nexus()
591 && slot->cmnd->lun == lun && slot->tag == tag)) in find_ITLQ_Nexus()
597 while(n != NULL && n->cmnd->target != pun in find_ITLQ_Nexus()
598 && n->cmnd->lun != lun && n->tag != tag) in find_ITLQ_Nexus()
601 if(n != NULL && n->cmnd->target == pun && n->cmnd->lun == lun in find_ITLQ_Nexus()
679 sizeof(SCp->cmnd), PCI_DMA_TODEVICE); in NCR_700_scsi_done()
680 if(SCp->cmnd[0] == REQUEST_SENSE && SCp->cmnd[6] == NCR_700_INTERNAL_SENSE_MAGIC) { in NCR_700_scsi_done()
683 SCp, SCp->cmnd[7], result); in NCR_700_scsi_done()
690 result = SCp->cmnd[7]; in NCR_700_scsi_done()
692 memcpy((void *) SCp->cmnd, (void *) SCp->data_cmnd, in NCR_700_scsi_done()
1039 if(SCp->cmnd[0] == REQUEST_SENSE) { in process_script_interrupt()
1046 print_command(SCp->cmnd); in process_script_interrupt()
1059 SCp->cmnd[0] = REQUEST_SENSE; in process_script_interrupt()
1060 SCp->cmnd[1] = (SCp->lun & 0x7) << 5; in process_script_interrupt()
1061 SCp->cmnd[2] = 0; in process_script_interrupt()
1062 SCp->cmnd[3] = 0; in process_script_interrupt()
1063 SCp->cmnd[4] = sizeof(SCp->sense_buffer); in process_script_interrupt()
1064 SCp->cmnd[5] = 0; in process_script_interrupt()
1072 SCp->cmnd[6] = NCR_700_INTERNAL_SENSE_MAGIC; in process_script_interrupt()
1073 SCp->cmnd[7] = hostdata->status[0]; in process_script_interrupt()
1126 print_command(SCp->cmnd); in process_script_interrupt()
1175 if(s->cmnd->target == reselection_id && in process_script_interrupt()
1176 s->cmnd->lun == lun) { in process_script_interrupt()
1193 hostdata->cmd = slot->cmnd; in process_script_interrupt()
1199 CommandCount, slot->cmnd->cmd_len); in process_script_interrupt()
1216 NCR_700_dma_cache_wback((unsigned long)slot->cmnd->cmnd, in process_script_interrupt()
1217 slot->cmnd->cmd_len); in process_script_interrupt()
1252 … slot->resume_offset=%08x\n", SG, &hostdata->slots[i], hostdata->slots[i].cmnd, hostdata->slots[i]… in process_script_interrupt()
1253 SCp = hostdata->slots[i].cmnd; in process_script_interrupt()
1301 print_command(SCp->cmnd); in process_script_interrupt()
1456 SCp->host->host_no, slot->cmnd, slot)); in NCR_700_start_command()
1465 hostdata->msgout[0] = NCR_700_identify(SCp->cmnd[0] != REQUEST_SENSE, in NCR_700_start_command()
1470 if(SCp->cmnd[0] == INQUIRY || SCp->cmnd[0] == REQUEST_SENSE) { in NCR_700_start_command()
1479 && (slot->tag != NCR_700_NO_TAG && SCp->cmnd[0] != REQUEST_SENSE)) { in NCR_700_start_command()
1512 NCR_700_dma_cache_wback((unsigned long)SCp->cmnd, SCp->cmd_len); in NCR_700_start_command()
1611 SCp = slot->cmnd; in NCR_700_intr()
1661 print_command(SCp->cmnd); in NCR_700_intr()
1786 if(NCR_700_start_command(hostdata->slots[j].cmnd)) { in NCR_700_intr()
1789 hostdata->slots[j].cmnd)); in NCR_700_intr()
1874 slot->cmnd = SCp; in NCR_700_queuecommand()
1883 print_command(SCp->cmnd); in NCR_700_queuecommand()
1927 found, found->tag, found->cmnd->target, found->cmnd->lun); in NCR_700_queuecommand()
1931 if(old->cmnd->target == SCp->target && in NCR_700_queuecommand()
1932 old->cmnd->lun == SCp->lun) in NCR_700_queuecommand()
1978 print_command(SCp->cmnd); in NCR_700_queuecommand()
1984 switch (SCp->cmnd[0]) { in NCR_700_queuecommand()
1987 SCp->cmnd[6] = 0; in NCR_700_queuecommand()
1995 print_command(SCp->cmnd); in NCR_700_queuecommand()
2055 slot->pCmd = pci_map_single(hostdata->pci_dev, SCp->cmnd, in NCR_700_queuecommand()
2056 sizeof(SCp->cmnd), PCI_DMA_TODEVICE); in NCR_700_queuecommand()
2070 print_command(SCp->cmnd); in NCR_700_abort()
2073 while(slot != NULL && slot->cmnd != SCp) in NCR_700_abort()
2079 if(SCp->cmnd[0] == TEST_UNIT_READY) { in NCR_700_abort()
2102 print_command(SCp->cmnd); in NCR_700_bus_reset()
2112 print_command(SCp->cmnd); in NCR_700_dev_reset()
2122 print_command(SCp->cmnd); in NCR_700_host_reset()