Lines Matching refs:txd
58 struct tsi721_tx_desc *to_tsi721_desc(struct dma_async_tx_descriptor *txd) in to_tsi721_desc() argument
60 return container_of(txd, struct tsi721_tx_desc, txd); in to_tsi721_desc()
375 struct dma_async_tx_descriptor *txd = &desc->txd; in tsi721_dma_tx_err() local
376 dma_async_tx_callback callback = txd->callback; in tsi721_dma_tx_err()
377 void *param = txd->callback_param; in tsi721_dma_tx_err()
411 struct dma_chan *dchan = desc->txd.chan; in tsi721_submit_sg()
641 dma_cookie_complete(&desc->txd); in tsi721_dma_tasklet()
667 dma_cookie_complete(&desc->txd); in tsi721_dma_tasklet()
668 if (desc->txd.flags & DMA_PREP_INTERRUPT) { in tsi721_dma_tasklet()
669 callback = desc->txd.callback; in tsi721_dma_tasklet()
670 param = desc->txd.callback_param; in tsi721_dma_tasklet()
691 static dma_cookie_t tsi721_tx_submit(struct dma_async_tx_descriptor *txd) in tsi721_tx_submit() argument
693 struct tsi721_tx_desc *desc = to_tsi721_desc(txd); in tsi721_tx_submit()
694 struct tsi721_bdma_chan *bdma_chan = to_tsi721_chan(txd->chan); in tsi721_tx_submit()
701 bdma_chan->id, txd); in tsi721_tx_submit()
712 cookie = dma_cookie_assign(txd); in tsi721_tx_submit()
750 dma_async_tx_descriptor_init(&desc[i].txd, dchan); in tsi721_alloc_chan_resources()
751 desc[i].txd.tx_submit = tsi721_tx_submit; in tsi721_alloc_chan_resources()
752 desc[i].txd.flags = DMA_CTRL_ACK; in tsi721_alloc_chan_resources()
833 struct dma_async_tx_descriptor *txd = NULL; in tsi721_prep_rio_sg() local
878 txd = &desc->txd; in tsi721_prep_rio_sg()
879 txd->flags = flags; in tsi721_prep_rio_sg()
884 if (!txd) { in tsi721_prep_rio_sg()
890 return txd; in tsi721_prep_rio_sg()