Home
last modified time | relevance | path

Searched refs:this_residual (Results 1 – 25 of 27) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/scsi/arm/
Dscsi.h33 sg_set_buf(sg, SCp->ptr, SCp->this_residual); in copy_SCp_to_sg()
54 SCp->this_residual = SCp->buffer->length; in next_SCp()
57 SCp->this_residual = 0; in next_SCp()
67 SCp->this_residual -= 1; in get_next_SCp_byte()
76 SCp->this_residual -= 1; in put_next_SCp_byte()
89 SCpnt->SCp.this_residual = SCpnt->SCp.buffer->length; in init_SCp()
122 SCpnt->SCp.this_residual = 0; in init_SCp()
Dfas216.c177 prefix, SCp->ptr, SCp->this_residual, SCp->buffer, in print_SCp()
638 if (SCp->this_residual > bytes_transferred) in fas216_updateptrs()
644 bytes_transferred -= SCp->this_residual; in fas216_updateptrs()
652 SCp->this_residual -= bytes_transferred; in fas216_updateptrs()
653 if (SCp->this_residual) in fas216_updateptrs()
678 if (SCp->this_residual == 0) in fas216_pio()
719 total = info->scsi.SCp.this_residual; in fas216_cleanuptransfer()
754 info->scsi.SCp.ptr, info->scsi.SCp.this_residual, in fas216_transfer()
788 fas216_set_stc(info, info->scsi.SCp.this_residual); in fas216_transfer()
1014 info->scsi.SCp.ptr, info->scsi.SCp.this_residual); in fas216_reselected_intr()
[all …]
Deesox.c163 (min_type == fasdma_real_all || SCp->this_residual >= 512)) { in eesoxscsi_dma_setup()
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()
Dcumana_2.c164 (min_type == fasdma_real_all || SCp->this_residual >= 512)) { in cumanascsi_2_dma_setup()
214 length = SCp->this_residual; in cumanascsi_2_dma_pseudo()
Darxescsi.c121 length = SCp->this_residual; in arxescsi_dma_pseudo()
Dacornscsi.c245 host->scsi.SCp.this_residual); in acornscsi_dumpdma()
886 SCp->this_residual -= length; in acornscsi_data_updateptr()
888 if (SCp->this_residual == 0 && next_SCp(SCp) == 0) in acornscsi_data_updateptr()
1036 length = min_t(unsigned int, host->scsi.SCp.this_residual, DMAC_BUFFER_SIZE / 2); in acornscsi_dma_setup()
1164 length = min_t(unsigned int, host->scsi.SCp.this_residual, DMAC_BUFFER_SIZE / 2); in acornscsi_dma_intr()
1866 host->scsi.SCp.ptr, host->scsi.SCp.this_residual); in acornscsi_reconnect_finish()
/kernel/linux/linux-5.10/drivers/scsi/
Da3000.c61 wh->dma_bounce_len = (cmd->SCp.this_residual + 511) & ~0x1ff; 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()
153 SCpnt->SCp.this_residual); in dma_stop()
Da2091.c52 wh->dma_bounce_len = (cmd->SCp.this_residual + 511) & ~0x1ff; 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()
143 SCpnt->SCp.this_residual); in dma_stop()
Dmvme147.c46 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()
Dimm.c663 if (((r & 0x88) != 0x88) || (cmd->SCp.this_residual <= 0)) { in imm_completion()
670 && (cmd->SCp.this_residual >= in imm_completion()
675 && (cmd->SCp.this_residual >= in imm_completion()
681 cmd->SCp.this_residual -= fast; in imm_completion()
687 if (cmd->SCp.buffer && !cmd->SCp.this_residual) { in imm_completion()
691 cmd->SCp.this_residual = in imm_completion()
699 if (cmd->SCp.this_residual & 0x01) in imm_completion()
700 cmd->SCp.this_residual++; in imm_completion()
827 cmd->SCp.this_residual = cmd->SCp.buffer->length; in imm_engine()
831 cmd->SCp.this_residual = 0; in imm_engine()
[all …]
Dgvp11.c63 wh->dma_bounce_len = (cmd->SCp.this_residual + 511) & ~0x1ff; 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()
162 SCpnt->SCp.this_residual); in dma_stop()
Dsgiwd93.c68 unsigned long len = cmd->SCp.this_residual; 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()
160 SCpnt->SCp.this_residual, in dma_stop()
Dwd33c93.c405 cmd->SCp.this_residual = cmd->SCp.buffer->length; in wd33c93_queuecommand_lck()
410 cmd->SCp.this_residual = 0; in wd33c93_queuecommand_lck()
662 cmd->SCp.this_residual); in DEF_SCSI_QCMD()
737 if (!cmd->SCp.this_residual && cmd->SCp.buffers_residual) { in transfer_bytes()
740 cmd->SCp.this_residual = cmd->SCp.buffer->length; in transfer_bytes()
743 if (!cmd->SCp.this_residual) /* avoid bogus setups */ in transfer_bytes()
758 cmd->SCp.this_residual, data_in_dir, hostdata); in transfer_bytes()
759 length = cmd->SCp.this_residual; in transfer_bytes()
760 cmd->SCp.this_residual = read_wd33c93_count(regs); in transfer_bytes()
761 cmd->SCp.ptr += (length - cmd->SCp.this_residual); in transfer_bytes()
[all …]
Dmac53c94.c269 nb = cmd->SCp.this_residual; in mac53c94_interrupt()
272 cmd->SCp.this_residual -= nb; in mac53c94_interrupt()
299 if (cmd->SCp.this_residual != 0 in mac53c94_interrupt()
302 nb = cmd->SCp.this_residual; in mac53c94_interrupt()
305 cmd->SCp.this_residual -= nb; in mac53c94_interrupt()
396 cmd->SCp.this_residual = total; in set_dma_cmds()
Dppa.c546 if ((cmd->SCp.this_residual <= 0)) { in ppa_completion()
575 fast = (bulk && (cmd->SCp.this_residual >= PPA_BURST_SIZE)) in ppa_completion()
584 cmd->SCp.this_residual -= fast; in ppa_completion()
590 if (cmd->SCp.buffer && !cmd->SCp.this_residual) { in ppa_completion()
594 cmd->SCp.this_residual = in ppa_completion()
743 cmd->SCp.this_residual = cmd->SCp.buffer->length; in ppa_engine()
747 cmd->SCp.this_residual = 0; in ppa_engine()
Daha152x.c944 SCpnt->SCp.this_residual = 0; in aha152x_internal_queue()
951 SCpnt->SCp.this_residual = SCpnt->SCp.buffer->length; in aha152x_internal_queue()
1995 if(CURRENT_SC->SCp.this_residual>0) { in datai_run()
1996 while(fifodata>0 && CURRENT_SC->SCp.this_residual>0) { in datai_run()
1997 data_count = fifodata > CURRENT_SC->SCp.this_residual ? in datai_run()
1998 CURRENT_SC->SCp.this_residual : in datai_run()
2005 CURRENT_SC->SCp.this_residual--; in datai_run()
2014 CURRENT_SC->SCp.this_residual -= 2 * data_count; in datai_run()
2018 if (CURRENT_SC->SCp.this_residual == 0 && in datai_run()
2023 CURRENT_SC->SCp.this_residual = CURRENT_SC->SCp.buffer->length; in datai_run()
[all …]
DNCR5380.c156 cmd->SCp.this_residual = cmd->SCp.buffer->length; in initialize_SCp()
160 cmd->SCp.this_residual = 0; in initialize_SCp()
171 if (!cmd->SCp.this_residual && s && !sg_is_last(s)) { in advance_sg_buffer()
174 cmd->SCp.this_residual = cmd->SCp.buffer->length; in advance_sg_buffer()
180 int resid = cmd->SCp.this_residual; in set_resid_from_SCp()
801 count = &hostdata->connected->SCp.this_residual; in NCR5380_dma_complete()
1752 cmd->SCp.this_residual, in NCR5380_information_transfer()
1788 transfersize = min(cmd->SCp.this_residual, in NCR5380_information_transfer()
1793 cmd->SCp.this_residual -= transfersize - len; in NCR5380_information_transfer()
Dmac_scsi.c408 cmd->SCp.this_residual < setup_use_pdma) in macscsi_dma_xfer_len()
411 return cmd->SCp.this_residual; in macscsi_dma_xfer_len()
Dg_NCR5380.c666 int transfersize = cmd->SCp.this_residual; in generic_NCR5380_dma_xfer_len()
678 transfersize = min(cmd->SCp.this_residual, 512); in generic_NCR5380_dma_xfer_len()
Dsun3_scsi.c337 int wanted_len = cmd->SCp.this_residual; in sun3scsi_dma_xfer_len()
Datari_scsi.c545 int wanted_len = cmd->SCp.this_residual; in atari_scsi_dma_xfer_len()
Dmesh.c614 cmd->SCp.this_residual -= ms->data_ptr; in mesh_done()
1273 cmd->SCp.this_residual = scsi_bufflen(cmd); in set_dma_cmds()
/kernel/linux/linux-5.10/drivers/scsi/pcmcia/
Dnsp_cs.c241 SCpnt->SCp.this_residual = SCpnt->SCp.buffer->length; in nsp_queuecommand_lck()
245 SCpnt->SCp.this_residual = 0; in nsp_queuecommand_lck()
729 SCpnt->SCp.this_residual, SCpnt->SCp.buffer, in nsp_pio_read()
735 (SCpnt->SCp.this_residual > 0 || SCpnt->SCp.buffers_residual > 0 ) ) { in nsp_pio_read()
759 res = min(res, SCpnt->SCp.this_residual); in nsp_pio_read()
782 SCpnt->SCp.this_residual -= res; in nsp_pio_read()
787 if (SCpnt->SCp.this_residual == 0 && in nsp_pio_read()
793 SCpnt->SCp.this_residual = SCpnt->SCp.buffer->length; in nsp_pio_read()
804 scsi_get_resid(SCpnt), SCpnt->SCp.this_residual, in nsp_pio_read()
827 data->FifoCount, SCpnt->SCp.ptr, SCpnt->SCp.this_residual, in nsp_pio_write()
[all …]
/kernel/linux/linux-5.10/include/scsi/
Dscsi_cmnd.h43 int this_residual; /* left in this buffer */ member
/kernel/linux/linux-5.10/drivers/scsi/libfc/
Dfc_fcp.c53 #define CMD_COMPL_STATUS(Cmnd) ((Cmnd)->SCp.this_residual)

12