SCp 548 drivers/scsi/53c700.c struct scsi_cmnd *SCp, __u32 dsp) SCp 551 drivers/scsi/53c700.c if(SCp != NULL) { SCp 553 drivers/scsi/53c700.c (struct NCR_700_command_slot *)SCp->host_scribble; SCp 562 drivers/scsi/53c700.c NCR_700_unmap(struct NCR_700_Host_Parameters *hostdata, struct scsi_cmnd *SCp, SCp 565 drivers/scsi/53c700.c if(SCp->sc_data_direction != DMA_NONE && SCp 566 drivers/scsi/53c700.c SCp->sc_data_direction != DMA_BIDIRECTIONAL) SCp 567 drivers/scsi/53c700.c scsi_dma_unmap(SCp); SCp 572 drivers/scsi/53c700.c struct scsi_cmnd *SCp, int result) SCp 577 drivers/scsi/53c700.c if(SCp != NULL) { SCp 579 drivers/scsi/53c700.c (struct NCR_700_command_slot *)SCp->host_scribble; SCp 584 drivers/scsi/53c700.c char *cmnd = NCR_700_get_sense_cmnd(SCp->device); SCp 593 drivers/scsi/53c700.c SCp->cmd_len = cmnd[8]; SCp 595 drivers/scsi/53c700.c NCR_700_unmap(hostdata, SCp, slot); SCp 599 drivers/scsi/53c700.c if(NCR_700_get_depth(SCp->device) == 0 || SCp 600 drivers/scsi/53c700.c NCR_700_get_depth(SCp->device) > SCp->device->queue_depth) SCp 602 drivers/scsi/53c700.c NCR_700_get_depth(SCp->device)); SCp 604 drivers/scsi/53c700.c NCR_700_set_depth(SCp->device, NCR_700_get_depth(SCp->device) - 1); SCp 606 drivers/scsi/53c700.c SCp->host_scribble = NULL; SCp 607 drivers/scsi/53c700.c SCp->result = result; SCp 608 drivers/scsi/53c700.c SCp->scsi_done(SCp); SCp 766 drivers/scsi/53c700.c struct scsi_cmnd *SCp, __u32 dsp, __u32 dsps) SCp 771 drivers/scsi/53c700.c if(SCp != NULL) { SCp 772 drivers/scsi/53c700.c pun = SCp->device->id; SCp 773 drivers/scsi/53c700.c lun = SCp->device->lun; SCp 778 drivers/scsi/53c700.c if(SCp != NULL && NCR_700_is_flag_set(SCp->device, NCR_700_DEV_BEGIN_SYNC_NEGOTIATION)) { SCp 779 drivers/scsi/53c700.c struct scsi_target *starget = SCp->device->sdev_target; SCp 791 drivers/scsi/53c700.c if(NCR_700_is_flag_set(SCp->device, NCR_700_DEV_PRINT_SYNC_NEGOTIATION)) { SCp 793 drivers/scsi/53c700.c NCR_700_clear_flag(SCp->device, NCR_700_DEV_PRINT_SYNC_NEGOTIATION); SCp 796 drivers/scsi/53c700.c NCR_700_set_flag(SCp->device, NCR_700_DEV_NEGOTIATED_SYNC); SCp 797 drivers/scsi/53c700.c NCR_700_clear_flag(SCp->device, NCR_700_DEV_BEGIN_SYNC_NEGOTIATION); SCp 799 drivers/scsi/53c700.c NCR_700_writeb(NCR_700_get_SXFER(SCp->device), SCp 848 drivers/scsi/53c700.c struct scsi_cmnd *SCp, __u32 dsp, __u32 dsps) SCp 854 drivers/scsi/53c700.c if(SCp != NULL) { SCp 855 drivers/scsi/53c700.c pun = SCp->device->id; SCp 856 drivers/scsi/53c700.c lun = SCp->device->lun; SCp 869 drivers/scsi/53c700.c resume_offset = process_extended_message(host, hostdata, SCp, SCp 874 drivers/scsi/53c700.c if(SCp != NULL && NCR_700_is_flag_set(SCp->device, NCR_700_DEV_BEGIN_SYNC_NEGOTIATION)) { SCp 876 drivers/scsi/53c700.c spi_period(SCp->device->sdev_target) = SCp 877 drivers/scsi/53c700.c spi_offset(SCp->device->sdev_target) = 0; SCp 878 drivers/scsi/53c700.c NCR_700_set_flag(SCp->device, NCR_700_DEV_NEGOTIATED_SYNC); SCp 879 drivers/scsi/53c700.c NCR_700_clear_flag(SCp->device, NCR_700_DEV_BEGIN_SYNC_NEGOTIATION); SCp 880 drivers/scsi/53c700.c } else if(SCp != NULL && NCR_700_get_tag_neg_state(SCp->device) == NCR_700_DURING_TAG_NEGOTIATION) { SCp 882 drivers/scsi/53c700.c scmd_printk(KERN_WARNING, SCp, SCp 885 drivers/scsi/53c700.c NCR_700_set_tag_neg_state(SCp->device, NCR_700_FINISHED_TAG_NEGOTIATION); SCp 886 drivers/scsi/53c700.c hostdata->tag_negotiated &= ~(1<<scmd_id(SCp)); SCp 888 drivers/scsi/53c700.c SCp->device->tagged_supported = 0; SCp 889 drivers/scsi/53c700.c SCp->device->simple_tags = 0; SCp 890 drivers/scsi/53c700.c scsi_change_queue_depth(SCp->device, host->cmd_per_lun); SCp 936 drivers/scsi/53c700.c process_script_interrupt(__u32 dsps, __u32 dsp, struct scsi_cmnd *SCp, SCp 943 drivers/scsi/53c700.c if(SCp != NULL) { SCp 944 drivers/scsi/53c700.c pun = SCp->device->id; SCp 945 drivers/scsi/53c700.c lun = SCp->device->lun; SCp 952 drivers/scsi/53c700.c if (NCR_700_get_tag_neg_state(SCp->device) == NCR_700_DURING_TAG_NEGOTIATION) SCp 953 drivers/scsi/53c700.c NCR_700_set_tag_neg_state(SCp->device, SCp 960 drivers/scsi/53c700.c (struct NCR_700_command_slot *)SCp->host_scribble; SCp 964 drivers/scsi/53c700.c scmd_printk(KERN_ERR, SCp, SCp 966 drivers/scsi/53c700.c NCR_700_scsi_done(hostdata, SCp, hostdata->status[0]); SCp 969 drivers/scsi/53c700.c NCR_700_get_sense_cmnd(SCp->device); SCp 971 drivers/scsi/53c700.c scsi_print_command(SCp); SCp 973 drivers/scsi/53c700.c SCp, hostdata->status[0]); SCp 982 drivers/scsi/53c700.c NCR_700_unmap(hostdata, SCp, slot); SCp 1001 drivers/scsi/53c700.c cmnd[8] = SCp->cmd_len; SCp 1002 drivers/scsi/53c700.c SCp->cmd_len = 6; /* command length for SCp 1005 drivers/scsi/53c700.c slot->dma_handle = dma_map_single(hostdata->dev, SCp->sense_buffer, SCSI_SENSE_BUFFERSIZE, DMA_FROM_DEVICE); SCp 1012 drivers/scsi/53c700.c dma_cache_sync(hostdata->dev, SCp->sense_buffer, SCSI_SENSE_BUFFERSIZE, DMA_FROM_DEVICE); SCp 1042 drivers/scsi/53c700.c NCR_700_scsi_done(hostdata, SCp, hostdata->status[0]); SCp 1047 drivers/scsi/53c700.c scmd_printk(KERN_ERR, SCp, "UNEXPECTED PHASE %s (%s)\n", SCp 1050 drivers/scsi/53c700.c scmd_printk(KERN_ERR, SCp, " len = %d, cmd =", SCp 1051 drivers/scsi/53c700.c SCp->cmd_len); SCp 1052 drivers/scsi/53c700.c scsi_print_command(SCp); SCp 1073 drivers/scsi/53c700.c save_for_reselection(hostdata, SCp, dsp); SCp 1094 drivers/scsi/53c700.c struct scsi_cmnd *SCp; SCp 1096 drivers/scsi/53c700.c SCp = scsi_host_find_tag(SDp->host, hostdata->msgin[2]); SCp 1097 drivers/scsi/53c700.c if(unlikely(SCp == NULL)) { SCp 1103 drivers/scsi/53c700.c slot = (struct NCR_700_command_slot *)SCp->host_scribble; SCp 1109 drivers/scsi/53c700.c struct scsi_cmnd *SCp = p->current_cmnd; SCp 1111 drivers/scsi/53c700.c if(unlikely(SCp == NULL)) { SCp 1116 drivers/scsi/53c700.c slot = (struct NCR_700_command_slot *)SCp->host_scribble; SCp 1190 drivers/scsi/53c700.c SCp = hostdata->slots[i].cmnd; SCp 1193 drivers/scsi/53c700.c if(SCp != NULL) { SCp 1194 drivers/scsi/53c700.c slot = (struct NCR_700_command_slot *)SCp->host_scribble; SCp 1230 drivers/scsi/53c700.c resume_offset = process_message(host, hostdata, SCp, SCp 1237 drivers/scsi/53c700.c if(SCp != NULL) { SCp 1240 drivers/scsi/53c700.c scsi_print_command(SCp); SCp 1241 drivers/scsi/53c700.c scsi_for_each_sg(SCp, sg, scsi_sg_count(SCp) + 1, i) { SCp 1242 drivers/scsi/53c700.c printk(KERN_INFO " SG[%d].length = %d, move_insn=%08x, addr %08x\n", i, sg->length, ((struct NCR_700_command_slot *)SCp->host_scribble)->SG[i].ins, ((struct NCR_700_command_slot *)SCp->host_scribble)->SG[i].pAddr); SCp 1273 drivers/scsi/53c700.c struct scsi_cmnd *SCp = hostdata->cmd; SCp 1296 drivers/scsi/53c700.c if(hostdata->state == NCR_700_HOST_BUSY && SCp != NULL) { SCp 1298 drivers/scsi/53c700.c (struct NCR_700_command_slot *)SCp->host_scribble; SCp 1304 drivers/scsi/53c700.c save_for_reselection(hostdata, SCp, Ent_Disconnect2 + hostdata->pScript); SCp 1308 drivers/scsi/53c700.c save_for_reselection(hostdata, SCp, Ent_Disconnect4 + hostdata->pScript); SCp 1312 drivers/scsi/53c700.c save_for_reselection(hostdata, SCp, Ent_Disconnect6 + hostdata->pScript); SCp 1316 drivers/scsi/53c700.c save_for_reselection(hostdata, SCp, Ent_Disconnect8 + hostdata->pScript); SCp 1320 drivers/scsi/53c700.c process_script_interrupt(A_GOOD_STATUS_AFTER_STATUS, dsp, SCp, host, hostdata); SCp 1376 drivers/scsi/53c700.c NCR_700_start_command(struct scsi_cmnd *SCp) SCp 1379 drivers/scsi/53c700.c (struct NCR_700_command_slot *)SCp->host_scribble; SCp 1381 drivers/scsi/53c700.c (struct NCR_700_Host_Parameters *)SCp->device->host->hostdata[0]; SCp 1383 drivers/scsi/53c700.c u8 lun = SCp->device->lun; SCp 1392 drivers/scsi/53c700.c SCp->device->host->host_no, slot->cmnd, slot)); SCp 1396 drivers/scsi/53c700.c hostdata->cmd = SCp; SCp 1401 drivers/scsi/53c700.c hostdata->msgout[0] = NCR_700_identify((SCp->cmnd[0] != REQUEST_SENSE && SCp 1407 drivers/scsi/53c700.c if(SCp->cmnd[0] == INQUIRY || SCp->cmnd[0] == REQUEST_SENSE || SCp 1409 drivers/scsi/53c700.c NCR_700_clear_flag(SCp->device, NCR_700_DEV_NEGOTIATED_SYNC); SCp 1416 drivers/scsi/53c700.c if((hostdata->tag_negotiated & (1<<scmd_id(SCp))) SCp 1417 drivers/scsi/53c700.c && (slot->tag != SCSI_NO_TAG && SCp->cmnd[0] != REQUEST_SENSE && SCp 1419 drivers/scsi/53c700.c count += spi_populate_tag_msg(&hostdata->msgout[count], SCp); SCp 1423 drivers/scsi/53c700.c NCR_700_is_flag_clear(SCp->device, NCR_700_DEV_NEGOTIATED_SYNC)) { SCp 1425 drivers/scsi/53c700.c spi_period(SCp->device->sdev_target), SCp 1426 drivers/scsi/53c700.c spi_offset(SCp->device->sdev_target)); SCp 1427 drivers/scsi/53c700.c NCR_700_set_flag(SCp->device, NCR_700_DEV_BEGIN_SYNC_NEGOTIATION); SCp 1434 drivers/scsi/53c700.c Device_ID, 1<<scmd_id(SCp)); SCp 1439 drivers/scsi/53c700.c SCp->cmd_len); SCp 1444 drivers/scsi/53c700.c NCR_700_clear_fifo(SCp->device->host); SCp 1452 drivers/scsi/53c700.c dma_cache_sync(hostdata->dev, SCp->cmnd, SCp->cmd_len, DMA_TO_DEVICE); SCp 1456 drivers/scsi/53c700.c NCR_700_writeb(NCR_700_get_SXFER(SCp->device), SCp 1457 drivers/scsi/53c700.c SCp->device->host, SXFER_REG); SCp 1458 drivers/scsi/53c700.c NCR_700_writel(slot->temp, SCp->device->host, TEMP_REG); SCp 1459 drivers/scsi/53c700.c NCR_700_writel(slot->resume_offset, SCp->device->host, DSP_REG); SCp 1487 drivers/scsi/53c700.c struct scsi_cmnd *SCp = hostdata->cmd; SCp 1492 drivers/scsi/53c700.c SCp = hostdata->cmd; SCp 1514 drivers/scsi/53c700.c if(SCp != NULL) { SCp 1515 drivers/scsi/53c700.c pun = SCp->device->id; SCp 1516 drivers/scsi/53c700.c lun = SCp->device->lun; SCp 1526 drivers/scsi/53c700.c host->host_no, SCp, SCp == NULL ? NULL : SCp->host_scribble, dsp, dsp - hostdata->pScript); SCp 1536 drivers/scsi/53c700.c struct scsi_cmnd *SCp; SCp 1543 drivers/scsi/53c700.c SCp = slot->cmnd; SCp 1545 drivers/scsi/53c700.c slot, SCp); SCp 1547 drivers/scsi/53c700.c SCp->host_scribble = NULL; SCp 1548 drivers/scsi/53c700.c NCR_700_set_depth(SCp->device, 0); SCp 1555 drivers/scsi/53c700.c SCp->result = DID_RESET << 16; SCp 1556 drivers/scsi/53c700.c SCp->scsi_done(SCp); SCp 1570 drivers/scsi/53c700.c NCR_700_scsi_done(hostdata, SCp, DID_NO_CONNECT<<16); SCp 1572 drivers/scsi/53c700.c struct NCR_700_command_slot *slot = (SCp == NULL) ? NULL : SCp 1573 drivers/scsi/53c700.c (struct NCR_700_command_slot *)SCp->host_scribble; SCp 1596 drivers/scsi/53c700.c scsi_print_command(SCp); SCp 1645 drivers/scsi/53c700.c NCR_700_scsi_done(hostdata, SCp, DID_ERROR<<16); SCp 1649 drivers/scsi/53c700.c NCR_700_scsi_done(hostdata, SCp, DID_ERROR<<16); SCp 1653 drivers/scsi/53c700.c resume_offset = process_script_interrupt(dsps, dsp, SCp, host, hostdata); SCp 1659 drivers/scsi/53c700.c NCR_700_scsi_done(hostdata, SCp, DID_ERROR<<16); SCp 1663 drivers/scsi/53c700.c NCR_700_scsi_done(hostdata, SCp, DID_ERROR<<16); SCp 1737 drivers/scsi/53c700.c NCR_700_queuecommand_lck(struct scsi_cmnd *SCp, void (*done)(struct scsi_cmnd *)) SCp 1740 drivers/scsi/53c700.c (struct NCR_700_Host_Parameters *)SCp->device->host->hostdata[0]; SCp 1748 drivers/scsi/53c700.c printk(KERN_WARNING "scsi%d: Command depth has gone over queue depth\n", SCp->device->host->host_no); SCp 1757 drivers/scsi/53c700.c if(NCR_700_get_depth(SCp->device) != 0 SCp 1758 drivers/scsi/53c700.c && (!(hostdata->tag_negotiated & (1<<scmd_id(SCp))) SCp 1759 drivers/scsi/53c700.c || !(SCp->flags & SCMD_TAGGED))) { SCp 1760 drivers/scsi/53c700.c CDEBUG(KERN_ERR, SCp, "has non zero depth %d\n", SCp 1761 drivers/scsi/53c700.c NCR_700_get_depth(SCp->device)); SCp 1764 drivers/scsi/53c700.c if(NCR_700_get_depth(SCp->device) >= SCp->device->queue_depth) { SCp 1765 drivers/scsi/53c700.c CDEBUG(KERN_ERR, SCp, "has max tag depth %d\n", SCp 1766 drivers/scsi/53c700.c NCR_700_get_depth(SCp->device)); SCp 1769 drivers/scsi/53c700.c NCR_700_set_depth(SCp->device, NCR_700_get_depth(SCp->device) + 1); SCp 1776 drivers/scsi/53c700.c slot->cmnd = SCp; SCp 1778 drivers/scsi/53c700.c SCp->scsi_done = done; SCp 1779 drivers/scsi/53c700.c SCp->host_scribble = (unsigned char *)slot; SCp 1780 drivers/scsi/53c700.c SCp->SCp.ptr = NULL; SCp 1781 drivers/scsi/53c700.c SCp->SCp.buffer = NULL; SCp 1784 drivers/scsi/53c700.c printk("53c700: scsi%d, command ", SCp->device->host->host_no); SCp 1785 drivers/scsi/53c700.c scsi_print_command(SCp); SCp 1787 drivers/scsi/53c700.c if ((SCp->flags & SCMD_TAGGED) SCp 1788 drivers/scsi/53c700.c && (hostdata->tag_negotiated &(1<<scmd_id(SCp))) == 0 SCp 1789 drivers/scsi/53c700.c && NCR_700_get_tag_neg_state(SCp->device) == NCR_700_START_TAG_NEGOTIATION) { SCp 1790 drivers/scsi/53c700.c scmd_printk(KERN_ERR, SCp, "Enabling Tag Command Queuing\n"); SCp 1791 drivers/scsi/53c700.c hostdata->tag_negotiated |= (1<<scmd_id(SCp)); SCp 1792 drivers/scsi/53c700.c NCR_700_set_tag_neg_state(SCp->device, NCR_700_DURING_TAG_NEGOTIATION); SCp 1801 drivers/scsi/53c700.c if (!(SCp->flags & SCMD_TAGGED) SCp 1802 drivers/scsi/53c700.c && (hostdata->tag_negotiated &(1<<scmd_id(SCp)))) { SCp 1803 drivers/scsi/53c700.c scmd_printk(KERN_INFO, SCp, "Disabling Tag Command Queuing\n"); SCp 1804 drivers/scsi/53c700.c hostdata->tag_negotiated &= ~(1<<scmd_id(SCp)); SCp 1807 drivers/scsi/53c700.c if ((hostdata->tag_negotiated & (1<<scmd_id(SCp))) && SCp 1808 drivers/scsi/53c700.c SCp->device->simple_tags) { SCp 1809 drivers/scsi/53c700.c slot->tag = SCp->request->tag; SCp 1810 drivers/scsi/53c700.c CDEBUG(KERN_DEBUG, SCp, "sending out tag %d, slot %p\n", SCp 1813 drivers/scsi/53c700.c struct NCR_700_Device_Parameters *p = SCp->device->hostdata; SCp 1817 drivers/scsi/53c700.c p->current_cmnd = SCp; SCp 1821 drivers/scsi/53c700.c if(!scsi_sg_count(SCp) && !scsi_bufflen(SCp) && SCp 1822 drivers/scsi/53c700.c SCp->sc_data_direction != DMA_NONE) { SCp 1825 drivers/scsi/53c700.c scsi_print_command(SCp); SCp 1826 drivers/scsi/53c700.c printk("Has wrong data direction %d\n", SCp->sc_data_direction); SCp 1828 drivers/scsi/53c700.c SCp->sc_data_direction = DMA_NONE; SCp 1831 drivers/scsi/53c700.c switch (SCp->cmnd[0]) { SCp 1834 drivers/scsi/53c700.c SCp->cmnd[6] = 0; SCp 1838 drivers/scsi/53c700.c switch(SCp->sc_data_direction) { SCp 1842 drivers/scsi/53c700.c scsi_print_command(SCp); SCp 1859 drivers/scsi/53c700.c direction = SCp->sc_data_direction; SCp 1867 drivers/scsi/53c700.c sg_count = scsi_dma_map(SCp); SCp 1870 drivers/scsi/53c700.c scsi_for_each_sg(SCp, sg, sg_count, i) { SCp 1887 drivers/scsi/53c700.c slot->pCmd = dma_map_single(hostdata->dev, SCp->cmnd, SCp 1889 drivers/scsi/53c700.c NCR_700_start_command(SCp); SCp 1896 drivers/scsi/53c700.c NCR_700_abort(struct scsi_cmnd * SCp) SCp 1900 drivers/scsi/53c700.c scmd_printk(KERN_INFO, SCp, "abort command\n"); SCp 1902 drivers/scsi/53c700.c slot = (struct NCR_700_command_slot *)SCp->host_scribble; SCp 1907 drivers/scsi/53c700.c if(SCp->cmnd[0] == TEST_UNIT_READY) { SCp 1918 drivers/scsi/53c700.c NCR_700_internal_bus_reset(SCp->device->host); SCp 1926 drivers/scsi/53c700.c NCR_700_host_reset(struct scsi_cmnd * SCp) SCp 1930 drivers/scsi/53c700.c (struct NCR_700_Host_Parameters *)SCp->device->host->hostdata[0]; SCp 1932 drivers/scsi/53c700.c scmd_printk(KERN_INFO, SCp, SCp 1933 drivers/scsi/53c700.c "New error handler wants HOST reset, cmd %p\n\t", SCp); SCp 1934 drivers/scsi/53c700.c scsi_print_command(SCp); SCp 1939 drivers/scsi/53c700.c spin_lock_irq(SCp->device->host->host_lock); SCp 1941 drivers/scsi/53c700.c spin_unlock_irq(SCp->device->host->host_lock); SCp 1943 drivers/scsi/53c700.c spin_lock_irq(SCp->device->host->host_lock); SCp 1947 drivers/scsi/53c700.c NCR_700_internal_bus_reset(SCp->device->host); SCp 1948 drivers/scsi/53c700.c NCR_700_chip_reset(SCp->device->host); SCp 1950 drivers/scsi/53c700.c spin_unlock_irq(SCp->device->host->host_lock); SCp 1952 drivers/scsi/53c700.c spin_lock_irq(SCp->device->host->host_lock); SCp 1957 drivers/scsi/53c700.c spi_schedule_dv_device(SCp->device); SCp 1959 drivers/scsi/53c700.c spin_unlock_irq(SCp->device->host->host_lock); SCp 154 drivers/scsi/NCR5380.c cmd->SCp.buffer = scsi_sglist(cmd); SCp 155 drivers/scsi/NCR5380.c cmd->SCp.ptr = sg_virt(cmd->SCp.buffer); SCp 156 drivers/scsi/NCR5380.c cmd->SCp.this_residual = cmd->SCp.buffer->length; SCp 158 drivers/scsi/NCR5380.c cmd->SCp.buffer = NULL; SCp 159 drivers/scsi/NCR5380.c cmd->SCp.ptr = NULL; SCp 160 drivers/scsi/NCR5380.c cmd->SCp.this_residual = 0; SCp 163 drivers/scsi/NCR5380.c cmd->SCp.Status = 0; SCp 164 drivers/scsi/NCR5380.c cmd->SCp.Message = 0; SCp 169 drivers/scsi/NCR5380.c struct scatterlist *s = cmd->SCp.buffer; SCp 171 drivers/scsi/NCR5380.c if (!cmd->SCp.this_residual && s && !sg_is_last(s)) { SCp 172 drivers/scsi/NCR5380.c cmd->SCp.buffer = sg_next(s); SCp 173 drivers/scsi/NCR5380.c cmd->SCp.ptr = sg_virt(cmd->SCp.buffer); SCp 174 drivers/scsi/NCR5380.c cmd->SCp.this_residual = cmd->SCp.buffer->length; SCp 750 drivers/scsi/NCR5380.c p = hostdata->connected->SCp.phase; SCp 787 drivers/scsi/NCR5380.c data = (unsigned char **)&hostdata->connected->SCp.ptr; SCp 788 drivers/scsi/NCR5380.c count = &hostdata->connected->SCp.this_residual; SCp 1479 drivers/scsi/NCR5380.c hostdata->connected->SCp.phase = p; SCp 1693 drivers/scsi/NCR5380.c cmd->SCp.ptr, count); SCp 1696 drivers/scsi/NCR5380.c cmd->SCp.ptr, count); SCp 1739 drivers/scsi/NCR5380.c cmd->SCp.this_residual, SCp 1740 drivers/scsi/NCR5380.c sg_nents(cmd->SCp.buffer)); SCp 1759 drivers/scsi/NCR5380.c &len, (unsigned char **)&cmd->SCp.ptr)) { SCp 1775 drivers/scsi/NCR5380.c transfersize = min(cmd->SCp.this_residual, SCp 1779 drivers/scsi/NCR5380.c (unsigned char **)&cmd->SCp.ptr); SCp 1780 drivers/scsi/NCR5380.c cmd->SCp.this_residual -= transfersize - len; SCp 1791 drivers/scsi/NCR5380.c cmd->SCp.Message = tmp; SCp 1807 drivers/scsi/NCR5380.c cmd->result |= cmd->SCp.Status; SCp 1808 drivers/scsi/NCR5380.c cmd->result |= cmd->SCp.Message << 8; SCp 1813 drivers/scsi/NCR5380.c if (cmd->SCp.Status == SAM_STAT_CHECK_CONDITION || SCp 1814 drivers/scsi/NCR5380.c cmd->SCp.Status == SAM_STAT_COMMAND_TERMINATED) { SCp 1980 drivers/scsi/NCR5380.c cmd->SCp.Status = tmp; SCp 2140 drivers/scsi/NCR5380.c tmp->SCp.ptr, count); SCp 2143 drivers/scsi/NCR5380.c tmp->SCp.ptr, count); SCp 49 drivers/scsi/a2091.c unsigned long addr = virt_to_bus(cmd->SCp.ptr); SCp 53 drivers/scsi/a2091.c wh->dma_bounce_len = (cmd->SCp.this_residual + 511) & ~0x1ff; SCp 77 drivers/scsi/a2091.c memcpy(wh->dma_bounce_buffer, cmd->SCp.ptr, SCp 78 drivers/scsi/a2091.c cmd->SCp.this_residual); SCp 96 drivers/scsi/a2091.c cache_clear(addr, cmd->SCp.this_residual); SCp 99 drivers/scsi/a2091.c cache_push(addr, cmd->SCp.this_residual); SCp 143 drivers/scsi/a2091.c memcpy(SCpnt->SCp.ptr, wh->dma_bounce_buffer, SCp 144 drivers/scsi/a2091.c SCpnt->SCp.this_residual); SCp 53 drivers/scsi/a3000.c unsigned long addr = virt_to_bus(cmd->SCp.ptr); SCp 62 drivers/scsi/a3000.c wh->dma_bounce_len = (cmd->SCp.this_residual + 511) & ~0x1ff; SCp 74 drivers/scsi/a3000.c memcpy(wh->dma_bounce_buffer, cmd->SCp.ptr, SCp 75 drivers/scsi/a3000.c cmd->SCp.this_residual); SCp 95 drivers/scsi/a3000.c cache_clear(addr, cmd->SCp.this_residual); SCp 98 drivers/scsi/a3000.c cache_push(addr, cmd->SCp.this_residual); SCp 153 drivers/scsi/a3000.c memcpy(SCpnt->SCp.ptr, wh->dma_bounce_buffer, SCp 154 drivers/scsi/a3000.c SCpnt->SCp.this_residual); SCp 341 drivers/scsi/aacraid/aachba.c scsicmd->SCp.phase = AAC_OWNER_MIDLEVEL; SCp 583 drivers/scsi/aacraid/aachba.c scsicmd->SCp.phase = AAC_OWNER_FIRMWARE; SCp 632 drivers/scsi/aacraid/aachba.c scsicmd->SCp.Status = 0; SCp 670 drivers/scsi/aacraid/aachba.c scsicmd->SCp.Status = le32_to_cpu(dresp->count); SCp 674 drivers/scsi/aacraid/aachba.c callback = (int (*)(struct scsi_cmnd *))(scsicmd->SCp.ptr); SCp 675 drivers/scsi/aacraid/aachba.c scsicmd->SCp.ptr = NULL; SCp 713 drivers/scsi/aacraid/aachba.c scsicmd->SCp.phase = AAC_OWNER_FIRMWARE; SCp 752 drivers/scsi/aacraid/aachba.c scsicmd->SCp.ptr = (char *)callback; SCp 753 drivers/scsi/aacraid/aachba.c scsicmd->SCp.phase = AAC_OWNER_FIRMWARE; SCp 769 drivers/scsi/aacraid/aachba.c scsicmd->SCp.ptr = NULL; SCp 824 drivers/scsi/aacraid/aachba.c status = scsicmd->SCp.Status; SCp 1117 drivers/scsi/aacraid/aachba.c scsicmd->SCp.phase = AAC_OWNER_FIRMWARE; SCp 2487 drivers/scsi/aacraid/aachba.c scsicmd->SCp.phase = AAC_OWNER_FIRMWARE; SCp 2579 drivers/scsi/aacraid/aachba.c scsicmd->SCp.phase = AAC_OWNER_FIRMWARE; SCp 2661 drivers/scsi/aacraid/aachba.c if (cmd->SCp.phase == AAC_OWNER_FIRMWARE) { SCp 2736 drivers/scsi/aacraid/aachba.c scsicmd->SCp.phase = AAC_OWNER_FIRMWARE; SCp 2813 drivers/scsi/aacraid/aachba.c scsicmd->SCp.phase = AAC_OWNER_FIRMWARE; SCp 3813 drivers/scsi/aacraid/aachba.c scsicmd->SCp.sent_command = 1; SCp 3845 drivers/scsi/aacraid/aachba.c scsicmd->SCp.phase = AAC_OWNER_FIRMWARE; SCp 3890 drivers/scsi/aacraid/aachba.c scsicmd->SCp.phase = AAC_OWNER_FIRMWARE; SCp 288 drivers/scsi/aacraid/comminit.c if (command->SCp.phase == AAC_OWNER_FIRMWARE) { SCp 1606 drivers/scsi/aacraid/commsup.c if (command->SCp.phase == AAC_OWNER_FIRMWARE) { SCp 1607 drivers/scsi/aacraid/commsup.c command->SCp.buffer = (struct scatterlist *)command_list; SCp 1613 drivers/scsi/aacraid/commsup.c command_list = (struct scsi_cmnd *)command->SCp.buffer; SCp 1614 drivers/scsi/aacraid/commsup.c command->SCp.buffer = NULL; SCp 1618 drivers/scsi/aacraid/commsup.c command->SCp.phase = AAC_OWNER_ERROR_HANDLER; SCp 244 drivers/scsi/aacraid/linit.c cmd->SCp.phase = AAC_OWNER_LOWLEVEL; SCp 635 drivers/scsi/aacraid/linit.c switch (scmnd->SCp.phase) { SCp 721 drivers/scsi/aacraid/linit.c cmd->SCp.sent_command = 0; SCp 729 drivers/scsi/aacraid/linit.c if (cmd->SCp.sent_command) { SCp 769 drivers/scsi/aacraid/linit.c cmd->SCp.phase = SCp 796 drivers/scsi/aacraid/linit.c command->SCp.phase = SCp 1031 drivers/scsi/aacraid/linit.c cmd->SCp.phase = AAC_OWNER_ERROR_HANDLER; SCp 1964 drivers/scsi/aacraid/linit.c if (cmd && (cmd->SCp.phase == AAC_OWNER_FIRMWARE)) { SCp 6760 drivers/scsi/advansys.c dma_unmap_single(boardp->dev, scp->SCp.dma_handle, SCp 7498 drivers/scsi/advansys.c scp->SCp.dma_handle = dma_map_single(board->dev, scp->sense_buffer, SCp 7501 drivers/scsi/advansys.c if (dma_mapping_error(board->dev, scp->SCp.dma_handle)) { SCp 7505 drivers/scsi/advansys.c return cpu_to_le32(scp->SCp.dma_handle); SCp 683 drivers/scsi/aha152x.c struct scsi_cmnd *SCp) SCp 688 drivers/scsi/aha152x.c ptr && SCp!=ptr; SCp 878 drivers/scsi/aha152x.c CURRENT_SC->SCp.phase |= 1 << 16; SCp 880 drivers/scsi/aha152x.c if(CURRENT_SC->SCp.phase & selecting) { SCp 885 drivers/scsi/aha152x.c SETPORT(SIMODE0, (CURRENT_SC->SCp.phase & spiordy) ? ENSPIORDY : 0); SCp 914 drivers/scsi/aha152x.c SCpnt->SCp.phase = not_issued | phase; SCp 915 drivers/scsi/aha152x.c SCpnt->SCp.Status = 0x1; /* Ilegal status by SCSI standard */ SCp 916 drivers/scsi/aha152x.c SCpnt->SCp.Message = 0; SCp 917 drivers/scsi/aha152x.c SCpnt->SCp.have_data_in = 0; SCp 918 drivers/scsi/aha152x.c SCpnt->SCp.sent_command = 0; SCp 920 drivers/scsi/aha152x.c if(SCpnt->SCp.phase & (resetting|check_condition)) { SCp 943 drivers/scsi/aha152x.c SCpnt->SCp.ptr = NULL; SCp 944 drivers/scsi/aha152x.c SCpnt->SCp.this_residual = 0; SCp 946 drivers/scsi/aha152x.c SCpnt->SCp.buffer = NULL; SCp 949 drivers/scsi/aha152x.c SCpnt->SCp.buffer = scsi_sglist(SCpnt); SCp 950 drivers/scsi/aha152x.c SCpnt->SCp.ptr = SG_ADDRESS(SCpnt->SCp.buffer); SCp 951 drivers/scsi/aha152x.c SCpnt->SCp.this_residual = SCpnt->SCp.buffer->length; SCp 1080 drivers/scsi/aha152x.c if(SCpnt->SCp.phase & resetted) { SCp 1375 drivers/scsi/aha152x.c CURRENT_SC->SCp.phase &= ~syncneg; SCp 1377 drivers/scsi/aha152x.c if(CURRENT_SC->SCp.phase & completed) { SCp 1379 drivers/scsi/aha152x.c done(shpnt, (CURRENT_SC->SCp.Status & 0xff) | ((CURRENT_SC->SCp.Message & 0xff) << 8) | (DID_OK << 16)); SCp 1381 drivers/scsi/aha152x.c } else if(CURRENT_SC->SCp.phase & aborted) { SCp 1382 drivers/scsi/aha152x.c done(shpnt, (CURRENT_SC->SCp.Status & 0xff) | ((CURRENT_SC->SCp.Message & 0xff) << 8) | (DID_ABORT << 16)); SCp 1384 drivers/scsi/aha152x.c } else if(CURRENT_SC->SCp.phase & resetted) { SCp 1385 drivers/scsi/aha152x.c done(shpnt, (CURRENT_SC->SCp.Status & 0xff) | ((CURRENT_SC->SCp.Message & 0xff) << 8) | (DID_RESET << 16)); SCp 1387 drivers/scsi/aha152x.c } else if(CURRENT_SC->SCp.phase & disconnected) { SCp 1393 drivers/scsi/aha152x.c CURRENT_SC->SCp.phase |= 1 << 16; SCp 1412 drivers/scsi/aha152x.c if(DONE_SC->SCp.phase & check_condition) { SCp 1418 drivers/scsi/aha152x.c cmd->SCp.Status = SAM_STAT_CHECK_CONDITION; SCp 1423 drivers/scsi/aha152x.c } else if(DONE_SC->SCp.Status==SAM_STAT_CHECK_CONDITION) { SCp 1428 drivers/scsi/aha152x.c if(!(DONE_SC->SCp.phase & not_issued)) { SCp 1479 drivers/scsi/aha152x.c CURRENT_SC->SCp.phase |= selecting; SCp 1511 drivers/scsi/aha152x.c CURRENT_SC->SCp.phase &= ~(selecting|not_issued); SCp 1526 drivers/scsi/aha152x.c if (CURRENT_SC->SCp.phase & aborting) { SCp 1528 drivers/scsi/aha152x.c } else if (CURRENT_SC->SCp.phase & resetting) { SCp 1531 drivers/scsi/aha152x.c CURRENT_SC->SCp.phase |= syncneg; SCp 1552 drivers/scsi/aha152x.c CURRENT_SC->SCp.phase &= ~selecting; SCp 1554 drivers/scsi/aha152x.c if (CURRENT_SC->SCp.phase & aborted) SCp 1582 drivers/scsi/aha152x.c if(!(CURRENT_SC->SCp.phase & not_issued)) SCp 1676 drivers/scsi/aha152x.c CURRENT_SC->SCp.Message = MSGI(0); SCp 1677 drivers/scsi/aha152x.c CURRENT_SC->SCp.phase &= ~disconnected; SCp 1685 drivers/scsi/aha152x.c CURRENT_SC->SCp.Message = MSGI(0); SCp 1693 drivers/scsi/aha152x.c CURRENT_SC->SCp.phase |= disconnected; SCp 1697 drivers/scsi/aha152x.c CURRENT_SC->SCp.phase |= completed; SCp 1828 drivers/scsi/aha152x.c if((CURRENT_SC->SCp.phase & syncneg) && SYNCNEG==2 && SYNCRATE==0) { SCp 1856 drivers/scsi/aha152x.c CURRENT_SC->SCp.phase |= identified; SCp 1859 drivers/scsi/aha152x.c CURRENT_SC->SCp.phase |= aborted; SCp 1862 drivers/scsi/aha152x.c CURRENT_SC->SCp.phase |= resetted; SCp 1891 drivers/scsi/aha152x.c if (CURRENT_SC->SCp.sent_command) { SCp 1922 drivers/scsi/aha152x.c CURRENT_SC->SCp.sent_command++; SCp 1934 drivers/scsi/aha152x.c CURRENT_SC->SCp.Status = GETPORT(SCSIDAT); SCp 1995 drivers/scsi/aha152x.c if(CURRENT_SC->SCp.this_residual>0) { SCp 1996 drivers/scsi/aha152x.c while(fifodata>0 && CURRENT_SC->SCp.this_residual>0) { SCp 1997 drivers/scsi/aha152x.c data_count = fifodata > CURRENT_SC->SCp.this_residual ? SCp 1998 drivers/scsi/aha152x.c CURRENT_SC->SCp.this_residual : SCp 2004 drivers/scsi/aha152x.c *CURRENT_SC->SCp.ptr++ = GETPORT(DATAPORT); SCp 2005 drivers/scsi/aha152x.c CURRENT_SC->SCp.this_residual--; SCp 2012 drivers/scsi/aha152x.c insw(DATAPORT, CURRENT_SC->SCp.ptr, data_count); SCp 2013 drivers/scsi/aha152x.c CURRENT_SC->SCp.ptr += 2 * data_count; SCp 2014 drivers/scsi/aha152x.c CURRENT_SC->SCp.this_residual -= 2 * data_count; SCp 2018 drivers/scsi/aha152x.c if (CURRENT_SC->SCp.this_residual == 0 && SCp 2019 drivers/scsi/aha152x.c !sg_is_last(CURRENT_SC->SCp.buffer)) { SCp 2021 drivers/scsi/aha152x.c CURRENT_SC->SCp.buffer = sg_next(CURRENT_SC->SCp.buffer); SCp 2022 drivers/scsi/aha152x.c CURRENT_SC->SCp.ptr = SG_ADDRESS(CURRENT_SC->SCp.buffer); SCp 2023 drivers/scsi/aha152x.c CURRENT_SC->SCp.this_residual = CURRENT_SC->SCp.buffer->length; SCp 2096 drivers/scsi/aha152x.c while(TESTLO(DMASTAT, INTSTAT) && CURRENT_SC->SCp.this_residual>0) { SCp 2098 drivers/scsi/aha152x.c if(data_count > CURRENT_SC->SCp.this_residual) SCp 2099 drivers/scsi/aha152x.c data_count=CURRENT_SC->SCp.this_residual; SCp 2110 drivers/scsi/aha152x.c SETPORT(DATAPORT, *CURRENT_SC->SCp.ptr++); SCp 2111 drivers/scsi/aha152x.c CURRENT_SC->SCp.this_residual--; SCp 2118 drivers/scsi/aha152x.c outsw(DATAPORT, CURRENT_SC->SCp.ptr, data_count); SCp 2119 drivers/scsi/aha152x.c CURRENT_SC->SCp.ptr += 2 * data_count; SCp 2120 drivers/scsi/aha152x.c CURRENT_SC->SCp.this_residual -= 2 * data_count; SCp 2124 drivers/scsi/aha152x.c if (CURRENT_SC->SCp.this_residual == 0 && SCp 2125 drivers/scsi/aha152x.c !sg_is_last(CURRENT_SC->SCp.buffer)) { SCp 2127 drivers/scsi/aha152x.c CURRENT_SC->SCp.buffer = sg_next(CURRENT_SC->SCp.buffer); SCp 2128 drivers/scsi/aha152x.c CURRENT_SC->SCp.ptr = SG_ADDRESS(CURRENT_SC->SCp.buffer); SCp 2129 drivers/scsi/aha152x.c CURRENT_SC->SCp.this_residual = CURRENT_SC->SCp.buffer->length; SCp 2162 drivers/scsi/aha152x.c CURRENT_SC->SCp.buffer = sg; SCp 2163 drivers/scsi/aha152x.c CURRENT_SC->SCp.ptr = SG_ADDRESS(CURRENT_SC->SCp.buffer) + done; SCp 2164 drivers/scsi/aha152x.c CURRENT_SC->SCp.this_residual = CURRENT_SC->SCp.buffer->length - SCp 2193 drivers/scsi/aha152x.c } else if(stat0 & SELDO && CURRENT_SC && (CURRENT_SC->SCp.phase & selecting)) { SCp 2325 drivers/scsi/aha152x.c CURRENT_SC->SCp.phase &= ~spiordy; SCp 2347 drivers/scsi/aha152x.c CURRENT_SC->SCp.phase |= spiordy; SCp 2442 drivers/scsi/aha152x.c (ptr->SCp.phase & not_issued) ? "not issued|" : "", SCp 2443 drivers/scsi/aha152x.c (ptr->SCp.phase & selecting) ? "selecting|" : "", SCp 2444 drivers/scsi/aha152x.c (ptr->SCp.phase & identified) ? "identified|" : "", SCp 2445 drivers/scsi/aha152x.c (ptr->SCp.phase & disconnected) ? "disconnected|" : "", SCp 2446 drivers/scsi/aha152x.c (ptr->SCp.phase & completed) ? "completed|" : "", SCp 2447 drivers/scsi/aha152x.c (ptr->SCp.phase & spiordy) ? "spiordy|" : "", SCp 2448 drivers/scsi/aha152x.c (ptr->SCp.phase & syncneg) ? "syncneg|" : "", SCp 2449 drivers/scsi/aha152x.c (ptr->SCp.phase & aborted) ? "aborted|" : "", SCp 2450 drivers/scsi/aha152x.c (ptr->SCp.phase & resetted) ? "resetted|" : "", SCp 2492 drivers/scsi/aha152x.c scsi_get_resid(ptr), ptr->SCp.this_residual, SCp 2493 drivers/scsi/aha152x.c sg_nents(ptr->SCp.buffer) - 1); SCp 2495 drivers/scsi/aha152x.c if (ptr->SCp.phase & not_issued) SCp 2497 drivers/scsi/aha152x.c if (ptr->SCp.phase & selecting) SCp 2499 drivers/scsi/aha152x.c if (ptr->SCp.phase & disconnected) SCp 2501 drivers/scsi/aha152x.c if (ptr->SCp.phase & aborted) SCp 2503 drivers/scsi/aha152x.c if (ptr->SCp.phase & identified) SCp 2505 drivers/scsi/aha152x.c if (ptr->SCp.phase & completed) SCp 2507 drivers/scsi/aha152x.c if (ptr->SCp.phase & spiordy) SCp 2509 drivers/scsi/aha152x.c if (ptr->SCp.phase & syncneg) SCp 244 drivers/scsi/arm/acornscsi.c printk("BH @%p +%04x, ", host->scsi.SCp.ptr, SCp 245 drivers/scsi/arm/acornscsi.c host->scsi.SCp.this_residual); SCp 247 drivers/scsi/arm/acornscsi.c host->scsi.SCp.scsi_xferred); SCp 738 drivers/scsi/arm/acornscsi.c host->scsi.SCp = SCpnt->SCp; SCp 803 drivers/scsi/arm/acornscsi.c SCpnt->result = result << 16 | host->scsi.SCp.Message << 8 | host->scsi.SCp.Status; SCp 817 drivers/scsi/arm/acornscsi.c if (host->scsi.SCp.ptr && SCp 821 drivers/scsi/arm/acornscsi.c if (host->scsi.SCp.scsi_xferred < SCpnt->underflow || SCp 822 drivers/scsi/arm/acornscsi.c host->scsi.SCp.scsi_xferred != host->dma.transferred) SCp 883 drivers/scsi/arm/acornscsi.c void acornscsi_data_updateptr(AS_Host *host, struct scsi_pointer *SCp, unsigned int length) SCp 885 drivers/scsi/arm/acornscsi.c SCp->ptr += length; SCp 886 drivers/scsi/arm/acornscsi.c SCp->this_residual -= length; SCp 888 drivers/scsi/arm/acornscsi.c if (SCp->this_residual == 0 && next_SCp(SCp) == 0) SCp 1036 drivers/scsi/arm/acornscsi.c length = min_t(unsigned int, host->scsi.SCp.this_residual, DMAC_BUFFER_SIZE / 2); SCp 1046 drivers/scsi/arm/acornscsi.c acornscsi_data_write(host, host->scsi.SCp.ptr, host->dma.start_addr, SCp 1108 drivers/scsi/arm/acornscsi.c acornscsi_data_read(host, host->scsi.SCp.ptr, SCp 1114 drivers/scsi/arm/acornscsi.c acornscsi_data_updateptr(host, &host->scsi.SCp, transferred); SCp 1155 drivers/scsi/arm/acornscsi.c host->dma.xfer_ptr = host->scsi.SCp.ptr; SCp 1159 drivers/scsi/arm/acornscsi.c acornscsi_data_updateptr(host, &host->scsi.SCp, transferred); SCp 1164 drivers/scsi/arm/acornscsi.c length = min_t(unsigned int, host->scsi.SCp.this_residual, DMAC_BUFFER_SIZE / 2); SCp 1174 drivers/scsi/arm/acornscsi.c acornscsi_data_write(host, host->scsi.SCp.ptr, host->dma.start_addr, SCp 1251 drivers/scsi/arm/acornscsi.c transferred = host->scsi.SCp.scsi_xferred - host->dma.transferred; SCp 1310 drivers/scsi/arm/acornscsi.c sbic_arm_writenext(host, SCpnt->cmd_len - host->scsi.SCp.sent_command); SCp 1315 drivers/scsi/arm/acornscsi.c (int *)&host->scsi.SCp.sent_command, SCpnt->cmd_len, 1000000)) SCp 1409 drivers/scsi/arm/acornscsi.c host->scsi.SCp.Status = sbic_arm_read(host, SBIC_DATA); SCp 1502 drivers/scsi/arm/acornscsi.c host->scsi.SCp.Message = message[0]; SCp 1513 drivers/scsi/arm/acornscsi.c host->SCpnt->SCp = host->scsi.SCp; SCp 1514 drivers/scsi/arm/acornscsi.c host->SCpnt->SCp.sent_command = 0; SCp 1529 drivers/scsi/arm/acornscsi.c host->scsi.SCp = host->SCpnt->SCp; SCp 1737 drivers/scsi/arm/acornscsi.c if (!host->scsi.SCp.ptr /*&& host->scsi.SCp.this_residual*/) { SCp 1743 drivers/scsi/arm/acornscsi.c residual = scsi_bufflen(host->SCpnt) - host->scsi.SCp.scsi_xferred; SCp 1863 drivers/scsi/arm/acornscsi.c host->scsi.SCp = host->SCpnt->SCp; SCp 1866 drivers/scsi/arm/acornscsi.c host->scsi.SCp.ptr, host->scsi.SCp.this_residual); SCp 1873 drivers/scsi/arm/acornscsi.c host->dma.transferred = host->scsi.SCp.scsi_xferred; SCp 1976 drivers/scsi/arm/acornscsi.c host->dma.transferred = host->scsi.SCp.scsi_xferred; SCp 2084 drivers/scsi/arm/acornscsi.c if (host->scsi.SCp.sent_command != host->SCpnt->cmd_len) SCp 2094 drivers/scsi/arm/acornscsi.c if (host->scsi.SCp.sent_command != host->SCpnt->cmd_len) SCp 2223 drivers/scsi/arm/acornscsi.c host->scsi.SCp.scsi_xferred = scsi_bufflen(host->SCpnt) - SCp 2234 drivers/scsi/arm/acornscsi.c host->scsi.SCp.scsi_xferred = scsi_bufflen(host->SCpnt) - SCp 2244 drivers/scsi/arm/acornscsi.c host->scsi.SCp.scsi_xferred = scsi_bufflen(host->SCpnt) - SCp 2272 drivers/scsi/arm/acornscsi.c host->scsi.SCp.scsi_xferred = scsi_bufflen(host->SCpnt) - SCp 2284 drivers/scsi/arm/acornscsi.c host->scsi.SCp.scsi_xferred = scsi_bufflen(host->SCpnt) - SCp 2295 drivers/scsi/arm/acornscsi.c host->scsi.SCp.scsi_xferred = scsi_bufflen(host->SCpnt) - SCp 2493 drivers/scsi/arm/acornscsi.c SCpnt->SCp.phase = (int)acornscsi_datadirection(SCpnt->cmnd[0]); SCp 2494 drivers/scsi/arm/acornscsi.c SCpnt->SCp.sent_command = 0; SCp 2495 drivers/scsi/arm/acornscsi.c SCpnt->SCp.scsi_xferred = 0; SCp 292 drivers/scsi/arm/acornscsi.h struct scsi_pointer SCp; /* current commands data pointer */ SCp 67 drivers/scsi/arm/arxescsi.c arxescsi_dma_setup(struct Scsi_Host *host, struct scsi_pointer *SCp, SCp 113 drivers/scsi/arm/arxescsi.c arxescsi_dma_pseudo(struct Scsi_Host *host, struct scsi_pointer *SCp, SCp 121 drivers/scsi/arm/arxescsi.c length = SCp->this_residual; SCp 122 drivers/scsi/arm/arxescsi.c addr = SCp->ptr; SCp 199 drivers/scsi/arm/arxescsi.c static void arxescsi_dma_stop(struct Scsi_Host *host, struct scsi_pointer *SCp) SCp 154 drivers/scsi/arm/cumana_2.c cumanascsi_2_dma_setup(struct Scsi_Host *host, struct scsi_pointer *SCp, SCp 164 drivers/scsi/arm/cumana_2.c (min_type == fasdma_real_all || SCp->this_residual >= 512)) { SCp 167 drivers/scsi/arm/cumana_2.c bufs = copy_SCp_to_sg(&info->sg[0], SCp, NR_SG); SCp 206 drivers/scsi/arm/cumana_2.c cumanascsi_2_dma_pseudo(struct Scsi_Host *host, struct scsi_pointer *SCp, SCp 213 drivers/scsi/arm/cumana_2.c length = SCp->this_residual; SCp 214 drivers/scsi/arm/cumana_2.c addr = SCp->ptr; SCp 280 drivers/scsi/arm/cumana_2.c cumanascsi_2_dma_stop(struct Scsi_Host *host, struct scsi_pointer *SCp) SCp 155 drivers/scsi/arm/eesox.c eesoxscsi_dma_setup(struct Scsi_Host *host, struct scsi_pointer *SCp, SCp 163 drivers/scsi/arm/eesox.c (min_type == fasdma_real_all || SCp->this_residual >= 512)) { SCp 166 drivers/scsi/arm/eesox.c bufs = copy_SCp_to_sg(&info->sg[0], SCp, NR_SG); SCp 350 drivers/scsi/arm/eesox.c eesoxscsi_dma_pseudo(struct Scsi_Host *host, struct scsi_pointer *SCp, SCp 355 drivers/scsi/arm/eesox.c eesoxscsi_buffer_in(SCp->ptr, SCp->this_residual, info->base); SCp 357 drivers/scsi/arm/eesox.c eesoxscsi_buffer_out(SCp->ptr, SCp->this_residual, info->base); SCp 367 drivers/scsi/arm/eesox.c eesoxscsi_dma_stop(struct Scsi_Host *host, struct scsi_pointer *SCp) SCp 174 drivers/scsi/arm/fas216.c static void print_SCp(struct scsi_pointer *SCp, const char *prefix, const char *suffix) SCp 177 drivers/scsi/arm/fas216.c prefix, SCp->ptr, SCp->this_residual, SCp->buffer, SCp 178 drivers/scsi/arm/fas216.c SCp->buffers_residual, suffix); SCp 200 drivers/scsi/arm/fas216.c print_SCp(&info->scsi.SCp, " SCp={ ", " }\n"); SCp 629 drivers/scsi/arm/fas216.c struct scsi_pointer *SCp = &info->scsi.SCp; SCp 635 drivers/scsi/arm/fas216.c SCp->phase -= bytes_transferred; SCp 638 drivers/scsi/arm/fas216.c if (SCp->this_residual > bytes_transferred) SCp 644 drivers/scsi/arm/fas216.c bytes_transferred -= SCp->this_residual; SCp 645 drivers/scsi/arm/fas216.c if (!next_SCp(SCp) && bytes_transferred) { SCp 652 drivers/scsi/arm/fas216.c SCp->this_residual -= bytes_transferred; SCp 653 drivers/scsi/arm/fas216.c if (SCp->this_residual) SCp 654 drivers/scsi/arm/fas216.c SCp->ptr += bytes_transferred; SCp 656 drivers/scsi/arm/fas216.c SCp->ptr = NULL; SCp 669 drivers/scsi/arm/fas216.c struct scsi_pointer *SCp = &info->scsi.SCp; SCp 674 drivers/scsi/arm/fas216.c fas216_writeb(info, REG_FF, get_next_SCp_byte(SCp)); SCp 676 drivers/scsi/arm/fas216.c put_next_SCp_byte(SCp, fas216_readb(info, REG_FF)); SCp 678 drivers/scsi/arm/fas216.c if (SCp->this_residual == 0) SCp 679 drivers/scsi/arm/fas216.c next_SCp(SCp); SCp 717 drivers/scsi/arm/fas216.c total = info->scsi.SCp.phase; SCp 719 drivers/scsi/arm/fas216.c total = info->scsi.SCp.this_residual; SCp 754 drivers/scsi/arm/fas216.c info->scsi.SCp.ptr, info->scsi.SCp.this_residual, SCp 755 drivers/scsi/arm/fas216.c info->scsi.SCp.phase); SCp 757 drivers/scsi/arm/fas216.c if (!info->scsi.SCp.ptr) { SCp 760 drivers/scsi/arm/fas216.c print_SCp(&info->scsi.SCp, "SCp: ", "\n"); SCp 761 drivers/scsi/arm/fas216.c print_SCp(&info->SCpnt->SCp, "Cmnd SCp: ", "\n"); SCp 781 drivers/scsi/arm/fas216.c dmatype = info->dma.setup(info->host, &info->scsi.SCp, SCp 786 drivers/scsi/arm/fas216.c fas216_set_stc(info, info->scsi.SCp.phase); SCp 788 drivers/scsi/arm/fas216.c fas216_set_stc(info, info->scsi.SCp.this_residual); SCp 802 drivers/scsi/arm/fas216.c info->dma.pseudo(info->host, &info->scsi.SCp, SCp 835 drivers/scsi/arm/fas216.c info->dma.stop(info->host, &info->scsi.SCp); SCp 848 drivers/scsi/arm/fas216.c while (fifo && info->scsi.SCp.ptr) { SCp 849 drivers/scsi/arm/fas216.c *info->scsi.SCp.ptr = fas216_readb(info, REG_FF); SCp 868 drivers/scsi/arm/fas216.c info->dma.stop(info->host, &info->scsi.SCp); SCp 1011 drivers/scsi/arm/fas216.c info->scsi.SCp = info->SCpnt->SCp; SCp 1014 drivers/scsi/arm/fas216.c info->scsi.SCp.ptr, info->scsi.SCp.this_residual); SCp 1078 drivers/scsi/arm/fas216.c info->SCpnt->SCp = info->scsi.SCp; SCp 1079 drivers/scsi/arm/fas216.c info->SCpnt->SCp.sent_command = 0; SCp 1082 drivers/scsi/arm/fas216.c info->scsi.SCp.ptr, info->scsi.SCp.this_residual); SCp 1092 drivers/scsi/arm/fas216.c info->scsi.SCp = info->SCpnt->SCp; SCp 1095 drivers/scsi/arm/fas216.c info->scsi.SCp.ptr, info->scsi.SCp.this_residual); SCp 1297 drivers/scsi/arm/fas216.c for (i = info->scsi.SCp.sent_command; i < info->SCpnt->cmd_len; i++) SCp 1567 drivers/scsi/arm/fas216.c info->scsi.SCp.Status = fas216_readb(info, REG_FF); SCp 1568 drivers/scsi/arm/fas216.c info->scsi.SCp.Message = fas216_readb(info, REG_FF); SCp 1609 drivers/scsi/arm/fas216.c memset(&info->scsi.SCp, 0, sizeof(info->scsi.SCp)); SCp 1769 drivers/scsi/arm/fas216.c info->scsi.SCp = SCpnt->SCp; SCp 1859 drivers/scsi/arm/fas216.c info->scsi.SCp = SCpnt->SCp; SCp 1977 drivers/scsi/arm/fas216.c info->scsi.SCp.ptr, info->scsi.SCp.this_residual); SCp 2011 drivers/scsi/arm/fas216.c result, SCpnt->SCp.Message, SCpnt->SCp.Status); SCp 2013 drivers/scsi/arm/fas216.c if (result != DID_OK || SCpnt->SCp.Status != GOOD) SCp 2045 drivers/scsi/arm/fas216.c SCpnt->result = result << 16 | info->scsi.SCp.Message << 8 | SCp 2046 drivers/scsi/arm/fas216.c info->scsi.SCp.Status; SCp 2080 drivers/scsi/arm/fas216.c if (info->scsi.SCp.ptr) { SCp 2090 drivers/scsi/arm/fas216.c SCpnt->result, info->scsi.SCp.ptr, SCp 2091 drivers/scsi/arm/fas216.c info->scsi.SCp.this_residual); SCp 2116 drivers/scsi/arm/fas216.c SCpnt->SCp.Message = 0; SCp 2117 drivers/scsi/arm/fas216.c SCpnt->SCp.Status = 0; SCp 2164 drivers/scsi/arm/fas216.c if (info->scsi.SCp.ptr && info->scsi.SCp.this_residual == 0) { SCp 2167 drivers/scsi/arm/fas216.c info->scsi.SCp.ptr, info->scsi.SCp.this_residual); SCp 2168 drivers/scsi/arm/fas216.c info->scsi.SCp.ptr = NULL; SCp 241 drivers/scsi/arm/fas216.h struct scsi_pointer SCp; /* current commands data pointer */ SCp 302 drivers/scsi/arm/fas216.h fasdmatype_t (*setup) (struct Scsi_Host *host, struct scsi_pointer *SCp, fasdmadir_t direction, fasdmatype_t min_dma); SCp 303 drivers/scsi/arm/fas216.h void (*pseudo)(struct Scsi_Host *host, struct scsi_pointer *SCp, fasdmadir_t direction, int transfer); SCp 304 drivers/scsi/arm/fas216.h void (*stop) (struct Scsi_Host *host, struct scsi_pointer *SCp); SCp 128 drivers/scsi/arm/powertec.c powertecscsi_dma_setup(struct Scsi_Host *host, struct scsi_pointer *SCp, SCp 139 drivers/scsi/arm/powertec.c bufs = copy_SCp_to_sg(&info->sg[0], SCp, NR_SG); SCp 170 drivers/scsi/arm/powertec.c powertecscsi_dma_stop(struct Scsi_Host *host, struct scsi_pointer *SCp) SCp 24 drivers/scsi/arm/scsi.h static inline int copy_SCp_to_sg(struct scatterlist *sg, struct scsi_pointer *SCp, int max) SCp 26 drivers/scsi/arm/scsi.h int bufs = SCp->buffers_residual; SCp 33 drivers/scsi/arm/scsi.h sg_set_buf(sg, SCp->ptr, SCp->this_residual); SCp 39 drivers/scsi/arm/scsi.h for_each_sg(sg_next(SCp->buffer), src_sg, bufs, i) SCp 47 drivers/scsi/arm/scsi.h static inline int next_SCp(struct scsi_pointer *SCp) SCp 49 drivers/scsi/arm/scsi.h int ret = SCp->buffers_residual; SCp 51 drivers/scsi/arm/scsi.h SCp->buffer = sg_next(SCp->buffer); SCp 52 drivers/scsi/arm/scsi.h SCp->buffers_residual--; SCp 53 drivers/scsi/arm/scsi.h SCp->ptr = sg_virt(SCp->buffer); SCp 54 drivers/scsi/arm/scsi.h SCp->this_residual = SCp->buffer->length; SCp 56 drivers/scsi/arm/scsi.h SCp->ptr = NULL; SCp 57 drivers/scsi/arm/scsi.h SCp->this_residual = 0; SCp 62 drivers/scsi/arm/scsi.h static inline unsigned char get_next_SCp_byte(struct scsi_pointer *SCp) SCp 64 drivers/scsi/arm/scsi.h char c = *SCp->ptr; SCp 66 drivers/scsi/arm/scsi.h SCp->ptr += 1; SCp 67 drivers/scsi/arm/scsi.h SCp->this_residual -= 1; SCp 72 drivers/scsi/arm/scsi.h static inline void put_next_SCp_byte(struct scsi_pointer *SCp, unsigned char c) SCp 74 drivers/scsi/arm/scsi.h *SCp->ptr = c; SCp 75 drivers/scsi/arm/scsi.h SCp->ptr += 1; SCp 76 drivers/scsi/arm/scsi.h SCp->this_residual -= 1; SCp 81 drivers/scsi/arm/scsi.h memset(&SCpnt->SCp, 0, sizeof(struct scsi_pointer)); SCp 86 drivers/scsi/arm/scsi.h SCpnt->SCp.buffer = scsi_sglist(SCpnt); SCp 87 drivers/scsi/arm/scsi.h SCpnt->SCp.buffers_residual = scsi_sg_count(SCpnt) - 1; SCp 88 drivers/scsi/arm/scsi.h SCpnt->SCp.ptr = sg_virt(SCpnt->SCp.buffer); SCp 89 drivers/scsi/arm/scsi.h SCpnt->SCp.this_residual = SCpnt->SCp.buffer->length; SCp 90 drivers/scsi/arm/scsi.h SCpnt->SCp.phase = scsi_bufflen(SCpnt); SCp 114 drivers/scsi/arm/scsi.h SCpnt->SCp.phase = SCp 121 drivers/scsi/arm/scsi.h SCpnt->SCp.ptr = NULL; SCp 122 drivers/scsi/arm/scsi.h SCpnt->SCp.this_residual = 0; SCp 123 drivers/scsi/arm/scsi.h SCpnt->SCp.phase = 0; SCp 545 drivers/scsi/atari_scsi.c int wanted_len = cmd->SCp.this_residual; SCp 617 drivers/scsi/atari_scsi.c limit = (atari_dma_buffer && !STRAM_ADDR(virt_to_phys(cmd->SCp.ptr))) ? SCp 219 drivers/scsi/be2iscsi/be_main.c struct iscsi_task *abrt_task = (struct iscsi_task *)sc->SCp.ptr; SCp 153 drivers/scsi/bfa/bfad_im.c cmnd->SCp.Status |= tsk_status << 1; SCp 154 drivers/scsi/bfa/bfad_im.c set_bit(IO_DONE_BIT, (unsigned long *)&cmnd->SCp.Status); SCp 155 drivers/scsi/bfa/bfad_im.c wq = (wait_queue_head_t *) cmnd->SCp.ptr; SCp 156 drivers/scsi/bfa/bfad_im.c cmnd->SCp.ptr = NULL; SCp 262 drivers/scsi/bfa/bfad_im.c cmnd->SCp.Status = 0; SCp 329 drivers/scsi/bfa/bfad_im.c cmnd->SCp.ptr = (char *)&wq; SCp 330 drivers/scsi/bfa/bfad_im.c cmnd->SCp.Status = 0; SCp 351 drivers/scsi/bfa/bfad_im.c (unsigned long *)&cmnd->SCp.Status)); SCp 353 drivers/scsi/bfa/bfad_im.c task_status = cmnd->SCp.Status >> 1; SCp 384 drivers/scsi/bfa/bfad_im.c cmnd->SCp.ptr = (char *)&wq; SCp 390 drivers/scsi/bfa/bfad_im.c (unsigned long *)&cmnd->SCp.Status)); SCp 393 drivers/scsi/bfa/bfad_im.c task_status = cmnd->SCp.Status >> 1; SCp 141 drivers/scsi/bnx2fc/bnx2fc.h #define CMD_SCSI_STATUS(Cmnd) ((Cmnd)->SCp.Status) SCp 207 drivers/scsi/bnx2fc/bnx2fc_io.c sc_cmd->SCp.ptr = NULL; SCp 768 drivers/scsi/bnx2fc/bnx2fc_io.c sc_cmd->SCp.ptr = (char *)io_req; SCp 1149 drivers/scsi/bnx2fc/bnx2fc_io.c io_req = (struct bnx2fc_cmd *)sc_cmd->SCp.ptr; SCp 1572 drivers/scsi/bnx2fc/bnx2fc_io.c if (!sc_cmd->SCp.ptr) { SCp 1609 drivers/scsi/bnx2fc/bnx2fc_io.c sc_cmd->SCp.ptr = NULL; SCp 1955 drivers/scsi/bnx2fc/bnx2fc_io.c if (!sc_cmd->SCp.ptr) { SCp 2027 drivers/scsi/bnx2fc/bnx2fc_io.c sc_cmd->SCp.ptr = NULL; SCp 2053 drivers/scsi/bnx2fc/bnx2fc_io.c sc_cmd->SCp.ptr = (char *)io_req; SCp 169 drivers/scsi/csiostor/csio_scsi.c if (likely(scmnd->SCp.Message == 0)) { SCp 188 drivers/scsi/csiostor/csio_scsi.c fcp_cmnd->fc_tm_flags = (uint8_t)scmnd->SCp.Message; SCp 1854 drivers/scsi/csiostor/csio_scsi.c cmnd->SCp.Message = 0; SCp 2025 drivers/scsi/csiostor/csio_scsi.c cmnd->SCp.Status = req->wr_status; SCp 2048 drivers/scsi/csiostor/csio_scsi.c cmnd->SCp.Status = FW_SUCCESS; SCp 2124 drivers/scsi/csiostor/csio_scsi.c cmnd->SCp.Status = 0; SCp 2126 drivers/scsi/csiostor/csio_scsi.c cmnd->SCp.Message = FCP_TMF_LUN_RESET; SCp 2177 drivers/scsi/csiostor/csio_scsi.c if (cmnd->SCp.Status != FW_SUCCESS) { SCp 2179 drivers/scsi/csiostor/csio_scsi.c cmnd->device->id, cmnd->device->lun, cmnd->SCp.Status); SCp 3389 drivers/scsi/dc395x.c cmd->SCp.this_residual = srb->total_xfer_length; SCp 3390 drivers/scsi/dc395x.c cmd->SCp.buffers_residual = 0; SCp 258 drivers/scsi/esp_scsi.h #define ESP_CMD_PRIV(CMD) ((struct esp_cmd_priv *)(&(CMD)->SCp)) SCp 273 drivers/scsi/fdomain.c if (cmd->SCp.phase & in_arbitration) { SCp 279 drivers/scsi/fdomain.c cmd->SCp.phase = in_selection; SCp 288 drivers/scsi/fdomain.c } else if (cmd->SCp.phase & in_selection) { SCp 299 drivers/scsi/fdomain.c cmd->SCp.phase = in_other; SCp 311 drivers/scsi/fdomain.c outb(cmd->cmnd[cmd->SCp.sent_command++], SCp 315 drivers/scsi/fdomain.c if (fd->chip != tmc1800 && !cmd->SCp.have_data_in) { SCp 316 drivers/scsi/fdomain.c cmd->SCp.have_data_in = -1; SCp 322 drivers/scsi/fdomain.c if (fd->chip != tmc1800 && !cmd->SCp.have_data_in) { SCp 323 drivers/scsi/fdomain.c cmd->SCp.have_data_in = 1; SCp 329 drivers/scsi/fdomain.c cmd->SCp.Status = inb(fd->base + REG_SCSI_DATA); SCp 335 drivers/scsi/fdomain.c cmd->SCp.Message = inb(fd->base + REG_SCSI_DATA); SCp 336 drivers/scsi/fdomain.c if (!cmd->SCp.Message) SCp 342 drivers/scsi/fdomain.c if (fd->chip == tmc1800 && !cmd->SCp.have_data_in && SCp 343 drivers/scsi/fdomain.c cmd->SCp.sent_command >= cmd->cmd_len) { SCp 345 drivers/scsi/fdomain.c cmd->SCp.have_data_in = -1; SCp 349 drivers/scsi/fdomain.c cmd->SCp.have_data_in = 1; SCp 355 drivers/scsi/fdomain.c if (cmd->SCp.have_data_in == -1) /* DATA OUT */ SCp 358 drivers/scsi/fdomain.c if (cmd->SCp.have_data_in == 1) /* DATA IN */ SCp 362 drivers/scsi/fdomain.c fdomain_finish_cmd(fd, (cmd->SCp.Status & 0xff) | SCp 363 drivers/scsi/fdomain.c ((cmd->SCp.Message & 0xff) << 8) | SCp 366 drivers/scsi/fdomain.c if (cmd->SCp.phase & disconnect) { SCp 402 drivers/scsi/fdomain.c cmd->SCp.Status = 0; SCp 403 drivers/scsi/fdomain.c cmd->SCp.Message = 0; SCp 404 drivers/scsi/fdomain.c cmd->SCp.have_data_in = 0; SCp 405 drivers/scsi/fdomain.c cmd->SCp.sent_command = 0; SCp 406 drivers/scsi/fdomain.c cmd->SCp.phase = in_arbitration; SCp 441 drivers/scsi/fdomain.c fd->cur_cmd->SCp.phase |= aborted; SCp 95 drivers/scsi/fnic/fnic.h #define CMD_SP(Cmnd) ((Cmnd)->SCp.ptr) SCp 96 drivers/scsi/fnic/fnic.h #define CMD_STATE(Cmnd) ((Cmnd)->SCp.phase) SCp 97 drivers/scsi/fnic/fnic.h #define CMD_ABTS_STATUS(Cmnd) ((Cmnd)->SCp.Message) SCp 98 drivers/scsi/fnic/fnic.h #define CMD_LR_STATUS(Cmnd) ((Cmnd)->SCp.have_data_in) SCp 99 drivers/scsi/fnic/fnic.h #define CMD_TAG(Cmnd) ((Cmnd)->SCp.sent_command) SCp 100 drivers/scsi/fnic/fnic.h #define CMD_FLAGS(Cmnd) ((Cmnd)->SCp.Status) SCp 666 drivers/scsi/g_NCR5380.c int transfersize = cmd->SCp.this_residual; SCp 678 drivers/scsi/g_NCR5380.c transfersize = min(cmd->SCp.this_residual, 512); SCp 1551 drivers/scsi/gdth.c scp->SCp.ptr = NULL; SCp 1554 drivers/scsi/gdth.c nscp = (struct scsi_cmnd *)pscp->SCp.ptr; SCp 1558 drivers/scsi/gdth.c nscp = (struct scsi_cmnd *)pscp->SCp.ptr; SCp 1560 drivers/scsi/gdth.c pscp->SCp.ptr = (char *)scp; SCp 1561 drivers/scsi/gdth.c scp->SCp.ptr = (char *)nscp; SCp 1567 drivers/scsi/gdth.c for (nscp=ha->req_first; nscp; nscp=(struct scsi_cmnd*)nscp->SCp.ptr) SCp 1594 drivers/scsi/gdth.c for (nscp = pscp = ha->req_first; nscp; nscp = (struct scsi_cmnd *)nscp->SCp.ptr) { SCp 1596 drivers/scsi/gdth.c if (nscp != pscp && nscp != (struct scsi_cmnd *)pscp->SCp.ptr) SCp 1597 drivers/scsi/gdth.c pscp = (struct scsi_cmnd *)pscp->SCp.ptr; SCp 1804 drivers/scsi/gdth.c ha->req_first = pscp = (struct scsi_cmnd *)nscp->SCp.ptr; SCp 1806 drivers/scsi/gdth.c pscp->SCp.ptr = nscp->SCp.ptr; SCp 3146 drivers/scsi/gdth.c nscp=ha->req_first; nscp; nscp=(struct scsi_cmnd*)nscp->SCp.ptr) SCp 58 drivers/scsi/gvp11.c unsigned long addr = virt_to_bus(cmd->SCp.ptr); SCp 64 drivers/scsi/gvp11.c wh->dma_bounce_len = (cmd->SCp.this_residual + 511) & ~0x1ff; SCp 113 drivers/scsi/gvp11.c memcpy(wh->dma_bounce_buffer, cmd->SCp.ptr, SCp 114 drivers/scsi/gvp11.c cmd->SCp.this_residual); SCp 130 drivers/scsi/gvp11.c cache_clear(addr, cmd->SCp.this_residual); SCp 133 drivers/scsi/gvp11.c cache_push(addr, cmd->SCp.this_residual); SCp 162 drivers/scsi/gvp11.c memcpy(SCpnt->SCp.ptr, wh->dma_bounce_buffer, SCp 163 drivers/scsi/gvp11.c SCpnt->SCp.this_residual); SCp 260 drivers/scsi/hptiop.h #define HPT_SCP(scp) ((struct hpt_scsi_pointer *)&(scp)->SCp) SCp 69 drivers/scsi/imm.c dev->cur_cmd->SCp.phase = 1; SCp 663 drivers/scsi/imm.c if (((r & 0x88) != 0x88) || (cmd->SCp.this_residual <= 0)) { SCp 670 drivers/scsi/imm.c && (cmd->SCp.this_residual >= SCp 672 drivers/scsi/imm.c status = imm_out(dev, cmd->SCp.ptr, fast); SCp 675 drivers/scsi/imm.c && (cmd->SCp.this_residual >= SCp 677 drivers/scsi/imm.c status = imm_in(dev, cmd->SCp.ptr, fast); SCp 680 drivers/scsi/imm.c cmd->SCp.ptr += fast; SCp 681 drivers/scsi/imm.c cmd->SCp.this_residual -= fast; SCp 687 drivers/scsi/imm.c if (cmd->SCp.buffer && !cmd->SCp.this_residual) { SCp 689 drivers/scsi/imm.c if (cmd->SCp.buffers_residual--) { SCp 690 drivers/scsi/imm.c cmd->SCp.buffer = sg_next(cmd->SCp.buffer); SCp 691 drivers/scsi/imm.c cmd->SCp.this_residual = SCp 692 drivers/scsi/imm.c cmd->SCp.buffer->length; SCp 693 drivers/scsi/imm.c cmd->SCp.ptr = sg_virt(cmd->SCp.buffer); SCp 699 drivers/scsi/imm.c if (cmd->SCp.this_residual & 0x01) SCp 700 drivers/scsi/imm.c cmd->SCp.this_residual++; SCp 765 drivers/scsi/imm.c if (cmd->SCp.phase > 1) SCp 789 drivers/scsi/imm.c switch (cmd->SCp.phase) { SCp 803 drivers/scsi/imm.c cmd->SCp.phase++; SCp 811 drivers/scsi/imm.c cmd->SCp.phase++; SCp 821 drivers/scsi/imm.c cmd->SCp.phase++; SCp 826 drivers/scsi/imm.c cmd->SCp.buffer = scsi_sglist(cmd); SCp 827 drivers/scsi/imm.c cmd->SCp.this_residual = cmd->SCp.buffer->length; SCp 828 drivers/scsi/imm.c cmd->SCp.ptr = sg_virt(cmd->SCp.buffer); SCp 830 drivers/scsi/imm.c cmd->SCp.buffer = NULL; SCp 831 drivers/scsi/imm.c cmd->SCp.this_residual = 0; SCp 832 drivers/scsi/imm.c cmd->SCp.ptr = NULL; SCp 834 drivers/scsi/imm.c cmd->SCp.buffers_residual = scsi_sg_count(cmd) - 1; SCp 835 drivers/scsi/imm.c cmd->SCp.phase++; SCp 836 drivers/scsi/imm.c if (cmd->SCp.this_residual & 0x01) SCp 837 drivers/scsi/imm.c cmd->SCp.this_residual++; SCp 854 drivers/scsi/imm.c cmd->SCp.phase++; SCp 870 drivers/scsi/imm.c cmd->SCp.phase++; SCp 882 drivers/scsi/imm.c cmd->SCp.phase++; SCp 928 drivers/scsi/imm.c cmd->SCp.phase = 0; /* bus free */ SCp 967 drivers/scsi/imm.c switch (cmd->SCp.phase) { SCp 995 drivers/scsi/imm.c if (cmd->SCp.phase) SCp 2556 drivers/scsi/initio.c cmnd->SCp.ptr = (char *)(unsigned long)dma_addr; SCp 2580 drivers/scsi/initio.c cmnd->SCp.dma_handle = dma_addr; SCp 2712 drivers/scsi/initio.c if (cmnd->SCp.ptr) { SCp 2714 drivers/scsi/initio.c (dma_addr_t)((unsigned long)cmnd->SCp.ptr), SCp 2716 drivers/scsi/initio.c cmnd->SCp.ptr = NULL; SCp 2721 drivers/scsi/initio.c dma_unmap_single(&pci_dev->dev, cmnd->SCp.dma_handle, SCp 51 drivers/scsi/libfc/fc_fcp.c #define CMD_SP(Cmnd) ((struct fc_fcp_pkt *)(Cmnd)->SCp.ptr) SCp 52 drivers/scsi/libfc/fc_fcp.c #define CMD_ENTRY_STATUS(Cmnd) ((Cmnd)->SCp.have_data_in) SCp 53 drivers/scsi/libfc/fc_fcp.c #define CMD_COMPL_STATUS(Cmnd) ((Cmnd)->SCp.this_residual) SCp 54 drivers/scsi/libfc/fc_fcp.c #define CMD_SCSI_STATUS(Cmnd) ((Cmnd)->SCp.Status) SCp 55 drivers/scsi/libfc/fc_fcp.c #define CMD_RESID_LEN(Cmnd) ((Cmnd)->SCp.buffers_residual) SCp 1139 drivers/scsi/libfc/fc_fcp.c fsp->cmd->SCp.ptr = (char *)fsp; SCp 1152 drivers/scsi/libfc/fc_fcp.c fsp->cmd->SCp.ptr = NULL; SCp 2085 drivers/scsi/libfc/fc_fcp.c sc_cmd->SCp.ptr = NULL; SCp 470 drivers/scsi/libiscsi.c sc->SCp.ptr = NULL; SCp 1329 drivers/scsi/libiscsi.c if (task->sc->SCp.phase != conn->session->age) { SCp 1332 drivers/scsi/libiscsi.c task->sc->SCp.phase, conn->session->age); SCp 1607 drivers/scsi/libiscsi.c sc->SCp.phase = conn->session->age; SCp 1608 drivers/scsi/libiscsi.c sc->SCp.ptr = (char *) task; SCp 1645 drivers/scsi/libiscsi.c sc->SCp.ptr = NULL; SCp 1949 drivers/scsi/libiscsi.c task = (struct iscsi_task *)sc->SCp.ptr; SCp 2158 drivers/scsi/libiscsi.c if (!sc->SCp.ptr) { SCp 2171 drivers/scsi/libiscsi.c sc->SCp.phase != session->age) { SCp 2183 drivers/scsi/libiscsi.c task = (struct iscsi_task *)sc->SCp.ptr; SCp 2234 drivers/scsi/libiscsi.c if (!sc->SCp.ptr) { SCp 269 drivers/scsi/mac53c94.c nb = cmd->SCp.this_residual; SCp 272 drivers/scsi/mac53c94.c cmd->SCp.this_residual -= nb; SCp 299 drivers/scsi/mac53c94.c if (cmd->SCp.this_residual != 0 SCp 302 drivers/scsi/mac53c94.c nb = cmd->SCp.this_residual; SCp 305 drivers/scsi/mac53c94.c cmd->SCp.this_residual -= nb; SCp 327 drivers/scsi/mac53c94.c cmd->SCp.Status = readb(®s->fifo); SCp 328 drivers/scsi/mac53c94.c cmd->SCp.Message = readb(®s->fifo); SCp 337 drivers/scsi/mac53c94.c cmd_done(state, (DID_OK << 16) + (cmd->SCp.Message << 8) SCp 338 drivers/scsi/mac53c94.c + cmd->SCp.Status); SCp 396 drivers/scsi/mac53c94.c cmd->SCp.this_residual = total; SCp 408 drivers/scsi/mac_scsi.c cmd->SCp.this_residual < setup_use_pdma) SCp 411 drivers/scsi/mac_scsi.c return cmd->SCp.this_residual; SCp 1658 drivers/scsi/megaraid.c cmd = list_entry(spos, struct scsi_cmnd, SCp); SCp 760 drivers/scsi/megaraid.h #define SCSI_LIST(scp) ((struct list_head *)(&(scp)->SCp)) SCp 1735 drivers/scsi/megaraid/megaraid_sas_base.c scmd->SCp.ptr = (char *)cmd; SCp 2939 drivers/scsi/megaraid/megaraid_sas_base.c cmd = (struct megasas_cmd_fusion *)scmd->SCp.ptr; SCp 3483 drivers/scsi/megaraid/megaraid_sas_base.c cmd->scmd->SCp.ptr = NULL; SCp 2922 drivers/scsi/megaraid/megaraid_sas_fusion.c scp->SCp.Status |= MEGASAS_LOAD_BALANCE_FLAG; SCp 2930 drivers/scsi/megaraid/megaraid_sas_fusion.c scp->SCp.Status &= ~MEGASAS_LOAD_BALANCE_FLAG; SCp 3305 drivers/scsi/megaraid/megaraid_sas_fusion.c scp->SCp.ptr = (char *)cmd; SCp 3500 drivers/scsi/megaraid/megaraid_sas_fusion.c scmd_local->SCp.ptr = NULL; SCp 3580 drivers/scsi/megaraid/megaraid_sas_fusion.c (cmd_fusion->scmd->SCp.Status & SCp 3585 drivers/scsi/megaraid/megaraid_sas_fusion.c cmd_fusion->scmd->SCp.Status &= ~MEGASAS_LOAD_BALANCE_FLAG; SCp 3597 drivers/scsi/megaraid/megaraid_sas_fusion.c scmd_local->SCp.ptr = NULL; SCp 598 drivers/scsi/mesh.c cmd->result = (ms->stat << 16) | cmd->SCp.Status; SCp 600 drivers/scsi/mesh.c cmd->result |= cmd->SCp.Message << 8; SCp 614 drivers/scsi/mesh.c cmd->SCp.this_residual -= ms->data_ptr; SCp 1180 drivers/scsi/mesh.c cmd->SCp.Message = code; SCp 1271 drivers/scsi/mesh.c cmd->SCp.this_residual = scsi_bufflen(cmd); SCp 1600 drivers/scsi/mesh.c cmd->SCp.Status = mr->fifo; SCp 1603 drivers/scsi/mesh.c cmd->SCp.Status); SCp 36 drivers/scsi/mvme147.c unsigned long addr = virt_to_bus(cmd->SCp.ptr); SCp 47 drivers/scsi/mvme147.c cache_clear(addr, cmd->SCp.this_residual); SCp 50 drivers/scsi/mvme147.c cache_push(addr, cmd->SCp.this_residual); SCp 54 drivers/scsi/mvme147.c m147_pcc->dma_bcr = cmd->SCp.this_residual | (1 << 24); SCp 1304 drivers/scsi/mvumi.c cmd->scmd->SCp.ptr = NULL; SCp 2103 drivers/scsi/mvumi.c scmd->SCp.ptr = (char *) cmd; SCp 2117 drivers/scsi/mvumi.c struct mvumi_cmd *cmd = (struct mvumi_cmd *) scmd->SCp.ptr; SCp 2134 drivers/scsi/mvumi.c scmd->SCp.ptr = NULL; SCp 513 drivers/scsi/ncr53c8xx.c #define __data_mapped SCp.phase SCp 514 drivers/scsi/ncr53c8xx.c #define __data_mapping SCp.have_data_in SCp 938 drivers/scsi/nsp32.c SCpnt->SCp.Status = CHECK_CONDITION; SCp 939 drivers/scsi/nsp32.c SCpnt->SCp.Message = 0; SCp 942 drivers/scsi/nsp32.c SCpnt->SCp.ptr = (char *)scsi_sglist(SCpnt); SCp 943 drivers/scsi/nsp32.c SCpnt->SCp.this_residual = scsi_bufflen(SCpnt); SCp 944 drivers/scsi/nsp32.c SCpnt->SCp.buffer = NULL; SCp 945 drivers/scsi/nsp32.c SCpnt->SCp.buffers_residual = 0; SCp 1365 drivers/scsi/nsp32.c SCpnt->SCp.Status = nsp32_read1(base, SCSI_CSB_IN); SCp 1668 drivers/scsi/nsp32.c SCpnt->SCp.Status = nsp32_read1(base, SCSI_CSB_IN); SCp 1669 drivers/scsi/nsp32.c SCpnt->SCp.Message = 0; SCp 1672 drivers/scsi/nsp32.c SCpnt->SCp.Status, scsi_get_resid(SCpnt)); SCp 1674 drivers/scsi/nsp32.c (SCpnt->SCp.Message << 8) | SCp 1675 drivers/scsi/nsp32.c (SCpnt->SCp.Status << 0); SCp 1681 drivers/scsi/nsp32.c SCpnt->SCp.Status = nsp32_read1(base, SCSI_CSB_IN); SCp 1682 drivers/scsi/nsp32.c SCpnt->SCp.Message = 4; SCp 226 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.Status = CHECK_CONDITION; SCp 227 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.Message = 0; SCp 228 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.have_data_in = IO_UNKNOWN; SCp 229 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.sent_command = 0; SCp 230 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.phase = PH_UNDETERMINED; SCp 240 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.buffer = scsi_sglist(SCpnt); SCp 241 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.ptr = BUFFER_ADDR; SCp 242 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.this_residual = SCpnt->SCp.buffer->length; SCp 243 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.buffers_residual = scsi_sg_count(SCpnt) - 1; SCp 245 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.ptr = NULL; SCp 246 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.this_residual = 0; SCp 247 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.buffer = NULL; SCp 248 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.buffers_residual = 0; SCp 383 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.phase = PH_ARBSTART; SCp 403 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.phase = PH_SELSTART; SCp 598 drivers/scsi/pcmcia/nsp_cs.c if (len == 1 && SCpnt->SCp.phase == PH_MSG_OUT) { SCp 626 drivers/scsi/pcmcia/nsp_cs.c if (SCpnt->SCp.have_data_in != IO_IN) { SCp 641 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.phase = PH_DATA; SCp 729 drivers/scsi/pcmcia/nsp_cs.c SCpnt, scsi_get_resid(SCpnt), ocount, SCpnt->SCp.ptr, SCp 730 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.this_residual, SCpnt->SCp.buffer, SCp 731 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.buffers_residual); SCp 736 drivers/scsi/pcmcia/nsp_cs.c (SCpnt->SCp.this_residual > 0 || SCpnt->SCp.buffers_residual > 0 ) ) { SCp 760 drivers/scsi/pcmcia/nsp_cs.c res = min(res, SCpnt->SCp.this_residual); SCp 765 drivers/scsi/pcmcia/nsp_cs.c nsp_fifo32_read(base, SCpnt->SCp.ptr, res >> 2); SCp 768 drivers/scsi/pcmcia/nsp_cs.c nsp_fifo8_read (base, SCpnt->SCp.ptr, res ); SCp 773 drivers/scsi/pcmcia/nsp_cs.c nsp_mmio_fifo32_read(mmio_base, SCpnt->SCp.ptr, res >> 2); SCp 782 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.ptr += res; SCp 783 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.this_residual -= res; SCp 788 drivers/scsi/pcmcia/nsp_cs.c if (SCpnt->SCp.this_residual == 0 && SCp 789 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.buffers_residual != 0 ) { SCp 791 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.buffers_residual--; SCp 792 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.buffer = sg_next(SCpnt->SCp.buffer); SCp 793 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.ptr = BUFFER_ADDR; SCp 794 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.this_residual = SCpnt->SCp.buffer->length; SCp 805 drivers/scsi/pcmcia/nsp_cs.c scsi_get_resid(SCpnt), SCpnt->SCp.this_residual, SCp 806 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.buffers_residual); SCp 828 drivers/scsi/pcmcia/nsp_cs.c data->FifoCount, SCpnt->SCp.ptr, SCpnt->SCp.this_residual, SCp 829 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.buffer, SCpnt->SCp.buffers_residual, SCp 835 drivers/scsi/pcmcia/nsp_cs.c (SCpnt->SCp.this_residual > 0 || SCpnt->SCp.buffers_residual > 0)) { SCp 845 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.ptr -= res; SCp 846 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.this_residual += res; SCp 858 drivers/scsi/pcmcia/nsp_cs.c res = min(SCpnt->SCp.this_residual, WFIFO_CRIT); SCp 864 drivers/scsi/pcmcia/nsp_cs.c nsp_fifo32_write(base, SCpnt->SCp.ptr, res >> 2); SCp 867 drivers/scsi/pcmcia/nsp_cs.c nsp_fifo8_write (base, SCpnt->SCp.ptr, res ); SCp 872 drivers/scsi/pcmcia/nsp_cs.c nsp_mmio_fifo32_write(mmio_base, SCpnt->SCp.ptr, res >> 2); SCp 881 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.ptr += res; SCp 882 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.this_residual -= res; SCp 886 drivers/scsi/pcmcia/nsp_cs.c if (SCpnt->SCp.this_residual == 0 && SCp 887 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.buffers_residual != 0 ) { SCp 889 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.buffers_residual--; SCp 890 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.buffer = sg_next(SCpnt->SCp.buffer); SCp 891 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.ptr = BUFFER_ADDR; SCp 892 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.this_residual = SCpnt->SCp.buffer->length; SCp 1039 drivers/scsi/pcmcia/nsp_cs.c ((tmpSC->SCp.Message & 0xff) << 8) | SCp 1040 drivers/scsi/pcmcia/nsp_cs.c ((tmpSC->SCp.Status & 0xff) << 0); SCp 1077 drivers/scsi/pcmcia/nsp_cs.c switch(tmpSC->SCp.phase) { SCp 1100 drivers/scsi/pcmcia/nsp_cs.c tmpSC->SCp.phase = PH_SELECTED; SCp 1131 drivers/scsi/pcmcia/nsp_cs.c if (((tmpSC->SCp.phase == PH_MSG_IN) || (tmpSC->SCp.phase == PH_MSG_OUT)) && SCp 1138 drivers/scsi/pcmcia/nsp_cs.c if (tmpSC->SCp.Message == MSG_COMMAND_COMPLETE) { SCp 1140 drivers/scsi/pcmcia/nsp_cs.c ((tmpSC->SCp.Message & 0xff) << 8) | SCp 1141 drivers/scsi/pcmcia/nsp_cs.c ((tmpSC->SCp.Status & 0xff) << 0); SCp 1170 drivers/scsi/pcmcia/nsp_cs.c tmpSC->SCp.phase = PH_COMMAND; SCp 1186 drivers/scsi/pcmcia/nsp_cs.c tmpSC->SCp.phase = PH_DATA; SCp 1187 drivers/scsi/pcmcia/nsp_cs.c tmpSC->SCp.have_data_in = IO_OUT; SCp 1196 drivers/scsi/pcmcia/nsp_cs.c tmpSC->SCp.phase = PH_DATA; SCp 1197 drivers/scsi/pcmcia/nsp_cs.c tmpSC->SCp.have_data_in = IO_IN; SCp 1207 drivers/scsi/pcmcia/nsp_cs.c tmpSC->SCp.phase = PH_STATUS; SCp 1209 drivers/scsi/pcmcia/nsp_cs.c tmpSC->SCp.Status = nsp_index_read(base, SCSIDATAWITHACK); SCp 1210 drivers/scsi/pcmcia/nsp_cs.c nsp_dbg(NSP_DEBUG_INTR, "message=0x%x status=0x%x", tmpSC->SCp.Message, tmpSC->SCp.Status); SCp 1220 drivers/scsi/pcmcia/nsp_cs.c tmpSC->SCp.phase = PH_MSG_OUT; SCp 1253 drivers/scsi/pcmcia/nsp_cs.c tmpSC->SCp.phase = PH_MSG_IN; SCp 1285 drivers/scsi/pcmcia/nsp_cs.c tmpSC->SCp.Message = tmp; SCp 1287 drivers/scsi/pcmcia/nsp_cs.c nsp_dbg(NSP_DEBUG_INTR, "message=0x%x len=%d", tmpSC->SCp.Message, data->MsgLen); SCp 385 drivers/scsi/pcmcia/nsp_cs.h # define BUFFER_ADDR ((char *)((sg_virt(SCpnt->SCp.buffer)))) SCp 148 drivers/scsi/pcmcia/nsp_debug.c int i = SCpnt->SCp.phase; SCp 400 drivers/scsi/pcmcia/sym53c500_cs.c if (curSC->SCp.phase != message_in) { /* Unexpected disconnect */ SCp 403 drivers/scsi/pcmcia/sym53c500_cs.c curSC->result = (curSC->SCp.Status & 0xff) SCp 404 drivers/scsi/pcmcia/sym53c500_cs.c | ((curSC->SCp.Message & 0xff) << 8) | (DID_OK << 16); SCp 415 drivers/scsi/pcmcia/sym53c500_cs.c curSC->SCp.phase = data_out; SCp 434 drivers/scsi/pcmcia/sym53c500_cs.c curSC->SCp.phase = data_in; SCp 449 drivers/scsi/pcmcia/sym53c500_cs.c curSC->SCp.phase = command_ph; SCp 454 drivers/scsi/pcmcia/sym53c500_cs.c curSC->SCp.phase = status_ph; SCp 467 drivers/scsi/pcmcia/sym53c500_cs.c curSC->SCp.phase = message_out; SCp 474 drivers/scsi/pcmcia/sym53c500_cs.c curSC->SCp.phase = message_in; SCp 476 drivers/scsi/pcmcia/sym53c500_cs.c curSC->SCp.Status = inb(port_base + SCSI_FIFO); SCp 477 drivers/scsi/pcmcia/sym53c500_cs.c curSC->SCp.Message = inb(port_base + SCSI_FIFO); SCp 480 drivers/scsi/pcmcia/sym53c500_cs.c DEB(printk("Status = %02x Message = %02x\n", curSC->SCp.Status, curSC->SCp.Message)); SCp 482 drivers/scsi/pcmcia/sym53c500_cs.c if (curSC->SCp.Message == SAVE_POINTERS || curSC->SCp.Message == DISCONNECT) { SCp 494 drivers/scsi/pcmcia/sym53c500_cs.c curSC->SCp.phase = idle; SCp 560 drivers/scsi/pcmcia/sym53c500_cs.c data->current_SC->SCp.phase = command_ph; SCp 561 drivers/scsi/pcmcia/sym53c500_cs.c data->current_SC->SCp.Status = 0; SCp 562 drivers/scsi/pcmcia/sym53c500_cs.c data->current_SC->SCp.Message = 0; SCp 59 drivers/scsi/ppa.c dev->cur_cmd->SCp.phase = 1; SCp 546 drivers/scsi/ppa.c if ((cmd->SCp.this_residual <= 0)) { SCp 575 drivers/scsi/ppa.c fast = (bulk && (cmd->SCp.this_residual >= PPA_BURST_SIZE)) SCp 579 drivers/scsi/ppa.c status = ppa_out(dev, cmd->SCp.ptr, fast); SCp 581 drivers/scsi/ppa.c status = ppa_in(dev, cmd->SCp.ptr, fast); SCp 583 drivers/scsi/ppa.c cmd->SCp.ptr += fast; SCp 584 drivers/scsi/ppa.c cmd->SCp.this_residual -= fast; SCp 590 drivers/scsi/ppa.c if (cmd->SCp.buffer && !cmd->SCp.this_residual) { SCp 592 drivers/scsi/ppa.c if (cmd->SCp.buffers_residual--) { SCp 593 drivers/scsi/ppa.c cmd->SCp.buffer = sg_next(cmd->SCp.buffer); SCp 594 drivers/scsi/ppa.c cmd->SCp.this_residual = SCp 595 drivers/scsi/ppa.c cmd->SCp.buffer->length; SCp 596 drivers/scsi/ppa.c cmd->SCp.ptr = sg_virt(cmd->SCp.buffer); SCp 661 drivers/scsi/ppa.c if (cmd->SCp.phase > 1) SCp 683 drivers/scsi/ppa.c switch (cmd->SCp.phase) { SCp 718 drivers/scsi/ppa.c cmd->SCp.phase++; SCp 727 drivers/scsi/ppa.c cmd->SCp.phase++; SCp 737 drivers/scsi/ppa.c cmd->SCp.phase++; SCp 742 drivers/scsi/ppa.c cmd->SCp.buffer = scsi_sglist(cmd); SCp 743 drivers/scsi/ppa.c cmd->SCp.this_residual = cmd->SCp.buffer->length; SCp 744 drivers/scsi/ppa.c cmd->SCp.ptr = sg_virt(cmd->SCp.buffer); SCp 746 drivers/scsi/ppa.c cmd->SCp.buffer = NULL; SCp 747 drivers/scsi/ppa.c cmd->SCp.this_residual = 0; SCp 748 drivers/scsi/ppa.c cmd->SCp.ptr = NULL; SCp 750 drivers/scsi/ppa.c cmd->SCp.buffers_residual = scsi_sg_count(cmd) - 1; SCp 751 drivers/scsi/ppa.c cmd->SCp.phase++; SCp 764 drivers/scsi/ppa.c cmd->SCp.phase++; SCp 804 drivers/scsi/ppa.c cmd->SCp.phase = 0; /* bus free */ SCp 845 drivers/scsi/ppa.c switch (cmd->SCp.phase) { SCp 869 drivers/scsi/ppa.c if (cmd->SCp.phase) SCp 97 drivers/scsi/qedf/qedf.h #define CMD_SCSI_STATUS(Cmnd) ((Cmnd)->SCp.Status) SCp 869 drivers/scsi/qedf/qedf_io.c sc_cmd->SCp.ptr = (char *)io_req; SCp 1162 drivers/scsi/qedf/qedf_io.c if (!sc_cmd->SCp.ptr) { SCp 1308 drivers/scsi/qedf/qedf_io.c sc_cmd->SCp.ptr = NULL; SCp 1352 drivers/scsi/qedf/qedf_io.c if (!sc_cmd->SCp.ptr) { SCp 1414 drivers/scsi/qedf/qedf_io.c sc_cmd->SCp.ptr = NULL; SCp 2418 drivers/scsi/qedf/qedf_io.c if (sc_cmd->SCp.ptr) { SCp 2419 drivers/scsi/qedf/qedf_io.c io_req = (struct qedf_ioreq *)sc_cmd->SCp.ptr; SCp 676 drivers/scsi/qedf/qedf_main.c io_req = (struct qedf_ioreq *)sc_cmd->SCp.ptr; SCp 601 drivers/scsi/qedi/qedi_fw.c if (!sc_cmd->SCp.ptr) { SCp 486 drivers/scsi/qla1280.c #define CMD_SP(Cmnd) &Cmnd->SCp SCp 4718 drivers/scsi/qla2xxx/qla_def.h #define CMD_SP(Cmnd) ((Cmnd)->SCp.ptr) SCp 220 drivers/scsi/qla4xxx/ql4_def.h #define CMD_SP(Cmnd) ((Cmnd)->SCp.ptr) SCp 68 drivers/scsi/sgiwd93.c unsigned long len = cmd->SCp.this_residual; SCp 69 drivers/scsi/sgiwd93.c void *addr = cmd->SCp.ptr; SCp 75 drivers/scsi/sgiwd93.c cmd->SCp.dma_handle = physaddr; SCp 119 drivers/scsi/sgiwd93.c if (cmd->SCp.ptr == NULL || cmd->SCp.this_residual == 0) SCp 145 drivers/scsi/sgiwd93.c if (SCpnt->SCp.ptr == NULL || SCpnt->SCp.this_residual == 0) SCp 159 drivers/scsi/sgiwd93.c dma_unmap_single(hdata->dev, SCpnt->SCp.dma_handle, SCp 160 drivers/scsi/sgiwd93.c SCpnt->SCp.this_residual, SCp 337 drivers/scsi/sun3_scsi.c int wanted_len = cmd->SCp.this_residual; SCp 121 drivers/scsi/sym53c8xx_2/sym_glue.c #define SYM_UCMD_PTR(cmd) ((struct sym_ucmd *)(&(cmd)->SCp)) SCp 402 drivers/scsi/wd33c93.c cmd->SCp.buffer = scsi_sglist(cmd); SCp 403 drivers/scsi/wd33c93.c cmd->SCp.buffers_residual = scsi_sg_count(cmd) - 1; SCp 404 drivers/scsi/wd33c93.c cmd->SCp.ptr = sg_virt(cmd->SCp.buffer); SCp 405 drivers/scsi/wd33c93.c cmd->SCp.this_residual = cmd->SCp.buffer->length; SCp 407 drivers/scsi/wd33c93.c cmd->SCp.buffer = NULL; SCp 408 drivers/scsi/wd33c93.c cmd->SCp.buffers_residual = 0; SCp 409 drivers/scsi/wd33c93.c cmd->SCp.ptr = NULL; SCp 410 drivers/scsi/wd33c93.c cmd->SCp.this_residual = 0; SCp 430 drivers/scsi/wd33c93.c cmd->SCp.Status = ILLEGAL_STATUS_BYTE; SCp 553 drivers/scsi/wd33c93.c cmd->SCp.phase = 0; /* assume no disconnect */ SCp 570 drivers/scsi/wd33c93.c prev->SCp.phase = 1; SCp 578 drivers/scsi/wd33c93.c cmd->SCp.phase = 1; SCp 586 drivers/scsi/wd33c93.c write_wd33c93(regs, WD_SOURCE_ID, ((cmd->SCp.phase) ? SRCID_ER : 0)); SCp 655 drivers/scsi/wd33c93.c if ((cmd->SCp.phase == 0) && (hostdata->no_dma == 0)) { SCp 662 drivers/scsi/wd33c93.c cmd->SCp.this_residual); SCp 682 drivers/scsi/wd33c93.c printk("%s)EX-2 ", (cmd->SCp.phase) ? "d:" : "")) SCp 737 drivers/scsi/wd33c93.c if (!cmd->SCp.this_residual && cmd->SCp.buffers_residual) { SCp 738 drivers/scsi/wd33c93.c cmd->SCp.buffer = sg_next(cmd->SCp.buffer); SCp 739 drivers/scsi/wd33c93.c --cmd->SCp.buffers_residual; SCp 740 drivers/scsi/wd33c93.c cmd->SCp.this_residual = cmd->SCp.buffer->length; SCp 741 drivers/scsi/wd33c93.c cmd->SCp.ptr = sg_virt(cmd->SCp.buffer); SCp 743 drivers/scsi/wd33c93.c if (!cmd->SCp.this_residual) /* avoid bogus setups */ SCp 757 drivers/scsi/wd33c93.c transfer_pio(regs, (uchar *) cmd->SCp.ptr, SCp 758 drivers/scsi/wd33c93.c cmd->SCp.this_residual, data_in_dir, hostdata); SCp 759 drivers/scsi/wd33c93.c length = cmd->SCp.this_residual; SCp 760 drivers/scsi/wd33c93.c cmd->SCp.this_residual = read_wd33c93_count(regs); SCp 761 drivers/scsi/wd33c93.c cmd->SCp.ptr += (length - cmd->SCp.this_residual); SCp 778 drivers/scsi/wd33c93.c write_wd33c93_count(regs, cmd->SCp.this_residual); SCp 781 drivers/scsi/wd33c93.c (hostdata->level2 == L2_BASIC && cmd->SCp.phase == 0)) { SCp 834 drivers/scsi/wd33c93.c printk("[%p/%d:", cmd->SCp.ptr, cmd->SCp.this_residual)) SCp 837 drivers/scsi/wd33c93.c length = cmd->SCp.this_residual; SCp 838 drivers/scsi/wd33c93.c cmd->SCp.this_residual = read_wd33c93_count(regs); SCp 839 drivers/scsi/wd33c93.c cmd->SCp.ptr += (length - cmd->SCp.this_residual); SCp 841 drivers/scsi/wd33c93.c printk("%p/%d]", cmd->SCp.ptr, cmd->SCp.this_residual)) SCp 891 drivers/scsi/wd33c93.c if (cmd->SCp.phase) SCp 933 drivers/scsi/wd33c93.c printk("IN-%d.%d", cmd->SCp.this_residual, SCp 934 drivers/scsi/wd33c93.c cmd->SCp.buffers_residual)) SCp 945 drivers/scsi/wd33c93.c printk("OUT-%d.%d", cmd->SCp.this_residual, SCp 946 drivers/scsi/wd33c93.c cmd->SCp.buffers_residual)) SCp 969 drivers/scsi/wd33c93.c cmd->SCp.Status = read_1_byte(regs); SCp 970 drivers/scsi/wd33c93.c DB(DB_INTR, printk("%02x", cmd->SCp.Status)) SCp 998 drivers/scsi/wd33c93.c cmd->SCp.Message = msg; SCp 1170 drivers/scsi/wd33c93.c cmd->SCp.Message = COMMAND_COMPLETE; SCp 1172 drivers/scsi/wd33c93.c DB(DB_INTR, printk(":%d.%d", cmd->SCp.Status, lun)) SCp 1176 drivers/scsi/wd33c93.c if (cmd->SCp.Status == ILLEGAL_STATUS_BYTE) SCp 1177 drivers/scsi/wd33c93.c cmd->SCp.Status = lun; SCp 1179 drivers/scsi/wd33c93.c && cmd->SCp.Status != GOOD) SCp 1185 drivers/scsi/wd33c93.c cmd->SCp.Status | (cmd->SCp.Message << 8); SCp 1265 drivers/scsi/wd33c93.c if (cmd->cmnd[0] == REQUEST_SENSE && cmd->SCp.Status != GOOD) SCp 1269 drivers/scsi/wd33c93.c cmd->result = cmd->SCp.Status | (cmd->SCp.Message << 8); SCp 1297 drivers/scsi/wd33c93.c DB(DB_INTR, printk(":%d", cmd->SCp.Status)) SCp 1299 drivers/scsi/wd33c93.c && cmd->SCp.Status != GOOD) SCp 1305 drivers/scsi/wd33c93.c cmd->SCp.Status | (cmd->SCp.Message << 8); SCp 199 drivers/scsi/wd719x.c dma_unmap_single(&wd->pdev->dev, cmd->SCp.dma_handle, SCp 232 drivers/scsi/wd719x.c cmd->SCp.dma_handle = dma_map_single(&wd->pdev->dev, cmd->sense_buffer, SCp 234 drivers/scsi/wd719x.c if (dma_mapping_error(&wd->pdev->dev, cmd->SCp.dma_handle)) SCp 236 drivers/scsi/wd719x.c scb->sense_buf = cpu_to_le32(cmd->SCp.dma_handle); SCp 291 drivers/scsi/wd719x.c dma_unmap_single(&wd->pdev->dev, cmd->SCp.dma_handle, SCp 116 drivers/usb/storage/uas.c cmdinfo = (void *)&cmnd->SCp; SCp 145 drivers/usb/storage/uas.c struct scsi_cmnd *cmnd = container_of(scp, struct scsi_cmnd, SCp); SCp 166 drivers/usb/storage/uas.c cmdinfo = (void *)&cmnd->SCp; SCp 203 drivers/usb/storage/uas.c struct uas_cmd_info *ci = (void *)&cmnd->SCp; SCp 204 drivers/usb/storage/uas.c struct uas_cmd_info *cmdinfo = (void *)&cmnd->SCp; SCp 234 drivers/usb/storage/uas.c cmdinfo = (void *)&cmnd->SCp; SCp 248 drivers/usb/storage/uas.c struct uas_cmd_info *cmdinfo = (void *)&cmnd->SCp; SCp 266 drivers/usb/storage/uas.c struct uas_cmd_info *cmdinfo = (void *)&cmnd->SCp; SCp 332 drivers/usb/storage/uas.c cmdinfo = (void *)&cmnd->SCp; SCp 397 drivers/usb/storage/uas.c struct uas_cmd_info *cmdinfo = (void *)&cmnd->SCp; SCp 449 drivers/usb/storage/uas.c struct uas_cmd_info *cmdinfo = (void *)&cmnd->SCp; SCp 471 drivers/usb/storage/uas.c struct uas_cmd_info *cmdinfo = (void *)&cmnd->SCp; SCp 499 drivers/usb/storage/uas.c struct uas_cmd_info *cmdinfo = (void *)&cmnd->SCp; SCp 561 drivers/usb/storage/uas.c struct uas_cmd_info *cmdinfo = (void *)&cmnd->SCp; SCp 641 drivers/usb/storage/uas.c struct uas_cmd_info *cmdinfo = (void *)&cmnd->SCp; SCp 725 drivers/usb/storage/uas.c struct uas_cmd_info *cmdinfo = (void *)&cmnd->SCp; SCp 129 include/scsi/scsi_cmnd.h struct scsi_pointer SCp; /* Scratchpad used by some host adapters */