Searched refs:SCp (Results 1 - 25 of 74) sorted by relevance

123

/drivers/scsi/arm/
H A Dscsi.h24 * 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 Dfas216.c175 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 Dacornscsi.c258 printk("BH @%p +%04x, ", host->scsi.SCp.ptr,
259 host->scsi.SCp.this_residual);
261 host->scsi.SCp.scsi_xferred);
751 host->scsi.SCp = SCpnt->SCp;
815 SCpnt->result = result << 16 | host->scsi.SCp.Message << 8 | host->scsi.SCp.Status;
829 if (host->scsi.SCp.ptr &&
833 if (host->scsi.SCp.scsi_xferred < SCpnt->underflow ||
834 host->scsi.SCp
894 acornscsi_data_updateptr(AS_Host *host, struct scsi_pointer *SCp, unsigned int length) argument
[all...]
H A Darxescsi.c66 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 D53c700.c67 * Bogendoerfer). Added missing SCp->request_bufflen initialisation
565 struct scsi_cmnd *SCp, __u32 dsp)
568 if(SCp != NULL) {
570 (struct NCR_700_command_slot *)SCp->host_scribble;
579 NCR_700_unmap(struct NCR_700_Host_Parameters *hostdata, struct scsi_cmnd *SCp, argument
582 if(SCp->sc_data_direction != DMA_NONE &&
583 SCp->sc_data_direction != DMA_BIDIRECTIONAL)
584 scsi_dma_unmap(SCp);
589 struct scsi_cmnd *SCp, int result)
594 if(SCp !
564 save_for_reselection(struct NCR_700_Host_Parameters *hostdata, struct scsi_cmnd *SCp, __u32 dsp) argument
588 NCR_700_scsi_done(struct NCR_700_Host_Parameters *hostdata, struct scsi_cmnd *SCp, int result) argument
786 process_extended_message(struct Scsi_Host *host, struct NCR_700_Host_Parameters *hostdata, struct scsi_cmnd *SCp, __u32 dsp, __u32 dsps) argument
869 process_message(struct Scsi_Host *host, struct NCR_700_Host_Parameters *hostdata, struct scsi_cmnd *SCp, __u32 dsp, __u32 dsps) argument
956 process_script_interrupt(__u32 dsps, __u32 dsp, struct scsi_cmnd *SCp, struct Scsi_Host *host, struct NCR_700_Host_Parameters *hostdata) argument
1114 struct scsi_cmnd *SCp = scsi_find_tag(SDp, hostdata->msgin[2]); local
1126 struct scsi_cmnd *SCp = scsi_find_tag(SDp, SCSI_NO_TAG); local
1289 struct scsi_cmnd *SCp = hostdata->cmd; local
1392 NCR_700_start_command(struct scsi_cmnd *SCp) argument
1502 struct scsi_cmnd *SCp = hostdata->cmd; local
1551 struct scsi_cmnd *SCp; local
1752 NCR_700_queuecommand_lck(struct scsi_cmnd *SCp, void (*done)(struct scsi_cmnd *)) argument
1941 NCR_700_bus_reset(struct scsi_cmnd * SCp) argument
1978 NCR_700_host_reset(struct scsi_cmnd * SCp) argument
[all...]
H A Dfdomain.c1158 if (current_SC->SCp.phase & aborted) {
1170 if (current_SC->SCp.phase & in_arbitration) {
1181 current_SC->SCp.phase = in_selection;
1194 } else if (current_SC->SCp.phase & in_selection) {
1214 current_SC->SCp.phase = in_other;
1223 /* current_SC->SCp.phase == in_other: this is the body of the routine */
1232 outb(current_SC->cmnd[current_SC->SCp.sent_command++],
1236 current_SC->cmnd[ current_SC->SCp.sent_command - 1] );
1240 if (chip != tmc1800 && !current_SC->SCp.have_data_in) {
1241 current_SC->SCp
[all...]
H A Dfd_mcs.c650 if (current_SC->SCp.phase & aborted) {
660 if (current_SC->SCp.phase & in_arbitration) {
671 current_SC->SCp.phase = in_selection;
684 } else if (current_SC->SCp.phase & in_selection) {
704 current_SC->SCp.phase = in_other;
713 /* current_SC->SCp.phase == in_other: this is the body of the routine */
722 outb(current_SC->cmnd[current_SC->SCp.sent_command++], Write_SCSI_Data_port);
724 printk("CMD = %x,", current_SC->cmnd[current_SC->SCp.sent_command - 1]);
728 if (chip != tmc1800 && !current_SC->SCp.have_data_in) {
729 current_SC->SCp
[all...]
H A Din2000.c358 * the SCp.xxx fields is that they're always associated with a given
361 * if we keep all the critical pointers and counters in SCp:
362 * - SCp.ptr is the pointer into the RAM buffer
363 * - SCp.this_residual is the size of that buffer
364 * - SCp.buffer points to the current scatter-gather buffer
365 * - SCp.buffers_residual tells us how many S.G. buffers there are
366 * - SCp.have_data_in helps keep track of >2048 byte transfers
367 * - SCp.sent_command is not used
368 * - SCp.phase records this command's SRCID_ER bit setting
372 cmd->SCp
[all...]
H A Dimm.c67 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 Deata_pio.c166 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 Dwd33c93.c397 * 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 Dppa.c58 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 Da2091.c48 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 Da3000.c52 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 Daha152x.c749 static inline Scsi_Cmnd *remove_SC(Scsi_Cmnd **SC, Scsi_Cmnd *SCp) argument
754 ptr && SCp!=ptr;
948 CURRENT_SC->SCp.phase |= 1 << 16;
950 if(CURRENT_SC->SCp.phase & selecting) {
956 DPRINTK(debug_intr, DEBUG_LEAD "expecting: (phase change) (busfree) %s\n", CMDINFO(CURRENT_SC), CURRENT_SC->SCp.phase & spiordy ? "(spiordy)" : "");
957 SETPORT(SIMODE0, (CURRENT_SC->SCp.phase & spiordy) ? ENSPIORDY : 0);
999 SCpnt->SCp.phase = not_issued | phase;
1000 SCpnt->SCp.Status = 0x1; /* Ilegal status by SCSI standard */
1001 SCpnt->SCp.Message = 0;
1002 SCpnt->SCp
[all...]
H A Datari_NCR5380.c197 * 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 Dsgiwd93.c68 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 Dsun3_NCR5380.c184 * 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 Dmvme147.c35 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 Dgvp11.c57 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 DNCR53c406a.c687 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 Dsym53c416.c347 current_command->SCp.phase = idle;
357 current_command->SCp.phase = idle;
367 current_command->SCp.phase = idle;
377 current_command->SCp.phase = idle;
387 current_command->SCp.phase = idle;
396 if(current_command->SCp.phase != message_in)
399 current_command->result = (current_command->SCp.Status & 0xFF) | ((current_command->SCp.Message & 0xFF) << 8) | (DID_OK << 16);
400 current_command->SCp.phase = idle;
414 current_command->SCp
[all...]
H A DNCR5380.c189 * 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 Dnsp_cs.c227 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 Dfnic.h62 #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)

Completed in 5214 milliseconds

123