Searched refs:residue (Results 1 - 118 of 118) sorted by relevance

/linux-4.1.27/arch/mips/math-emu/
H A Ddp_tlong.c26 u64 residue; ieee754dp_tlong() local
66 residue = xm; ieee754dp_tlong()
68 sticky = residue != 0; ieee754dp_tlong()
74 residue = xm << (xe + 1); ieee754dp_tlong()
75 residue <<= 63 - DP_FBITS; ieee754dp_tlong()
76 round = (residue >> 63) != 0; ieee754dp_tlong()
77 sticky = (residue << 1) != 0; ieee754dp_tlong()
H A Dsp_tint.c26 u32 residue; ieee754sp_tint() local
66 residue = xm; ieee754sp_tint()
68 sticky = residue != 0; ieee754sp_tint()
74 residue = xm << (xe + 1); ieee754sp_tint()
75 residue <<= 31 - SP_FBITS; ieee754sp_tint()
76 round = (residue >> 31) != 0; ieee754sp_tint()
77 sticky = (residue << 1) != 0; ieee754sp_tint()
H A Ddp_tint.c26 u64 residue; ieee754dp_tint() local
63 residue = xm; ieee754dp_tint()
65 sticky = residue != 0; ieee754dp_tint()
68 residue = xm << (64 - DP_FBITS + xe); ieee754dp_tint()
69 round = (residue >> 63) != 0; ieee754dp_tint()
70 sticky = (residue << 1) != 0; ieee754dp_tint()
H A Dsp_tlong.c27 u32 residue; ieee754sp_tlong() local
67 residue = xm; ieee754sp_tlong()
69 sticky = residue != 0; ieee754sp_tlong()
72 residue = xm << (32 - SP_FBITS + xe); ieee754sp_tlong()
73 round = (residue >> 31) != 0; ieee754sp_tlong()
74 sticky = (residue << 1) != 0; ieee754sp_tlong()
/linux-4.1.27/drivers/dma/
H A Ddmaengine.h78 state->residue = 0; dma_cookie_status()
83 static inline void dma_set_residue(struct dma_tx_state *state, u32 residue) dma_set_residue() argument
86 state->residue = residue; dma_set_residue()
H A Ddma-jz4740.c450 unsigned int residue, count; jz4740_dma_desc_residue() local
453 residue = 0; jz4740_dma_desc_residue()
456 residue += desc->sg[i].len; jz4740_dma_desc_residue()
461 residue += count << chan->transfer_shift; jz4740_dma_desc_residue()
464 return residue; jz4740_dma_desc_residue()
482 state->residue = jz4740_dma_desc_residue(chan, chan->desc, jz4740_dma_tx_status()
485 state->residue = jz4740_dma_desc_residue(chan, jz4740_dma_tx_status()
488 state->residue = 0; jz4740_dma_tx_status()
H A Dedma.c79 * The following 4 elements are used for residue accounting.
88 * - residue: The amount of bytes we have left to transfer for this desc
90 * - residue_stat: The residue in bytes of data we have covered
91 * so far for accounting. This is updated directly to residue
95 * this is required to update the residue during intermediate transfer
100 u32 residue; member in struct:edma_desc
491 edesc->residue = 0; edma_prep_slave_sg()
529 edesc->residue += sg_dma_len(sg); for_each_sg()
540 edesc->residue_stat = edesc->residue;
646 edesc->residue = edesc->residue_stat = buf_len; edma_prep_dma_cyclic()
746 edesc->residue = 0; edma_callback()
754 edesc->residue -= edesc->sg_len; edma_callback()
755 edesc->residue_stat = edesc->residue; edma_callback()
901 * We never update edesc->residue in the cyclic case, so we edma_residue()
907 edesc->residue_stat = edesc->residue - done; edma_residue()
949 txstate->residue = edma_residue(echan->edesc); edma_tx_status()
951 txstate->residue = to_edma_desc(&vdesc->tx)->residue; edma_tx_status()
H A Ddma-jz4780.c527 unsigned int residue, count; jz4780_dma_desc_residue() local
530 residue = 0; jz4780_dma_desc_residue()
533 residue += desc->desc[i].dtc << jzchan->transfer_shift; jz4780_dma_desc_residue()
538 residue += count << jzchan->transfer_shift; jz4780_dma_desc_residue()
541 return residue; jz4780_dma_desc_residue()
561 txstate->residue = jz4780_dma_desc_residue(jzchan, jz4780_dma_tx_status()
564 txstate->residue = jz4780_dma_desc_residue(jzchan, jzchan->desc, jz4780_dma_tx_status()
567 txstate->residue = 0; jz4780_dma_tx_status()
H A Dcppi41.c101 u32 residue; member in struct:cppi41_channel
332 c->residue = pd_trans_len(c->desc->pd6) - len; cppi41_irq()
376 txstate->residue = c->residue; cppi41_dma_tx_status()
404 c->residue = 0; cppi41_dma_issue_pending()
H A Dmmp_pdma.c760 u32 curr, residue = 0; mmp_pdma_residue() local
766 * been completed. Therefore, its residue is 0. mmp_pdma_residue()
796 residue += len; mmp_pdma_residue()
798 residue += end - curr; mmp_pdma_residue()
819 return residue; mmp_pdma_residue()
821 residue = 0; mmp_pdma_residue()
827 return residue; mmp_pdma_residue()
H A Dat_xdmac.c929 int residue, retry; at_xdmac_tx_status() local
947 * residue, it's the transfer length. at_xdmac_tx_status()
954 residue = desc->xfer_size; at_xdmac_tx_status()
968 * When processing the residue, we need to read two registers but we at_xdmac_tx_status()
1011 residue -= (desc->lld.mbr_ubc & 0xffffff) << dwidth; list_for_each_entry_safe()
1015 residue += cur_ubc << dwidth;
1017 dma_set_residue(txstate, residue);
1020 "%s: desc=0x%p, tx_dma_desc.phys=%pad, tx_status=%d, cookie=%d, residue=%d\n",
1021 __func__, desc, &desc->tx_dma_desc.phys, ret, cookie, residue); local
H A Dbcm2835-dma.c298 txstate->residue = bcm2835_dma_tx_status()
311 txstate->residue = bcm2835_dma_desc_size_pos(d, pos); bcm2835_dma_tx_status()
313 txstate->residue = 0; bcm2835_dma_tx_status()
H A Dmoxart-dma.c487 * dma_cookie_status() assigns initial residue value. moxart_tx_status()
495 txstate->residue = moxart_dma_desc_size(d, 0); moxart_tx_status()
497 txstate->residue = moxart_dma_desc_size_in_flight(ch); moxart_tx_status()
H A Dimg-mdc-dma.c600 u32 val1, val2, done, processed, residue; mdc_tx_status() local
612 residue = mdc_chan_readl(mchan, mdc_tx_status()
641 if (residue != MDC_TRANSFER_SIZE_MASK) mdc_tx_status()
642 bytes -= ldesc->xfer_size - residue; mdc_tx_status()
H A Dmxs-dma.c675 u32 residue = 0; mxs_dma_tx_status() local
683 residue = last_ccw->xfer_bytes + last_ccw->bufaddr; mxs_dma_tx_status()
687 residue -= bar; mxs_dma_tx_status()
691 residue); mxs_dma_tx_status()
H A Dsa11x0-dma.c442 * If the cookie is on our issue queue, then the residue is sa11x0_dma_tx_status()
447 state->residue = container_of(vd, struct sa11x0_dma_desc, vd)->size; sa11x0_dma_tx_status()
449 state->residue = 0; sa11x0_dma_tx_status()
490 state->residue = bytes; sa11x0_dma_tx_status()
494 dev_vdbg(d->slave.dev, "tx_status: bytes 0x%zx\n", state->residue); sa11x0_dma_tx_status()
H A Dsirf-dma.c472 unsigned long residue; sirfsoc_dma_tx_status() local
484 residue = dma_request_bytes - (dma_pos - sdesc->addr); sirfsoc_dma_tx_status()
485 dma_set_residue(txstate, residue); sirfsoc_dma_tx_status()
H A Dfsl-edma.c381 /* figure out the finished and calculate the residue */ fsl_edma_desc_residue()
418 txstate->residue = fsl_edma_desc_residue(fsl_chan, vdesc, true); fsl_edma_tx_status()
420 txstate->residue = fsl_edma_desc_residue(fsl_chan, vdesc, false); fsl_edma_tx_status()
422 txstate->residue = 0; fsl_edma_tx_status()
H A Dqcom_bam_dma.c828 size_t residue = 0; bam_tx_status() local
842 residue = container_of(vd, struct bam_async_desc, vd)->length; bam_tx_status()
845 residue += bchan->curr_txd->curr_desc[i].size; bam_tx_status()
849 dma_set_residue(txstate, residue); bam_tx_status()
H A Dat_hdmac.c309 * atc_get_bytes_left - get the number of bytes residue for a cookie
339 * Calculate the residue by removing the length of the child atc_get_bytes_left()
705 /* set transfer width for the calculation of the residue */ atc_prep_dma_memcpy()
857 /* set transfer width for the calculation of the residue */
1301 * There's no point calculating the residue if there's atc_tx_status()
1321 dev_vdbg(chan2dev(chan), "tx_status %d: cookie = %d residue = %d\n", atc_tx_status()
H A Dimx-sdma.c1239 u32 residue; sdma_tx_status() local
1242 residue = (sdmac->num_bd - sdmac->buf_tail) * sdmac->period_len; sdma_tx_status()
1244 residue = sdmac->chn_count - sdmac->chn_real_count; sdma_tx_status()
1247 residue); sdma_tx_status()
H A Dnbpfaxi.c609 state->residue = nbpf_bytes_left(chan); nbpf_tx_status()
610 dev_dbg(dchan->device->dev, "%s(): residue %u\n", __func__, nbpf_tx_status()
611 state->residue); nbpf_tx_status()
630 state->residue = found ? desc->length : 0; nbpf_tx_status()
H A Domap-dma.c710 txstate->residue = omap_dma_desc_size(to_omap_dma_desc(&vd->tx)); omap_dma_tx_status()
722 txstate->residue = omap_dma_desc_size_pos(d, pos); omap_dma_tx_status()
724 txstate->residue = 0; omap_dma_tx_status()
H A Dk3dma.c350 * If the cookie is on our issue queue, then the residue is k3_dma_tx_status()
H A Ds3c24xx-dma.c777 * There's no point calculating the residue if there's s3c24xx_dma_tx_status()
H A Damba-pl08x.c1227 * There's no point calculating the residue if there's pl08x_dma_tx_status()
H A Dpl330.c2166 * allow safely read residue before channel termination.
/linux-4.1.27/drivers/staging/comedi/drivers/
H A Dcomedi_isadma.c48 * Returns the residue (remaining bytes) left in the DMA transfer.
53 unsigned int residue; comedi_isadma_disable() local
57 residue = get_dma_residue(dma_chan); comedi_isadma_disable()
60 return residue; comedi_isadma_disable()
69 * Returns the residue (remaining bytes) left in the DMA transfer.
76 unsigned int residue; comedi_isadma_disable_on_sample() local
79 residue = comedi_isadma_disable(dma_chan); comedi_isadma_disable_on_sample()
80 while (residue % size) { comedi_isadma_disable_on_sample()
81 /* residue is a partial sample, enable DMA to allow more data */ comedi_isadma_disable_on_sample()
90 if (new_residue == residue) { comedi_isadma_disable_on_sample()
95 residue = new_residue; comedi_isadma_disable_on_sample()
99 return residue; comedi_isadma_disable_on_sample()
H A Dni_labpc_isadma.c89 unsigned int residue; labpc_drain_dma() local
94 * residue is the number of bytes left to be done on the dma labpc_drain_dma()
98 residue = comedi_isadma_disable(desc->chan); labpc_drain_dma()
104 nsamples = max_samples - comedi_bytes_to_samples(s, residue); labpc_drain_dma()
H A Dni_at_a2150.c162 unsigned int max_points, num_points, residue, leftover; a2150_interrupt() local
186 * residue is the number of bytes left to be done on the dma a2150_interrupt()
190 residue = comedi_isadma_disable(desc->chan); a2150_interrupt()
194 num_points = max_points - comedi_bytes_to_samples(s, residue); a2150_interrupt()
207 /* there should only be a residue if collection was stopped by having a2150_interrupt()
211 if (residue) a2150_interrupt()
H A Ddas16.c481 unsigned int residue; das16_interrupt() local
496 residue = comedi_isadma_disable_on_sample(desc->chan, das16_interrupt()
500 if (residue > desc->size) { das16_interrupt()
501 dev_err(dev->class_dev, "residue > transfer size!\n"); das16_interrupt()
505 nbytes = desc->size - residue; das16_interrupt()
H A Ddas1800.c506 unsigned int residue = comedi_isadma_disable(desc->chan); das1800_flush_dma_channel() local
507 unsigned int nbytes = desc->size - residue; das1800_flush_dma_channel()
/linux-4.1.27/drivers/dma/sh/
H A Dusb-dmac.c49 * @residue: residue after the DMAC completed a transfer
60 u32 residue; member in struct:usb_dmac_desc
476 unsigned int residue = sg->size; usb_dmac_get_current_residue() local
479 * We cannot use USB_DMATCR to calculate residue because USB_DMATCR usb_dmac_get_current_residue()
483 residue -= usb_dmac_chan_read(chan, USB_DMADAR) - mem_addr; usb_dmac_get_current_residue()
485 residue -= usb_dmac_chan_read(chan, USB_DMASAR) - mem_addr; usb_dmac_get_current_residue()
487 return residue; usb_dmac_get_current_residue()
494 u32 residue = 0; usb_dmac_chan_get_residue_if_complete() local
498 residue = desc->residue; usb_dmac_chan_get_residue_if_complete()
503 return residue; usb_dmac_chan_get_residue_if_complete()
509 u32 residue = 0; usb_dmac_chan_get_residue() local
523 residue += desc->sg[i].size; usb_dmac_chan_get_residue()
525 /* Add the residue for the current sg */ usb_dmac_chan_get_residue()
526 residue += usb_dmac_get_current_residue(chan, desc, desc->sg_index); usb_dmac_chan_get_residue()
528 return residue; usb_dmac_chan_get_residue()
537 unsigned int residue = 0; usb_dmac_tx_status() local
541 /* a client driver will get residue after DMA_COMPLETE */ usb_dmac_tx_status()
547 residue = usb_dmac_chan_get_residue_if_complete(uchan, cookie); usb_dmac_tx_status()
549 residue = usb_dmac_chan_get_residue(uchan, cookie); usb_dmac_tx_status()
552 dma_set_residue(txstate, residue); usb_dmac_tx_status()
589 desc->residue = usb_dmac_get_current_residue(chan, desc, usb_dmac_isr_transfer_end()
H A Drcar-dmac.c1141 unsigned int residue = 0; rcar_dmac_chan_get_residue() local
1149 * then the descriptor hasn't been processed yet, and the residue is rcar_dmac_chan_get_residue()
1174 residue += chunk->size; rcar_dmac_chan_get_residue()
1177 /* Add the residue for the current chunk. */ rcar_dmac_chan_get_residue()
1178 residue += rcar_dmac_chan_read(chan, RCAR_DMATCR) << desc->xfer_shift; rcar_dmac_chan_get_residue()
1180 return residue; rcar_dmac_chan_get_residue()
1190 unsigned int residue; rcar_dmac_tx_status() local
1197 residue = rcar_dmac_chan_get_residue(rchan, cookie); rcar_dmac_tx_status()
1200 dma_set_residue(txstate, residue); rcar_dmac_tx_status()
/linux-4.1.27/arch/arm/include/asm/mach/
H A Ddma.h22 int (*residue)(unsigned int, dma_t *); /* optional */ member in struct:dma_ops
/linux-4.1.27/drivers/dma/dw/
H A Dcore.c240 dwc->residue = first->total_len; dwc_dostart()
375 dwc->residue -= desc->len; dwc_scan_descriptors()
390 dwc->residue = 0; dwc_scan_descriptors()
399 dwc->residue = 0; dwc_scan_descriptors()
413 /* Initial residue value */ dwc_scan_descriptors()
414 dwc->residue = desc->total_len; dwc_scan_descriptors()
425 dwc->residue -= dwc_get_sent(dwc); dwc_scan_descriptors()
430 dwc->residue -= desc->len; dwc_scan_descriptors()
434 dwc->residue -= dwc_get_sent(dwc); dwc_scan_descriptors()
438 dwc->residue -= child->len; dwc_scan_descriptors()
1054 u32 residue; dwc_get_residue() local
1058 residue = dwc->residue; dwc_get_residue()
1059 if (test_bit(DW_DMA_IS_SOFT_LLP, &dwc->flags) && residue) dwc_get_residue()
1060 residue -= dwc_get_sent(dwc); dwc_get_residue()
1063 return residue; dwc_get_residue()
H A Dregs.h240 u32 residue; member in struct:dw_dma_chan
/linux-4.1.27/include/linux/
H A Dusb_usual.h37 /* reported residue is wrong */ \
H A Ddmaengine.h341 * enum dma_residue_granularity - Granularity of the reported transfer residue
344 * not, which means residue reporting is not supported by this channel. The
345 * residue field of the dma_tx_state field will always be 0.
350 * outstanding residue by the size of the segment. Another possibility is if
353 * the number of segments without the flag set to compute the residue.
376 * @residue_granularity: granularity of the reported transfer residue
551 * @residue: the remaining number of bytes left to transmit
558 u32 residue; member in struct:dma_tx_state
581 * @residue_granularity: granularity of the transfer residue reported
1020 dma_set_tx_state(struct dma_tx_state *st, dma_cookie_t last, dma_cookie_t used, u32 residue) dma_set_tx_state() argument
1025 st->residue = residue; dma_set_tx_state()
/linux-4.1.27/sound/core/
H A Dpcm_dmaengine.c253 if (state.residue > 0 && state.residue <= buf_size) snd_dmaengine_pcm_pointer()
254 pos = buf_size - state.residue; snd_dmaengine_pcm_pointer()
/linux-4.1.27/arch/mn10300/include/asm/
H A Ddma.h91 /* Get DMA residue count. After a DMA transfer, this
/linux-4.1.27/drivers/parport/
H A Dparport_ip32.c661 /* Adjust residue (parport_ip32_dma.left) */ parport_ip32_dma_stop()
693 * parport_ip32_dma_get_residue - get residue from last DMA transfer
1546 unsigned int residue; parport_ip32_get_fifo_residue() local
1555 residue = 0; parport_ip32_get_fifo_residue()
1574 for (residue = priv->fifo_depth; residue > 0; residue--) { parport_ip32_get_fifo_residue()
1580 if (residue) parport_ip32_get_fifo_residue()
1582 p->name, residue, parport_ip32_get_fifo_residue()
1583 (residue == 1) ? " was" : "s were"); parport_ip32_get_fifo_residue()
1602 /* Adjust residue if needed */ parport_ip32_get_fifo_residue()
1610 residue++; parport_ip32_get_fifo_residue()
1620 return residue; parport_ip32_get_fifo_residue()
1669 /* Check for a potential residue */ parport_ip32_compat_write_data()
1750 /* Check for a potential residue */ parport_ip32_ecp_write_data()
H A Dparport_pc.c672 /* update for possible DMA residue ! */ parport_pc_fifo_write_block_dma()
679 /* Maybe got here through break, so adjust for DMA residue! */ parport_pc_fifo_write_block_dma()
/linux-4.1.27/drivers/scsi/bfa/
H A Dbfa_ioc.c4284 len = (flash->residue < BFA_FLASH_DMA_BUF_SZ) ? bfa_flash_write_send()
4285 flash->residue : BFA_FLASH_DMA_BUF_SZ; bfa_flash_write_send()
4289 msg->last = (len == flash->residue) ? 1 : 0; bfa_flash_write_send()
4297 flash->residue -= len; bfa_flash_write_send()
4317 len = (flash->residue < BFA_FLASH_DMA_BUF_SZ) ? bfa_flash_read_send()
4318 flash->residue : BFA_FLASH_DMA_BUF_SZ; bfa_flash_read_send()
4416 if (status != BFA_STATUS_OK || flash->residue == 0) { bfa_flash_intr()
4436 flash->residue -= len; bfa_flash_intr()
4438 if (flash->residue == 0) { bfa_flash_intr()
4653 flash->residue = len; bfa_flash_update_part()
4707 flash->residue = len; bfa_flash_read_part()
5383 len = (phy->residue < BFA_PHY_DMA_BUF_SZ) ? bfa_phy_write_send()
5384 phy->residue : BFA_PHY_DMA_BUF_SZ; bfa_phy_write_send()
5388 msg->last = (len == phy->residue) ? 1 : 0; bfa_phy_write_send()
5402 phy->residue -= len; bfa_phy_write_send()
5421 len = (phy->residue < BFA_PHY_DMA_BUF_SZ) ? bfa_phy_read_send()
5422 phy->residue : BFA_PHY_DMA_BUF_SZ; bfa_phy_read_send()
5646 phy->residue = len; bfa_phy_update()
5697 phy->residue = len; bfa_phy_read()
5775 if (status != BFA_STATUS_OK || phy->residue == 0) { bfa_phy_intr()
5806 phy->residue -= len; bfa_phy_intr()
5809 if (phy->residue == 0) { bfa_phy_intr()
6256 len = (fru->residue < BFA_FRU_DMA_BUF_SZ) ? bfa_fru_write_send()
6257 fru->residue : BFA_FRU_DMA_BUF_SZ; bfa_fru_write_send()
6263 msg->last = (len == fru->residue) ? 1 : 0; bfa_fru_write_send()
6265 msg->trfr_cmpl = (len == fru->residue) ? fru->trfr_cmpl : 0; bfa_fru_write_send()
6272 fru->residue -= len; bfa_fru_write_send()
6290 len = (fru->residue < BFA_FRU_DMA_BUF_SZ) ? bfa_fru_read_send()
6291 fru->residue : BFA_FRU_DMA_BUF_SZ; bfa_fru_read_send()
6405 fru->residue = len; bfa_fruvpd_update()
6455 fru->residue = len; bfa_fruvpd_read()
6524 fru->residue = len; bfa_tfru_write()
6569 fru->residue = len; bfa_tfru_read()
6607 if (status != BFA_STATUS_OK || fru->residue == 0) { bfa_fru_intr()
6639 fru->residue -= len; bfa_fru_intr()
6642 if (fru->residue == 0) { bfa_fru_intr()
7026 u32 off, l, s, residue, fifo_sz; bfa_flash_raw_read() local
7028 residue = len; bfa_flash_raw_read()
7035 while (residue) { bfa_flash_raw_read()
7039 if (l > residue) bfa_flash_raw_read()
7040 l = residue; bfa_flash_raw_read()
7059 residue -= l; bfa_flash_raw_read()
H A Dbfad_im.c42 int sns_len, u8 *sns_info, s32 residue) bfa_cb_ioim_done()
62 if (residue > 0) { bfa_cb_ioim_done()
63 bfa_trc(bfad, residue); bfa_cb_ioim_done()
64 scsi_set_resid(cmnd, residue); bfa_cb_ioim_done()
66 (scsi_bufflen(cmnd) - residue) < bfa_cb_ioim_done()
40 bfa_cb_ioim_done(void *drv, struct bfad_ioim_s *dio, enum bfi_ioim_status io_status, u8 scsi_status, int sns_len, u8 *sns_info, s32 residue) bfa_cb_ioim_done() argument
H A Dbfi_ms.h731 * data length and residue count in FCP
788 u8 resid_flags; /* IO residue flags */
790 __be32 residue; /* IO residual length in bytes */ member in struct:bfi_ioim_rsp_s
H A Dbfa_fcpim.h383 * @param[in] residue Residual length
390 u8 *sns_info, s32 residue);
H A Dbfa_fcpim.c2144 s32 residue = 0; __bfa_cb_ioim_comp() local
2164 * setup residue value correctly for normal completions __bfa_cb_ioim_comp()
2167 residue = be32_to_cpu(m->residue); __bfa_cb_ioim_comp()
2171 residue = be32_to_cpu(m->residue); __bfa_cb_ioim_comp()
2172 residue = -residue; __bfa_cb_ioim_comp()
2178 m->scsi_status, sns_len, snsinfo, residue); __bfa_cb_ioim_comp()
H A Dbfa_fc.h1112 * FCP_RSP residue flags
1115 FCP_NO_RESIDUE = 0, /* no residue */
1143 u32 residue; /* residual data bytes */ member in struct:fcp_resp_s
H A Dbfa_ioc.h481 u32 residue; /* residual length */ member in struct:bfa_flash_s
673 u32 residue; /* residual length */ member in struct:bfa_phy_s
722 u32 residue; /* residual length */ member in struct:bfa_fru_s
H A Dbfa_defs_svc.h132 u32 fcp_rsp_resid_inval; /* invalid residue */
H A Dbfa_svc.c733 * @todo f/w should not set residue to non-0 when everything hal_fcxp_send_comp()
/linux-4.1.27/drivers/usb/storage/
H A Drealtek_cr.c216 unsigned int residue; rts51x_bulk_transport() local
263 residue = bcs->Residue; rts51x_bulk_transport()
267 /* try to compute the actual residue, based on how much data rts51x_bulk_transport()
269 if (residue) rts51x_bulk_transport()
270 residue = residue < buf_len ? residue : buf_len; rts51x_bulk_transport()
273 *act_len = buf_len - residue; rts51x_bulk_transport()
H A Dtransport.c1068 unsigned int residue; usb_stor_Bulk_transport() local
1194 residue = le32_to_cpu(bcs->Residue); usb_stor_Bulk_transport()
1197 residue, bcs->Status); usb_stor_Bulk_transport()
1220 /* try to compute the actual residue, based on how much data usb_stor_Bulk_transport()
1222 if (residue && !(us->fflags & US_FL_IGNORE_RESIDUE)) { usb_stor_Bulk_transport()
1237 residue = min(residue, transfer_length); usb_stor_Bulk_transport()
1239 (int) residue)); usb_stor_Bulk_transport()
H A Dprotocol.c179 * SCSI residue.
H A Dene_ub6250.c503 unsigned int residue; ene_send_scsi_cmd() local
558 residue = le32_to_cpu(bcs->Residue); ene_send_scsi_cmd()
560 /* try to compute the actual residue, based on how much data ene_send_scsi_cmd()
562 if (residue && !(us->fflags & US_FL_IGNORE_RESIDUE)) { ene_send_scsi_cmd()
563 residue = min(residue, transfer_length); ene_send_scsi_cmd()
566 (int)residue)); ene_send_scsi_cmd()
H A Dunusual_devs.h1998 * residue that causes subsequent I/O requests to fail. */
/linux-4.1.27/arch/arm/kernel/
H A Ddma.c259 if (dma->d_ops->residue) get_dma_residue()
260 ret = dma->d_ops->residue(chan, dma); get_dma_residue()
H A Ddma-isa.c131 .residue = isa_get_dma_residue,
/linux-4.1.27/drivers/net/ethernet/brocade/bna/
H A Dbfa_ioc.c1724 u32 off, l, s, residue, fifo_sz; bfa_flash_raw_read() local
1726 residue = len; bfa_flash_raw_read()
1733 while (residue) { bfa_flash_raw_read()
1737 if (l > residue) bfa_flash_raw_read()
1738 l = residue; bfa_flash_raw_read()
1757 residue -= l; bfa_flash_raw_read()
3093 len = (flash->residue < BFA_FLASH_DMA_BUF_SZ) ? bfa_flash_write_send()
3094 flash->residue : BFA_FLASH_DMA_BUF_SZ; bfa_flash_write_send()
3098 msg->last = (len == flash->residue) ? 1 : 0; bfa_flash_write_send()
3106 flash->residue -= len; bfa_flash_write_send()
3126 len = (flash->residue < BFA_FLASH_DMA_BUF_SZ) ? bfa_flash_read_send()
3127 flash->residue : BFA_FLASH_DMA_BUF_SZ; bfa_flash_read_send()
3191 if (status != BFA_STATUS_OK || flash->residue == 0) { bfa_flash_intr()
3206 flash->residue -= len; bfa_flash_intr()
3208 if (flash->residue == 0) { bfa_flash_intr()
3345 flash->residue = len; bfa_nw_flash_update_part()
3391 flash->residue = len; bfa_nw_flash_read_part()
H A Dbfa_ioc.h342 u32 residue; /* residual length */ member in struct:bfa_flash
/linux-4.1.27/drivers/tty/serial/8250/
H A D8250_dma.c63 count = dma->rx_size - state.residue; __dma_rx_complete()
H A D8250_omap.c741 count = dma->rx_size - state.residue; __dma_rx_do_complete()
/linux-4.1.27/arch/m68k/include/asm/
H A Dfloppy.h237 printk("count=%x, residue=%x calls=%d bytes=%d dma_wait=%d\n", floppy_hardint()
H A Dsun3xflop.h183 printk("count=%x, residue=%x calls=%d bytes=%x dma_wait=%d\n", sun3xflop_hardint()
H A Ddma.h274 * Get DMA residue count. After a DMA transfer, this
460 * Get DMA residue count. After a DMA transfer, this
/linux-4.1.27/arch/arm/include/asm/
H A Ddma.h131 /* Get DMA residue count. After a DMA transfer, this
/linux-4.1.27/drivers/tty/serial/
H A Damba-pl011.c339 * If the controller does, check for suitable residue processing pl011_dma_probe()
347 "RX DMA disabled - no residue processing\n"); pl011_dma_probe()
847 pending = sgbuf->sg.length - state.residue; pl011_dma_rx_irq()
849 /* Then we terminate the transfer - we now know our residue */ pl011_dma_rx_irq()
890 * the DMA irq handler. So we check the residue here. pl011_dma_rx_callback()
893 pending = sgbuf->sg.length - state.residue; pl011_dma_rx_callback()
895 /* Then we terminate the transfer - we now know our residue */ pl011_dma_rx_callback()
930 * Every polling, It checks the residue in the dma buffer and transfer
948 if (likely(state.residue < dmarx->last_residue)) { pl011_dma_rx_poll()
950 size = dmarx->last_residue - state.residue; pl011_dma_rx_poll()
954 dmarx->last_residue = state.residue; pl011_dma_rx_poll()
H A Dserial-tegra.c394 count = tup->tx_bytes_requested - state.residue; tegra_uart_tx_dma_complete()
490 count = tup->tx_bytes_requested - state.residue; tegra_uart_stop_tx()
606 count = tup->rx_bytes_requested - state.residue; tegra_uart_handle_rx_dma()
764 count = tup->rx_bytes_requested - state.residue; tegra_uart_stop_rx()
H A Dsamsung.c185 count = dma->tx_bytes_requested - state.residue; s3c24xx_serial_stop_tx()
213 count = dma->tx_bytes_requested - state.residue; s3c24xx_serial_tx_dma_complete()
439 received = dma->rx_bytes_requested - state.residue; s3c24xx_serial_stop_rx()
490 received = dma->rx_bytes_requested - state.residue; s3c24xx_serial_rx_dma_complete()
604 received = dma->rx_bytes_requested - state.residue; s3c24xx_serial_rx_chars_dma()
H A Datmel_serial.c943 dev_dbg(port->dev, "Get residue error, restart tasklet\n"); atmel_rx_from_dma()
962 ring->head = sg_dma_len(&atmel_port->sg_rx) - state.residue; atmel_rx_from_dma()
H A Dfsl_lpuart.c499 count = FSL_UART_RX_DMA_BUFFER_SIZE - state.residue; lpuart_timer_func()
H A Dsirfsoc_uart.c580 SIRFSOC_RX_DMA_BUF_SIZE - tx_state.residue; sirfsoc_uart_handle_rx_tmo()
H A Dimx.c913 count = RX_BUF_SIZE - state.residue; dma_rx_callback()
/linux-4.1.27/sound/soc/
H A Dsoc-generic-dmaengine-pcm.c294 * one channel does not support residue reporting. If the DMA dmaengine_pcm_new()
296 * the NO_RESIDUE flag set manually in case residue reporting is dmaengine_pcm_new()
/linux-4.1.27/drivers/usb/c67x00/
H A Dc67x00-sched.c70 u8 residue; /* Byte 9 */ member in struct:c67x00_td
129 #define td_residue(td) ((__s8)(td->residue))
165 dev_dbg(dev, "residue: 0x%02x\n", td->residue); dbg_td()
637 td->residue = 0; c67x00_create_td()
/linux-4.1.27/arch/x86/include/asm/
H A Dfloppy.h102 printk(KERN_DEBUG "count=%x, residue=%x calls=%d bytes=%d dma_wait=%d\n", floppy_hardint()
H A Ddma.h279 /* Get DMA residue count. After a DMA transfer, this
/linux-4.1.27/arch/parisc/include/asm/
H A Ddma.h83 /* Get DMA residue count. After a DMA transfer, this
H A Dfloppy.h115 printk("count=%x, residue=%x calls=%d bytes=%d dma_wait=%d\n", floppy_hardint()
/linux-4.1.27/arch/arm/mach-rpc/
H A Ddma.c313 .residue = floppy_get_residue,
/linux-4.1.27/scripts/kconfig/lxdialog/
H A Dchecklist.c39 /* Clear 'residue' of last item */ print_item()
H A Dtextbox.c351 /* Clear 'residue' of previous line */ print_line()
H A Dmenubox.c76 /* Clear 'residue' of last item */ do_print_item()
/linux-4.1.27/drivers/tty/
H A Disicom.c406 short txcount, wrd, residue, word_count, cnt; isicom_tx() local
456 residue = NO; isicom_tx()
461 if (residue == YES) { isicom_tx()
462 residue = NO; isicom_tx()
486 residue = YES; isicom_tx()
H A Dsynclink_gt.c4700 * 05..04 residue rx_get_frame()
4799 /* ignore residue in byte synchronous modes */ rx_get_buf()
/linux-4.1.27/drivers/usb/gadget/function/
H A Df_mass_storage.c294 u32 residue; member in struct:fsg_common
735 common->residue -= nread; do_read()
929 common->residue -= nwritten; do_write()
1560 /* If there's no residue, simply send the last buffer */ finish_reply()
1561 } else if (common->residue == 0) { finish_reply()
1589 if (common->residue == 0) { finish_reply()
1668 csw->Residue = cpu_to_le32(common->residue); send_status()
1721 common->residue = common->data_size; check_command()
2099 common->residue -= reply; do_scsi_command()
H A Df_uac2.c207 * If there is a residue from this division, add it to the agdev_iso_complete()
208 * residue accumulator. agdev_iso_complete()
/linux-4.1.27/drivers/s390/crypto/
H A Dzcrypt_cca_key.h98 * complement of the residue modulo 8 of the sum of
/linux-4.1.27/arch/mips/include/asm/
H A Ddma.h282 /* Get DMA residue count. After a DMA transfer, this
/linux-4.1.27/arch/mips/include/asm/mach-au1x00/
H A Dau1000_dma.h430 * Get DMA residue count. Returns the number of _bytes_ left to transfer.
/linux-4.1.27/arch/powerpc/include/asm/
H A Ddma.h313 /* Get DMA residue count. After a DMA transfer, this
/linux-4.1.27/drivers/usb/musb/
H A Dmusb_cppi41.c240 transferred = cppi41_channel->prog_len - txstate.residue; cppi41_dma_callback()
/linux-4.1.27/arch/alpha/include/asm/
H A Ddma.h338 /* Get DMA residue count. After a DMA transfer, this
/linux-4.1.27/drivers/scsi/
H A Dscsi.c646 * simply return a residue instead, so subtract off the scsi_finish_command()
647 * residue if drv->done() error processing indicates no scsi_finish_command()
H A DNCR5380.c1730 unsigned char saved_data = 0, overrun = 0, residue; NCR5380_transfer_dma() local
1858 residue = NCR5380_dma_residual(instance); NCR5380_transfer_dma()
1859 c -= residue; NCR5380_transfer_dma()
1865 if (*phase == p && (p & SR_IO) && residue == 0) { NCR5380_transfer_dma()
H A Ddc395x.c2101 * calculate all the residue data that not yet tranfered data_out_phase0()
2138 * there were some data residue in SCSI FIFO or data_out_phase0()
2380 * there were some data residue in SCSI FIFO or data_in_phase0()
H A Dscsi_lib.c248 * garbage data together with a residue indicating that the data scsi_execute()
H A Dncr53c8xx.c2945 ** get residue size.
2960 ** Check for residue byte in swide register
H A Dst.c1045 STp->density = 0; /* Clear the erroneous "residue" */ check_tape()
H A Dosst.c4738 STp->density = 0; /* Clear the erroneous "residue" */ __os_scsi_tape_open()
/linux-4.1.27/drivers/usb/host/
H A Dxhci-ring.c3541 unsigned int residue; xhci_get_last_burst_packet_count() local
3550 residue = total_packet_count % (max_burst + 1); xhci_get_last_burst_packet_count()
3551 /* If residue is zero, the last burst contains (max_burst + 1) xhci_get_last_burst_packet_count()
3554 if (residue == 0) xhci_get_last_burst_packet_count()
3556 return residue - 1; xhci_get_last_burst_packet_count()
3598 unsigned int residue; xhci_queue_isoc_tx() local
3613 residue = xhci_get_last_burst_packet_count(xhci, xhci_queue_isoc_tx()
3633 TRB_TLBPC(residue); xhci_queue_isoc_tx()
/linux-4.1.27/drivers/net/wireless/rsi/
H A Drsi_91x_sdio.c174 /* Wait for few milli seconds to get rid of residue charges if any */ rsi_reset_card()
/linux-4.1.27/drivers/staging/rts5208/
H A Drtsx_transport.c126 * SCSI residue. */ rtsx_stor_set_xfer_buf()
/linux-4.1.27/drivers/scsi/sym53c8xx_2/
H A Dsym_fw2.h1684 * to ignore this residue or not.
1714 * to ignore this residue or not.
/linux-4.1.27/drivers/spi/
H A Dspi-pl022.c1349 int residue; set_up_next_transfer() local
1352 residue = pl022->cur_transfer->len % pl022->cur_chip->n_bytes; set_up_next_transfer()
1353 if (unlikely(residue != 0)) { set_up_next_transfer()
/linux-4.1.27/drivers/block/
H A Dpktcdvd.c1466 long min_sleep_time, residue; kcdrwd() local
1511 residue = schedule_timeout(min_sleep_time); kcdrwd()
1520 pkt->sleep_time -= min_sleep_time - residue; kcdrwd()
/linux-4.1.27/drivers/net/irda/
H A Dsa1100_ir.c115 return sg_dma_len(&buf->sg) - state.residue; sa1100_irda_dma_xferred()
/linux-4.1.27/drivers/usb/renesas_usbhs/
H A Dfifo.c1136 received_size = pkt->length - state.residue; usbhs_dma_calc_received_size()
/linux-4.1.27/sound/soc/sh/
H A Dfsi.c1164 int sample_residues; /* ALSA residue samples */ fsi_pio_push()
/linux-4.1.27/drivers/scsi/aacraid/
H A Daacraid.h879 * logical block address or residue associated with
/linux-4.1.27/drivers/scsi/aic7xxx/
H A Daic7xxx_core.c3563 /* Skip tag type and tag id or residue param*/ ahc_sent_msg()
4154 * Process an ingnore wide residue message.
4251 * residue. This ensures that the oddness is ahc_handle_ign_wide_residue()
H A Daic79xx_core.c5079 /* Skip tag type and tag id or residue param*/ ahd_sent_msg()
5688 * Process an ingnore wide residue message.
5818 * residue. This ensures that the oddness is ahd_handle_ign_wide_residue()
/linux-4.1.27/drivers/net/ethernet/marvell/
H A Dsky2.c1177 /* Compute residue after pages */ sky2_get_rx_data_size()
/linux-4.1.27/arch/m68k/ifpsp060/src/
H A Dpfpsp.S6853 bclr &0x7, FTEMP_EX(%a0) # clear sgn first; may have residue
6913 bclr &0x7,FTEMP_EX(%a0) # clear sgn first; may have residue
H A Dfpsp.S22731 bclr &0x7, FTEMP_EX(%a0) # clear sgn first; may have residue
22791 bclr &0x7,FTEMP_EX(%a0) # clear sgn first; may have residue
/linux-4.1.27/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_main.c10480 * the one required, then FLR will be sufficient to clean any residue bnx2x_prev_unload_uncommon()
/linux-4.1.27/drivers/media/dvb-frontends/drx39xyj/
H A Ddrxj.c11595 * returns The computed CRC residue.

Completed in 6903 milliseconds