Lines Matching refs:txd
61 struct tsi721_tx_desc *to_tsi721_desc(struct dma_async_tx_descriptor *txd) in to_tsi721_desc() argument
63 return container_of(txd, struct tsi721_tx_desc, txd); in to_tsi721_desc()
380 struct dma_async_tx_descriptor *txd = &desc->txd; in tsi721_dma_tx_err() local
381 dma_async_tx_callback callback = txd->callback; in tsi721_dma_tx_err()
382 void *param = txd->callback_param; in tsi721_dma_tx_err()
416 struct dma_chan *dchan = desc->txd.chan; in tsi721_submit_sg()
604 dma_cookie_complete(&desc->txd); in tsi721_dma_tasklet()
605 if (desc->txd.flags & DMA_PREP_INTERRUPT) { in tsi721_dma_tasklet()
606 callback = desc->txd.callback; in tsi721_dma_tasklet()
607 param = desc->txd.callback_param; in tsi721_dma_tasklet()
624 static dma_cookie_t tsi721_tx_submit(struct dma_async_tx_descriptor *txd) in tsi721_tx_submit() argument
626 struct tsi721_tx_desc *desc = to_tsi721_desc(txd); in tsi721_tx_submit()
627 struct tsi721_bdma_chan *bdma_chan = to_tsi721_chan(txd->chan); in tsi721_tx_submit()
633 "%s: wrong state of descriptor %p\n", __func__, txd); in tsi721_tx_submit()
644 cookie = dma_cookie_assign(txd); in tsi721_tx_submit()
684 dma_async_tx_descriptor_init(&desc[i].txd, dchan); in tsi721_alloc_chan_resources()
685 desc[i].txd.tx_submit = tsi721_tx_submit; in tsi721_alloc_chan_resources()
686 desc[i].txd.flags = DMA_CTRL_ACK; in tsi721_alloc_chan_resources()
765 struct dma_async_tx_descriptor *txd = NULL; in tsi721_prep_rio_sg() local
799 if (async_tx_test_ack(&desc->txd)) { in tsi721_prep_rio_sg()
807 txd = &desc->txd; in tsi721_prep_rio_sg()
808 txd->flags = flags; in tsi721_prep_rio_sg()
815 return txd; in tsi721_prep_rio_sg()