Lines Matching refs:SCp
350 cmd->SCp.buffer = (struct scatterlist *)cmd->buffer; in wd33c93_queuecommand()
351 cmd->SCp.buffers_residual = cmd->use_sg - 1; in wd33c93_queuecommand()
352 cmd->SCp.ptr = (char *)cmd->SCp.buffer->address; in wd33c93_queuecommand()
353 cmd->SCp.this_residual = cmd->SCp.buffer->length; in wd33c93_queuecommand()
356 cmd->SCp.buffer = NULL; in wd33c93_queuecommand()
357 cmd->SCp.buffers_residual = 0; in wd33c93_queuecommand()
358 cmd->SCp.ptr = (char *)cmd->request_buffer; in wd33c93_queuecommand()
359 cmd->SCp.this_residual = cmd->request_bufflen; in wd33c93_queuecommand()
379 cmd->SCp.Status = ILLEGAL_STATUS_BYTE; in wd33c93_queuecommand()
507 cmd->SCp.phase = 0; /* assume no disconnect */ in wd33c93_execute()
523 prev->SCp.phase = 1; in wd33c93_execute()
530 cmd->SCp.phase = 1; in wd33c93_execute()
538 write_wd33c93(regs, WD_SOURCE_ID, ((cmd->SCp.phase)?SRCID_ER:0)); in wd33c93_execute()
610 if ((cmd->SCp.phase == 0) && (hostdata->no_dma == 0)) { in wd33c93_execute()
615 write_wd33c93_count(regs, cmd->SCp.this_residual); in wd33c93_execute()
634 DB(DB_EXECUTE,printk("%s%ld)EX-2 ",(cmd->SCp.phase)?"d:":"",cmd->pid)) in wd33c93_execute()
691 if (!cmd->SCp.this_residual && cmd->SCp.buffers_residual) { in transfer_bytes()
692 ++cmd->SCp.buffer; in transfer_bytes()
693 --cmd->SCp.buffers_residual; in transfer_bytes()
694 cmd->SCp.this_residual = cmd->SCp.buffer->length; in transfer_bytes()
695 cmd->SCp.ptr = cmd->SCp.buffer->address; in transfer_bytes()
716 transfer_pio(regs, (uchar *)cmd->SCp.ptr, cmd->SCp.this_residual, in transfer_bytes()
718 length = cmd->SCp.this_residual; in transfer_bytes()
719 cmd->SCp.this_residual = read_wd33c93_count(regs); in transfer_bytes()
720 cmd->SCp.ptr += (length - cmd->SCp.this_residual); in transfer_bytes()
737 write_wd33c93_count(regs, cmd->SCp.this_residual); in transfer_bytes()
740 (hostdata->level2 == L2_BASIC && cmd->SCp.phase == 0)) { in transfer_bytes()
794 DB(DB_TRANSFER,printk("[%p/%d:",cmd->SCp.ptr,cmd->SCp.this_residual)) in wd33c93_intr()
797 length = cmd->SCp.this_residual; in wd33c93_intr()
798 cmd->SCp.this_residual = read_wd33c93_count(regs); in wd33c93_intr()
799 cmd->SCp.ptr += (length - cmd->SCp.this_residual); in wd33c93_intr()
800 DB(DB_TRANSFER,printk("%p/%d]",cmd->SCp.ptr,cmd->SCp.this_residual)) in wd33c93_intr()
853 if (cmd->SCp.phase) in wd33c93_intr()
892 DB(DB_INTR,printk("IN-%d.%d",cmd->SCp.this_residual,cmd->SCp.buffers_residual)) in wd33c93_intr()
902 DB(DB_INTR,printk("OUT-%d.%d",cmd->SCp.this_residual,cmd->SCp.buffers_residual)) in wd33c93_intr()
925 cmd->SCp.Status = read_1_byte(regs); in wd33c93_intr()
926 DB(DB_INTR,printk("%02x",cmd->SCp.Status)) in wd33c93_intr()
953 cmd->SCp.Message = msg; in wd33c93_intr()
1101 cmd->SCp.Message = COMMAND_COMPLETE; in wd33c93_intr()
1103 DB(DB_INTR,printk(":%d.%d",cmd->SCp.Status,lun)) in wd33c93_intr()
1107 if (cmd->SCp.Status == ILLEGAL_STATUS_BYTE) in wd33c93_intr()
1108 cmd->SCp.Status = lun; in wd33c93_intr()
1109 if (cmd->cmnd[0] == REQUEST_SENSE && cmd->SCp.Status != GOOD) in wd33c93_intr()
1112 cmd->result = cmd->SCp.Status | (cmd->SCp.Message << 8); in wd33c93_intr()
1191 if (cmd->cmnd[0] == REQUEST_SENSE && cmd->SCp.Status != GOOD) in wd33c93_intr()
1194 cmd->result = cmd->SCp.Status | (cmd->SCp.Message << 8); in wd33c93_intr()
1223 DB(DB_INTR,printk(":%d",cmd->SCp.Status)) in wd33c93_intr()
1224 if (cmd->cmnd[0] == REQUEST_SENSE && cmd->SCp.Status != GOOD) in wd33c93_intr()
1227 cmd->result = cmd->SCp.Status | (cmd->SCp.Message << 8); in wd33c93_intr()