Lines Matching refs:workreq
54 struct scsi_cmnd *workreq;
300 workreq = dev->id[c][target_id].curr_req;
302 scmd_printk(KERN_DEBUG, workreq, "CDB");
303 for (l = 0; l < workreq->cmd_len; l++)
304 printk(KERN_DEBUG " %x",workreq->cmnd[l]);
335 //j=workreq->cmnd[0];
336 if ((workreq->cmnd[0] == 0x08) || (workreq->cmnd[0] == 0x28) || (workreq->cmnd[0] == 0x0a) || (workreq->cmnd[0] == 0x2a)) {
343 if ((workreq->cmnd[0] == 0x08) || (workreq->cmnd[0] == 0x28) || (workreq->cmnd[0] == 0x0a) || (workreq->cmnd[0] == 0x2a)) {
350 if ((workreq->cmnd[0] == 0x08) || (workreq->cmnd[0] == 0x28) || (workreq->cmnd[0] == 0x0a) || (workreq->cmnd[0] == 0x2a)) {
444 workreq = dev->id[c][target_id].curr_req;
452 workreq->result = errstus;
466 workreq->result = errstus;
475 scsi_dma_unmap(workreq);
478 (*workreq->scsi_done) (workreq);
480 printk("workreq->scsi_done\n");
709 struct scsi_cmnd *workreq;
730 workreq = dev->id[c][dev->last_cmd[c]].curr_req;
731 if (workreq != NULL) { /* check NULL pointer */
750 workreq = dev->quereq[c][dev->quhd[c]];
751 if (dev->id[c][scmd_id(workreq)].curr_req == NULL) {
752 dev->id[c][scmd_id(workreq)].curr_req = workreq;
753 dev->last_cmd[c] = scmd_id(workreq);
780 scmd_printk(KERN_DEBUG, workreq, "CDB");
781 for(i=0;i<workreq->cmd_len;i++) {
782 printk(" %x",workreq->cmnd[i]);
786 l = scsi_bufflen(workreq);
791 dev->r1f[c][scmd_id(workreq)] = 0;
794 if (workreq->cmnd[0] == READ_CAPACITY) {
798 if (workreq->cmnd[0] == 0x00) {
804 target_id = scmd_id(workreq);
826 outb(workreq->cmd_len, tmport++);
833 for (i = 0; i < workreq->cmd_len; i++) {
834 outb(workreq->cmnd[i], tmport++);
837 outb(workreq->device->lun, tmport);
847 sg_count = scsi_dma_map(workreq);
869 if (workreq->sc_data_direction == DMA_TO_DEVICE) {
903 scsi_for_each_sg(workreq, sgpnt, sg_count, j) {
940 if ((workreq->cmnd[0] == 0x08) || (workreq->cmnd[0] == 0x28) ||
941 (workreq->cmnd[0] == 0x0a) || (workreq->cmnd[0] == 0x2a)) {
950 if ((workreq->cmnd[0] == 0x08) || (workreq->cmnd[0] == 0x28) || (workreq->cmnd[0] == 0x0a) || (workreq->cmnd[0] == 0x2a)) {
958 if ((workreq->cmnd[0] == 0x08) || (workreq->cmnd[0] == 0x28) || (workreq->cmnd[0] == 0x0a) || (workreq->cmnd[0] == 0x2a)) {
966 if(workreq->sc_data_direction == DMA_TO_DEVICE) {