Lines Matching refs:txd
93 struct dma_async_tx_descriptor txd; member
146 struct pch_dma_desc *to_pd_desc(struct dma_async_tx_descriptor *txd) in to_pd_desc() argument
148 return container_of(txd, struct pch_dma_desc, txd); in to_pd_desc()
351 channel_writel(pd_chan, NEXT, desc->txd.phys); in pdc_dostart()
359 struct dma_async_tx_descriptor *txd = &desc->txd; in pdc_chain_complete() local
362 dmaengine_desc_get_callback(txd, &cb); in pdc_chain_complete()
400 bad_desc->txd.cookie); in pdc_handle_error()
416 static dma_cookie_t pd_tx_submit(struct dma_async_tx_descriptor *txd) in pd_tx_submit() argument
418 struct pch_dma_desc *desc = to_pd_desc(txd); in pd_tx_submit()
419 struct pch_dma_chan *pd_chan = to_pd_chan(txd->chan); in pd_tx_submit()
443 dma_async_tx_descriptor_init(&desc->txd, chan); in pdc_alloc_desc()
444 desc->txd.tx_submit = pd_tx_submit; in pdc_alloc_desc()
445 desc->txd.flags = DMA_CTRL_ACK; in pdc_alloc_desc()
446 desc->txd.phys = addr; in pdc_alloc_desc()
461 if (async_tx_test_ack(&desc->txd)) { in pdc_desc_get()
552 dma_pool_free(pd->pool, desc, desc->txd.phys); in pd_free_chan_resources()
637 prev->regs.next |= desc->txd.phys; in pd_prep_slave_sg()
649 first->txd.cookie = -EBUSY; in pd_prep_slave_sg()
650 desc->txd.flags = flags; in pd_prep_slave_sg()
652 return &first->txd; in pd_prep_slave_sg()