Lines Matching refs:residue
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()
523 residue += usb_dmac_get_current_residue(chan, desc, desc->sg_index); in usb_dmac_chan_get_residue()
525 return residue; in usb_dmac_chan_get_residue()
534 unsigned int residue = 0; in usb_dmac_tx_status() local
544 residue = usb_dmac_chan_get_residue_if_complete(uchan, cookie); in usb_dmac_tx_status()
546 residue = usb_dmac_chan_get_residue(uchan, cookie); in usb_dmac_tx_status()
549 dma_set_residue(txstate, residue); in usb_dmac_tx_status()
586 desc->residue = usb_dmac_get_current_residue(chan, desc, in usb_dmac_isr_transfer_end()
590 desc->vd.tx_result.residue = desc->residue; in usb_dmac_isr_transfer_end()