Lines Matching refs:SCp
843 cmd->SCp.buffer = (struct scatterlist *) cmd->buffer; in initialize_SCp()
844 cmd->SCp.buffers_residual = cmd->use_sg - 1; in initialize_SCp()
845 cmd->SCp.ptr = (char *) cmd->SCp.buffer->address; in initialize_SCp()
846 cmd->SCp.this_residual = cmd->SCp.buffer->length; in initialize_SCp()
848 cmd->SCp.buffer = NULL; in initialize_SCp()
849 cmd->SCp.buffers_residual = 0; in initialize_SCp()
850 cmd->SCp.ptr = (char *) cmd->request_buffer; in initialize_SCp()
851 cmd->SCp.this_residual = cmd->request_bufflen; in initialize_SCp()
1163 hostdata->connected->SCp.ptr += hostdata->connected->SCp.this_residual - residual; in AM53C974_intr()
1164 hostdata->connected->SCp.this_residual = residual; in AM53C974_intr()
1325 hostdata->connected->SCp.phase = PHASE_CMDOUT; in AM53C974_intr()
1403 cmd->lun, hostdata->disconnected_queue->SCp.this_residual)); in AM53C974_intr_disconnect()
1431 … instance->host_no, cmd->SCp.phase, cmd->target, cmd->SCp.this_residual, cmd->SCp.buffers_residual, in AM53C974_intr_disconnect()
1432 cmd->SCp.Message); in AM53C974_intr_disconnect()
1571 …(long) hostdata->connected, (long) hostdata->sel_cmd, cmd->SCp.this_residual, cmd->SCp.buffers_res… in AM53C974_information_transfer()
1572 cmd->SCp.phase = PHASE_DATAOUT; in AM53C974_information_transfer()
1577 …(long) hostdata->connected, (long) hostdata->sel_cmd, cmd->SCp.this_residual, cmd->SCp.buffers_res… in AM53C974_information_transfer()
1578 cmd->SCp.phase = PHASE_DATAIN; in AM53C974_information_transfer()
1586 if ((!cmd->SCp.this_residual) && cmd->SCp.buffers_residual) { in AM53C974_information_transfer()
1587 cmd->SCp.buffer++; in AM53C974_information_transfer()
1588 cmd->SCp.buffers_residual--; in AM53C974_information_transfer()
1589 cmd->SCp.ptr = (unsigned char *) cmd->SCp.buffer->address; in AM53C974_information_transfer()
1590 cmd->SCp.this_residual = cmd->SCp.buffer->length; in AM53C974_information_transfer()
1592 if (cmd->SCp.this_residual) { in AM53C974_information_transfer()
1596 (unsigned long) cmd->SCp.this_residual, in AM53C974_information_transfer()
1597 cmd->SCp.ptr); in AM53C974_information_transfer()
1607 if (cmd->SCp.phase == PHASE_DATAIN) in AM53C974_information_transfer()
1609 if ((cmd->SCp.phase == PHASE_DATAOUT) && (AM53C974_read_8(DMACMD) & DMACMD_START)) { in AM53C974_information_transfer()
1613 cmd->SCp.ptr += cmd->SCp.this_residual - residual; in AM53C974_information_transfer()
1614 cmd->SCp.this_residual = residual; in AM53C974_information_transfer()
1620 if (cmd->SCp.phase == PHASE_STATIN) { in AM53C974_information_transfer()
1622 cmd->SCp.Status = AM53C974_read_8(FFREG); in AM53C974_information_transfer()
1623 cmd->SCp.Message = AM53C974_read_8(FFREG); in AM53C974_information_transfer()
1625 cmd->SCp.Status, cmd->SCp.Message)); in AM53C974_information_transfer()
1626 ret = AM53C974_message(instance, cmd, cmd->SCp.Message); in AM53C974_information_transfer()
1631 cmd->SCp.Message = AM53C974_read_8(FFREG); in AM53C974_information_transfer()
1633 ret = AM53C974_message(instance, cmd, cmd->SCp.Message); in AM53C974_information_transfer()
1635 cmd->SCp.phase = PHASE_MSGIN; in AM53C974_information_transfer()
1666 cmd->SCp.phase = PHASE_MSGOUT; in AM53C974_information_transfer()
1677 cmd->SCp.phase = PHASE_CMDOUT; in AM53C974_information_transfer()
1683 if (cmd->SCp.phase == PHASE_DATAIN) in AM53C974_information_transfer()
1686 if (cmd->SCp.phase == PHASE_DATAOUT) { in AM53C974_information_transfer()
1693 cmd->SCp.ptr += cmd->SCp.this_residual - residual; in AM53C974_information_transfer()
1694 cmd->SCp.this_residual = residual; in AM53C974_information_transfer()
1701 cmd->SCp.phase = PHASE_STATIN; in AM53C974_information_transfer()
1778 cmd->result = cmd->SCp.Status | (cmd->SCp.Message << 8); in AM53C974_message()
1807 cmd->result = cmd->SCp.Status | (cmd->SCp.Message << 8); in AM53C974_message()
1808 else if (cmd->SCp.Status != GOOD) in AM53C974_message()
1817 if ((cmd->cmnd[0] != REQUEST_SENSE) && (cmd->SCp.Status == CHECK_CONDITION)) { in AM53C974_message()
1825 cmd->SCp.buffer = NULL; in AM53C974_message()
1826 cmd->SCp.buffers_residual = 0; in AM53C974_message()
1827 cmd->SCp.ptr = (char *) cmd->sense_buffer; in AM53C974_message()
1828 cmd->SCp.this_residual = sizeof(cmd->sense_buffer); in AM53C974_message()
2187 hostdata->connected->SCp.phase = PHASE_CMDOUT; in AM53C974_intr_reselect()
2240 hostdata->connected->SCp.ptr += hostdata->connected->SCp.this_residual - ctcreg; in AM53C974_dma_blast()
2241 hostdata->connected->SCp.this_residual = ctcreg; in AM53C974_dma_blast()