/linux/drivers/scsi/arm/ |
A D | scsi.h | 33 sg_set_buf(sg, SCp->ptr, SCp->this_residual); in copy_SCp_to_sg() 51 SCp->buffer = sg_next(SCp->buffer); in next_SCp() 53 SCp->ptr = sg_virt(SCp->buffer); in next_SCp() 54 SCp->this_residual = SCp->buffer->length; in next_SCp() 56 SCp->ptr = NULL; in next_SCp() 64 char c = *SCp->ptr; in get_next_SCp_byte() 66 SCp->ptr += 1; in get_next_SCp_byte() 74 *SCp->ptr = c; in put_next_SCp_byte() 75 SCp->ptr += 1; in put_next_SCp_byte() 88 SCpnt->SCp.ptr = sg_virt(SCpnt->SCp.buffer); in init_SCp() [all …]
|
A D | fas216.c | 176 prefix, SCp->ptr, SCp->this_residual, SCp->buffer, in print_SCp() 628 struct scsi_pointer *SCp = &info->scsi.SCp; in fas216_updateptrs() local 668 struct scsi_pointer *SCp = &info->scsi.SCp; in fas216_pio() local 1010 info->scsi.SCp = info->SCpnt->SCp; in fas216_reselected_intr() 1013 info->scsi.SCp.ptr, info->scsi.SCp.this_residual); in fas216_reselected_intr() 1077 info->SCpnt->SCp = info->scsi.SCp; in fas216_parse_message() 1081 info->scsi.SCp.ptr, info->scsi.SCp.this_residual); in fas216_parse_message() 1091 info->scsi.SCp = info->SCpnt->SCp; in fas216_parse_message() 1609 memset(&info->scsi.SCp, 0, sizeof(info->scsi.SCp)); in fas216_bus_reset() 1769 info->scsi.SCp = SCpnt->SCp; in fas216_start_command() [all …]
|
A D | acornscsi.c | 235 host->scsi.SCp.this_residual); in acornscsi_dumpdma() 237 host->scsi.SCp.scsi_xferred); in acornscsi_dumpdma() 728 host->scsi.SCp = SCpnt->SCp; in acornscsi_kick() 799 if (host->scsi.SCp.ptr && in acornscsi_done() 864 SCp->ptr += length; in acornscsi_data_updateptr() 865 SCp->this_residual -= length; in acornscsi_data_updateptr() 867 if (SCp->this_residual == 0 && next_SCp(SCp) == 0) in acornscsi_data_updateptr() 1492 host->SCpnt->SCp = host->scsi.SCp; in acornscsi_message() 1508 host->scsi.SCp = host->SCpnt->SCp; in acornscsi_message() 1808 host->scsi.SCp = host->SCpnt->SCp; in acornscsi_reconnect_finish() [all …]
|
A D | arxescsi.c | 67 arxescsi_dma_setup(struct Scsi_Host *host, struct scsi_pointer *SCp, in arxescsi_dma_setup() argument 113 arxescsi_dma_pseudo(struct Scsi_Host *host, struct scsi_pointer *SCp, in arxescsi_dma_pseudo() argument 121 length = SCp->this_residual; in arxescsi_dma_pseudo() 122 addr = SCp->ptr; in arxescsi_dma_pseudo() 199 static void arxescsi_dma_stop(struct Scsi_Host *host, struct scsi_pointer *SCp) in arxescsi_dma_stop() argument
|
A D | eesox.c | 155 eesoxscsi_dma_setup(struct Scsi_Host *host, struct scsi_pointer *SCp, in eesoxscsi_dma_setup() argument 163 (min_type == fasdma_real_all || SCp->this_residual >= 512)) { in eesoxscsi_dma_setup() 166 bufs = copy_SCp_to_sg(&info->sg[0], SCp, NR_SG); in eesoxscsi_dma_setup() 351 eesoxscsi_dma_pseudo(struct Scsi_Host *host, struct scsi_pointer *SCp, in eesoxscsi_dma_pseudo() argument 356 eesoxscsi_buffer_in(SCp->ptr, SCp->this_residual, info->base); in eesoxscsi_dma_pseudo() 358 eesoxscsi_buffer_out(SCp->ptr, SCp->this_residual, info->base); in eesoxscsi_dma_pseudo() 368 eesoxscsi_dma_stop(struct Scsi_Host *host, struct scsi_pointer *SCp) in eesoxscsi_dma_stop() argument
|
A D | cumana_2.c | 154 cumanascsi_2_dma_setup(struct Scsi_Host *host, struct scsi_pointer *SCp, in cumanascsi_2_dma_setup() argument 164 (min_type == fasdma_real_all || SCp->this_residual >= 512)) { in cumanascsi_2_dma_setup() 167 bufs = copy_SCp_to_sg(&info->sg[0], SCp, NR_SG); in cumanascsi_2_dma_setup() 207 cumanascsi_2_dma_pseudo(struct Scsi_Host *host, struct scsi_pointer *SCp, in cumanascsi_2_dma_pseudo() argument 214 length = SCp->this_residual; in cumanascsi_2_dma_pseudo() 215 addr = SCp->ptr; in cumanascsi_2_dma_pseudo() 281 cumanascsi_2_dma_stop(struct Scsi_Host *host, struct scsi_pointer *SCp) in cumanascsi_2_dma_stop() argument
|
A D | fas216.h | 241 struct scsi_pointer SCp; /* current commands data pointer */ member 302 …fasdmatype_t (*setup) (struct Scsi_Host *host, struct scsi_pointer *SCp, fasdmadir_t direction, fa… 303 …void (*pseudo)(struct Scsi_Host *host, struct scsi_pointer *SCp, fasdmadir_t direction, int trans… 304 void (*stop) (struct Scsi_Host *host, struct scsi_pointer *SCp);
|
/linux/drivers/scsi/ |
A D | 53c700.c | 580 if(SCp != NULL) { in save_for_reselection() 629 NCR_700_get_depth(SCp->device) > SCp->device->queue_depth) in NCR_700_scsi_done() 637 scsi_done(SCp); in NCR_700_scsi_done() 1077 SCp->cmd_len); in process_script_interrupt() 1266 scsi_for_each_sg(SCp, sg, scsi_sg_count(SCp) + 1, i) { in process_script_interrupt() 1431 if(SCp->cmnd[0] == INQUIRY || SCp->cmnd[0] == REQUEST_SENSE || in NCR_700_start_command() 1472 dma_sync_to_dev(hostdata, SCp->cmnd, SCp->cmd_len); in NCR_700_start_command() 1544 … host->host_no, SCp, SCp == NULL ? NULL : SCp->host_scribble, dsp, dsp - hostdata->pScript); in NCR_700_intr() 1795 SCp->SCp.ptr = NULL; in NCR_700_queuecommand_lck() 1796 SCp->SCp.buffer = NULL; in NCR_700_queuecommand_lck() [all …]
|
A D | aha152x.c | 689 ptr && SCp!=ptr; in remove_SC() 949 SCpnt->SCp.ptr = SG_ADDRESS(SCpnt->SCp.buffer); in aha152x_internal_queue() 950 SCpnt->SCp.this_residual = SCpnt->SCp.buffer->length; in aha152x_internal_queue() 2029 CURRENT_SC->SCp.buffer = sg_next(CURRENT_SC->SCp.buffer); in datai_run() 2030 CURRENT_SC->SCp.ptr = SG_ADDRESS(CURRENT_SC->SCp.buffer); in datai_run() 2031 CURRENT_SC->SCp.this_residual = CURRENT_SC->SCp.buffer->length; in datai_run() 2134 CURRENT_SC->SCp.buffer = sg_next(CURRENT_SC->SCp.buffer); in datao_run() 2135 CURRENT_SC->SCp.ptr = SG_ADDRESS(CURRENT_SC->SCp.buffer); in datao_run() 2136 CURRENT_SC->SCp.this_residual = CURRENT_SC->SCp.buffer->length; in datao_run() 2170 CURRENT_SC->SCp.ptr = SG_ADDRESS(CURRENT_SC->SCp.buffer) + done; in datao_end() [all …]
|
A D | imm.c | 687 if (cmd->SCp.buffer && !cmd->SCp.this_residual) { in imm_completion() 690 cmd->SCp.buffer = sg_next(cmd->SCp.buffer); in imm_completion() 693 cmd->SCp.ptr = sg_virt(cmd->SCp.buffer); in imm_completion() 803 cmd->SCp.phase++; in imm_engine() 811 cmd->SCp.phase++; in imm_engine() 821 cmd->SCp.phase++; in imm_engine() 827 cmd->SCp.this_residual = cmd->SCp.buffer->length; in imm_engine() 828 cmd->SCp.ptr = sg_virt(cmd->SCp.buffer); in imm_engine() 835 cmd->SCp.phase++; in imm_engine() 854 cmd->SCp.phase++; in imm_engine() [all …]
|
A D | fdomain.c | 279 cmd->SCp.phase = in_selection; in fdomain_work() 300 cmd->SCp.phase = in_other; in fdomain_work() 317 cmd->SCp.have_data_in = -1; in fdomain_work() 324 cmd->SCp.have_data_in = 1; in fdomain_work() 346 cmd->SCp.have_data_in = -1; in fdomain_work() 350 cmd->SCp.have_data_in = 1; in fdomain_work() 404 cmd->SCp.Status = 0; in fdomain_queue() 405 cmd->SCp.Message = 0; in fdomain_queue() 406 cmd->SCp.have_data_in = 0; in fdomain_queue() 407 cmd->SCp.sent_command = 0; in fdomain_queue() [all …]
|
A D | ppa.c | 590 if (cmd->SCp.buffer && !cmd->SCp.this_residual) { in ppa_completion() 593 cmd->SCp.buffer = sg_next(cmd->SCp.buffer); in ppa_completion() 596 cmd->SCp.ptr = sg_virt(cmd->SCp.buffer); in ppa_completion() 718 cmd->SCp.phase++; in ppa_engine() 727 cmd->SCp.phase++; in ppa_engine() 737 cmd->SCp.phase++; in ppa_engine() 743 cmd->SCp.this_residual = cmd->SCp.buffer->length; in ppa_engine() 744 cmd->SCp.ptr = sg_virt(cmd->SCp.buffer); in ppa_engine() 751 cmd->SCp.phase++; in ppa_engine() 764 cmd->SCp.phase++; in ppa_engine() [all …]
|
A D | wd33c93.c | 400 cmd->SCp.ptr = sg_virt(cmd->SCp.buffer); in wd33c93_queuecommand_lck() 401 cmd->SCp.this_residual = cmd->SCp.buffer->length; in wd33c93_queuecommand_lck() 574 cmd->SCp.phase = 1; in DEF_SCSI_QCMD() 733 if (!cmd->SCp.this_residual && cmd->SCp.buffers_residual) { in transfer_bytes() 734 cmd->SCp.buffer = sg_next(cmd->SCp.buffer); in transfer_bytes() 736 cmd->SCp.this_residual = cmd->SCp.buffer->length; in transfer_bytes() 737 cmd->SCp.ptr = sg_virt(cmd->SCp.buffer); in transfer_bytes() 757 cmd->SCp.ptr += (length - cmd->SCp.this_residual); in transfer_bytes() 830 printk("[%p/%d:", cmd->SCp.ptr, cmd->SCp.this_residual)) in wd33c93_intr() 835 cmd->SCp.ptr += (length - cmd->SCp.this_residual); in wd33c93_intr() [all …]
|
A D | NCR5380.c | 155 cmd->SCp.ptr = sg_virt(cmd->SCp.buffer); in initialize_SCp() 156 cmd->SCp.this_residual = cmd->SCp.buffer->length; in initialize_SCp() 158 cmd->SCp.buffer = NULL; in initialize_SCp() 159 cmd->SCp.ptr = NULL; in initialize_SCp() 160 cmd->SCp.this_residual = 0; in initialize_SCp() 163 cmd->SCp.Status = 0; in initialize_SCp() 164 cmd->SCp.Message = 0; in initialize_SCp() 173 cmd->SCp.ptr = sg_virt(cmd->SCp.buffer); in advance_sg_buffer() 174 cmd->SCp.this_residual = cmd->SCp.buffer->length; in advance_sg_buffer() 1814 cmd->SCp.Message = tmp; in NCR5380_information_transfer() [all …]
|
A D | a2091.c | 48 unsigned long addr = virt_to_bus(cmd->SCp.ptr); in dma_setup() 52 wh->dma_bounce_len = (cmd->SCp.this_residual + 511) & ~0x1ff; in dma_setup() 76 memcpy(wh->dma_bounce_buffer, cmd->SCp.ptr, in dma_setup() 77 cmd->SCp.this_residual); in dma_setup() 95 cache_clear(addr, cmd->SCp.this_residual); in dma_setup() 98 cache_push(addr, cmd->SCp.this_residual); in dma_setup() 142 memcpy(SCpnt->SCp.ptr, wh->dma_bounce_buffer, in dma_stop() 143 SCpnt->SCp.this_residual); in dma_stop()
|
A D | a3000.c | 52 unsigned long addr = virt_to_bus(cmd->SCp.ptr); in dma_setup() 61 wh->dma_bounce_len = (cmd->SCp.this_residual + 511) & ~0x1ff; in dma_setup() 73 memcpy(wh->dma_bounce_buffer, cmd->SCp.ptr, in dma_setup() 74 cmd->SCp.this_residual); in dma_setup() 94 cache_clear(addr, cmd->SCp.this_residual); in dma_setup() 97 cache_push(addr, cmd->SCp.this_residual); in dma_setup() 152 memcpy(SCpnt->SCp.ptr, wh->dma_bounce_buffer, in dma_stop() 153 SCpnt->SCp.this_residual); in dma_stop()
|
A D | sgiwd93.c | 68 unsigned long len = cmd->SCp.this_residual; in fill_hpc_entries() 69 void *addr = cmd->SCp.ptr; in fill_hpc_entries() 75 cmd->SCp.dma_handle = physaddr; in fill_hpc_entries() 119 if (cmd->SCp.ptr == NULL || cmd->SCp.this_residual == 0) in dma_setup() 145 if (SCpnt->SCp.ptr == NULL || SCpnt->SCp.this_residual == 0) in dma_stop() 159 dma_unmap_single(hdata->dev, SCpnt->SCp.dma_handle, in dma_stop() 160 SCpnt->SCp.this_residual, in dma_stop()
|
A D | gvp11.c | 57 unsigned long addr = virt_to_bus(cmd->SCp.ptr); in dma_setup() 63 wh->dma_bounce_len = (cmd->SCp.this_residual + 511) & ~0x1ff; in dma_setup() 112 memcpy(wh->dma_bounce_buffer, cmd->SCp.ptr, in dma_setup() 113 cmd->SCp.this_residual); in dma_setup() 129 cache_clear(addr, cmd->SCp.this_residual); in dma_setup() 132 cache_push(addr, cmd->SCp.this_residual); in dma_setup() 161 memcpy(SCpnt->SCp.ptr, wh->dma_bounce_buffer, in dma_stop() 162 SCpnt->SCp.this_residual); in dma_stop()
|
A D | mvme147.c | 35 unsigned long addr = virt_to_bus(cmd->SCp.ptr); in dma_setup() 46 cache_clear(addr, cmd->SCp.this_residual); in dma_setup() 49 cache_push(addr, cmd->SCp.this_residual); in dma_setup() 53 m147_pcc->dma_bcr = cmd->SCp.this_residual | (1 << 24); in dma_setup()
|
A D | mac53c94.c | 267 nb = cmd->SCp.this_residual; in mac53c94_interrupt() 270 cmd->SCp.this_residual -= nb; in mac53c94_interrupt() 297 if (cmd->SCp.this_residual != 0 in mac53c94_interrupt() 300 nb = cmd->SCp.this_residual; in mac53c94_interrupt() 303 cmd->SCp.this_residual -= nb; in mac53c94_interrupt() 325 cmd->SCp.Status = readb(®s->fifo); in mac53c94_interrupt() 326 cmd->SCp.Message = readb(®s->fifo); in mac53c94_interrupt() 334 cmd_done(state, (DID_OK << 16) + (cmd->SCp.Message << 8) in mac53c94_interrupt() 335 + cmd->SCp.Status); in mac53c94_interrupt() 393 cmd->SCp.this_residual = total; in set_dma_cmds()
|
/linux/drivers/scsi/pcmcia/ |
A D | nsp_cs.c | 222 SCpnt->SCp.Message = 0; in nsp_queuecommand_lck() 237 SCpnt->SCp.this_residual = SCpnt->SCp.buffer->length; in nsp_queuecommand_lck() 725 SCpnt->SCp.this_residual, SCpnt->SCp.buffer, in nsp_pio_read() 731 (SCpnt->SCp.this_residual > 0 || SCpnt->SCp.buffers_residual > 0 ) ) { in nsp_pio_read() 787 SCpnt->SCp.buffer = sg_next(SCpnt->SCp.buffer); in nsp_pio_read() 789 SCpnt->SCp.this_residual = SCpnt->SCp.buffer->length; in nsp_pio_read() 823 data->FifoCount, SCpnt->SCp.ptr, SCpnt->SCp.this_residual, in nsp_pio_write() 824 SCpnt->SCp.buffer, SCpnt->SCp.buffers_residual, in nsp_pio_write() 830 (SCpnt->SCp.this_residual > 0 || SCpnt->SCp.buffers_residual > 0)) { in nsp_pio_write() 885 SCpnt->SCp.buffer = sg_next(SCpnt->SCp.buffer); in nsp_pio_write() [all …]
|
A D | sym53c500_cs.c | 415 curSC->SCp.phase = data_out; in SYM53C500_intr() 434 curSC->SCp.phase = data_in; in SYM53C500_intr() 449 curSC->SCp.phase = command_ph; in SYM53C500_intr() 454 curSC->SCp.phase = status_ph; in SYM53C500_intr() 467 curSC->SCp.phase = message_out; in SYM53C500_intr() 474 curSC->SCp.phase = message_in; in SYM53C500_intr() 480 DEB(printk("Status = %02x Message = %02x\n", curSC->SCp.Status, curSC->SCp.Message)); in SYM53C500_intr() 482 if (curSC->SCp.Message == SAVE_POINTERS || curSC->SCp.Message == DISCONNECT) { in SYM53C500_intr() 494 curSC->SCp.phase = idle; in SYM53C500_intr() 559 data->current_SC->SCp.Status = 0; in SYM53C500_queue_lck() [all …]
|
/linux/drivers/scsi/fnic/ |
A D | fnic.h | 95 #define CMD_SP(Cmnd) ((Cmnd)->SCp.ptr) 96 #define CMD_STATE(Cmnd) ((Cmnd)->SCp.phase) 97 #define CMD_ABTS_STATUS(Cmnd) ((Cmnd)->SCp.Message) 98 #define CMD_LR_STATUS(Cmnd) ((Cmnd)->SCp.have_data_in) 99 #define CMD_TAG(Cmnd) ((Cmnd)->SCp.sent_command) 100 #define CMD_FLAGS(Cmnd) ((Cmnd)->SCp.Status)
|
/linux/drivers/usb/storage/ |
A D | uas.c | 116 cmdinfo = (void *)&cmnd->SCp; in uas_do_work() 166 cmdinfo = (void *)&cmnd->SCp; in uas_zap_pending() 203 struct uas_cmd_info *ci = (void *)&cmnd->SCp; in uas_log_cmd_state() 204 struct uas_cmd_info *cmdinfo = (void *)&cmnd->SCp; in uas_log_cmd_state() 234 cmdinfo = (void *)&cmnd->SCp; in uas_free_unsubmitted_urbs() 248 struct uas_cmd_info *cmdinfo = (void *)&cmnd->SCp; in uas_try_complete() 266 struct uas_cmd_info *cmdinfo = (void *)&cmnd->SCp; in uas_xfer_data() 332 cmdinfo = (void *)&cmnd->SCp; in uas_stat_cmplt() 397 struct uas_cmd_info *cmdinfo = (void *)&cmnd->SCp; in uas_data_cmplt() 449 struct uas_cmd_info *cmdinfo = (void *)&cmnd->SCp; in uas_alloc_data_urb() [all …]
|
/linux/drivers/scsi/bfa/ |
A D | bfad_im.c | 153 cmnd->SCp.Status |= tsk_status << 1; in bfa_cb_tskim_done() 155 wq = (wait_queue_head_t *) cmnd->SCp.ptr; in bfa_cb_tskim_done() 156 cmnd->SCp.ptr = NULL; in bfa_cb_tskim_done() 262 cmnd->SCp.Status = 0; in bfad_im_target_reset_send() 329 cmnd->SCp.ptr = (char *)&wq; in bfad_im_reset_lun_handler() 330 cmnd->SCp.Status = 0; in bfad_im_reset_lun_handler() 351 (unsigned long *)&cmnd->SCp.Status)); in bfad_im_reset_lun_handler() 353 task_status = cmnd->SCp.Status >> 1; in bfad_im_reset_lun_handler() 384 cmnd->SCp.ptr = (char *)&wq; in bfad_im_reset_target_handler() 390 (unsigned long *)&cmnd->SCp.Status)); in bfad_im_reset_target_handler() [all …]
|