Lines Matching refs:workreq
53 struct scsi_cmnd *workreq; in atp870u_intr_handle() local
299 workreq = dev->id[c][target_id].curr_req; in atp870u_intr_handle()
301 scmd_printk(KERN_DEBUG, workreq, "CDB"); in atp870u_intr_handle()
302 for (l = 0; l < workreq->cmd_len; l++) in atp870u_intr_handle()
303 printk(KERN_DEBUG " %x",workreq->cmnd[l]); in atp870u_intr_handle()
335 …if ((workreq->cmnd[0] == 0x08) || (workreq->cmnd[0] == 0x28) || (workreq->cmnd[0] == 0x0a) || (wor… in atp870u_intr_handle()
342 …if ((workreq->cmnd[0] == 0x08) || (workreq->cmnd[0] == 0x28) || (workreq->cmnd[0] == 0x0a) || (wor… in atp870u_intr_handle()
349 …if ((workreq->cmnd[0] == 0x08) || (workreq->cmnd[0] == 0x28) || (workreq->cmnd[0] == 0x0a) || (wor… in atp870u_intr_handle()
443 workreq = dev->id[c][target_id].curr_req; in atp870u_intr_handle()
451 workreq->result = errstus; in atp870u_intr_handle()
465 workreq->result = errstus; in atp870u_intr_handle()
474 scsi_dma_unmap(workreq); in atp870u_intr_handle()
477 (*workreq->scsi_done) (workreq); in atp870u_intr_handle()
710 struct scsi_cmnd *workreq; in DEF_SCSI_QCMD() local
731 workreq = dev->id[c][dev->last_cmd[c]].curr_req; in DEF_SCSI_QCMD()
732 if (workreq != NULL) { /* check NULL pointer */ in DEF_SCSI_QCMD()
751 workreq = dev->quereq[c][dev->quhd[c]]; in DEF_SCSI_QCMD()
752 if (dev->id[c][scmd_id(workreq)].curr_req == NULL) { in DEF_SCSI_QCMD()
753 dev->id[c][scmd_id(workreq)].curr_req = workreq; in DEF_SCSI_QCMD()
754 dev->last_cmd[c] = scmd_id(workreq); in DEF_SCSI_QCMD()
781 scmd_printk(KERN_DEBUG, workreq, "CDB"); in DEF_SCSI_QCMD()
782 for(i=0;i<workreq->cmd_len;i++) { in DEF_SCSI_QCMD()
783 printk(" %x",workreq->cmnd[i]); in DEF_SCSI_QCMD()
787 l = scsi_bufflen(workreq); in DEF_SCSI_QCMD()
792 dev->r1f[c][scmd_id(workreq)] = 0; in DEF_SCSI_QCMD()
795 if (workreq->cmnd[0] == READ_CAPACITY) { in DEF_SCSI_QCMD()
799 if (workreq->cmnd[0] == 0x00) { in DEF_SCSI_QCMD()
805 target_id = scmd_id(workreq); in DEF_SCSI_QCMD()
827 outb(workreq->cmd_len, tmport++); in DEF_SCSI_QCMD()
834 for (i = 0; i < workreq->cmd_len; i++) { in DEF_SCSI_QCMD()
835 outb(workreq->cmnd[i], tmport++); in DEF_SCSI_QCMD()
838 outb(workreq->device->lun, tmport); in DEF_SCSI_QCMD()
848 sg_count = scsi_dma_map(workreq); in DEF_SCSI_QCMD()
870 if (workreq->sc_data_direction == DMA_TO_DEVICE) { in DEF_SCSI_QCMD()
904 scsi_for_each_sg(workreq, sgpnt, sg_count, j) { in DEF_SCSI_QCMD()
941 if ((workreq->cmnd[0] == 0x08) || (workreq->cmnd[0] == 0x28) || in DEF_SCSI_QCMD()
942 (workreq->cmnd[0] == 0x0a) || (workreq->cmnd[0] == 0x2a)) { in DEF_SCSI_QCMD()
951 …if ((workreq->cmnd[0] == 0x08) || (workreq->cmnd[0] == 0x28) || (workreq->cmnd[0] == 0x0a) || (wor… in DEF_SCSI_QCMD()
959 …if ((workreq->cmnd[0] == 0x08) || (workreq->cmnd[0] == 0x28) || (workreq->cmnd[0] == 0x0a) || (wor… in DEF_SCSI_QCMD()
967 if(workreq->sc_data_direction == DMA_TO_DEVICE) { in DEF_SCSI_QCMD()