Lines Matching refs:SCp

356       cmd->SCp.buffer = (struct scatterlist *)cmd->buffer;  in in2000_queuecommand()
357 cmd->SCp.buffers_residual = cmd->use_sg - 1; in in2000_queuecommand()
358 cmd->SCp.ptr = (char *)cmd->SCp.buffer->address; in in2000_queuecommand()
359 cmd->SCp.this_residual = cmd->SCp.buffer->length; in in2000_queuecommand()
362 cmd->SCp.buffer = NULL; in in2000_queuecommand()
363 cmd->SCp.buffers_residual = 0; in in2000_queuecommand()
364 cmd->SCp.ptr = (char *)cmd->request_buffer; in in2000_queuecommand()
365 cmd->SCp.this_residual = cmd->request_bufflen; in in2000_queuecommand()
367 cmd->SCp.have_data_in = 0; in in2000_queuecommand()
388 cmd->SCp.Status = ILLEGAL_STATUS_BYTE; in in2000_queuecommand()
523 cmd->SCp.phase = 0; /* assume no disconnect */ in in2000_execute()
539 prev->SCp.phase = 1; in in2000_execute()
546 cmd->SCp.phase = 1; in in2000_execute()
553 write_3393(hostdata,WD_SOURCE_ID,((cmd->SCp.phase)?SRCID_ER:0)); in in2000_execute()
640 if (!(cmd->SCp.phase)) { in in2000_execute()
641 write_3393_count(hostdata, cmd->SCp.this_residual); in in2000_execute()
647 if ((i = cmd->SCp.this_residual) > (IN2000_FIFO_SIZE - 16) ) in in2000_execute()
649 cmd->SCp.have_data_in = i; /* this much data in fifo */ in in2000_execute()
651 sp = (unsigned short *)cmd->SCp.ptr; in in2000_execute()
665 if (cmd->SCp.have_data_in <= ((IN2000_FIFO_SIZE - 16) - 32)) { in in2000_execute()
684 cmd->SCp.have_data_in = 0; /* nothing transferred yet */ in in2000_execute()
702 DB(DB_EXECUTE,printk("%s%ld)EX-2 ",(cmd->SCp.phase)?"d:":"",cmd->pid)) in in2000_execute()
761 if (!cmd->SCp.this_residual && cmd->SCp.buffers_residual) { in transfer_bytes()
762 ++cmd->SCp.buffer; in transfer_bytes()
763 --cmd->SCp.buffers_residual; in transfer_bytes()
764 cmd->SCp.this_residual = cmd->SCp.buffer->length; in transfer_bytes()
765 cmd->SCp.ptr = cmd->SCp.buffer->address; in transfer_bytes()
771 write_3393_count(hostdata,cmd->SCp.this_residual); in transfer_bytes()
782 (hostdata->level2 == L2_BASIC && cmd->SCp.phase == 0)) { in transfer_bytes()
790 cmd->SCp.have_data_in = 0; in transfer_bytes()
800 (hostdata->level2 == L2_BASIC && cmd->SCp.phase == 0)) { in transfer_bytes()
808 sp = (unsigned short *)cmd->SCp.ptr; in transfer_bytes()
810 if ((i = cmd->SCp.this_residual) > IN2000_FIFO_SIZE) in transfer_bytes()
812 cmd->SCp.have_data_in = i; in transfer_bytes()
929 sp = (unsigned short *)(cmd->SCp.ptr + cmd->SCp.have_data_in); in in2000_intr()
943 i = sp - (unsigned short *)(cmd->SCp.ptr + cmd->SCp.have_data_in); in in2000_intr()
945 cmd->SCp.have_data_in += i; in in2000_intr()
963 if (cmd->SCp.this_residual == cmd->SCp.have_data_in) { in in2000_intr()
974 sp = (unsigned short *)(cmd->SCp.ptr + cmd->SCp.have_data_in); in in2000_intr()
975 i = cmd->SCp.this_residual - cmd->SCp.have_data_in; /* bytes yet to go */ in in2000_intr()
983 i = sp - (unsigned short *)(cmd->SCp.ptr + cmd->SCp.have_data_in); in in2000_intr()
985 cmd->SCp.have_data_in += i; in in2000_intr()
1037 sp = (unsigned short *)(cmd->SCp.ptr + cmd->SCp.have_data_in); in in2000_intr()
1041 i = (cmd->SCp.this_residual - read_3393_count(hostdata)) - cmd->SCp.have_data_in; in in2000_intr()
1055 length = cmd->SCp.this_residual; in in2000_intr()
1056 cmd->SCp.this_residual = read_3393_count(hostdata); in in2000_intr()
1057 cmd->SCp.ptr += (length - cmd->SCp.this_residual); in in2000_intr()
1059 DB(DB_TRANSFER,printk("(%p,%d)",cmd->SCp.ptr,cmd->SCp.this_residual)) in in2000_intr()
1065 length = cmd->SCp.this_residual; in in2000_intr()
1066 cmd->SCp.this_residual = read_3393_count(hostdata); in in2000_intr()
1067 cmd->SCp.ptr += (length - cmd->SCp.this_residual); in in2000_intr()
1069 DB(DB_TRANSFER,printk("(%p,%d)",cmd->SCp.ptr,cmd->SCp.this_residual)) in in2000_intr()
1112 if (cmd->SCp.phase) in in2000_intr()
1141 DB(DB_INTR,printk("IN-%d.%d",cmd->SCp.this_residual,cmd->SCp.buffers_residual)) in in2000_intr()
1151 DB(DB_INTR,printk("OUT-%d.%d",cmd->SCp.this_residual,cmd->SCp.buffers_residual)) in in2000_intr()
1174 cmd->SCp.Status = read_1_byte(hostdata); in in2000_intr()
1175 DB(DB_INTR,printk("%02x",cmd->SCp.Status)) in in2000_intr()
1202 cmd->SCp.Message = msg; in in2000_intr()
1349 cmd->SCp.Message = COMMAND_COMPLETE; in in2000_intr()
1351 DB(DB_INTR,printk(":%d.%d",cmd->SCp.Status,lun)) in in2000_intr()
1355 if (cmd->SCp.Status == ILLEGAL_STATUS_BYTE) in in2000_intr()
1356 cmd->SCp.Status = lun; in in2000_intr()
1357 if (cmd->cmnd[0] == REQUEST_SENSE && cmd->SCp.Status != GOOD) in in2000_intr()
1360 cmd->result = cmd->SCp.Status | (cmd->SCp.Message << 8); in in2000_intr()
1443 if (cmd->cmnd[0] == REQUEST_SENSE && cmd->SCp.Status != GOOD) in in2000_intr()
1446 cmd->result = cmd->SCp.Status | (cmd->SCp.Message << 8); in in2000_intr()
1474 DB(DB_INTR,printk(":%d",cmd->SCp.Status)) in in2000_intr()
1475 if (cmd->cmnd[0] == REQUEST_SENSE && cmd->SCp.Status != GOOD) in in2000_intr()
1478 cmd->result = cmd->SCp.Status | (cmd->SCp.Message << 8); in in2000_intr()
1720 … READ_AUX_STAT(),read_3393_count(hostdata),cmd->SCp.this_residual,cmd->SCp.buffers_residual, in in2000_abort()
1721 cmd->SCp.have_data_in,read1_io(IO_FIFO_COUNT)); in in2000_abort()