/drivers/comedi/drivers/ |
D | comedi_isadma.c | 44 unsigned int residue; in comedi_isadma_disable() local 48 residue = get_dma_residue(dma_chan); in comedi_isadma_disable() 51 return residue; in comedi_isadma_disable() 67 unsigned int residue; in comedi_isadma_disable_on_sample() local 70 residue = comedi_isadma_disable(dma_chan); in comedi_isadma_disable_on_sample() 71 while (residue % size) { in comedi_isadma_disable_on_sample() 81 if (new_residue == residue) { in comedi_isadma_disable_on_sample() 86 residue = new_residue; in comedi_isadma_disable_on_sample() 90 return residue; in comedi_isadma_disable_on_sample()
|
D | ni_labpc_isadma.c | 80 unsigned int residue; in labpc_drain_dma() local 89 residue = comedi_isadma_disable(desc->chan); in labpc_drain_dma() 95 nsamples = max_samples - comedi_bytes_to_samples(s, residue); in labpc_drain_dma()
|
D | ni_at_a2150.c | 142 unsigned int max_points, num_points, residue, leftover; in a2150_interrupt() local 170 residue = comedi_isadma_disable(desc->chan); in a2150_interrupt() 174 num_points = max_points - comedi_bytes_to_samples(s, residue); in a2150_interrupt() 192 if (residue) in a2150_interrupt()
|
/drivers/dma/sh/ |
D | usb-dmac.c | 57 u32 residue; member 473 unsigned int residue = sg->size; in usb_dmac_get_current_residue() local 480 residue -= usb_dmac_chan_read(chan, USB_DMADAR) - mem_addr; in usb_dmac_get_current_residue() 482 residue -= usb_dmac_chan_read(chan, USB_DMASAR) - mem_addr; in usb_dmac_get_current_residue() 484 return residue; in usb_dmac_get_current_residue() 491 u32 residue = 0; in usb_dmac_chan_get_residue_if_complete() local 495 residue = desc->residue; in usb_dmac_chan_get_residue_if_complete() 500 return residue; in usb_dmac_chan_get_residue_if_complete() 506 u32 residue = 0; in usb_dmac_chan_get_residue() local 520 residue += desc->sg[i].size; in usb_dmac_chan_get_residue() [all …]
|
D | rcar-dmac.c | 1322 unsigned int residue = 0; in rcar_dmac_chan_get_residue() local 1413 residue += chunk->size; in rcar_dmac_chan_get_residue() 1417 residue += tcrb << desc->xfer_shift; in rcar_dmac_chan_get_residue() 1419 return residue; in rcar_dmac_chan_get_residue() 1429 unsigned int residue; in rcar_dmac_tx_status() local 1437 residue = rcar_dmac_chan_get_residue(rchan, cookie); in rcar_dmac_tx_status() 1442 if (!residue && !cyclic) in rcar_dmac_tx_status() 1445 dma_set_residue(txstate, residue); in rcar_dmac_tx_status()
|
/drivers/dma/ |
D | dmaengine.h | 79 state->residue = 0; in dma_cookie_status() 85 static inline void dma_set_residue(struct dma_tx_state *state, u32 residue) in dma_set_residue() argument 88 state->residue = residue; in dma_set_residue() 137 .residue = 0 in dmaengine_desc_callback_invoke()
|
D | stm32-dma.c | 1118 u32 residue; in stm32_dma_desc_residue() local 1148 residue = stm32_dma_get_remaining_bytes(chan); in stm32_dma_desc_residue() 1154 residue = sg_req->len; in stm32_dma_desc_residue() 1166 residue += desc->sg_req[i].len; in stm32_dma_desc_residue() 1169 return residue; in stm32_dma_desc_residue() 1172 modulo = residue % burst_size; in stm32_dma_desc_residue() 1174 residue = residue - modulo + burst_size; in stm32_dma_desc_residue() 1176 return residue; in stm32_dma_desc_residue() 1187 u32 residue = 0; in stm32_dma_tx_status() local 1196 residue = stm32_dma_desc_residue(chan, chan->desc, in stm32_dma_tx_status() [all …]
|
D | stm32-mdma.c | 1286 u32 cbndtr, residue, modulo, burst_size; in stm32_mdma_desc_residue() local 1289 residue = 0; in stm32_mdma_desc_residue() 1292 residue += STM32_MDMA_CBNDTR_BNDT(hwdesc->cbndtr); in stm32_mdma_desc_residue() 1295 residue += cbndtr & STM32_MDMA_CBNDTR_BNDT_MASK; in stm32_mdma_desc_residue() 1298 return residue; in stm32_mdma_desc_residue() 1301 modulo = residue % burst_size; in stm32_mdma_desc_residue() 1303 residue = residue - modulo + burst_size; in stm32_mdma_desc_residue() 1305 return residue; in stm32_mdma_desc_residue() 1316 u32 residue = 0; in stm32_mdma_tx_status() local 1326 residue = stm32_mdma_desc_residue(chan, chan->desc, in stm32_mdma_tx_status() [all …]
|
D | st_fdma.c | 560 size_t residue = 0; in st_fdma_desc_residue() local 571 residue += fnode_read(fchan, FDMA_CNTN_OFST); in st_fdma_desc_residue() 574 residue += fdesc->node[i].desc->nbytes; in st_fdma_desc_residue() 577 return residue; in st_fdma_desc_residue() 596 txstate->residue = st_fdma_desc_residue(fchan, vd, true); in st_fdma_tx_status() 598 txstate->residue = st_fdma_desc_residue(fchan, vd, false); in st_fdma_tx_status() 600 txstate->residue = 0; in st_fdma_tx_status()
|
D | mmp_pdma.c | 766 u32 curr, residue = 0; in mmp_pdma_residue() local 802 residue += len; in mmp_pdma_residue() 804 residue += end - curr; in mmp_pdma_residue() 825 return residue; in mmp_pdma_residue() 827 residue = 0; in mmp_pdma_residue() 833 return residue; in mmp_pdma_residue()
|
D | mxs-dma.c | 652 u32 residue = 0; in mxs_dma_tx_status() local 660 residue = last_ccw->xfer_bytes + last_ccw->bufaddr; in mxs_dma_tx_status() 664 residue -= bar; in mxs_dma_tx_status() 668 residue); in mxs_dma_tx_status()
|
/drivers/dma/sf-pdma/ |
D | sf-pdma.c | 159 u64 residue = 0; in sf_pdma_desc_residue() local 176 residue = readq(regs->residue); in sf_pdma_desc_residue() 183 residue = desc->xfer_size; in sf_pdma_desc_residue() 188 return residue; in sf_pdma_desc_residue() 345 u64 residue; in sf_pdma_done_isr() local 349 residue = readq(regs->residue); in sf_pdma_done_isr() 351 if (!residue) { in sf_pdma_done_isr() 357 desc->src_addr += desc->xfer_size - residue; in sf_pdma_done_isr() 358 desc->dst_addr += desc->xfer_size - residue; in sf_pdma_done_isr() 359 desc->xfer_size = residue; in sf_pdma_done_isr() [all …]
|
/drivers/nvmem/ |
D | rave-sp-eeprom.c | 225 unsigned int residue; in rave_sp_eeprom_access() local 233 residue = data_len; in rave_sp_eeprom_access() 258 chunk = min(chunk, residue); in rave_sp_eeprom_access() 264 residue -= chunk; in rave_sp_eeprom_access() 267 } while (residue); in rave_sp_eeprom_access()
|
/drivers/staging/ralink-gdma/ |
D | ralink-gdma.c | 101 u32 residue; member 444 desc->residue -= desc->sg[chan->next_sg - 1].len; in gdma_dma_chan_irq() 527 desc->residue = 0; in gdma_dma_prep_slave_sg() 546 desc->residue += sg_dma_len(sg); in gdma_dma_prep_slave_sg() 582 desc->residue = len; in gdma_dma_prep_dma_memcpy() 627 desc->residue = buf_len; in gdma_dma_prep_dma_cyclic() 677 state->residue = desc->residue - in gdma_dma_tx_status() 680 state->residue = desc->residue; in gdma_dma_tx_status() 684 state->residue = to_gdma_dma_desc(vdesc)->residue; in gdma_dma_tx_status() 688 dev_dbg(c->device->dev, "tx residue %d bytes\n", state->residue); in gdma_dma_tx_status()
|
/drivers/dma/dw/ |
D | core.c | 202 first->residue = first->total_len; in dwc_dostart() 329 desc->residue -= desc->len; in dwc_scan_descriptors() 331 desc->residue -= to_dw_desc(active->prev)->len; in dwc_scan_descriptors() 367 desc->residue = desc->total_len; in dwc_scan_descriptors() 378 desc->residue -= dwc_get_sent(dwc); in dwc_scan_descriptors() 383 desc->residue -= desc->len; in dwc_scan_descriptors() 387 desc->residue -= dwc_get_sent(dwc); in dwc_scan_descriptors() 391 desc->residue -= child->len; in dwc_scan_descriptors() 899 u32 residue; in dwc_get_residue() local 906 residue = desc->residue; in dwc_get_residue() [all …]
|
/drivers/scsi/bfa/ |
D | bfa_ioc.c | 4271 len = (flash->residue < BFA_FLASH_DMA_BUF_SZ) ? in bfa_flash_write_send() 4272 flash->residue : BFA_FLASH_DMA_BUF_SZ; in bfa_flash_write_send() 4276 msg->last = (len == flash->residue) ? 1 : 0; in bfa_flash_write_send() 4284 flash->residue -= len; in bfa_flash_write_send() 4304 len = (flash->residue < BFA_FLASH_DMA_BUF_SZ) ? in bfa_flash_read_send() 4305 flash->residue : BFA_FLASH_DMA_BUF_SZ; in bfa_flash_read_send() 4403 if (status != BFA_STATUS_OK || flash->residue == 0) { in bfa_flash_intr() 4423 flash->residue -= len; in bfa_flash_intr() 4425 if (flash->residue == 0) { in bfa_flash_intr() 4640 flash->residue = len; in bfa_flash_update_part() [all …]
|
/drivers/usb/storage/ |
D | transport.c | 1120 unsigned int residue; in usb_stor_Bulk_transport() local 1251 residue = le32_to_cpu(bcs->Residue); in usb_stor_Bulk_transport() 1254 residue, bcs->Status); in usb_stor_Bulk_transport() 1282 if (residue && !(us->fflags & US_FL_IGNORE_RESIDUE)) { in usb_stor_Bulk_transport() 1298 residue = min(residue, transfer_length); in usb_stor_Bulk_transport() 1299 scsi_set_resid(srb, max(scsi_get_resid(srb), residue)); in usb_stor_Bulk_transport()
|
D | realtek_cr.c | 208 unsigned int residue; in rts51x_bulk_transport() local 255 residue = bcs->Residue; in rts51x_bulk_transport() 263 if (residue) in rts51x_bulk_transport() 264 residue = residue < buf_len ? residue : buf_len; in rts51x_bulk_transport() 267 *act_len = buf_len - residue; in rts51x_bulk_transport()
|
/drivers/dma/mediatek/ |
D | mtk-cqdma.c | 82 size_t residue; member 329 cvd->parent->residue -= cvd->len; in mtk_cqdma_consume_work_queue() 337 if (!cvd->parent->residue) { in mtk_cqdma_consume_work_queue() 462 bytes = cvd->residue; in mtk_cqdma_tx_status() 533 cvd[0]->residue = len; in mtk_cqdma_prep_dma_memcpy() 536 cvd[i]->residue = tlen; in mtk_cqdma_prep_dma_memcpy()
|
/drivers/parport/ |
D | parport_ip32.c | 1535 unsigned int residue; in parport_ip32_get_fifo_residue() local 1544 residue = 0; in parport_ip32_get_fifo_residue() 1563 for (residue = priv->fifo_depth; residue > 0; residue--) { in parport_ip32_get_fifo_residue() 1569 if (residue) in parport_ip32_get_fifo_residue() 1571 p->name, residue, in parport_ip32_get_fifo_residue() 1572 (residue == 1) ? " was" : "s were"); in parport_ip32_get_fifo_residue() 1599 residue++; in parport_ip32_get_fifo_residue() 1609 return residue; in parport_ip32_get_fifo_residue()
|
/drivers/net/ethernet/brocade/bna/ |
D | bfa_ioc.c | 1696 u32 off, l, s, residue, fifo_sz; in bfa_flash_raw_read() local 1698 residue = len; in bfa_flash_raw_read() 1705 while (residue) { in bfa_flash_raw_read() 1709 if (l > residue) in bfa_flash_raw_read() 1710 l = residue; in bfa_flash_raw_read() 1729 residue -= l; in bfa_flash_raw_read() 3072 len = (flash->residue < BFA_FLASH_DMA_BUF_SZ) ? in bfa_flash_write_send() 3073 flash->residue : BFA_FLASH_DMA_BUF_SZ; in bfa_flash_write_send() 3077 msg->last = (len == flash->residue) ? 1 : 0; in bfa_flash_write_send() 3085 flash->residue -= len; in bfa_flash_write_send() [all …]
|
/drivers/dma/ti/ |
D | edma.c | 211 u32 residue; member 1106 edesc->residue = 0; in edma_prep_slave_sg() 1143 edesc->residue += sg_dma_len(sg); in edma_prep_slave_sg() 1157 edesc->residue_stat = edesc->residue; in edma_prep_slave_sg() 1223 edesc->residue = edesc->residue_stat = len; in edma_prep_dma_memcpy() 1427 edesc->residue = edesc->residue_stat = buf_len; in edma_prep_dma_cyclic() 1523 edesc->residue = 0; in edma_completion_handler() 1537 edesc->residue -= edesc->sg_len; in edma_completion_handler() 1538 edesc->residue_stat = edesc->residue; in edma_completion_handler() 1880 edesc->residue_stat = edesc->residue - done; in edma_residue() [all …]
|
D | k3-udma.c | 223 u32 residue; member 245 u32 residue; member 1069 uc->tx_drain.residue = bcnt - peer_bcnt; in udma_is_desc_really_done() 1089 residue_diff = uc->tx_drain.residue; in udma_check_tx_completion() 1105 residue_diff -= uc->tx_drain.residue; in udma_check_tx_completion() 1114 uc->tx_drain.residue; in udma_check_tx_completion() 1129 udma_decrement_byte_counters(uc, d->residue); in udma_check_tx_completion() 1182 udma_decrement_byte_counters(uc, d->residue); in udma_ring_irq_handler() 1218 udma_decrement_byte_counters(uc, d->residue); in udma_udma_irq_handler() 2943 d->residue += sg_dma_len(sgent); in udma_prep_slave_sg_tr() [all …]
|
/drivers/dma/xilinx/ |
D | xilinx_dma.c | 372 u32 residue; member 958 u32 residue = 0; in xilinx_dma_get_residue() local 966 residue += (cdma_hw->control - cdma_hw->status) & in xilinx_dma_get_residue() 974 residue += (axidma_hw->control - axidma_hw->status) & in xilinx_dma_get_residue() 982 residue += in xilinx_dma_get_residue() 988 return residue; in xilinx_dma_get_residue() 1044 result.residue = desc->residue; in xilinx_dma_chan_desc_cleanup() 1247 u32 residue = 0; in xilinx_dma_tx_status() local 1262 residue = xilinx_dma_get_residue(chan, desc); in xilinx_dma_tx_status() 1266 dma_set_residue(txstate, residue); in xilinx_dma_tx_status() [all …]
|
/drivers/tty/serial/ |
D | sprd_serial.c | 216 if (state.residue) { in sprd_stop_tx_dma() 217 trans_len = state.residue - sp->tx_dma.phys_addr; in sprd_stop_tx_dma() 410 if (!state.residue && sp->pos == sp->rx_dma.phys_addr) in sprd_uart_dma_irq() 413 if (!state.residue) { in sprd_uart_dma_irq() 418 sp->rx_dma.trans_len = state.residue - sp->pos; in sprd_uart_dma_irq() 419 sp->pos = state.residue; in sprd_uart_dma_irq()
|