/drivers/staging/comedi/drivers/ |
D | comedi_isadma.c | 53 unsigned int residue; in comedi_isadma_disable() local 57 residue = get_dma_residue(dma_chan); in comedi_isadma_disable() 60 return residue; in comedi_isadma_disable() 76 unsigned int residue; in comedi_isadma_disable_on_sample() local 79 residue = comedi_isadma_disable(dma_chan); in comedi_isadma_disable_on_sample() 80 while (residue % size) { in comedi_isadma_disable_on_sample() 90 if (new_residue == residue) { in comedi_isadma_disable_on_sample() 95 residue = new_residue; in comedi_isadma_disable_on_sample() 99 return residue; in comedi_isadma_disable_on_sample()
|
D | ni_labpc_isadma.c | 89 unsigned int residue; in labpc_drain_dma() local 98 residue = comedi_isadma_disable(desc->chan); in labpc_drain_dma() 104 nsamples = max_samples - comedi_bytes_to_samples(s, residue); in labpc_drain_dma()
|
D | ni_at_a2150.c | 151 unsigned int max_points, num_points, residue, leftover; in a2150_interrupt() local 179 residue = comedi_isadma_disable(desc->chan); in a2150_interrupt() 183 num_points = max_points - comedi_bytes_to_samples(s, residue); in a2150_interrupt() 201 if (residue) in a2150_interrupt()
|
D | das16.c | 484 unsigned int residue; in das16_interrupt() local 499 residue = comedi_isadma_disable_on_sample(desc->chan, in das16_interrupt() 503 if (residue > desc->size) { in das16_interrupt() 508 nbytes = desc->size - residue; in das16_interrupt()
|
/drivers/dma/sh/ |
D | usb-dmac.c | 60 u32 residue; member 476 unsigned int residue = sg->size; in usb_dmac_get_current_residue() local 483 residue -= usb_dmac_chan_read(chan, USB_DMADAR) - mem_addr; in usb_dmac_get_current_residue() 485 residue -= usb_dmac_chan_read(chan, USB_DMASAR) - mem_addr; in usb_dmac_get_current_residue() 487 return residue; in usb_dmac_get_current_residue() 494 u32 residue = 0; in usb_dmac_chan_get_residue_if_complete() local 498 residue = desc->residue; in usb_dmac_chan_get_residue_if_complete() 503 return residue; in usb_dmac_chan_get_residue_if_complete() 509 u32 residue = 0; in usb_dmac_chan_get_residue() local 523 residue += desc->sg[i].size; in usb_dmac_chan_get_residue() [all …]
|
D | rcar-dmac.c | 1229 unsigned int residue = 0; in rcar_dmac_chan_get_residue() local 1288 residue += chunk->size; in rcar_dmac_chan_get_residue() 1292 residue += rcar_dmac_chan_read(chan, RCAR_DMATCR) << desc->xfer_shift; in rcar_dmac_chan_get_residue() 1294 return residue; in rcar_dmac_chan_get_residue() 1304 unsigned int residue; in rcar_dmac_tx_status() local 1311 residue = rcar_dmac_chan_get_residue(rchan, cookie); in rcar_dmac_tx_status() 1315 if (!residue) in rcar_dmac_tx_status() 1318 dma_set_residue(txstate, residue); in rcar_dmac_tx_status()
|
/drivers/dma/ |
D | dmaengine.h | 78 state->residue = 0; in dma_cookie_status() 83 static inline void dma_set_residue(struct dma_tx_state *state, u32 residue) in dma_set_residue() argument 86 state->residue = residue; in dma_set_residue() 128 .residue = 0 in dmaengine_desc_callback_invoke()
|
D | dma-jz4740.c | 448 unsigned int residue, count; in jz4740_dma_desc_residue() local 451 residue = 0; in jz4740_dma_desc_residue() 454 residue += desc->sg[i].len; in jz4740_dma_desc_residue() 459 residue += count << chan->transfer_shift; in jz4740_dma_desc_residue() 462 return residue; in jz4740_dma_desc_residue() 480 state->residue = jz4740_dma_desc_residue(chan, chan->desc, in jz4740_dma_tx_status() 483 state->residue = jz4740_dma_desc_residue(chan, in jz4740_dma_tx_status() 486 state->residue = 0; in jz4740_dma_tx_status()
|
D | dma-jz4780.c | 545 unsigned int residue, count; in jz4780_dma_desc_residue() local 548 residue = 0; in jz4780_dma_desc_residue() 551 residue += desc->desc[i].dtc << jzchan->transfer_shift; in jz4780_dma_desc_residue() 556 residue += count << jzchan->transfer_shift; in jz4780_dma_desc_residue() 559 return residue; in jz4780_dma_desc_residue() 579 txstate->residue = jz4780_dma_desc_residue(jzchan, in jz4780_dma_tx_status() 582 txstate->residue = jz4780_dma_desc_residue(jzchan, jzchan->desc, in jz4780_dma_tx_status() 585 txstate->residue = 0; in jz4780_dma_tx_status()
|
D | stm32-dma.c | 860 u32 dma_scr, width, residue, count; in stm32_dma_desc_residue() local 863 residue = 0; in stm32_dma_desc_residue() 866 residue += desc->sg_req[i].len; in stm32_dma_desc_residue() 873 residue += count << width; in stm32_dma_desc_residue() 876 return residue; in stm32_dma_desc_residue() 887 u32 residue = 0; in stm32_dma_tx_status() local 896 residue = stm32_dma_desc_residue(chan, chan->desc, in stm32_dma_tx_status() 899 residue = stm32_dma_desc_residue(chan, in stm32_dma_tx_status() 901 dma_set_residue(state, residue); in stm32_dma_tx_status()
|
D | edma.c | 199 u32 residue; member 1082 edesc->residue = 0; in edma_prep_slave_sg() 1119 edesc->residue += sg_dma_len(sg); in edma_prep_slave_sg() 1133 edesc->residue_stat = edesc->residue; in edma_prep_slave_sg() 1200 edesc->residue = edesc->residue_stat = len; in edma_prep_dma_memcpy() 1324 edesc->residue = edesc->residue_stat = buf_len; in edma_prep_dma_cyclic() 1420 edesc->residue = 0; in edma_completion_handler() 1434 edesc->residue -= edesc->sg_len; in edma_completion_handler() 1435 edesc->residue_stat = edesc->residue; in edma_completion_handler() 1769 edesc->residue_stat = edesc->residue - done; in edma_residue() [all …]
|
D | mmp_pdma.c | 758 u32 curr, residue = 0; in mmp_pdma_residue() local 794 residue += len; in mmp_pdma_residue() 796 residue += end - curr; in mmp_pdma_residue() 817 return residue; in mmp_pdma_residue() 819 residue = 0; in mmp_pdma_residue() 825 return residue; in mmp_pdma_residue()
|
D | mxs-dma.c | 672 u32 residue = 0; in mxs_dma_tx_status() local 680 residue = last_ccw->xfer_bytes + last_ccw->bufaddr; in mxs_dma_tx_status() 684 residue -= bar; in mxs_dma_tx_status() 688 residue); in mxs_dma_tx_status()
|
D | cppi41.c | 101 u32 residue; member 349 c->residue = pd_trans_len(c->desc->pd6) - len; in cppi41_irq() 425 txstate->residue = c->residue; in cppi41_dma_tx_status() 438 c->residue = 0; in push_desc_queue()
|
D | img-mdc-dma.c | 600 u32 val1, val2, done, processed, residue; in mdc_tx_status() local 612 residue = mdc_chan_readl(mchan, in mdc_tx_status() 641 if (residue != MDC_TRANSFER_SIZE_MASK) in mdc_tx_status() 642 bytes -= ldesc->xfer_size - residue; in mdc_tx_status()
|
D | pxa_dma.c | 1191 u32 curr, start, len, end, residue = 0; in pxad_residue() local 1244 residue += len; in pxad_residue() 1246 residue += end - curr; in pxad_residue() 1251 residue = sw_desc->len; in pxad_residue() 1257 __func__, vd, cookie, sw_desc, residue); in pxad_residue() 1258 return residue; in pxad_residue()
|
/drivers/dma/dw/ |
D | core.c | 241 first->residue = first->total_len; in dwc_dostart() 367 desc->residue -= desc->len; in dwc_scan_descriptors() 369 desc->residue -= to_dw_desc(active->prev)->len; in dwc_scan_descriptors() 405 desc->residue = desc->total_len; in dwc_scan_descriptors() 416 desc->residue -= dwc_get_sent(dwc); in dwc_scan_descriptors() 421 desc->residue -= desc->len; in dwc_scan_descriptors() 425 desc->residue -= dwc_get_sent(dwc); in dwc_scan_descriptors() 429 desc->residue -= child->len; in dwc_scan_descriptors() 1028 u32 residue; in dwc_get_residue() local 1035 residue = desc->residue; in dwc_get_residue() [all …]
|
/drivers/scsi/bfa/ |
D | bfa_ioc.c | 4285 len = (flash->residue < BFA_FLASH_DMA_BUF_SZ) ? in bfa_flash_write_send() 4286 flash->residue : BFA_FLASH_DMA_BUF_SZ; in bfa_flash_write_send() 4290 msg->last = (len == flash->residue) ? 1 : 0; in bfa_flash_write_send() 4298 flash->residue -= len; in bfa_flash_write_send() 4318 len = (flash->residue < BFA_FLASH_DMA_BUF_SZ) ? in bfa_flash_read_send() 4319 flash->residue : BFA_FLASH_DMA_BUF_SZ; in bfa_flash_read_send() 4417 if (status != BFA_STATUS_OK || flash->residue == 0) { in bfa_flash_intr() 4437 flash->residue -= len; in bfa_flash_intr() 4439 if (flash->residue == 0) { in bfa_flash_intr() 4654 flash->residue = len; in bfa_flash_update_part() [all …]
|
D | bfad_im.c | 43 int sns_len, u8 *sns_info, s32 residue) in bfa_cb_ioim_done() argument 63 if (residue > 0) { in bfa_cb_ioim_done() 64 bfa_trc(bfad, residue); in bfa_cb_ioim_done() 65 scsi_set_resid(cmnd, residue); in bfa_cb_ioim_done() 67 (scsi_bufflen(cmnd) - residue) < in bfa_cb_ioim_done()
|
/drivers/usb/storage/ |
D | transport.c | 1124 unsigned int residue; in usb_stor_Bulk_transport() local 1255 residue = le32_to_cpu(bcs->Residue); in usb_stor_Bulk_transport() 1258 residue, bcs->Status); in usb_stor_Bulk_transport() 1286 if (residue && !(us->fflags & US_FL_IGNORE_RESIDUE)) { in usb_stor_Bulk_transport() 1302 residue = min(residue, transfer_length); in usb_stor_Bulk_transport() 1304 (int) residue)); in usb_stor_Bulk_transport()
|
D | realtek_cr.c | 220 unsigned int residue; in rts51x_bulk_transport() local 267 residue = bcs->Residue; in rts51x_bulk_transport() 275 if (residue) in rts51x_bulk_transport() 276 residue = residue < buf_len ? residue : buf_len; in rts51x_bulk_transport() 279 *act_len = buf_len - residue; in rts51x_bulk_transport()
|
/drivers/parport/ |
D | parport_ip32.c | 1546 unsigned int residue; in parport_ip32_get_fifo_residue() local 1555 residue = 0; in parport_ip32_get_fifo_residue() 1574 for (residue = priv->fifo_depth; residue > 0; residue--) { in parport_ip32_get_fifo_residue() 1580 if (residue) in parport_ip32_get_fifo_residue() 1582 p->name, residue, in parport_ip32_get_fifo_residue() 1583 (residue == 1) ? " was" : "s were"); in parport_ip32_get_fifo_residue() 1610 residue++; in parport_ip32_get_fifo_residue() 1620 return residue; in parport_ip32_get_fifo_residue()
|
/drivers/net/ethernet/brocade/bna/ |
D | bfa_ioc.c | 1708 u32 off, l, s, residue, fifo_sz; in bfa_flash_raw_read() local 1710 residue = len; in bfa_flash_raw_read() 1717 while (residue) { in bfa_flash_raw_read() 1721 if (l > residue) in bfa_flash_raw_read() 1722 l = residue; in bfa_flash_raw_read() 1741 residue -= l; in bfa_flash_raw_read() 3078 len = (flash->residue < BFA_FLASH_DMA_BUF_SZ) ? in bfa_flash_write_send() 3079 flash->residue : BFA_FLASH_DMA_BUF_SZ; in bfa_flash_write_send() 3083 msg->last = (len == flash->residue) ? 1 : 0; in bfa_flash_write_send() 3091 flash->residue -= len; in bfa_flash_write_send() [all …]
|
/drivers/tty/serial/ |
D | serial-tegra.c | 409 count = tup->tx_bytes_requested - state.residue; in tegra_uart_tx_dma_complete() 505 count = tup->tx_bytes_requested - state.residue; in tegra_uart_stop_tx() 571 unsigned int residue) in tegra_uart_rx_buffer_push() argument 578 count = tup->rx_bytes_requested - residue; in tegra_uart_rx_buffer_push() 632 tegra_uart_rx_buffer_push(tup, state.residue); in tegra_uart_handle_rx_dma() 770 tegra_uart_rx_buffer_push(tup, state.residue); in tegra_uart_stop_rx()
|
/drivers/usb/c67x00/ |
D | c67x00-sched.c | 70 u8 residue; /* Byte 9 */ member 129 #define td_residue(td) ((__s8)(td->residue)) 165 dev_dbg(dev, "residue: 0x%02x\n", td->residue); in dbg_td() 637 td->residue = 0; in c67x00_create_td()
|