/drivers/scsi/arm/ |
H A D | scsi.h | 24 * entries of uninitialized memory. SCp is from scsi-ml and has a valid 27 static inline int copy_SCp_to_sg(struct scatterlist *sg, struct scsi_pointer *SCp, int max) argument 29 int bufs = SCp->buffers_residual; 36 sg_set_buf(sg, SCp->ptr, SCp->this_residual); 42 for_each_sg(sg_next(SCp->buffer), src_sg, bufs, i) 50 static inline int next_SCp(struct scsi_pointer *SCp) argument 52 int ret = SCp->buffers_residual; 54 SCp->buffer = sg_next(SCp 65 get_next_SCp_byte(struct scsi_pointer *SCp) argument 75 put_next_SCp_byte(struct scsi_pointer *SCp, unsigned char c) argument [all...] |
H A D | fas216.c | 175 static void print_SCp(struct scsi_pointer *SCp, const char *prefix, const char *suffix) argument 178 prefix, SCp->ptr, SCp->this_residual, SCp->buffer, 179 SCp->buffers_residual, suffix); 200 print_SCp(&info->scsi.SCp, " SCp={ ", " }\n"); 630 struct scsi_pointer *SCp = &info->scsi.SCp; local 636 SCp 670 struct scsi_pointer *SCp = &info->scsi.SCp; local [all...] |
H A D | acornscsi.c | 259 printk("BH @%p +%04x, ", host->scsi.SCp.ptr, 260 host->scsi.SCp.this_residual); 262 host->scsi.SCp.scsi_xferred); 752 host->scsi.SCp = SCpnt->SCp; 816 SCpnt->result = result << 16 | host->scsi.SCp.Message << 8 | host->scsi.SCp.Status; 830 if (host->scsi.SCp.ptr && 834 if (host->scsi.SCp.scsi_xferred < SCpnt->underflow || 835 host->scsi.SCp 895 acornscsi_data_updateptr(AS_Host *host, struct scsi_pointer *SCp, unsigned int length) argument [all...] |
H A D | arxescsi.c | 66 arxescsi_dma_setup(struct Scsi_Host *host, struct scsi_pointer *SCp, argument 112 arxescsi_dma_pseudo(struct Scsi_Host *host, struct scsi_pointer *SCp, argument 120 length = SCp->this_residual; 121 addr = SCp->ptr; 198 static void arxescsi_dma_stop(struct Scsi_Host *host, struct scsi_pointer *SCp) argument
|
/drivers/scsi/ |
H A D | 53c700.c | 67 * Bogendoerfer). Added missing SCp->request_bufflen initialisation 566 struct scsi_cmnd *SCp, __u32 dsp) 569 if(SCp != NULL) { 571 (struct NCR_700_command_slot *)SCp->host_scribble; 580 NCR_700_unmap(struct NCR_700_Host_Parameters *hostdata, struct scsi_cmnd *SCp, argument 583 if(SCp->sc_data_direction != DMA_NONE && 584 SCp->sc_data_direction != DMA_BIDIRECTIONAL) 585 scsi_dma_unmap(SCp); 590 struct scsi_cmnd *SCp, int result) 595 if(SCp ! 565 save_for_reselection(struct NCR_700_Host_Parameters *hostdata, struct scsi_cmnd *SCp, __u32 dsp) argument 589 NCR_700_scsi_done(struct NCR_700_Host_Parameters *hostdata, struct scsi_cmnd *SCp, int result) argument 787 process_extended_message(struct Scsi_Host *host, struct NCR_700_Host_Parameters *hostdata, struct scsi_cmnd *SCp, __u32 dsp, __u32 dsps) argument 870 process_message(struct Scsi_Host *host, struct NCR_700_Host_Parameters *hostdata, struct scsi_cmnd *SCp, __u32 dsp, __u32 dsps) argument 957 process_script_interrupt(__u32 dsps, __u32 dsp, struct scsi_cmnd *SCp, struct Scsi_Host *host, struct NCR_700_Host_Parameters *hostdata) argument 1115 struct scsi_cmnd *SCp = scsi_find_tag(SDp, hostdata->msgin[2]); local 1127 struct scsi_cmnd *SCp = scsi_find_tag(SDp, SCSI_NO_TAG); local 1290 struct scsi_cmnd *SCp = hostdata->cmd; local 1393 NCR_700_start_command(struct scsi_cmnd *SCp) argument 1503 struct scsi_cmnd *SCp = hostdata->cmd; local 1552 struct scsi_cmnd *SCp; local 1753 NCR_700_queuecommand_lck(struct scsi_cmnd *SCp, void (*done)(struct scsi_cmnd *)) argument 1942 NCR_700_bus_reset(struct scsi_cmnd * SCp) argument 1979 NCR_700_host_reset(struct scsi_cmnd * SCp) argument [all...] |
H A D | fdomain.c | 1159 if (current_SC->SCp.phase & aborted) { 1171 if (current_SC->SCp.phase & in_arbitration) { 1182 current_SC->SCp.phase = in_selection; 1195 } else if (current_SC->SCp.phase & in_selection) { 1215 current_SC->SCp.phase = in_other; 1224 /* current_SC->SCp.phase == in_other: this is the body of the routine */ 1233 outb(current_SC->cmnd[current_SC->SCp.sent_command++], 1237 current_SC->cmnd[ current_SC->SCp.sent_command - 1] ); 1241 if (chip != tmc1800 && !current_SC->SCp.have_data_in) { 1242 current_SC->SCp [all...] |
H A D | fd_mcs.c | 651 if (current_SC->SCp.phase & aborted) { 661 if (current_SC->SCp.phase & in_arbitration) { 672 current_SC->SCp.phase = in_selection; 685 } else if (current_SC->SCp.phase & in_selection) { 705 current_SC->SCp.phase = in_other; 714 /* current_SC->SCp.phase == in_other: this is the body of the routine */ 723 outb(current_SC->cmnd[current_SC->SCp.sent_command++], Write_SCSI_Data_port); 725 printk("CMD = %x,", current_SC->cmnd[current_SC->SCp.sent_command - 1]); 729 if (chip != tmc1800 && !current_SC->SCp.have_data_in) { 730 current_SC->SCp [all...] |
H A D | in2000.c | 359 * the SCp.xxx fields is that they're always associated with a given 362 * if we keep all the critical pointers and counters in SCp: 363 * - SCp.ptr is the pointer into the RAM buffer 364 * - SCp.this_residual is the size of that buffer 365 * - SCp.buffer points to the current scatter-gather buffer 366 * - SCp.buffers_residual tells us how many S.G. buffers there are 367 * - SCp.have_data_in helps keep track of >2048 byte transfers 368 * - SCp.sent_command is not used 369 * - SCp.phase records this command's SRCID_ER bit setting 373 cmd->SCp [all...] |
H A D | imm.c | 67 dev->cur_cmd->SCp.phase = 1; 679 if (((r & 0x88) != 0x88) || (cmd->SCp.this_residual <= 0)) { 686 && (cmd->SCp.this_residual >= 688 status = imm_out(dev, cmd->SCp.ptr, fast); 691 && (cmd->SCp.this_residual >= 693 status = imm_in(dev, cmd->SCp.ptr, fast); 696 cmd->SCp.ptr += fast; 697 cmd->SCp.this_residual -= fast; 703 if (cmd->SCp.buffer && !cmd->SCp [all...] |
H A D | eata_pio.c | 166 static void IncStat(struct scsi_pointer *SCp, unsigned int Increment) argument 168 SCp->ptr += Increment; 169 if ((SCp->this_residual -= Increment) == 0) { 170 if ((--SCp->buffers_residual) == 0) 171 SCp->Status = 0; 173 SCp->buffer++; 174 SCp->ptr = sg_virt(SCp->buffer); 175 SCp->this_residual = SCp [all...] |
H A D | wd33c93.c | 397 * the SCp.xxx fields is that they're always associated with a given 400 * if we keep all the critical pointers and counters in SCp: 401 * - SCp.ptr is the pointer into the RAM buffer 402 * - SCp.this_residual is the size of that buffer 403 * - SCp.buffer points to the current scatter-gather buffer 404 * - SCp.buffers_residual tells us how many S.G. buffers there are 405 * - SCp.have_data_in is not used 406 * - SCp.sent_command is not used 407 * - SCp.phase records this command's SRCID_ER bit setting 411 cmd->SCp [all...] |
H A D | ppa.c | 58 dev->cur_cmd->SCp.phase = 1; 562 if ((cmd->SCp.this_residual <= 0)) { 591 fast = (bulk && (cmd->SCp.this_residual >= PPA_BURST_SIZE)) 595 status = ppa_out(dev, cmd->SCp.ptr, fast); 597 status = ppa_in(dev, cmd->SCp.ptr, fast); 599 cmd->SCp.ptr += fast; 600 cmd->SCp.this_residual -= fast; 606 if (cmd->SCp.buffer && !cmd->SCp.this_residual) { 608 if (cmd->SCp [all...] |
H A D | a2091.c | 48 unsigned long addr = virt_to_bus(cmd->SCp.ptr); 52 wh->dma_bounce_len = (cmd->SCp.this_residual + 511) & ~0x1ff; 76 memcpy(wh->dma_bounce_buffer, cmd->SCp.ptr, 77 cmd->SCp.this_residual); 95 cache_clear(addr, cmd->SCp.this_residual); 98 cache_push(addr, cmd->SCp.this_residual); 142 memcpy(SCpnt->SCp.ptr, wh->dma_bounce_buffer, 143 SCpnt->SCp.this_residual);
|
H A D | a3000.c | 52 unsigned long addr = virt_to_bus(cmd->SCp.ptr); 61 wh->dma_bounce_len = (cmd->SCp.this_residual + 511) & ~0x1ff; 73 memcpy(wh->dma_bounce_buffer, cmd->SCp.ptr, 74 cmd->SCp.this_residual); 94 cache_clear(addr, cmd->SCp.this_residual); 97 cache_push(addr, cmd->SCp.this_residual); 152 memcpy(SCpnt->SCp.ptr, wh->dma_bounce_buffer, 153 SCpnt->SCp.this_residual);
|
H A D | aha152x.c | 750 static inline Scsi_Cmnd *remove_SC(Scsi_Cmnd **SC, Scsi_Cmnd *SCp) argument 755 ptr && SCp!=ptr; 949 CURRENT_SC->SCp.phase |= 1 << 16; 951 if(CURRENT_SC->SCp.phase & selecting) { 957 DPRINTK(debug_intr, DEBUG_LEAD "expecting: (phase change) (busfree) %s\n", CMDINFO(CURRENT_SC), CURRENT_SC->SCp.phase & spiordy ? "(spiordy)" : ""); 958 SETPORT(SIMODE0, (CURRENT_SC->SCp.phase & spiordy) ? ENSPIORDY : 0); 1000 SCpnt->SCp.phase = not_issued | phase; 1001 SCpnt->SCp.Status = 0x1; /* Ilegal status by SCSI standard */ 1002 SCpnt->SCp.Message = 0; 1003 SCpnt->SCp [all...] |
H A D | atari_NCR5380.c | 197 * SCSI pointers are maintained in the SCp field of SCSI command 474 unsigned long oldlen = cmd->SCp.this_residual; 478 for (endaddr = virt_to_phys(cmd->SCp.ptr + cmd->SCp.this_residual - 1) + 1; 479 cmd->SCp.buffers_residual && 480 virt_to_phys(sg_virt(&cmd->SCp.buffer[1])) == endaddr;) { 482 page_address(sg_page(&cmd->SCp.buffer[1])), endaddr); 486 ++cmd->SCp.buffer; 487 --cmd->SCp.buffers_residual; 488 cmd->SCp [all...] |
H A D | sgiwd93.c | 68 unsigned long len = cmd->SCp.this_residual; 69 void *addr = cmd->SCp.ptr; 75 cmd->SCp.dma_handle = physaddr; 119 if (cmd->SCp.ptr == NULL || cmd->SCp.this_residual == 0) 145 if (SCpnt->SCp.ptr == NULL || SCpnt->SCp.this_residual == 0) 159 dma_unmap_single(hdata->dev, SCpnt->SCp.dma_handle, 160 SCpnt->SCp.this_residual,
|
H A D | sun3_NCR5380.c | 184 * SCSI pointers are maintained in the SCp field of SCSI command 472 cmd->SCp.buffer = scsi_sglist(cmd); 473 cmd->SCp.buffers_residual = scsi_sg_count(cmd) - 1; 474 cmd->SCp.ptr = (char *) SGADDR(cmd->SCp.buffer); 475 cmd->SCp.this_residual = cmd->SCp.buffer->length; 477 cmd->SCp.buffer = NULL; 478 cmd->SCp.buffers_residual = 0; 479 cmd->SCp [all...] |
H A D | mvme147.c | 35 unsigned long addr = virt_to_bus(cmd->SCp.ptr); 46 cache_clear(addr, cmd->SCp.this_residual); 49 cache_push(addr, cmd->SCp.this_residual); 53 m147_pcc->dma_bcr = cmd->SCp.this_residual | (1 << 24);
|
H A D | gvp11.c | 57 unsigned long addr = virt_to_bus(cmd->SCp.ptr); 63 wh->dma_bounce_len = (cmd->SCp.this_residual + 511) & ~0x1ff; 112 memcpy(wh->dma_bounce_buffer, cmd->SCp.ptr, 113 cmd->SCp.this_residual); 129 cache_clear(addr, cmd->SCp.this_residual); 132 cache_push(addr, cmd->SCp.this_residual); 161 memcpy(SCpnt->SCp.ptr, wh->dma_bounce_buffer, 162 SCpnt->SCp.this_residual);
|
H A D | NCR53c406a.c | 687 current_SC->SCp.phase = idle; 711 current_SC->SCp.phase = command_ph; 712 current_SC->SCp.Status = 0; 713 current_SC->SCp.Message = 0; 818 current_SC->SCp.phase = idle; 826 current_SC->SCp.phase = idle; 835 current_SC->SCp.phase = idle; 843 current_SC->SCp.phase = idle; 851 if (current_SC->SCp.phase != message_in) { /* Unexpected disconnect */ 854 current_SC->result = (current_SC->SCp [all...] |
H A D | sym53c416.c | 348 current_command->SCp.phase = idle; 358 current_command->SCp.phase = idle; 368 current_command->SCp.phase = idle; 378 current_command->SCp.phase = idle; 388 current_command->SCp.phase = idle; 397 if(current_command->SCp.phase != message_in) 400 current_command->result = (current_command->SCp.Status & 0xFF) | ((current_command->SCp.Message & 0xFF) << 8) | (DID_OK << 16); 401 current_command->SCp.phase = idle; 415 current_command->SCp [all...] |
H A D | NCR5380.c | 189 * SCSI pointers are maintained in the SCp field of SCSI command 299 cmd->SCp.buffer = scsi_sglist(cmd); 300 cmd->SCp.buffers_residual = scsi_sg_count(cmd) - 1; 301 cmd->SCp.ptr = sg_virt(cmd->SCp.buffer); 302 cmd->SCp.this_residual = cmd->SCp.buffer->length; 304 cmd->SCp.buffer = NULL; 305 cmd->SCp.buffers_residual = 0; 306 cmd->SCp [all...] |
/drivers/scsi/pcmcia/ |
H A D | nsp_cs.c | 227 SCpnt->SCp.Status = CHECK_CONDITION; 228 SCpnt->SCp.Message = 0; 229 SCpnt->SCp.have_data_in = IO_UNKNOWN; 230 SCpnt->SCp.sent_command = 0; 231 SCpnt->SCp.phase = PH_UNDETERMINED; 235 SCp.ptr : buffer pointer 236 SCp.this_residual : buffer length 237 SCp.buffer : next buffer 238 SCp.buffers_residual : left buffers in list 239 SCp [all...] |
/drivers/scsi/fnic/ |
H A D | fnic.h | 62 #define CMD_SP(Cmnd) ((Cmnd)->SCp.ptr) 63 #define CMD_STATE(Cmnd) ((Cmnd)->SCp.phase) 64 #define CMD_ABTS_STATUS(Cmnd) ((Cmnd)->SCp.Message) 65 #define CMD_LR_STATUS(Cmnd) ((Cmnd)->SCp.have_data_in) 66 #define CMD_TAG(Cmnd) ((Cmnd)->SCp.sent_command)
|