Home
last modified time | relevance | path

Searched refs:txstate (Results 1 – 25 of 65) sorted by relevance

123

/linux/drivers/net/mctp/
H A Dmctp-serial.c63 enum mctp_serial_state txstate, rxstate; member
119 switch (dev->txstate) { in mctp_serial_tx_work()
133 dev->txstate = STATE_ERR; in mctp_serial_tx_work()
137 dev->txstate = STATE_DATA; in mctp_serial_tx_work()
147 dev->txstate = STATE_ERR; in mctp_serial_tx_work()
151 dev->txstate = STATE_TRAILER; in mctp_serial_tx_work()
170 dev->txstate = STATE_ESCAPE; in mctp_serial_tx_work()
172 dev->txstate = STATE_ERR; in mctp_serial_tx_work()
178 dev->txstate = STATE_ERR; in mctp_serial_tx_work()
187 if (dev->txstate == STATE_DATA && in mctp_serial_tx_work()
[all …]
/linux/drivers/media/rc/
H A Dwinbond-cir.c206 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 …]
/linux/drivers/dma/
H A Duniphier-mdmac.c283 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()
H A Dmilbeaut-hdmac.c323 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()
H A Dst_fdma.c583 struct dma_tx_state *txstate) in st_fdma_tx_status() argument
590 ret = dma_cookie_status(chan, cookie, txstate); in st_fdma_tx_status()
591 if (ret == DMA_COMPLETE || !txstate) in st_fdma_tx_status()
597 txstate->residue = st_fdma_desc_residue(fchan, vd, true); in st_fdma_tx_status()
599 txstate->residue = st_fdma_desc_residue(fchan, vd, false); in st_fdma_tx_status()
601 txstate->residue = 0; in st_fdma_tx_status()
H A Dbcm2835-dma.c563 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()
H A Dmoxart-dma.c470 struct dma_tx_state *txstate) in moxart_tx_status() argument
481 ret = dma_cookie_status(chan, cookie, txstate); in moxart_tx_status()
487 txstate->residue = moxart_dma_desc_size(d, 0); in moxart_tx_status()
489 txstate->residue = moxart_dma_desc_size_in_flight(ch); in moxart_tx_status()
H A Dfsl-edma-common.c396 dma_cookie_t cookie, struct dma_tx_state *txstate) in fsl_edma_tx_status() argument
403 status = dma_cookie_status(chan, cookie, txstate); in fsl_edma_tx_status()
407 if (!txstate) in fsl_edma_tx_status()
413 txstate->residue = in fsl_edma_tx_status()
416 txstate->residue = in fsl_edma_tx_status()
419 txstate->residue = 0; in fsl_edma_tx_status()
H A Dplx_dma.c323 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()
H A Dtegra210-adma.c507 struct dma_tx_state *txstate) in tegra_adma_tx_status() argument
516 ret = dma_cookie_status(dc, cookie, txstate); in tegra_adma_tx_status()
517 if (ret == DMA_COMPLETE || !txstate) in tegra_adma_tx_status()
534 dma_set_residue(txstate, residual); in tegra_adma_tx_status()
H A Ddma-jz4780.c642 dma_cookie_t cookie, struct dma_tx_state *txstate) in jz4780_dma_tx_status() argument
652 status = dma_cookie_status(chan, cookie, txstate); in jz4780_dma_tx_status()
653 if ((status == DMA_COMPLETE) || (txstate == NULL)) in jz4780_dma_tx_status()
665 dma_set_residue(txstate, residue); in jz4780_dma_tx_status()
H A Dapple-admac.c373 struct dma_tx_state *txstate) in admac_tx_status() argument
383 ret = dma_cookie_status(chan, cookie, txstate); in admac_tx_status()
384 if (ret == DMA_COMPLETE || !txstate) in admac_tx_status()
405 dma_set_residue(txstate, residue); in admac_tx_status()
H A Dimg-mdc-dma.c571 dma_cookie_t cookie, struct dma_tx_state *txstate) in mdc_tx_status() argument
580 ret = dma_cookie_status(chan, cookie, txstate); in mdc_tx_status()
584 if (!txstate) in mdc_tx_status()
643 dma_set_residue(txstate, bytes); in mdc_tx_status()
/linux/drivers/isdn/hardware/mISDN/
H A Dnetjet.c48 u16 txstate; member
220 bc->txstate = 0; in mode_tiger()
230 bc->txstate = TX_INIT | TX_IDLE; in mode_tiger()
244 bc->txstate = TX_INIT | TX_IDLE; in mode_tiger()
480 bc->txstate = TX_RUN; in resync()
498 __func__, bc->bch.nr, bc->free, bc->txstate, in fill_hdlc_flag()
500 if (bc->txstate & (TX_IDLE | TX_INIT | TX_UNDERRUN)) in fill_hdlc_flag()
546 bc->bch.tx_idx, bc->bch.tx_skb->len, bc->txstate, in fill_dma()
550 if (bc->txstate & (TX_IDLE | TX_INIT | TX_UNDERRUN)) in fill_dma()
632 if (!(bc->txstate & (TX_UNDERRUN | TX_INIT))) { in send_tiger_bc()
[all …]
/linux/drivers/dma/mediatek/
H A Dmtk-uart-apdma.c324 struct dma_tx_state *txstate) in mtk_uart_apdma_tx_status() argument
329 ret = dma_cookie_status(chan, cookie, txstate); in mtk_uart_apdma_tx_status()
330 if (!txstate) in mtk_uart_apdma_tx_status()
333 dma_set_residue(txstate, c->rx_status); in mtk_uart_apdma_tx_status()
H A Dmtk-hsdma.c678 struct dma_tx_state *txstate) in mtk_hsdma_tx_status() argument
687 ret = dma_cookie_status(c, cookie, txstate); in mtk_hsdma_tx_status()
688 if (ret == DMA_COMPLETE || !txstate) in mtk_hsdma_tx_status()
700 dma_set_residue(txstate, bytes); in mtk_hsdma_tx_status()
H A Dmtk-cqdma.c442 struct dma_tx_state *txstate) in mtk_cqdma_tx_status() argument
451 ret = dma_cookie_status(c, cookie, txstate); in mtk_cqdma_tx_status()
452 if (ret == DMA_COMPLETE || !txstate) in mtk_cqdma_tx_status()
464 dma_set_residue(txstate, bytes); in mtk_cqdma_tx_status()
/linux/drivers/dma/sf-pdma/
H A Dsf-pdma.c197 struct dma_tx_state *txstate) in sf_pdma_tx_status() argument
202 status = dma_cookie_status(dchan, cookie, txstate); in sf_pdma_tx_status()
204 if (txstate && status != DMA_ERROR) in sf_pdma_tx_status()
205 dma_set_residue(txstate, sf_pdma_desc_residue(chan, cookie)); in sf_pdma_tx_status()
/linux/drivers/dma/sh/
H A Dusb-dmac.c530 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()
/linux/drivers/dma/qcom/
H A Dqcom_adm.c630 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()
/linux/drivers/dma/ptdma/
H A Dptdma-dmaengine.c263 struct dma_tx_state *txstate) in pt_tx_status() argument
269 return dma_cookie_status(c, cookie, txstate); in pt_tx_status()
/linux/drivers/dma/dw-edma/
H A Ddw-edma-core.c327 struct dma_tx_state *txstate) in dw_edma_device_tx_status() argument
336 ret = dma_cookie_status(dchan, cookie, txstate); in dw_edma_device_tx_status()
343 if (!txstate) in dw_edma_device_tx_status()
356 dma_set_residue(txstate, residue); in dw_edma_device_tx_status()
/linux/drivers/usb/musb/
H A Dmusb_cppi41.c229 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()
/linux/drivers/dma/ti/
H A Dedma.c1857 struct dma_tx_state *txstate) in edma_tx_status() argument
1864 ret = dma_cookie_status(chan, cookie, txstate); in edma_tx_status()
1870 if (!txstate) in edma_tx_status()
1871 txstate = &txstate_tmp; in edma_tx_status()
1875 txstate->residue = edma_residue(echan->edesc); in edma_tx_status()
1881 txstate->residue = to_edma_desc(&vdesc->tx)->residue; in edma_tx_status()
1883 txstate->residue = 0; in edma_tx_status()
1890 if (ret != DMA_COMPLETE && !txstate->residue && in edma_tx_status()
/linux/drivers/dma/stm32/
H A Dstm32-dma3.c836 struct dma_tx_state *txstate) in stm32_dma3_chan_set_residue() argument
926 dma_set_in_flight_bytes(txstate, fifol); in stm32_dma3_chan_set_residue()
936 dma_set_residue(txstate, residue); in stm32_dma3_chan_set_residue()
1442 struct dma_tx_state *txstate) in stm32_dma3_tx_status() argument
1450 status = dma_cookie_status(c, cookie, txstate); in stm32_dma3_tx_status()
1454 if (!txstate) in stm32_dma3_tx_status()
1467 stm32_dma3_chan_set_residue(chan, swdesc, txstate); in stm32_dma3_tx_status()

123