Home
last modified time | relevance | path

Searched refs:residual (Results 1 – 25 of 43) sorted by relevance

12

/drivers/s390/block/
Ddasd_eer.c92 int residual; member
194 if (eerb->residual > 0) { in dasd_eer_start_record()
195 eerb->tail += eerb->residual; in dasd_eer_start_record()
198 eerb->residual = -1; in dasd_eer_start_record()
600 if (eerb->residual < 0) { /* the remainder of this record */ in dasd_eer_read()
602 eerb->residual = 0; in dasd_eer_read()
606 } else if (eerb->residual > 0) { in dasd_eer_read()
608 effective_count = min(eerb->residual, (int) count); in dasd_eer_read()
609 eerb->residual -= effective_count; in dasd_eer_read()
633 eerb->residual = tailcount - effective_count; in dasd_eer_read()
/drivers/tty/hvc/
Dhvc_iucv.c1185 const char *nextdelim, *residual; in hvc_iucv_parse_filter() local
1191 residual = nextdelim + 1; in hvc_iucv_parse_filter()
1194 residual = filter + len; in hvc_iucv_parse_filter()
1215 return residual; in hvc_iucv_parse_filter()
1230 const char *residual; in hvc_iucv_setup_filter() local
1244 residual = val; in hvc_iucv_setup_filter()
1245 while ((residual = strchr(residual, ',')) != NULL) { in hvc_iucv_setup_filter()
1246 residual++; in hvc_iucv_setup_filter()
1259 residual = val; in hvc_iucv_setup_filter()
1260 while (*residual && count) { in hvc_iucv_setup_filter()
[all …]
/drivers/scsi/qla2xxx/
Dqla_target.h289 uint32_t residual; member
483 uint32_t residual; member
498 uint32_t residual; member
526 uint32_t residual; member
580 uint32_t residual; member
1085 int residual; member
Dqla_target.c2138 prm->residual = se_cmd->residual_count; in qlt_pre_xmit_response()
2141 prm->residual, se_cmd->tag, in qlt_pre_xmit_response()
2146 prm->residual = se_cmd->residual_count; in qlt_pre_xmit_response()
2149 prm->residual, se_cmd->tag, se_cmd->t_task_cdb ? in qlt_pre_xmit_response()
2285 ctio->u.status0.residual = cpu_to_le32(prm->residual); in qlt_24xx_init_ctio_to_isp()
2752 pkt->u.status0.residual = in qlt_xmit_response()
2753 cpu_to_le32(prm.residual); in qlt_xmit_response()
3176 ctio24->u.status1.residual = get_unaligned((uint32_t *) in __qlt_send_term_exchange()
3179 if (ctio24->u.status1.residual != 0) in __qlt_send_term_exchange()
/drivers/scsi/qla4xxx/
Dql4_isr.c122 uint32_t residual; in qla4xxx_status_entry() local
153 residual = le32_to_cpu(sts_entry->residualByteCnt); in qla4xxx_status_entry()
166 scsi_set_resid(cmd, residual); in qla4xxx_status_entry()
167 if (!scsi_status && ((scsi_bufflen(cmd) - residual) < in qla4xxx_status_entry()
179 scsi_bufflen(cmd), residual)); in qla4xxx_status_entry()
244 scsi_set_resid(cmd, residual); in qla4xxx_status_entry()
259 if (!scsi_status && (scsi_bufflen(cmd) - residual) < in qla4xxx_status_entry()
268 residual)); in qla4xxx_status_entry()
299 residual, in qla4xxx_status_entry()
/drivers/dma/
Dtegra210-adma.c459 unsigned int residual; in tegra_adma_tx_status() local
470 residual = desc->ch_regs.tc; in tegra_adma_tx_status()
472 residual = tegra_adma_get_residue(tdc); in tegra_adma_tx_status()
474 residual = 0; in tegra_adma_tx_status()
479 dma_set_residue(txstate, residual); in tegra_adma_tx_status()
Dtegra20-apb-dma.c809 unsigned int residual; in tegra_dma_tx_status() local
839 residual = dma_desc->bytes_requested - in tegra_dma_tx_status()
842 dma_set_residue(txstate, residual); in tegra_dma_tx_status()
/drivers/scsi/aic94xx/
Daic94xx_task.c194 ts->residual = le32_to_cpu(*(__le32 *)r); in asd_get_response_tasklet()
200 ts->residual = le32_to_cpu(*(__le32 *)r); in asd_get_response_tasklet()
231 ts->residual = le32_to_cpu(*(__le32 *)dl->status_block); in asd_task_tasklet_complete()
236 ts->residual = 0; in asd_task_tasklet_complete()
/drivers/usb/storage/
Dtransport.h99 void *buf, unsigned int length, int use_sg, int *residual);
Dtransport.c500 void *buf, unsigned int length_left, int use_sg, int *residual) in usb_stor_bulk_transfer_sg() argument
520 if (residual) in usb_stor_bulk_transfer_sg()
521 *residual = length_left; in usb_stor_bulk_transfer_sg()
/drivers/scsi/
Dqla1280.h827 __le32 residual; member
860 __le32 residual; member
890 __le32 residual; member
920 __le32 residual; member
Dst.h15 int residual; member
D53c700.c1603 int residual = NCR_700_data_residual(host); in NCR_700_intr() local
1612 if(residual) { in NCR_700_intr()
1615 SGcount, data_transfer, residual); in NCR_700_intr()
1618 data_transfer += residual; in NCR_700_intr()
1634 …\n", host->host_no, pun, lun, (unsigned long)pAddr, (unsigned long)naddr, data_transfer, residual); in NCR_700_intr()
Dqlogicpti.h183 u32 residual; member
/drivers/scsi/fnic/
Dfcpio.h355 u32 residual; /* SCSI data residual value of I/O */ member
506 u32 residual; /* SCSI data residual length */ member
Dfnic_scsi.c846 (u64)icmnd_cmpl->residual, 0); in fnic_fcpio_icmnd_cmpl_handler()
884 icmnd_cmpl->residual); in fnic_fcpio_icmnd_cmpl_handler()
909 scsi_set_resid(sc, icmnd_cmpl->residual); in fnic_fcpio_icmnd_cmpl_handler()
912 xfer_len -= icmnd_cmpl->residual; in fnic_fcpio_icmnd_cmpl_handler()
930 scsi_set_resid(sc, icmnd_cmpl->residual); in fnic_fcpio_icmnd_cmpl_handler()
/drivers/net/wireless/ralink/rt2x00/
Drt2x00queue.c244 unsigned int residual; in rt2x00queue_create_tx_descriptor_plcp() local
274 residual = GET_DURATION_RES(data_length, hwrate->bitrate); in rt2x00queue_create_tx_descriptor_plcp()
277 if (residual != 0) { in rt2x00queue_create_tx_descriptor_plcp()
283 if (hwrate->bitrate == 110 && residual <= 30) in rt2x00queue_create_tx_descriptor_plcp()
/drivers/hv/
Dhv_balloon.c750 unsigned long residual, new_inc; in pfn_covered() local
787 residual = (start_pfn + pfn_cnt - has->end_pfn); in pfn_covered()
791 new_inc = (residual / HA_CHUNK) * HA_CHUNK; in pfn_covered()
792 if (residual % HA_CHUNK) in pfn_covered()
/drivers/scsi/osd/
Dosd_initiator.c482 or->out.residual = or->out.req->resid_len; in _set_error_resid()
484 or->in.residual = or->in.req->resid_len; in _set_error_resid()
1945 if (!or->out.residual) in osd_req_decode_sense_full()
1946 or->out.residual = or->out.total_bytes; in osd_req_decode_sense_full()
1947 if (!or->in.residual) in osd_req_decode_sense_full()
1948 or->in.residual = or->in.total_bytes; in osd_req_decode_sense_full()
/drivers/scsi/aic7xxx/
Daic7xxx.seq842 * the host driver to fix us up based on the transfer residual.
968 * our residual information is still correct from
986 * Fixup the residual next S/G pointer. The S/G preload
1074 * Due to bayonette style S/G handling, our residual
1077 * of the residual data cnt. By postponing the fixup,
1079 * If we halted on the last segment, the residual is
1167 * count to be the size of our residual.
1298 * Update our residual information before the information is
1330 * are now initialized. Clear the full residual flag.
1604 * is a residual or the status byte is something other than STATUS_GOOD (0).
[all …]
Daic79xx.seq1172 * so, check to see if there is a residual or the status byte is something
1345 * protects against bogus data in scratch ram and the residual counts
1369 * All other information comes directly from our residual
1615 * residual and clear the full residual flag.
1641 * the host driver to fix us up based on the transfer residual
1789 * our residual information is still correct from
1812 * Fixup the residual next S/G pointer. The S/G preload
1920 * has a residual. This should occur coincident with a ctxtdone. We
/drivers/s390/char/
Dcon3215.c70 int residual; /* residual count for read request */ member
397 req->residual = irb->scsw.cmd.count; in raw3215_irq()
408 count = 160 - req->residual; in raw3215_irq()
/drivers/scsi/arm/
Dfas216.c707 unsigned long total, residual, fifo; in fas216_cleanuptransfer() local
723 residual = fas216_get_ctc(info); in fas216_cleanuptransfer()
729 total, residual, fifo); in fas216_cleanuptransfer()
738 residual += fifo; in fas216_cleanuptransfer()
740 fas216_updateptrs(info, total - residual); in fas216_cleanuptransfer()
Dacornscsi.c1738 int residual; in acornscsi_starttransfer() local
1746 residual = scsi_bufflen(host->SCpnt) - host->scsi.SCp.scsi_xferred; in acornscsi_starttransfer()
1749 sbic_arm_writenext(host, residual >> 16); in acornscsi_starttransfer()
1750 sbic_arm_writenext(host, residual >> 8); in acornscsi_starttransfer()
1751 sbic_arm_writenext(host, residual); in acornscsi_starttransfer()
/drivers/net/ethernet/apple/
Dbmac.c687 unsigned int residual; in bmac_rxdma_intr() local
703 residual = le16_to_cpu(cp->res_count); in bmac_rxdma_intr()
706 nb = RX_BUFLEN - residual - 2; in bmac_rxdma_intr()

12