txstate 1552 drivers/dma/amba-pl08x.c dma_cookie_t cookie, struct dma_tx_state *txstate) txstate 1560 drivers/dma/amba-pl08x.c ret = dma_cookie_status(chan, cookie, txstate); txstate 1568 drivers/dma/amba-pl08x.c if (!txstate) { txstate 1575 drivers/dma/amba-pl08x.c ret = dma_cookie_status(chan, cookie, txstate); txstate 1595 drivers/dma/amba-pl08x.c dma_set_residue(txstate, bytes); txstate 1475 drivers/dma/at_hdmac.c struct dma_tx_state *txstate) txstate 1482 drivers/dma/at_hdmac.c ret = dma_cookie_status(chan, cookie, txstate); txstate 1489 drivers/dma/at_hdmac.c if (!txstate) txstate 1503 drivers/dma/at_hdmac.c dma_set_residue(txstate, bytes); txstate 1391 drivers/dma/at_xdmac.c struct dma_tx_state *txstate) txstate 1404 drivers/dma/at_xdmac.c ret = dma_cookie_status(chan, cookie, txstate); txstate 1408 drivers/dma/at_xdmac.c if (!txstate) txstate 1420 drivers/dma/at_xdmac.c dma_set_residue(txstate, desc->xfer_size); txstate 1518 drivers/dma/at_xdmac.c dma_set_residue(txstate, residue); txstate 549 drivers/dma/bcm-sba-raid.c struct dma_tx_state *txstate) txstate 554 drivers/dma/bcm-sba-raid.c ret = dma_cookie_status(dchan, cookie, txstate); txstate 560 drivers/dma/bcm-sba-raid.c return dma_cookie_status(dchan, cookie, txstate); txstate 565 drivers/dma/bcm2835-dma.c dma_cookie_t cookie, struct dma_tx_state *txstate) txstate 572 drivers/dma/bcm2835-dma.c ret = dma_cookie_status(chan, cookie, txstate); txstate 573 drivers/dma/bcm2835-dma.c if (ret == DMA_COMPLETE || !txstate) txstate 579 drivers/dma/bcm2835-dma.c txstate->residue = txstate 592 drivers/dma/bcm2835-dma.c txstate->residue = bcm2835_dma_desc_size_pos(d, pos); txstate 594 drivers/dma/bcm2835-dma.c txstate->residue = 0; txstate 2399 drivers/dma/coh901318.c struct dma_tx_state *txstate) txstate 2404 drivers/dma/coh901318.c ret = dma_cookie_status(chan, cookie, txstate); txstate 2405 drivers/dma/coh901318.c if (ret == DMA_COMPLETE || !txstate) txstate 2408 drivers/dma/coh901318.c dma_set_residue(txstate, coh901318_get_bytes_left(chan)); txstate 634 drivers/dma/dma-jz4780.c dma_cookie_t cookie, struct dma_tx_state *txstate) txstate 642 drivers/dma/dma-jz4780.c status = dma_cookie_status(chan, cookie, txstate); txstate 643 drivers/dma/dma-jz4780.c if ((status == DMA_COMPLETE) || (txstate == NULL)) txstate 657 drivers/dma/dma-jz4780.c dma_set_residue(txstate, residue); txstate 248 drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c struct dma_tx_state *txstate) txstate 253 drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c ret = dma_cookie_status(dchan, cookie, txstate); txstate 287 drivers/dma/dw-edma/dw-edma-core.c struct dma_tx_state *txstate) txstate 296 drivers/dma/dw-edma/dw-edma-core.c ret = dma_cookie_status(dchan, cookie, txstate); txstate 303 drivers/dma/dw-edma/dw-edma-core.c if (!txstate) txstate 316 drivers/dma/dw-edma/dw-edma-core.c dma_set_residue(txstate, residue); txstate 919 drivers/dma/dw/core.c struct dma_tx_state *txstate) txstate 924 drivers/dma/dw/core.c ret = dma_cookie_status(chan, cookie, txstate); txstate 930 drivers/dma/dw/core.c ret = dma_cookie_status(chan, cookie, txstate); txstate 934 drivers/dma/dw/core.c dma_set_residue(txstate, dwc_get_residue(dwc, cookie)); txstate 309 drivers/dma/fsl-edma-common.c dma_cookie_t cookie, struct dma_tx_state *txstate) txstate 316 drivers/dma/fsl-edma-common.c status = dma_cookie_status(chan, cookie, txstate); txstate 320 drivers/dma/fsl-edma-common.c if (!txstate) txstate 326 drivers/dma/fsl-edma-common.c txstate->residue = txstate 329 drivers/dma/fsl-edma-common.c txstate->residue = txstate 332 drivers/dma/fsl-edma-common.c txstate->residue = 0; txstate 233 drivers/dma/fsl-edma-common.h dma_cookie_t cookie, struct dma_tx_state *txstate); txstate 235 drivers/dma/fsl_raid.c struct dma_tx_state *txstate) txstate 237 drivers/dma/fsl_raid.c return dma_cookie_status(chan, cookie, txstate); txstate 892 drivers/dma/fsldma.c struct dma_tx_state *txstate) txstate 897 drivers/dma/fsldma.c ret = dma_cookie_status(dchan, cookie, txstate); txstate 905 drivers/dma/fsldma.c return dma_cookie_status(dchan, cookie, txstate); txstate 572 drivers/dma/img-mdc-dma.c dma_cookie_t cookie, struct dma_tx_state *txstate) txstate 581 drivers/dma/img-mdc-dma.c ret = dma_cookie_status(chan, cookie, txstate); txstate 585 drivers/dma/img-mdc-dma.c if (!txstate) txstate 644 drivers/dma/img-mdc-dma.c dma_set_residue(txstate, bytes); txstate 739 drivers/dma/imx-dma.c struct dma_tx_state *txstate) txstate 741 drivers/dma/imx-dma.c return dma_cookie_status(chan, cookie, txstate); txstate 1649 drivers/dma/imx-sdma.c struct dma_tx_state *txstate) txstate 1658 drivers/dma/imx-sdma.c ret = dma_cookie_status(chan, cookie, txstate); txstate 1659 drivers/dma/imx-sdma.c if (ret == DMA_COMPLETE || !txstate) txstate 1678 drivers/dma/imx-sdma.c dma_set_tx_state(txstate, chan->completed_cookie, chan->cookie, txstate 964 drivers/dma/ioat/dma.c struct dma_tx_state *txstate) txstate 969 drivers/dma/ioat/dma.c ret = dma_cookie_status(c, cookie, txstate); txstate 975 drivers/dma/ioat/dma.c return dma_cookie_status(c, cookie, txstate); txstate 395 drivers/dma/ioat/dma.h struct dma_tx_state *txstate); txstate 754 drivers/dma/iop-adma.c struct dma_tx_state *txstate) txstate 759 drivers/dma/iop-adma.c ret = dma_cookie_status(chan, cookie, txstate); txstate 765 drivers/dma/iop-adma.c return dma_cookie_status(chan, cookie, txstate); txstate 1603 drivers/dma/ipu/ipu_idmac.c dma_cookie_t cookie, struct dma_tx_state *txstate) txstate 1605 drivers/dma/ipu/ipu_idmac.c return dma_cookie_status(chan, cookie, txstate); txstate 443 drivers/dma/mediatek/mtk-cqdma.c struct dma_tx_state *txstate) txstate 452 drivers/dma/mediatek/mtk-cqdma.c ret = dma_cookie_status(c, cookie, txstate); txstate 453 drivers/dma/mediatek/mtk-cqdma.c if (ret == DMA_COMPLETE || !txstate) txstate 465 drivers/dma/mediatek/mtk-cqdma.c dma_set_residue(txstate, bytes); txstate 679 drivers/dma/mediatek/mtk-hsdma.c struct dma_tx_state *txstate) txstate 688 drivers/dma/mediatek/mtk-hsdma.c ret = dma_cookie_status(c, cookie, txstate); txstate 689 drivers/dma/mediatek/mtk-hsdma.c if (ret == DMA_COMPLETE || !txstate) txstate 701 drivers/dma/mediatek/mtk-hsdma.c dma_set_residue(txstate, bytes); txstate 321 drivers/dma/mediatek/mtk-uart-apdma.c struct dma_tx_state *txstate) txstate 326 drivers/dma/mediatek/mtk-uart-apdma.c ret = dma_cookie_status(chan, cookie, txstate); txstate 327 drivers/dma/mediatek/mtk-uart-apdma.c if (!txstate) txstate 330 drivers/dma/mediatek/mtk-uart-apdma.c dma_set_residue(txstate, c->rx_status); txstate 337 drivers/dma/mic_x100_dma.c struct dma_tx_state *txstate) txstate 341 drivers/dma/mic_x100_dma.c if (DMA_COMPLETE != dma_cookie_status(ch, cookie, txstate)) txstate 344 drivers/dma/mic_x100_dma.c return dma_cookie_status(ch, cookie, txstate); txstate 845 drivers/dma/mmp_pdma.c struct dma_tx_state *txstate) txstate 850 drivers/dma/mmp_pdma.c ret = dma_cookie_status(dchan, cookie, txstate); txstate 852 drivers/dma/mmp_pdma.c dma_set_residue(txstate, mmp_pdma_residue(chan, cookie)); txstate 530 drivers/dma/mmp_tdma.c dma_cookie_t cookie, struct dma_tx_state *txstate) txstate 535 drivers/dma/mmp_tdma.c dma_set_tx_state(txstate, chan->completed_cookie, chan->cookie, txstate 479 drivers/dma/moxart-dma.c struct dma_tx_state *txstate) txstate 490 drivers/dma/moxart-dma.c ret = dma_cookie_status(chan, cookie, txstate); txstate 496 drivers/dma/moxart-dma.c txstate->residue = moxart_dma_desc_size(d, 0); txstate 498 drivers/dma/moxart-dma.c txstate->residue = moxart_dma_desc_size_in_flight(ch); txstate 594 drivers/dma/mpc512x_dma.c struct dma_tx_state *txstate) txstate 596 drivers/dma/mpc512x_dma.c return dma_cookie_status(chan, cookie, txstate); txstate 676 drivers/dma/mv_xor.c struct dma_tx_state *txstate) txstate 681 drivers/dma/mv_xor.c ret = dma_cookie_status(chan, cookie, txstate); txstate 689 drivers/dma/mv_xor.c return dma_cookie_status(chan, cookie, txstate); txstate 667 drivers/dma/mxs-dma.c dma_cookie_t cookie, struct dma_tx_state *txstate) txstate 686 drivers/dma/mxs-dma.c dma_set_tx_state(txstate, chan->completed_cookie, chan->cookie, txstate 550 drivers/dma/pch_dma.c struct dma_tx_state *txstate) txstate 552 drivers/dma/pch_dma.c return dma_cookie_status(chan, cookie, txstate); txstate 2393 drivers/dma/pl330.c struct dma_tx_state *txstate) txstate 2401 drivers/dma/pl330.c ret = dma_cookie_status(chan, cookie, txstate); txstate 2403 drivers/dma/pl330.c if (!txstate) txstate 2457 drivers/dma/pl330.c dma_set_residue(txstate, residual); txstate 3577 drivers/dma/ppc4xx/adma.c dma_cookie_t cookie, struct dma_tx_state *txstate) txstate 3583 drivers/dma/ppc4xx/adma.c ret = dma_cookie_status(chan, cookie, txstate); txstate 3589 drivers/dma/ppc4xx/adma.c return dma_cookie_status(chan, cookie, txstate); txstate 1199 drivers/dma/pxa_dma.c struct dma_tx_state *txstate) txstate 1207 drivers/dma/pxa_dma.c ret = dma_cookie_status(dchan, cookie, txstate); txstate 1208 drivers/dma/pxa_dma.c if (likely(txstate && (ret != DMA_ERROR))) txstate 1209 drivers/dma/pxa_dma.c dma_set_residue(txstate, pxad_residue(chan, cookie)); txstate 908 drivers/dma/qcom/bam_dma.c struct dma_tx_state *txstate) txstate 918 drivers/dma/qcom/bam_dma.c ret = dma_cookie_status(chan, cookie, txstate); txstate 922 drivers/dma/qcom/bam_dma.c if (!txstate) txstate 942 drivers/dma/qcom/bam_dma.c dma_set_residue(txstate, residue); txstate 280 drivers/dma/qcom/hidma.c struct dma_tx_state *txstate) txstate 285 drivers/dma/qcom/hidma.c ret = dma_cookie_status(dmach, cookie, txstate); txstate 758 drivers/dma/s3c24xx-dma.c dma_cookie_t cookie, struct dma_tx_state *txstate) txstate 769 drivers/dma/s3c24xx-dma.c ret = dma_cookie_status(chan, cookie, txstate); txstate 775 drivers/dma/s3c24xx-dma.c if (ret == DMA_COMPLETE || !txstate) { txstate 806 drivers/dma/s3c24xx-dma.c dma_set_residue(txstate, bytes); txstate 1390 drivers/dma/sh/rcar-dmac.c struct dma_tx_state *txstate) txstate 1398 drivers/dma/sh/rcar-dmac.c status = dma_cookie_status(chan, cookie, txstate); txstate 1399 drivers/dma/sh/rcar-dmac.c if (status == DMA_COMPLETE || !txstate) txstate 1411 drivers/dma/sh/rcar-dmac.c dma_set_residue(txstate, residue); txstate 820 drivers/dma/sh/shdma-base.c struct dma_tx_state *txstate) txstate 830 drivers/dma/sh/shdma-base.c status = dma_cookie_status(chan, cookie, txstate); txstate 530 drivers/dma/sh/usb-dmac.c struct dma_tx_state *txstate) txstate 537 drivers/dma/sh/usb-dmac.c status = dma_cookie_status(chan, cookie, txstate); txstate 539 drivers/dma/sh/usb-dmac.c if (!txstate) txstate 549 drivers/dma/sh/usb-dmac.c dma_set_residue(txstate, residue); txstate 641 drivers/dma/sirf-dma.c struct dma_tx_state *txstate) txstate 656 drivers/dma/sirf-dma.c ret = dma_cookie_status(chan, cookie, txstate); txstate 657 drivers/dma/sirf-dma.c dma_set_residue(txstate, 0); txstate 668 drivers/dma/sirf-dma.c ret = dma_cookie_status(chan, cookie, txstate); txstate 681 drivers/dma/sirf-dma.c dma_set_residue(txstate, residue); txstate 636 drivers/dma/sprd-dma.c struct dma_tx_state *txstate) txstate 644 drivers/dma/sprd-dma.c ret = dma_cookie_status(chan, cookie, txstate); txstate 645 drivers/dma/sprd-dma.c if (ret == DMA_COMPLETE || !txstate) txstate 674 drivers/dma/sprd-dma.c dma_set_residue(txstate, pos); txstate 581 drivers/dma/st_fdma.c struct dma_tx_state *txstate) txstate 588 drivers/dma/st_fdma.c ret = dma_cookie_status(chan, cookie, txstate); txstate 589 drivers/dma/st_fdma.c if (ret == DMA_COMPLETE || !txstate) txstate 595 drivers/dma/st_fdma.c txstate->residue = st_fdma_desc_residue(fchan, vd, true); txstate 597 drivers/dma/st_fdma.c txstate->residue = st_fdma_desc_residue(fchan, vd, false); txstate 599 drivers/dma/st_fdma.c txstate->residue = 0; txstate 2540 drivers/dma/ste_dma40.c struct dma_tx_state *txstate) txstate 2550 drivers/dma/ste_dma40.c ret = dma_cookie_status(chan, cookie, txstate); txstate 2551 drivers/dma/ste_dma40.c if (ret != DMA_COMPLETE && txstate) txstate 2552 drivers/dma/ste_dma40.c dma_set_residue(txstate, stedma40_residue(chan)); txstate 861 drivers/dma/tegra20-apb-dma.c dma_cookie_t cookie, struct dma_tx_state *txstate) txstate 871 drivers/dma/tegra20-apb-dma.c ret = dma_cookie_status(dc, cookie, txstate); txstate 899 drivers/dma/tegra20-apb-dma.c if (dma_desc && txstate) { txstate 903 drivers/dma/tegra20-apb-dma.c dma_set_residue(txstate, residual); txstate 906 drivers/dma/tegra20-apb-dma.c trace_tegra_dma_tx_status(&tdc->dma_chan, cookie, txstate); txstate 509 drivers/dma/tegra210-adma.c struct dma_tx_state *txstate) txstate 518 drivers/dma/tegra210-adma.c ret = dma_cookie_status(dc, cookie, txstate); txstate 519 drivers/dma/tegra210-adma.c if (ret == DMA_COMPLETE || !txstate) txstate 536 drivers/dma/tegra210-adma.c dma_set_residue(txstate, residual); txstate 419 drivers/dma/ti/cppi41.c dma_cookie_t cookie, struct dma_tx_state *txstate) txstate 424 drivers/dma/ti/cppi41.c ret = dma_cookie_status(chan, cookie, txstate); txstate 426 drivers/dma/ti/cppi41.c dma_set_residue(txstate, c->residue); txstate 1827 drivers/dma/ti/edma.c struct dma_tx_state *txstate) txstate 1834 drivers/dma/ti/edma.c ret = dma_cookie_status(chan, cookie, txstate); txstate 1840 drivers/dma/ti/edma.c if (!txstate) txstate 1841 drivers/dma/ti/edma.c txstate = &txstate_tmp; txstate 1845 drivers/dma/ti/edma.c txstate->residue = edma_residue(echan->edesc); txstate 1851 drivers/dma/ti/edma.c txstate->residue = to_edma_desc(&vdesc->tx)->residue; txstate 1853 drivers/dma/ti/edma.c txstate->residue = 0; txstate 1860 drivers/dma/ti/edma.c if (ret != DMA_COMPLETE && !txstate->residue && txstate 814 drivers/dma/ti/omap-dma.c dma_cookie_t cookie, struct dma_tx_state *txstate) txstate 821 drivers/dma/ti/omap-dma.c ret = dma_cookie_status(chan, cookie, txstate); txstate 829 drivers/dma/ti/omap-dma.c if (!txstate) txstate 842 drivers/dma/ti/omap-dma.c txstate->residue = omap_dma_desc_size_pos(d, pos); txstate 847 drivers/dma/ti/omap-dma.c txstate->residue = omap_dma_desc_size( txstate 850 drivers/dma/ti/omap-dma.c txstate->residue = 0; txstate 457 drivers/dma/timb_dma.c struct dma_tx_state *txstate) txstate 463 drivers/dma/timb_dma.c ret = dma_cookie_status(chan, cookie, txstate); txstate 923 drivers/dma/txx9dmac.c struct dma_tx_state *txstate) txstate 928 drivers/dma/txx9dmac.c ret = dma_cookie_status(chan, cookie, txstate); txstate 936 drivers/dma/txx9dmac.c return dma_cookie_status(chan, cookie, txstate); txstate 283 drivers/dma/uniphier-mdmac.c struct dma_tx_state *txstate) txstate 293 drivers/dma/uniphier-mdmac.c stat = dma_cookie_status(chan, cookie, txstate); txstate 295 drivers/dma/uniphier-mdmac.c if (stat == DMA_COMPLETE || !txstate) txstate 306 drivers/dma/uniphier-mdmac.c txstate->residue = readl(mc->reg_ch_base + txstate 320 drivers/dma/uniphier-mdmac.c txstate->residue += sg_dma_len(&md->sgl[i]); txstate 971 drivers/dma/xgene-dma.c struct dma_tx_state *txstate) txstate 973 drivers/dma/xgene-dma.c return dma_cookie_status(dchan, cookie, txstate); txstate 1002 drivers/dma/xilinx/xilinx_dma.c struct dma_tx_state *txstate) txstate 1012 drivers/dma/xilinx/xilinx_dma.c ret = dma_cookie_status(dchan, cookie, txstate); txstate 1013 drivers/dma/xilinx/xilinx_dma.c if (ret == DMA_COMPLETE || !txstate) txstate 1031 drivers/dma/xilinx/xilinx_dma.c dma_set_residue(txstate, chan->residue); txstate 48 drivers/isdn/hardware/mISDN/netjet.c u16 txstate; txstate 219 drivers/isdn/hardware/mISDN/netjet.c bc->txstate = 0; txstate 229 drivers/isdn/hardware/mISDN/netjet.c bc->txstate = TX_INIT | TX_IDLE; txstate 243 drivers/isdn/hardware/mISDN/netjet.c bc->txstate = TX_INIT | TX_IDLE; txstate 479 drivers/isdn/hardware/mISDN/netjet.c bc->txstate = TX_RUN; txstate 497 drivers/isdn/hardware/mISDN/netjet.c __func__, bc->bch.nr, bc->free, bc->txstate, txstate 499 drivers/isdn/hardware/mISDN/netjet.c if (bc->txstate & (TX_IDLE | TX_INIT | TX_UNDERRUN)) txstate 545 drivers/isdn/hardware/mISDN/netjet.c bc->bch.tx_idx, bc->bch.tx_skb->len, bc->txstate, txstate 549 drivers/isdn/hardware/mISDN/netjet.c if (bc->txstate & (TX_IDLE | TX_INIT | TX_UNDERRUN)) txstate 631 drivers/isdn/hardware/mISDN/netjet.c if (!(bc->txstate & (TX_UNDERRUN | TX_INIT))) { txstate 633 drivers/isdn/hardware/mISDN/netjet.c bc->bch.nr, bc->txstate); txstate 634 drivers/isdn/hardware/mISDN/netjet.c bc->txstate |= TX_UNDERRUN; txstate 646 drivers/isdn/hardware/mISDN/netjet.c if (!(bc->txstate & (TX_IDLE | TX_INIT))) { txstate 649 drivers/isdn/hardware/mISDN/netjet.c bc->txstate |= TX_IDLE; txstate 206 drivers/media/rc/winbond-cir.c enum wbcir_txstate txstate; txstate 390 drivers/media/rc/winbond-cir.c switch (data->txstate) { txstate 428 drivers/media/rc/winbond-cir.c if (data->txstate == WBCIR_TXSTATE_ERROR) txstate 434 drivers/media/rc/winbond-cir.c data->txstate = WBCIR_TXSTATE_INACTIVE; txstate 445 drivers/media/rc/winbond-cir.c if (data->txstate == WBCIR_TXSTATE_INACTIVE) { txstate 448 drivers/media/rc/winbond-cir.c data->txstate = WBCIR_TXSTATE_ACTIVE; txstate 480 drivers/media/rc/winbond-cir.c data->txstate = WBCIR_TXSTATE_ERROR; txstate 567 drivers/media/rc/winbond-cir.c if (data->txstate != WBCIR_TXSTATE_INACTIVE) { txstate 612 drivers/media/rc/winbond-cir.c if (data->txstate != WBCIR_TXSTATE_INACTIVE) { txstate 644 drivers/media/rc/winbond-cir.c if (data->txstate != WBCIR_TXSTATE_INACTIVE) { txstate 986 drivers/media/rc/winbond-cir.c if (data->txstate == WBCIR_TXSTATE_ACTIVE) { txstate 989 drivers/media/rc/winbond-cir.c data->txstate = WBCIR_TXSTATE_INACTIVE; txstate 799 drivers/rapidio/devices/tsi721_dma.c struct dma_tx_state *txstate) txstate 805 drivers/rapidio/devices/tsi721_dma.c status = dma_cookie_status(dchan, cookie, txstate); txstate 229 drivers/usb/musb/musb_cppi41.c struct dma_tx_state txstate; txstate 244 drivers/usb/musb/musb_cppi41.c &txstate); txstate 245 drivers/usb/musb/musb_cppi41.c transferred = cppi41_channel->prog_len - txstate.residue; txstate 509 drivers/usb/musb/musb_gadget.c txstate(musb, req); txstate 1174 drivers/usb/musb/musb_gadget.c txstate(musb, req); txstate 803 include/linux/dmaengine.h struct dma_tx_state *txstate);