/drivers/scsi/arm/ |
D | scsi.h | 27 static inline int copy_SCp_to_sg(struct scatterlist *sg, struct scsi_pointer *SCp, int max) in copy_SCp_to_sg() argument 29 int bufs = SCp->buffers_residual; in copy_SCp_to_sg() 36 sg_set_buf(sg, SCp->ptr, SCp->this_residual); in copy_SCp_to_sg() 42 for_each_sg(sg_next(SCp->buffer), src_sg, bufs, i) in copy_SCp_to_sg() 50 static inline int next_SCp(struct scsi_pointer *SCp) in next_SCp() argument 52 int ret = SCp->buffers_residual; in next_SCp() 54 SCp->buffer = sg_next(SCp->buffer); in next_SCp() 55 SCp->buffers_residual--; in next_SCp() 56 SCp->ptr = sg_virt(SCp->buffer); in next_SCp() 57 SCp->this_residual = SCp->buffer->length; in next_SCp() [all …]
|
D | fas216.c | 175 static void print_SCp(struct scsi_pointer *SCp, const char *prefix, const char *suffix) in print_SCp() argument 178 prefix, SCp->ptr, SCp->this_residual, SCp->buffer, in print_SCp() 179 SCp->buffers_residual, suffix); in print_SCp() 201 print_SCp(&info->scsi.SCp, " SCp={ ", " }\n"); in fas216_dumpinfo() 630 struct scsi_pointer *SCp = &info->scsi.SCp; in fas216_updateptrs() local 636 SCp->phase -= bytes_transferred; in fas216_updateptrs() 639 if (SCp->this_residual > bytes_transferred) in fas216_updateptrs() 645 bytes_transferred -= SCp->this_residual; in fas216_updateptrs() 646 if (!next_SCp(SCp) && bytes_transferred) { in fas216_updateptrs() 653 SCp->this_residual -= bytes_transferred; in fas216_updateptrs() [all …]
|
D | acornscsi.c | 258 printk("BH @%p +%04x, ", host->scsi.SCp.ptr, in acornscsi_dumpdma() 259 host->scsi.SCp.this_residual); in acornscsi_dumpdma() 261 host->scsi.SCp.scsi_xferred); in acornscsi_dumpdma() 751 host->scsi.SCp = SCpnt->SCp; in acornscsi_kick() 815 SCpnt->result = result << 16 | host->scsi.SCp.Message << 8 | host->scsi.SCp.Status; in acornscsi_done() 829 if (host->scsi.SCp.ptr && in acornscsi_done() 833 if (host->scsi.SCp.scsi_xferred < SCpnt->underflow || in acornscsi_done() 834 host->scsi.SCp.scsi_xferred != host->dma.transferred) in acornscsi_done() 894 void acornscsi_data_updateptr(AS_Host *host, struct scsi_pointer *SCp, unsigned int length) in acornscsi_data_updateptr() argument 896 SCp->ptr += length; in acornscsi_data_updateptr() [all …]
|
/drivers/scsi/ |
D | 53c700.c | 565 struct scsi_cmnd *SCp, __u32 dsp) in save_for_reselection() argument 568 if(SCp != NULL) { in save_for_reselection() 570 (struct NCR_700_command_slot *)SCp->host_scribble; in save_for_reselection() 579 NCR_700_unmap(struct NCR_700_Host_Parameters *hostdata, struct scsi_cmnd *SCp, in NCR_700_unmap() argument 582 if(SCp->sc_data_direction != DMA_NONE && in NCR_700_unmap() 583 SCp->sc_data_direction != DMA_BIDIRECTIONAL) in NCR_700_unmap() 584 scsi_dma_unmap(SCp); in NCR_700_unmap() 589 struct scsi_cmnd *SCp, int result) in NCR_700_scsi_done() argument 594 if(SCp != NULL) { in NCR_700_scsi_done() 596 (struct NCR_700_command_slot *)SCp->host_scribble; in NCR_700_scsi_done() [all …]
|
D | fdomain.c | 1158 if (current_SC->SCp.phase & aborted) { in do_fdomain_16x0_intr() 1170 if (current_SC->SCp.phase & in_arbitration) { in do_fdomain_16x0_intr() 1181 current_SC->SCp.phase = in_selection; in do_fdomain_16x0_intr() 1194 } else if (current_SC->SCp.phase & in_selection) { in do_fdomain_16x0_intr() 1214 current_SC->SCp.phase = in_other; in do_fdomain_16x0_intr() 1232 outb(current_SC->cmnd[current_SC->SCp.sent_command++], in do_fdomain_16x0_intr() 1236 current_SC->cmnd[ current_SC->SCp.sent_command - 1] ); in do_fdomain_16x0_intr() 1240 if (chip != tmc1800 && !current_SC->SCp.have_data_in) { in do_fdomain_16x0_intr() 1241 current_SC->SCp.have_data_in = -1; in do_fdomain_16x0_intr() 1246 if (chip != tmc1800 && !current_SC->SCp.have_data_in) { in do_fdomain_16x0_intr() [all …]
|
D | in2000.c | 372 cmd->SCp.buffer = scsi_sglist(cmd); in in2000_queuecommand_lck() 373 cmd->SCp.buffers_residual = scsi_sg_count(cmd) - 1; in in2000_queuecommand_lck() 374 cmd->SCp.ptr = sg_virt(cmd->SCp.buffer); in in2000_queuecommand_lck() 375 cmd->SCp.this_residual = cmd->SCp.buffer->length; in in2000_queuecommand_lck() 377 cmd->SCp.buffer = NULL; in in2000_queuecommand_lck() 378 cmd->SCp.buffers_residual = 0; in in2000_queuecommand_lck() 379 cmd->SCp.ptr = NULL; in in2000_queuecommand_lck() 380 cmd->SCp.this_residual = 0; in in2000_queuecommand_lck() 382 cmd->SCp.have_data_in = 0; in in2000_queuecommand_lck() 403 cmd->SCp.Status = ILLEGAL_STATUS_BYTE; in in2000_queuecommand_lck() [all …]
|
D | imm.c | 67 dev->cur_cmd->SCp.phase = 1; in got_it() 660 if (((r & 0x88) != 0x88) || (cmd->SCp.this_residual <= 0)) { in imm_completion() 667 && (cmd->SCp.this_residual >= in imm_completion() 669 status = imm_out(dev, cmd->SCp.ptr, fast); in imm_completion() 672 && (cmd->SCp.this_residual >= in imm_completion() 674 status = imm_in(dev, cmd->SCp.ptr, fast); in imm_completion() 677 cmd->SCp.ptr += fast; in imm_completion() 678 cmd->SCp.this_residual -= fast; in imm_completion() 684 if (cmd->SCp.buffer && !cmd->SCp.this_residual) { in imm_completion() 686 if (cmd->SCp.buffers_residual--) { in imm_completion() [all …]
|
D | eata_pio.c | 130 static void IncStat(struct scsi_pointer *SCp, unsigned int Increment) in IncStat() argument 132 SCp->ptr += Increment; in IncStat() 133 if ((SCp->this_residual -= Increment) == 0) { in IncStat() 134 if ((--SCp->buffers_residual) == 0) in IncStat() 135 SCp->Status = 0; in IncStat() 137 SCp->buffer++; in IncStat() 138 SCp->ptr = sg_virt(SCp->buffer); in IncStat() 139 SCp->this_residual = SCp->buffer->length; in IncStat() 193 while ((cmd->SCp.Status) && ((z > 0) || (odd))) { in eata_pio_int_handler() 195 *(cmd->SCp.ptr) = zwickel >> 8; in eata_pio_int_handler() [all …]
|
D | aha152x.c | 749 static inline Scsi_Cmnd *remove_SC(Scsi_Cmnd **SC, Scsi_Cmnd *SCp) in remove_SC() argument 754 ptr && SCp!=ptr; in remove_SC() 948 CURRENT_SC->SCp.phase |= 1 << 16; in setup_expected_interrupts() 950 if(CURRENT_SC->SCp.phase & selecting) { in setup_expected_interrupts() 956 …xpecting: (phase change) (busfree) %s\n", CMDINFO(CURRENT_SC), CURRENT_SC->SCp.phase & spiordy ? "… in setup_expected_interrupts() 957 SETPORT(SIMODE0, (CURRENT_SC->SCp.phase & spiordy) ? ENSPIORDY : 0); in setup_expected_interrupts() 999 SCpnt->SCp.phase = not_issued | phase; in aha152x_internal_queue() 1000 SCpnt->SCp.Status = 0x1; /* Ilegal status by SCSI standard */ in aha152x_internal_queue() 1001 SCpnt->SCp.Message = 0; in aha152x_internal_queue() 1002 SCpnt->SCp.have_data_in = 0; in aha152x_internal_queue() [all …]
|
D | ppa.c | 58 dev->cur_cmd->SCp.phase = 1; in got_it() 545 if ((cmd->SCp.this_residual <= 0)) { in ppa_completion() 574 fast = (bulk && (cmd->SCp.this_residual >= PPA_BURST_SIZE)) in ppa_completion() 578 status = ppa_out(dev, cmd->SCp.ptr, fast); in ppa_completion() 580 status = ppa_in(dev, cmd->SCp.ptr, fast); in ppa_completion() 582 cmd->SCp.ptr += fast; in ppa_completion() 583 cmd->SCp.this_residual -= fast; in ppa_completion() 589 if (cmd->SCp.buffer && !cmd->SCp.this_residual) { in ppa_completion() 591 if (cmd->SCp.buffers_residual--) { in ppa_completion() 592 cmd->SCp.buffer++; in ppa_completion() [all …]
|
D | wd33c93.c | 411 cmd->SCp.buffer = scsi_sglist(cmd); in wd33c93_queuecommand_lck() 412 cmd->SCp.buffers_residual = scsi_sg_count(cmd) - 1; in wd33c93_queuecommand_lck() 413 cmd->SCp.ptr = sg_virt(cmd->SCp.buffer); in wd33c93_queuecommand_lck() 414 cmd->SCp.this_residual = cmd->SCp.buffer->length; in wd33c93_queuecommand_lck() 416 cmd->SCp.buffer = NULL; in wd33c93_queuecommand_lck() 417 cmd->SCp.buffers_residual = 0; in wd33c93_queuecommand_lck() 418 cmd->SCp.ptr = NULL; in wd33c93_queuecommand_lck() 419 cmd->SCp.this_residual = 0; in wd33c93_queuecommand_lck() 439 cmd->SCp.Status = ILLEGAL_STATUS_BYTE; in wd33c93_queuecommand_lck() 561 cmd->SCp.phase = 0; /* assume no disconnect */ in DEF_SCSI_QCMD() [all …]
|
D | NCR53c406a.c | 687 current_SC->SCp.phase = idle; 711 current_SC->SCp.phase = command_ph; in NCR53c406a_queue_lck() 712 current_SC->SCp.Status = 0; in NCR53c406a_queue_lck() 713 current_SC->SCp.Message = 0; in NCR53c406a_queue_lck() 818 current_SC->SCp.phase = idle; in NCR53c406a_intr() 826 current_SC->SCp.phase = idle; in NCR53c406a_intr() 835 current_SC->SCp.phase = idle; in NCR53c406a_intr() 843 current_SC->SCp.phase = idle; in NCR53c406a_intr() 851 if (current_SC->SCp.phase != message_in) { /* Unexpected disconnect */ in NCR53c406a_intr() 854 current_SC->result = (current_SC->SCp.Status & 0xff) in NCR53c406a_intr() [all …]
|
D | atari_NCR5380.c | 474 unsigned long oldlen = cmd->SCp.this_residual; in merge_contiguous_buffers() 478 for (endaddr = virt_to_phys(cmd->SCp.ptr + cmd->SCp.this_residual - 1) + 1; in merge_contiguous_buffers() 479 cmd->SCp.buffers_residual && in merge_contiguous_buffers() 480 virt_to_phys(sg_virt(&cmd->SCp.buffer[1])) == endaddr;) { in merge_contiguous_buffers() 482 page_address(sg_page(&cmd->SCp.buffer[1])), endaddr); in merge_contiguous_buffers() 486 ++cmd->SCp.buffer; in merge_contiguous_buffers() 487 --cmd->SCp.buffers_residual; in merge_contiguous_buffers() 488 cmd->SCp.this_residual += cmd->SCp.buffer->length; in merge_contiguous_buffers() 489 endaddr += cmd->SCp.buffer->length; in merge_contiguous_buffers() 492 if (oldlen != cmd->SCp.this_residual) in merge_contiguous_buffers() [all …]
|
D | sym53c416.c | 347 current_command->SCp.phase = idle; in sym53c416_intr_handle() 357 current_command->SCp.phase = idle; in sym53c416_intr_handle() 367 current_command->SCp.phase = idle; in sym53c416_intr_handle() 377 current_command->SCp.phase = idle; in sym53c416_intr_handle() 387 current_command->SCp.phase = idle; in sym53c416_intr_handle() 396 if(current_command->SCp.phase != message_in) in sym53c416_intr_handle() 399 …current_command->result = (current_command->SCp.Status & 0xFF) | ((current_command->SCp.Message & … in sym53c416_intr_handle() 400 current_command->SCp.phase = idle; in sym53c416_intr_handle() 414 current_command->SCp.phase = data_out; in sym53c416_intr_handle() 436 current_command->SCp.phase = data_in; in sym53c416_intr_handle() [all …]
|
D | sun3_NCR5380.c | 472 cmd->SCp.buffer = scsi_sglist(cmd); in initialize_SCp() 473 cmd->SCp.buffers_residual = scsi_sg_count(cmd) - 1; in initialize_SCp() 474 cmd->SCp.ptr = (char *) SGADDR(cmd->SCp.buffer); in initialize_SCp() 475 cmd->SCp.this_residual = cmd->SCp.buffer->length; in initialize_SCp() 477 cmd->SCp.buffer = NULL; in initialize_SCp() 478 cmd->SCp.buffers_residual = 0; in initialize_SCp() 479 cmd->SCp.ptr = NULL; in initialize_SCp() 480 cmd->SCp.this_residual = 0; in initialize_SCp() 1166 data = (unsigned char **) &(hostdata->connected->SCp.ptr); in NCR5380_dma_complete() 1167 count = &(hostdata->connected->SCp.this_residual); in NCR5380_dma_complete() [all …]
|
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()
|
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()
|
D | NCR5380.c | 299 cmd->SCp.buffer = scsi_sglist(cmd); in initialize_SCp() 300 cmd->SCp.buffers_residual = scsi_sg_count(cmd) - 1; in initialize_SCp() 301 cmd->SCp.ptr = sg_virt(cmd->SCp.buffer); in initialize_SCp() 302 cmd->SCp.this_residual = cmd->SCp.buffer->length; in initialize_SCp() 304 cmd->SCp.buffer = NULL; in initialize_SCp() 305 cmd->SCp.buffers_residual = 0; in initialize_SCp() 306 cmd->SCp.ptr = NULL; in initialize_SCp() 307 cmd->SCp.this_residual = 0; in initialize_SCp() 1200 hostdata->connected->SCp.this_residual -= transferred; in NCR5380_intr() 1201 hostdata->connected->SCp.ptr += transferred; in NCR5380_intr() [all …]
|
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()
|
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()
|
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()
|
D | mac53c94.c | 268 nb = cmd->SCp.this_residual; in mac53c94_interrupt() 271 cmd->SCp.this_residual -= nb; in mac53c94_interrupt() 298 if (cmd->SCp.this_residual != 0 in mac53c94_interrupt() 301 nb = cmd->SCp.this_residual; in mac53c94_interrupt() 304 cmd->SCp.this_residual -= nb; in mac53c94_interrupt() 326 cmd->SCp.Status = readb(®s->fifo); in mac53c94_interrupt() 327 cmd->SCp.Message = readb(®s->fifo); in mac53c94_interrupt() 336 cmd_done(state, (DID_OK << 16) + (cmd->SCp.Message << 8) in mac53c94_interrupt() 337 + cmd->SCp.Status); in mac53c94_interrupt() 395 cmd->SCp.this_residual = total; in set_dma_cmds()
|
/drivers/scsi/pcmcia/ |
D | nsp_cs.c | 227 SCpnt->SCp.Status = CHECK_CONDITION; in nsp_queuecommand_lck() 228 SCpnt->SCp.Message = 0; in nsp_queuecommand_lck() 229 SCpnt->SCp.have_data_in = IO_UNKNOWN; in nsp_queuecommand_lck() 230 SCpnt->SCp.sent_command = 0; in nsp_queuecommand_lck() 231 SCpnt->SCp.phase = PH_UNDETERMINED; in nsp_queuecommand_lck() 241 SCpnt->SCp.buffer = scsi_sglist(SCpnt); in nsp_queuecommand_lck() 242 SCpnt->SCp.ptr = BUFFER_ADDR; in nsp_queuecommand_lck() 243 SCpnt->SCp.this_residual = SCpnt->SCp.buffer->length; in nsp_queuecommand_lck() 244 SCpnt->SCp.buffers_residual = scsi_sg_count(SCpnt) - 1; in nsp_queuecommand_lck() 246 SCpnt->SCp.ptr = NULL; in nsp_queuecommand_lck() [all …]
|
D | sym53c500_cs.c | 409 if (curSC->SCp.phase != message_in) { /* Unexpected disconnect */ in SYM53C500_intr() 412 curSC->result = (curSC->SCp.Status & 0xff) in SYM53C500_intr() 413 | ((curSC->SCp.Message & 0xff) << 8) | (DID_OK << 16); in SYM53C500_intr() 424 curSC->SCp.phase = data_out; in SYM53C500_intr() 443 curSC->SCp.phase = data_in; in SYM53C500_intr() 458 curSC->SCp.phase = command_ph; in SYM53C500_intr() 463 curSC->SCp.phase = status_ph; in SYM53C500_intr() 476 curSC->SCp.phase = message_out; in SYM53C500_intr() 483 curSC->SCp.phase = message_in; in SYM53C500_intr() 485 curSC->SCp.Status = inb(port_base + SCSI_FIFO); in SYM53C500_intr() [all …]
|
/drivers/scsi/fnic/ |
D | fnic.h | 91 #define CMD_SP(Cmnd) ((Cmnd)->SCp.ptr) 92 #define CMD_STATE(Cmnd) ((Cmnd)->SCp.phase) 93 #define CMD_ABTS_STATUS(Cmnd) ((Cmnd)->SCp.Message) 94 #define CMD_LR_STATUS(Cmnd) ((Cmnd)->SCp.have_data_in) 95 #define CMD_TAG(Cmnd) ((Cmnd)->SCp.sent_command) 96 #define CMD_FLAGS(Cmnd) ((Cmnd)->SCp.Status)
|