Searched refs:residue (Results 26 - 50 of 113) sorted by relevance

12345

/linux-master/drivers/dma/
H A Dst_fdma.c561 size_t residue = 0; local
572 residue += fnode_read(fchan, FDMA_CNTN_OFST);
575 residue += fdesc->node[i].desc->nbytes;
578 return residue;
597 txstate->residue = st_fdma_desc_residue(fchan, vd, true);
599 txstate->residue = st_fdma_desc_residue(fchan, vd, false);
601 txstate->residue = 0;
H A Dvirt-dma.h67 vd->tx_result.residue = 0;
H A Dmmp_pdma.c765 u32 curr, residue = 0; local
771 * been completed. Therefore, its residue is 0.
801 residue += len;
803 residue += end - curr;
824 return residue;
826 residue = 0;
832 return residue;
H A Dapple-admac.c341 * Read from hardware the residue of a cyclic dmaengine transaction.
359 * the two residue reads
380 size_t residue; local
392 residue = admac_cyclic_read_residue(ad, adchan->no, adtx);
395 residue = 0;
398 residue = adtx->buf_len;
405 dma_set_residue(txstate, residue);
731 tx_result.residue = 0;
H A Dat_hdmac.c636 * atc_get_llis_residue - Get residue for a hardware linked list transfer
638 * @desc: pointer to the descriptor for which the residue is calculated.
639 * @residue: residue to be set to dma_tx_state.
641 * Calculate the residue by removing the length of the Linked List Item (LLI)
647 * source for the LLI. So we can compute a more accurate residue by also
663 * residue would break the USART driver design.
679 struct at_desc *desc, u32 *residue)
717 *residue = atc_calc_bytes_left(len, ctrla);
732 *residue
678 atc_get_llis_residue(struct at_dma_chan *atchan, struct at_desc *desc, u32 *residue) argument
746 atc_get_residue(struct dma_chan *chan, dma_cookie_t cookie, u32 *residue) argument
1681 u32 residue; local
1701 dma_status, cookie, residue); local
[all...]
H A Duniphier-mdmac.c294 /* Return immediately if we do not need to compute the residue. */
305 /* residue from the on-flight chunk */
306 txstate->residue = readl(mc->reg_ch_base +
318 /* residue from the queued chunks */
320 txstate->residue += sg_dma_len(&md->sgl[i]);
H A Dmxs-dma.c651 u32 residue = 0; local
659 residue = last_ccw->xfer_bytes + last_ccw->bufaddr;
663 residue -= bar;
667 residue);
H A Dimg-mdc-dma.c594 u32 val1, val2, done, processed, residue; local
606 residue = mdc_chan_readl(mchan,
635 if (residue != MDC_TRANSFER_SIZE_MASK)
636 bytes -= ldesc->xfer_size - residue;
H A Ddma-jz4780.c545 * it explicitly ensures residue is computed correctly at all times.
648 unsigned long residue = 0; local
659 residue = jz4780_dma_desc_residue(jzchan,
662 residue = jz4780_dma_desc_residue(jzchan, jzchan->desc,
665 dma_set_residue(txstate, residue);
/linux-master/drivers/net/ethernet/brocade/bna/
H A Dbfa_ioc.c1696 u32 off, l, s, residue, fifo_sz; local
1698 residue = len;
1705 while (residue) {
1709 if (l > residue)
1710 l = residue;
1729 residue -= l;
3072 len = (flash->residue < BFA_FLASH_DMA_BUF_SZ) ?
3073 flash->residue : BFA_FLASH_DMA_BUF_SZ;
3077 msg->last = (len == flash->residue) ? 1 : 0;
3085 flash->residue
[all...]
/linux-master/drivers/comedi/drivers/
H A Dni_at_a2150.c140 unsigned int max_points, num_points, residue, leftover; local
164 * residue is the number of bytes left to be done on the dma
168 residue = comedi_isadma_disable(desc->chan);
172 num_points = max_points - comedi_bytes_to_samples(s, residue);
186 * There should only be a residue if collection was stopped by having
190 if (residue)
H A Ddas16.c474 unsigned int residue; local
489 residue = comedi_isadma_disable_on_sample(desc->chan,
493 if (residue > desc->size) {
494 dev_err(dev->class_dev, "residue > transfer size!\n");
498 nbytes = desc->size - residue;
/linux-master/drivers/net/wireless/realtek/rtw89/
H A Dser.c542 u32 base_addr, start_page, residue; local
547 residue = start_addr % MAC_MEM_DUMP_PAGE_SIZE;
554 for (i = indir_access_addr + residue;
563 residue = 0;
/linux-master/drivers/dma/mediatek/
H A Dmtk-cqdma.c71 * @residue: The remaining data size device will move
81 size_t residue; member in struct:mtk_cqdma_vdesc
327 /* update residue of the parent CVD */
328 cvd->parent->residue -= cvd->len;
336 if (!cvd->parent->residue) {
461 bytes = cvd->residue;
532 cvd[0]->residue = len;
535 cvd[i]->residue = tlen;
H A Dmtk-hsdma.c126 * @residue: The remaining data size device will move
133 size_t residue; member in struct:mtk_hsdma_vdesc
525 * terminate_all, residue calculation and such thing needed
577 /* Update residue of VD the associated PD belonged to */
579 hvd->residue -= MTK_HSDMA_DESC_PLEN_GET(rxd->desc2);
697 bytes = hvd->residue;
730 hvd->residue = len;
/linux-master/drivers/dma/ti/
H A Dk3-udma.c224 u32 residue; member in struct:udma_desc
246 u32 residue; member in struct:udma_tx_drain
1076 /* Transfer is incomplete, store current residue and time stamp */
1078 uc->tx_drain.residue = bcnt - peer_bcnt;
1097 /* Get previous residue and time stamp */
1098 residue_diff = uc->tx_drain.residue;
1101 * Get current residue and time stamp or see if
1109 * Find the time delta and residue delta w.r.t
1114 residue_diff -= uc->tx_drain.residue;
1123 uc->tx_drain.residue;
3809 u32 residue = uc->desc->residue; local
[all...]
H A Dedma.c181 * The following 4 elements are used for residue accounting.
190 * - residue: The amount of bytes we have left to transfer for this desc
192 * - residue_stat: The residue in bytes of data we have covered
193 * so far for accounting. This is updated directly to residue
197 * this is required to update the residue during intermediate transfer
202 u32 residue; member in struct:edma_desc
1049 edesc->residue = 0;
1086 edesc->residue += sg_dma_len(sg);
1100 edesc->residue_stat = edesc->residue;
1166 edesc->residue
[all...]
/linux-master/drivers/scsi/bfa/
H A Dbfa_ioc.c4270 len = (flash->residue < BFA_FLASH_DMA_BUF_SZ) ?
4271 flash->residue : BFA_FLASH_DMA_BUF_SZ;
4275 msg->last = (len == flash->residue) ? 1 : 0;
4283 flash->residue -= len;
4303 len = (flash->residue < BFA_FLASH_DMA_BUF_SZ) ?
4304 flash->residue : BFA_FLASH_DMA_BUF_SZ;
4402 if (status != BFA_STATUS_OK || flash->residue == 0) {
4422 flash->residue -= len;
4424 if (flash->residue == 0) {
4639 flash->residue
6980 u32 off, l, s, residue, fifo_sz; local
[all...]
/linux-master/drivers/parport/
H A Dparport_ip32.c651 /* Adjust residue (parport_ip32_dma.left) */
683 * parport_ip32_dma_get_residue - get residue from last DMA transfer
1535 unsigned int residue; local
1544 residue = 0;
1563 for (residue = priv->fifo_depth; residue > 0; residue--) {
1569 if (residue)
1571 p->name, residue,
1572 (residue
[all...]
/linux-master/drivers/dma/xilinx/
H A Dxilinx_dma.c369 * @residue: Residue of the completed descriptor
377 u32 residue; member in struct:xilinx_dma_tx_descriptor
974 * xilinx_dma_get_residue - Compute residue for a given descriptor
978 * Return: The number of residue bytes for the descriptor.
990 u32 residue = 0; local
998 residue += (cdma_hw->control - cdma_hw->status) &
1006 residue += (axidma_hw->control - axidma_hw->status) &
1014 residue +=
1020 return residue;
1074 result.residue
1277 u32 residue = 0; local
[all...]
/linux-master/include/linux/
H A Ddmaengine.h453 * enum dma_residue_granularity - Granularity of the reported transfer residue
456 * not, which means residue reporting is not supported by this channel. The
457 * residue field of the dma_tx_state field will always be 0.
462 * outstanding residue by the size of the segment. Another possibility is if
465 * the number of segments without the flag set to compute the residue.
493 * @cmd_pause: true, if pause is supported (i.e. for reading residue or
497 * @residue_granularity: granularity of the reported transfer residue
544 u32 residue; member in struct:dmaengine_result
718 * @residue: the remaining number of bytes left to transmit
726 u32 residue; member in struct:dma_tx_state
1470 dma_set_tx_state(struct dma_tx_state *st, dma_cookie_t last, dma_cookie_t used, u32 residue) argument
[all...]
/linux-master/drivers/tty/serial/
H A Dsprd_serial.c215 if (state.residue) {
216 trans_len = state.residue - sp->tx_dma.phys_addr;
407 if (!state.residue && sp->pos == sp->rx_dma.phys_addr)
410 if (!state.residue) {
415 sp->rx_dma.trans_len = state.residue - sp->pos;
416 sp->pos = state.residue;
/linux-master/drivers/dma/sh/
H A Drcar-dmac.c1322 unsigned int residue = 0; local
1333 * there is no residue. The same check has already been performed by the
1343 * then the descriptor hasn't been processed yet, and the residue is
1349 * the residue is zero.
1366 * No descriptor found for the cookie, there's thus no residue.
1390 WARN_ONCE(i >= 3, "residue might be not continuous!");
1413 residue += chunk->size;
1416 /* Add the residue for the current chunk. */
1417 residue += tcrb << desc->xfer_shift;
1419 return residue;
1429 unsigned int residue; local
[all...]
/linux-master/drivers/usb/c67x00/
H A Dc67x00-sched.c56 u8 residue; /* Byte 9 */ member in struct:c67x00_td
115 #define td_residue(td) ((__s8)(td->residue))
151 dev_dbg(dev, "residue: 0x%02x\n", td->residue);
623 td->residue = 0;
/linux-master/arch/arm/mach-footbridge/
H A Ddma-isa.c134 .residue = isa_get_dma_residue,

Completed in 341 milliseconds

12345