Lines Matching refs:txd
85 struct dma_async_tx_descriptor txd; member
138 struct pch_dma_desc *to_pd_desc(struct dma_async_tx_descriptor *txd) in to_pd_desc() argument
140 return container_of(txd, struct pch_dma_desc, txd); in to_pd_desc()
343 channel_writel(pd_chan, NEXT, desc->txd.phys); in pdc_dostart()
351 struct dma_async_tx_descriptor *txd = &desc->txd; in pdc_chain_complete() local
354 dmaengine_desc_get_callback(txd, &cb); in pdc_chain_complete()
392 bad_desc->txd.cookie); in pdc_handle_error()
408 static dma_cookie_t pd_tx_submit(struct dma_async_tx_descriptor *txd) in pd_tx_submit() argument
410 struct pch_dma_desc *desc = to_pd_desc(txd); in pd_tx_submit()
411 struct pch_dma_chan *pd_chan = to_pd_chan(txd->chan); in pd_tx_submit()
435 dma_async_tx_descriptor_init(&desc->txd, chan); in pdc_alloc_desc()
436 desc->txd.tx_submit = pd_tx_submit; in pdc_alloc_desc()
437 desc->txd.flags = DMA_CTRL_ACK; in pdc_alloc_desc()
438 desc->txd.phys = addr; in pdc_alloc_desc()
453 if (async_tx_test_ack(&desc->txd)) { in pdc_desc_get()
544 dma_pool_free(pd->pool, desc, desc->txd.phys); in pd_free_chan_resources()
629 prev->regs.next |= desc->txd.phys; in pd_prep_slave_sg()
641 first->txd.cookie = -EBUSY; in pd_prep_slave_sg()
642 desc->txd.flags = flags; in pd_prep_slave_sg()
644 return &first->txd; in pd_prep_slave_sg()