/drivers/net/mctp/ |
D | mctp-serial.c | 63 enum mctp_serial_state txstate, rxstate; member 118 switch (dev->txstate) { in mctp_serial_tx_work() 132 dev->txstate = STATE_ERR; in mctp_serial_tx_work() 136 dev->txstate = STATE_DATA; in mctp_serial_tx_work() 146 dev->txstate = STATE_ERR; in mctp_serial_tx_work() 150 dev->txstate = STATE_TRAILER; in mctp_serial_tx_work() 169 dev->txstate = STATE_ESCAPE; in mctp_serial_tx_work() 171 dev->txstate = STATE_ERR; in mctp_serial_tx_work() 177 dev->txstate = STATE_ERR; in mctp_serial_tx_work() 186 if (dev->txstate == STATE_DATA && in mctp_serial_tx_work() [all …]
|
/drivers/media/rc/ |
D | winbond-cir.c | 206 enum wbcir_txstate txstate; member 388 switch (data->txstate) { in wbcir_irq_tx() 426 if (data->txstate == WBCIR_TXSTATE_ERROR) in wbcir_irq_tx() 432 data->txstate = WBCIR_TXSTATE_INACTIVE; in wbcir_irq_tx() 443 if (data->txstate == WBCIR_TXSTATE_INACTIVE) { in wbcir_irq_tx() 446 data->txstate = WBCIR_TXSTATE_ACTIVE; in wbcir_irq_tx() 478 data->txstate = WBCIR_TXSTATE_ERROR; in wbcir_irq_handler() 565 if (data->txstate != WBCIR_TXSTATE_INACTIVE) { in wbcir_txcarrier() 610 if (data->txstate != WBCIR_TXSTATE_INACTIVE) { in wbcir_txmask() 642 if (data->txstate != WBCIR_TXSTATE_INACTIVE) { in wbcir_tx() [all …]
|
/drivers/dma/ |
D | uniphier-mdmac.c | 283 struct dma_tx_state *txstate) in uniphier_mdmac_tx_status() argument 293 stat = dma_cookie_status(chan, cookie, txstate); in uniphier_mdmac_tx_status() 295 if (stat == DMA_COMPLETE || !txstate) in uniphier_mdmac_tx_status() 306 txstate->residue = readl(mc->reg_ch_base + in uniphier_mdmac_tx_status() 320 txstate->residue += sg_dma_len(&md->sgl[i]); in uniphier_mdmac_tx_status()
|
D | milbeaut-hdmac.c | 323 struct dma_tx_state *txstate) in milbeaut_hdmac_tx_status() argument 333 stat = dma_cookie_status(chan, cookie, txstate); in milbeaut_hdmac_tx_status() 335 if (stat == DMA_COMPLETE || !txstate) in milbeaut_hdmac_tx_status() 360 txstate->residue = -done; in milbeaut_hdmac_tx_status() 372 txstate->residue += sg_dma_len(&md->sgl[i]); in milbeaut_hdmac_tx_status()
|
D | st_fdma.c | 582 struct dma_tx_state *txstate) in st_fdma_tx_status() argument 589 ret = dma_cookie_status(chan, cookie, txstate); in st_fdma_tx_status() 590 if (ret == DMA_COMPLETE || !txstate) in st_fdma_tx_status() 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 | bcm2835-dma.c | 563 dma_cookie_t cookie, struct dma_tx_state *txstate) in bcm2835_dma_tx_status() argument 570 ret = dma_cookie_status(chan, cookie, txstate); in bcm2835_dma_tx_status() 571 if (ret == DMA_COMPLETE || !txstate) in bcm2835_dma_tx_status() 577 txstate->residue = in bcm2835_dma_tx_status() 590 txstate->residue = bcm2835_dma_desc_size_pos(d, pos); in bcm2835_dma_tx_status() 592 txstate->residue = 0; in bcm2835_dma_tx_status()
|
D | fsl-edma-common.c | 314 dma_cookie_t cookie, struct dma_tx_state *txstate) in fsl_edma_tx_status() argument 321 status = dma_cookie_status(chan, cookie, txstate); in fsl_edma_tx_status() 325 if (!txstate) in fsl_edma_tx_status() 331 txstate->residue = in fsl_edma_tx_status() 334 txstate->residue = in fsl_edma_tx_status() 337 txstate->residue = 0; in fsl_edma_tx_status()
|
D | moxart-dma.c | 476 struct dma_tx_state *txstate) in moxart_tx_status() argument 487 ret = dma_cookie_status(chan, cookie, txstate); in moxart_tx_status() 493 txstate->residue = moxart_dma_desc_size(d, 0); in moxart_tx_status() 495 txstate->residue = moxart_dma_desc_size_in_flight(ch); in moxart_tx_status()
|
D | plx_dma.c | 323 dma_cookie_t cookie, struct dma_tx_state *txstate) in plx_dma_tx_status() argument 328 ret = dma_cookie_status(chan, cookie, txstate); in plx_dma_tx_status() 334 return dma_cookie_status(chan, cookie, txstate); in plx_dma_tx_status()
|
D | tegra210-adma.c | 505 struct dma_tx_state *txstate) in tegra_adma_tx_status() argument 514 ret = dma_cookie_status(dc, cookie, txstate); in tegra_adma_tx_status() 515 if (ret == DMA_COMPLETE || !txstate) in tegra_adma_tx_status() 532 dma_set_residue(txstate, residual); in tegra_adma_tx_status()
|
D | dma-jz4780.c | 643 dma_cookie_t cookie, struct dma_tx_state *txstate) in jz4780_dma_tx_status() argument 653 status = dma_cookie_status(chan, cookie, txstate); in jz4780_dma_tx_status() 654 if ((status == DMA_COMPLETE) || (txstate == NULL)) in jz4780_dma_tx_status() 666 dma_set_residue(txstate, residue); in jz4780_dma_tx_status()
|
D | apple-admac.c | 372 struct dma_tx_state *txstate) in admac_tx_status() argument 382 ret = dma_cookie_status(chan, cookie, txstate); in admac_tx_status() 383 if (ret == DMA_COMPLETE || !txstate) in admac_tx_status() 404 dma_set_residue(txstate, residue); in admac_tx_status()
|
D | img-mdc-dma.c | 572 dma_cookie_t cookie, struct dma_tx_state *txstate) in mdc_tx_status() argument 581 ret = dma_cookie_status(chan, cookie, txstate); in mdc_tx_status() 585 if (!txstate) in mdc_tx_status() 644 dma_set_residue(txstate, bytes); in mdc_tx_status()
|
D | tegra20-apb-dma.c | 894 struct dma_tx_state *txstate) in tegra_dma_tx_status() argument 904 ret = dma_cookie_status(dc, cookie, txstate); in tegra_dma_tx_status() 932 if (dma_desc && txstate) { in tegra_dma_tx_status() 936 dma_set_residue(txstate, residual); in tegra_dma_tx_status() 939 trace_tegra_dma_tx_status(&tdc->dma_chan, cookie, txstate); in tegra_dma_tx_status()
|
/drivers/isdn/hardware/mISDN/ |
D | netjet.c | 48 u16 txstate; member 219 bc->txstate = 0; in mode_tiger() 229 bc->txstate = TX_INIT | TX_IDLE; in mode_tiger() 243 bc->txstate = TX_INIT | TX_IDLE; in mode_tiger() 479 bc->txstate = TX_RUN; in resync() 497 __func__, bc->bch.nr, bc->free, bc->txstate, in fill_hdlc_flag() 499 if (bc->txstate & (TX_IDLE | TX_INIT | TX_UNDERRUN)) in fill_hdlc_flag() 545 bc->bch.tx_idx, bc->bch.tx_skb->len, bc->txstate, in fill_dma() 549 if (bc->txstate & (TX_IDLE | TX_INIT | TX_UNDERRUN)) in fill_dma() 631 if (!(bc->txstate & (TX_UNDERRUN | TX_INIT))) { in send_tiger_bc() [all …]
|
/drivers/dma/mediatek/ |
D | mtk-uart-apdma.c | 325 struct dma_tx_state *txstate) in mtk_uart_apdma_tx_status() argument 330 ret = dma_cookie_status(chan, cookie, txstate); in mtk_uart_apdma_tx_status() 331 if (!txstate) in mtk_uart_apdma_tx_status() 334 dma_set_residue(txstate, c->rx_status); in mtk_uart_apdma_tx_status()
|
D | mtk-hsdma.c | 679 struct dma_tx_state *txstate) in mtk_hsdma_tx_status() argument 688 ret = dma_cookie_status(c, cookie, txstate); in mtk_hsdma_tx_status() 689 if (ret == DMA_COMPLETE || !txstate) in mtk_hsdma_tx_status() 701 dma_set_residue(txstate, bytes); in mtk_hsdma_tx_status()
|
D | mtk-cqdma.c | 443 struct dma_tx_state *txstate) in mtk_cqdma_tx_status() argument 452 ret = dma_cookie_status(c, cookie, txstate); in mtk_cqdma_tx_status() 453 if (ret == DMA_COMPLETE || !txstate) in mtk_cqdma_tx_status() 465 dma_set_residue(txstate, bytes); in mtk_cqdma_tx_status()
|
/drivers/dma/sf-pdma/ |
D | sf-pdma.c | 194 struct dma_tx_state *txstate) in sf_pdma_tx_status() argument 199 status = dma_cookie_status(dchan, cookie, txstate); in sf_pdma_tx_status() 201 if (txstate && status != DMA_ERROR) in sf_pdma_tx_status() 202 dma_set_residue(txstate, sf_pdma_desc_residue(chan, cookie)); in sf_pdma_tx_status()
|
/drivers/dma/sh/ |
D | usb-dmac.c | 530 struct dma_tx_state *txstate) in usb_dmac_tx_status() argument 537 status = dma_cookie_status(chan, cookie, txstate); in usb_dmac_tx_status() 539 if (!txstate) in usb_dmac_tx_status() 549 dma_set_residue(txstate, residue); in usb_dmac_tx_status()
|
/drivers/dma/qcom/ |
D | qcom_adm.c | 630 struct dma_tx_state *txstate) in adm_tx_status() argument 638 ret = dma_cookie_status(chan, cookie, txstate); in adm_tx_status() 639 if (ret == DMA_COMPLETE || !txstate) in adm_tx_status() 655 dma_set_residue(txstate, residue); in adm_tx_status()
|
/drivers/dma/ptdma/ |
D | ptdma-dmaengine.c | 263 struct dma_tx_state *txstate) in pt_tx_status() argument 269 return dma_cookie_status(c, cookie, txstate); in pt_tx_status()
|
/drivers/dma/dw-edma/ |
D | dw-edma-core.c | 296 struct dma_tx_state *txstate) in dw_edma_device_tx_status() argument 305 ret = dma_cookie_status(dchan, cookie, txstate); in dw_edma_device_tx_status() 312 if (!txstate) in dw_edma_device_tx_status() 325 dma_set_residue(txstate, residue); in dw_edma_device_tx_status()
|
/drivers/usb/musb/ |
D | musb_cppi41.c | 229 struct dma_tx_state txstate; in cppi41_dma_callback() local 244 &txstate); in cppi41_dma_callback() 245 transferred = cppi41_channel->prog_len - txstate.residue; in cppi41_dma_callback()
|
/drivers/dma/ti/ |
D | edma.c | 1866 struct dma_tx_state *txstate) in edma_tx_status() argument 1873 ret = dma_cookie_status(chan, cookie, txstate); in edma_tx_status() 1879 if (!txstate) in edma_tx_status() 1880 txstate = &txstate_tmp; in edma_tx_status() 1884 txstate->residue = edma_residue(echan->edesc); in edma_tx_status() 1890 txstate->residue = to_edma_desc(&vdesc->tx)->residue; in edma_tx_status() 1892 txstate->residue = 0; in edma_tx_status() 1899 if (ret != DMA_COMPLETE && !txstate->residue && in edma_tx_status()
|