Home
last modified time | relevance | path

Searched refs:SCp (Results 1 – 25 of 84) sorted by relevance

1234

/linux-2.4.37.9/drivers/acorn/scsi/
Dscsi.h19 static inline int copy_SCp_to_sg(struct scatterlist *sg, Scsi_Pointer *SCp, int max) in copy_SCp_to_sg() argument
21 int bufs = SCp->buffers_residual; in copy_SCp_to_sg()
25 sg->address = SCp->ptr; in copy_SCp_to_sg()
26 sg->length = SCp->this_residual; in copy_SCp_to_sg()
29 memcpy(sg + 1, SCp->buffer + 1, in copy_SCp_to_sg()
34 static inline int next_SCp(Scsi_Pointer *SCp) in next_SCp() argument
36 int ret = SCp->buffers_residual; in next_SCp()
38 SCp->buffer++; in next_SCp()
39 SCp->buffers_residual--; in next_SCp()
40 SCp->ptr = (unsigned char *)SCp->buffer->address; in next_SCp()
[all …]
Dfas216.c140 static void print_SCp(Scsi_Pointer *SCp, const char *prefix, const char *suffix) in print_SCp() argument
143 prefix, SCp->ptr, SCp->this_residual, SCp->buffer, in print_SCp()
144 SCp->buffers_residual, suffix); in print_SCp()
165 print_SCp(&info->scsi.SCp, " SCp={ ", " }\n"); in fas216_dumpinfo()
595 Scsi_Pointer *SCp = &info->scsi.SCp; in fas216_updateptrs() local
604 if (SCp->this_residual > bytes_transferred) in fas216_updateptrs()
610 bytes_transferred -= SCp->this_residual; in fas216_updateptrs()
611 if (!next_SCp(SCp) && bytes_transferred) { in fas216_updateptrs()
618 SCp->this_residual -= bytes_transferred; in fas216_updateptrs()
619 if (SCp->this_residual) in fas216_updateptrs()
[all …]
Dacornscsi.c265 printk("BH @%p +%04x, ", host->scsi.SCp.ptr, in acornscsi_dumpdma()
266 host->scsi.SCp.this_residual); in acornscsi_dumpdma()
268 host->scsi.SCp.scsi_xferred); in acornscsi_dumpdma()
757 host->scsi.SCp = SCpnt->SCp; in acornscsi_kick()
821 SCpnt->result = result << 16 | host->scsi.SCp.Message << 8 | host->scsi.SCp.Status; in acornscsi_done()
835 if (host->scsi.SCp.ptr && in acornscsi_done()
839 if (host->scsi.SCp.scsi_xferred < SCpnt->underflow || in acornscsi_done()
840 host->scsi.SCp.scsi_xferred != host->dma.transferred) in acornscsi_done()
900 void acornscsi_data_updateptr(AS_Host *host, Scsi_Pointer *SCp, unsigned int length) in acornscsi_data_updateptr() argument
902 SCp->ptr += length; in acornscsi_data_updateptr()
[all …]
/linux-2.4.37.9/drivers/scsi/
D53c700.c558 Scsi_Cmnd *SCp, __u32 dsp) in save_for_reselection() argument
561 if(SCp != NULL) { in save_for_reselection()
563 (struct NCR_700_command_slot *)SCp->host_scribble; in save_for_reselection()
648 NCR_700_unmap(struct NCR_700_Host_Parameters *hostdata, Scsi_Cmnd *SCp, in NCR_700_unmap() argument
651 if(SCp->sc_data_direction != SCSI_DATA_NONE && in NCR_700_unmap()
652 SCp->sc_data_direction != SCSI_DATA_UNKNOWN) { in NCR_700_unmap()
653 int pci_direction = scsi_to_pci_dma_dir(SCp->sc_data_direction); in NCR_700_unmap()
654 if(SCp->use_sg) { in NCR_700_unmap()
655 pci_unmap_sg(hostdata->pci_dev, SCp->buffer, in NCR_700_unmap()
656 SCp->use_sg, pci_direction); in NCR_700_unmap()
[all …]
Dfd_mcs.c726 if (current_SC->SCp.phase & aborted) { in fd_mcs_intr()
737 if (current_SC->SCp.phase & in_arbitration) { in fd_mcs_intr()
748 current_SC->SCp.phase = in_selection; in fd_mcs_intr()
761 } else if (current_SC->SCp.phase & in_selection) { in fd_mcs_intr()
781 current_SC->SCp.phase = in_other; in fd_mcs_intr()
799 outb( current_SC->cmnd[current_SC->SCp.sent_command++], in fd_mcs_intr()
803 current_SC->cmnd[ current_SC->SCp.sent_command - 1] ); in fd_mcs_intr()
807 if (chip != tmc1800 && !current_SC->SCp.have_data_in) { in fd_mcs_intr()
808 current_SC->SCp.have_data_in = -1; in fd_mcs_intr()
813 if (chip != tmc1800 && !current_SC->SCp.have_data_in) { in fd_mcs_intr()
[all …]
Dfdomain.c1251 if (current_SC->SCp.phase & aborted) { in do_fdomain_16x0_intr()
1263 if (current_SC->SCp.phase & in_arbitration) { in do_fdomain_16x0_intr()
1274 current_SC->SCp.phase = in_selection; in do_fdomain_16x0_intr()
1287 } else if (current_SC->SCp.phase & in_selection) { in do_fdomain_16x0_intr()
1307 current_SC->SCp.phase = in_other; in do_fdomain_16x0_intr()
1325 outb( current_SC->cmnd[current_SC->SCp.sent_command++], in do_fdomain_16x0_intr()
1329 current_SC->cmnd[ current_SC->SCp.sent_command - 1] ); in do_fdomain_16x0_intr()
1333 if (chip != tmc1800 && !current_SC->SCp.have_data_in) { in do_fdomain_16x0_intr()
1334 current_SC->SCp.have_data_in = -1; in do_fdomain_16x0_intr()
1339 if (chip != tmc1800 && !current_SC->SCp.have_data_in) { in do_fdomain_16x0_intr()
[all …]
Din2000.c356 cmd->SCp.buffer = (struct scatterlist *)cmd->buffer; in in2000_queuecommand()
357 cmd->SCp.buffers_residual = cmd->use_sg - 1; in in2000_queuecommand()
358 cmd->SCp.ptr = (char *)cmd->SCp.buffer->address; in in2000_queuecommand()
359 cmd->SCp.this_residual = cmd->SCp.buffer->length; in in2000_queuecommand()
362 cmd->SCp.buffer = NULL; in in2000_queuecommand()
363 cmd->SCp.buffers_residual = 0; in in2000_queuecommand()
364 cmd->SCp.ptr = (char *)cmd->request_buffer; in in2000_queuecommand()
365 cmd->SCp.this_residual = cmd->request_bufflen; in in2000_queuecommand()
367 cmd->SCp.have_data_in = 0; in in2000_queuecommand()
388 cmd->SCp.Status = ILLEGAL_STATUS_BYTE; in in2000_queuecommand()
[all …]
Dimm.c87 imm_dev->cur_cmd->SCp.phase++; in imm_wakeup()
107 imm_hosts[host_no].cur_cmd->SCp.phase++; in imm_pb_claim()
812 if (((r & 0x88) != 0x88) || (cmd->SCp.this_residual <= 0)) { in imm_completion()
818 fast = (bulk && (cmd->SCp.this_residual >= IMM_BURST_SIZE)) ? IMM_BURST_SIZE : 2; in imm_completion()
819 status = imm_out(host_no, cmd->SCp.ptr, fast); in imm_completion()
821 fast = (bulk && (cmd->SCp.this_residual >= IMM_BURST_SIZE)) ? IMM_BURST_SIZE : 1; in imm_completion()
822 status = imm_in(host_no, cmd->SCp.ptr, fast); in imm_completion()
825 cmd->SCp.ptr += fast; in imm_completion()
826 cmd->SCp.this_residual -= fast; in imm_completion()
832 if (cmd->SCp.buffer && !cmd->SCp.this_residual) { in imm_completion()
[all …]
Dppa.c74 ppa_dev->cur_cmd->SCp.phase++; in ppa_wakeup()
94 ppa_hosts[host_no].cur_cmd->SCp.phase++; in ppa_pb_claim()
695 if ((cmd->SCp.this_residual <= 0)) { in ppa_completion()
723 fast = (bulk && (cmd->SCp.this_residual >= PPA_BURST_SIZE)) in ppa_completion()
727 status = ppa_out(host_no, cmd->SCp.ptr, fast); in ppa_completion()
729 status = ppa_in(host_no, cmd->SCp.ptr, fast); in ppa_completion()
731 cmd->SCp.ptr += fast; in ppa_completion()
732 cmd->SCp.this_residual -= fast; in ppa_completion()
738 if (cmd->SCp.buffer && !cmd->SCp.this_residual) { in ppa_completion()
740 if (cmd->SCp.buffers_residual--) { in ppa_completion()
[all …]
Daha152x.c795 static inline Scsi_Cmnd *remove_SC(Scsi_Cmnd **SC, Scsi_Cmnd *SCp) in remove_SC() argument
800 ptr && SCp!=ptr; in remove_SC()
1452 CURRENT_SC->SCp.phase |= 1 << 16;
1454 if(CURRENT_SC->SCp.phase & selecting) {
1460 …xpecting: (phase change) (busfree) %s\n", CMDINFO(CURRENT_SC), CURRENT_SC->SCp.phase & spiordy ? "…
1461 SETPORT(SIMODE0, (CURRENT_SC->SCp.phase & spiordy) ? ENSPIORDY : 0);
1502 SCpnt->SCp.phase = not_issued | phase;
1503 SCpnt->SCp.Status = CHECK_CONDITION;
1504 SCpnt->SCp.Message = 0;
1505 SCpnt->SCp.have_data_in = 0;
[all …]
Dwd33c93.c350 cmd->SCp.buffer = (struct scatterlist *)cmd->buffer; in wd33c93_queuecommand()
351 cmd->SCp.buffers_residual = cmd->use_sg - 1; in wd33c93_queuecommand()
352 cmd->SCp.ptr = (char *)cmd->SCp.buffer->address; in wd33c93_queuecommand()
353 cmd->SCp.this_residual = cmd->SCp.buffer->length; in wd33c93_queuecommand()
356 cmd->SCp.buffer = NULL; in wd33c93_queuecommand()
357 cmd->SCp.buffers_residual = 0; in wd33c93_queuecommand()
358 cmd->SCp.ptr = (char *)cmd->request_buffer; in wd33c93_queuecommand()
359 cmd->SCp.this_residual = cmd->request_bufflen; in wd33c93_queuecommand()
379 cmd->SCp.Status = ILLEGAL_STATUS_BYTE; in wd33c93_queuecommand()
507 cmd->SCp.phase = 0; /* assume no disconnect */ in wd33c93_execute()
[all …]
Djazz_esp.c154 unsigned long sz = sp->SCp.this_residual; in dma_can_transfer()
224 sp->SCp.have_data_in = vdma_alloc(PHYSADDR(sp->SCp.buffer), sp->SCp.this_residual); in dma_mmu_get_scsi_one()
225 sp->SCp.ptr = (char *)((unsigned long)sp->SCp.have_data_in); in dma_mmu_get_scsi_one()
230 int sz = sp->SCp.buffers_residual; in dma_mmu_get_scsi_sgl()
231 struct mmu_sglist *sg = (struct mmu_sglist *) sp->SCp.buffer; in dma_mmu_get_scsi_sgl()
237 sp->SCp.ptr=(char *)((unsigned long)sp->SCp.buffer->dvma_address); in dma_mmu_get_scsi_sgl()
242 vdma_free(sp->SCp.have_data_in); in dma_mmu_release_scsi_one()
258 sp->SCp.ptr = (char *)((unsigned long)sp->SCp.buffer->dvma_address); in dma_advance_sg()
Deata_pio.c93 void IncStat(Scsi_Pointer *SCp, uint Increment) in IncStat() argument
95 SCp->ptr+=Increment; in IncStat()
96 if ((SCp->this_residual-=Increment)==0) in IncStat()
98 if ((--SCp->buffers_residual)==0) SCp->Status=FALSE; in IncStat()
101 SCp->buffer++; in IncStat()
102 SCp->ptr=SCp->buffer->address; in IncStat()
103 SCp->this_residual=SCp->buffer->length; in IncStat()
156 while ((cmd->SCp.Status)&&((z>0)||(odd))) in eata_pio_int_handler()
160 *(cmd->SCp.ptr)=zwickel>>8; in eata_pio_int_handler()
161 IncStat(&cmd->SCp,1); in eata_pio_int_handler()
[all …]
DAM53C974.c843 cmd->SCp.buffer = (struct scatterlist *) cmd->buffer; in initialize_SCp()
844 cmd->SCp.buffers_residual = cmd->use_sg - 1; in initialize_SCp()
845 cmd->SCp.ptr = (char *) cmd->SCp.buffer->address; in initialize_SCp()
846 cmd->SCp.this_residual = cmd->SCp.buffer->length; in initialize_SCp()
848 cmd->SCp.buffer = NULL; in initialize_SCp()
849 cmd->SCp.buffers_residual = 0; in initialize_SCp()
850 cmd->SCp.ptr = (char *) cmd->request_buffer; in initialize_SCp()
851 cmd->SCp.this_residual = cmd->request_bufflen; in initialize_SCp()
1163 hostdata->connected->SCp.ptr += hostdata->connected->SCp.this_residual - residual; in AM53C974_intr()
1164 hostdata->connected->SCp.this_residual = residual; in AM53C974_intr()
[all …]
Dsun3_NCR5380.c473 unsigned long oldlen = cmd->SCp.this_residual; in merge_contiguous_buffers()
477 for (endaddr = virt_to_phys(cmd->SCp.ptr + cmd->SCp.this_residual - 1) + 1; in merge_contiguous_buffers()
478 cmd->SCp.buffers_residual && in merge_contiguous_buffers()
479 virt_to_phys(cmd->SCp.buffer[1].address) == endaddr; ) { in merge_contiguous_buffers()
482 cmd->SCp.buffer[1].address, 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 …]
Dsym53c416.c372 current_command->SCp.phase = idle; in sym53c416_intr_handle()
382 current_command->SCp.phase = idle; in sym53c416_intr_handle()
392 current_command->SCp.phase = idle; in sym53c416_intr_handle()
402 current_command->SCp.phase = idle; in sym53c416_intr_handle()
412 current_command->SCp.phase = idle; in sym53c416_intr_handle()
421 if(current_command->SCp.phase != message_in) in sym53c416_intr_handle()
424 …current_command->result = (current_command->SCp.Status & 0xFF) | ((current_command->SCp.Message & … in sym53c416_intr_handle()
425 current_command->SCp.phase = idle; in sym53c416_intr_handle()
439 current_command->SCp.phase = data_out; in sym53c416_intr_handle()
465 current_command->SCp.phase = data_in; in sym53c416_intr_handle()
[all …]
DNCR53C9x.c282 s->SCp.sent_command = s->SCp.phase; in esp_advance_phase()
283 s->SCp.phase = newphase; in esp_advance_phase()
287 (__s)->SCp.sent_command = (__s)->SCp.phase; \
288 (__s)->SCp.phase = (__newphase);
914 sp->SCp.this_residual = sp->request_bufflen; in esp_get_dmabufs()
915 sp->SCp.buffer = (struct scatterlist *) sp->request_buffer; in esp_get_dmabufs()
916 sp->SCp.buffers_residual = 0; in esp_get_dmabufs()
920 sp->SCp.ptr = in esp_get_dmabufs()
923 sp->SCp.buffer = (struct scatterlist *) sp->buffer; in esp_get_dmabufs()
924 sp->SCp.buffers_residual = sp->use_sg - 1; in esp_get_dmabufs()
[all …]
DNCR53c406a.c677 current_SC->SCp.phase = idle; in wait_intr()
720 current_SC->SCp.phase = command_ph; in NCR53c406a_queue()
721 current_SC->SCp.Status = 0; in NCR53c406a_queue()
722 current_SC->SCp.Message = 0; in NCR53c406a_queue()
829 current_SC->SCp.phase = idle; in NCR53c406a_intr()
838 current_SC->SCp.phase = idle; in NCR53c406a_intr()
847 current_SC->SCp.phase = idle; in NCR53c406a_intr()
855 current_SC->SCp.phase = idle; in NCR53c406a_intr()
863 if(current_SC->SCp.phase != message_in){ /* Unexpected disconnect */ in NCR53c406a_intr()
867 current_SC->result = (current_SC->SCp.Status & 0xff) in NCR53c406a_intr()
[all …]
Da3000.c49 unsigned long addr = virt_to_bus(cmd->SCp.ptr); in dma_setup()
58 (!dir_in && mm_end_of_chunk (addr, cmd->SCp.this_residual))) in dma_setup()
60 HDATA(a3000_host)->dma_bounce_len = (cmd->SCp.this_residual + 511) in dma_setup()
75 cmd->SCp.ptr, cmd->SCp.this_residual); in dma_setup()
98 cache_clear (addr, cmd->SCp.this_residual); in dma_setup()
101 cache_push (addr, cmd->SCp.this_residual); in dma_setup()
151 memcpy (SCpnt->SCp.ptr, in dma_stop()
153 SCpnt->SCp.this_residual); in dma_stop()
Dsun3x_esp.c194 return sp->SCp.this_residual; in dma_can_transfer()
339 sp->SCp.have_data_in = dvma_map((unsigned long)sp->SCp.buffer, in dma_mmu_get_scsi_one()
340 sp->SCp.this_residual); in dma_mmu_get_scsi_one()
341 sp->SCp.ptr = (char *)((unsigned long)sp->SCp.have_data_in); in dma_mmu_get_scsi_one()
346 int sz = sp->SCp.buffers_residual; in dma_mmu_get_scsi_sgl()
347 struct mmu_sglist *sg = (struct mmu_sglist *) sp->SCp.buffer; in dma_mmu_get_scsi_sgl()
353 sp->SCp.ptr=(char *)((unsigned long)sp->SCp.buffer->dvma_address); in dma_mmu_get_scsi_sgl()
358 dvma_unmap((char *)sp->SCp.have_data_in); in dma_mmu_release_scsi_one()
374 sp->SCp.ptr = (char *)((unsigned long)sp->SCp.buffer->dvma_address); in dma_advance_sg()
Datari_NCR5380.c466 unsigned long oldlen = cmd->SCp.this_residual; in merge_contiguous_buffers()
470 for (endaddr = virt_to_phys(cmd->SCp.ptr + cmd->SCp.this_residual - 1) + 1; in merge_contiguous_buffers()
471 cmd->SCp.buffers_residual && in merge_contiguous_buffers()
472 virt_to_phys(cmd->SCp.buffer[1].address) == endaddr; ) { in merge_contiguous_buffers()
475 cmd->SCp.buffer[1].address, endaddr); in merge_contiguous_buffers()
479 ++cmd->SCp.buffer; in merge_contiguous_buffers()
480 --cmd->SCp.buffers_residual; in merge_contiguous_buffers()
481 cmd->SCp.this_residual += cmd->SCp.buffer->length; in merge_contiguous_buffers()
482 endaddr += cmd->SCp.buffer->length; in merge_contiguous_buffers()
485 if (oldlen != cmd->SCp.this_residual) in merge_contiguous_buffers()
[all …]
Dmac_NCR5380.c489 unsigned long oldlen = cmd->SCp.this_residual; in merge_contiguous_buffers()
493 for (endaddr = virt_to_phys(cmd->SCp.ptr + cmd->SCp.this_residual - 1) + 1; in merge_contiguous_buffers()
494 cmd->SCp.buffers_residual && in merge_contiguous_buffers()
495 virt_to_phys(cmd->SCp.buffer[1].address) == endaddr; ) { in merge_contiguous_buffers()
498 cmd->SCp.buffer[1].address, endaddr); in merge_contiguous_buffers()
502 ++cmd->SCp.buffer; in merge_contiguous_buffers()
503 --cmd->SCp.buffers_residual; in merge_contiguous_buffers()
504 cmd->SCp.this_residual += cmd->SCp.buffer->length; in merge_contiguous_buffers()
505 endaddr += cmd->SCp.buffer->length; in merge_contiguous_buffers()
508 if (oldlen != cmd->SCp.this_residual) in merge_contiguous_buffers()
[all …]
Da2091.c53 unsigned long addr = virt_to_bus(cmd->SCp.ptr); in dma_setup()
58 (!dir_in && mm_end_of_chunk (addr, cmd->SCp.this_residual))) in dma_setup()
60 HDATA(instance)->dma_bounce_len = (cmd->SCp.this_residual + 511) in dma_setup()
92 cmd->SCp.ptr, cmd->SCp.this_residual); in dma_setup()
114 cache_clear (addr, cmd->SCp.this_residual); in dma_setup()
117 cache_push (addr, cmd->SCp.this_residual); in dma_setup()
162 memcpy (SCpnt->SCp.ptr, in dma_stop()
164 SCpnt->SCp.this_residual); in dma_stop()
Desp.c371 s->SCp.sent_command = s->SCp.phase; in esp_advance_phase()
372 s->SCp.phase = newphase; in esp_advance_phase()
376 (__s)->SCp.sent_command = (__s)->SCp.phase; \
377 (__s)->SCp.phase = (__newphase);
1415 sp->SCp.this_residual = sp->request_bufflen; in esp_get_dmabufs()
1416 sp->SCp.buffer = (struct scatterlist *) sp->request_buffer; in esp_get_dmabufs()
1417 sp->SCp.buffers_residual = 0; in esp_get_dmabufs()
1419 sp->SCp.have_data_in = sbus_map_single(esp->sdev, sp->SCp.buffer, in esp_get_dmabufs()
1420 sp->SCp.this_residual, in esp_get_dmabufs()
1422 sp->SCp.ptr = (char *) ((unsigned long)sp->SCp.have_data_in); in esp_get_dmabufs()
[all …]
/linux-2.4.37.9/drivers/scsi/pcmcia/
Dnsp_cs.c242 SCpnt->SCp.Status = CHECK_CONDITION; in nsp_queuecommand()
243 SCpnt->SCp.Message = 0; in nsp_queuecommand()
244 SCpnt->SCp.have_data_in = IO_UNKNOWN; in nsp_queuecommand()
245 SCpnt->SCp.sent_command = 0; in nsp_queuecommand()
246 SCpnt->SCp.phase = PH_UNDETERMINED; in nsp_queuecommand()
256 SCpnt->SCp.buffer = (struct scatterlist *) SCpnt->request_buffer; in nsp_queuecommand()
257 SCpnt->SCp.ptr = SG_ADDRESS(SCpnt->SCp.buffer); in nsp_queuecommand()
258 SCpnt->SCp.this_residual = SCpnt->SCp.buffer->length; in nsp_queuecommand()
259 SCpnt->SCp.buffers_residual = SCpnt->use_sg - 1; in nsp_queuecommand()
261 SCpnt->SCp.ptr = (char *) SCpnt->request_buffer; in nsp_queuecommand()
[all …]

1234