Lines Matching refs:SCp
466 unsigned long oldlen = cmd->SCp.this_residual; in merge_contiguous_buffers()
470 for (endaddr = virt_to_phys(cmd->SCp.ptr + cmd->SCp.this_residual - 1) + 1; in merge_contiguous_buffers()
471 cmd->SCp.buffers_residual && in merge_contiguous_buffers()
472 virt_to_phys(cmd->SCp.buffer[1].address) == endaddr; ) { in merge_contiguous_buffers()
475 cmd->SCp.buffer[1].address, endaddr); in merge_contiguous_buffers()
479 ++cmd->SCp.buffer; in merge_contiguous_buffers()
480 --cmd->SCp.buffers_residual; in merge_contiguous_buffers()
481 cmd->SCp.this_residual += cmd->SCp.buffer->length; in merge_contiguous_buffers()
482 endaddr += cmd->SCp.buffer->length; in merge_contiguous_buffers()
485 if (oldlen != cmd->SCp.this_residual) in merge_contiguous_buffers()
487 cnt, cmd->SCp.ptr, cmd->SCp.this_residual); in merge_contiguous_buffers()
508 cmd->SCp.buffer = (struct scatterlist *) cmd->buffer; in initialize_SCp()
509 cmd->SCp.buffers_residual = cmd->use_sg - 1; in initialize_SCp()
510 cmd->SCp.ptr = (char *) cmd->SCp.buffer->address; in initialize_SCp()
511 cmd->SCp.this_residual = cmd->SCp.buffer->length; in initialize_SCp()
517 cmd->SCp.buffer = NULL; in initialize_SCp()
518 cmd->SCp.buffers_residual = 0; in initialize_SCp()
519 cmd->SCp.ptr = (char *) cmd->request_buffer; in initialize_SCp()
520 cmd->SCp.this_residual = cmd->request_bufflen; in initialize_SCp()
1218 p = hostdata->connected->SCp.phase; in NCR5380_dma_complete()
1242 data = (unsigned char **) &(hostdata->connected->SCp.ptr); in NCR5380_dma_complete()
1243 count = &(hostdata->connected->SCp.this_residual); in NCR5380_dma_complete()
2054 if (!cmd->SCp.this_residual && cmd->SCp.buffers_residual) { in NCR5380_information_transfer()
2055 ++cmd->SCp.buffer; in NCR5380_information_transfer()
2056 --cmd->SCp.buffers_residual; in NCR5380_information_transfer()
2057 cmd->SCp.this_residual = cmd->SCp.buffer->length; in NCR5380_information_transfer()
2058 cmd->SCp.ptr = cmd->SCp.buffer->address; in NCR5380_information_transfer()
2064 HOSTNO, cmd->SCp.this_residual, in NCR5380_information_transfer()
2065 cmd->SCp.buffers_residual); in NCR5380_information_transfer()
2087 cmd->SCp.phase = phase; in NCR5380_information_transfer()
2089 &len, (unsigned char **) &cmd->SCp.ptr)) { in NCR5380_information_transfer()
2114 cmd->SCp.this_residual -= transfersize - len; in NCR5380_information_transfer()
2120 (int *) &cmd->SCp.this_residual, (unsigned char **) in NCR5380_information_transfer()
2121 &cmd->SCp.ptr); in NCR5380_information_transfer()
2128 cmd->SCp.Message = tmp; in NCR5380_information_transfer()
2171 cmd->result = cmd->SCp.Status | (cmd->SCp.Message << 8); in NCR5380_information_transfer()
2193 if (status_byte(cmd->SCp.Status) == QUEUE_FULL) { in NCR5380_information_transfer()
2233 cmd->result = cmd->SCp.Status | (cmd->SCp.Message << 8); in NCR5380_information_transfer()
2234 else if (status_byte(cmd->SCp.Status) != GOOD) in NCR5380_information_transfer()
2239 (status_byte(cmd->SCp.Status) == CHECK_CONDITION)) { in NCR5380_information_transfer()
2483 cmd->SCp.Status = tmp; in NCR5380_information_transfer()