Lines Matching refs:txd
118 dma_async_tx_descriptor_init(&desc->txd, chan); in atc_alloc_descriptor()
120 desc->txd.flags = DMA_CTRL_ACK; in atc_alloc_descriptor()
121 desc->txd.tx_submit = atc_tx_submit; in atc_alloc_descriptor()
122 desc->txd.phys = phys; in atc_alloc_descriptor()
143 if (async_tx_test_ack(&desc->txd)) { in atc_desc_get()
210 (*prev)->lli.dscr = desc->txd.phys; in atc_desc_chain()
251 channel_writel(atchan, DSCR, first->txd.phys); in atc_dostart()
272 if (desc->txd.cookie == cookie) in atc_get_desc_by_cookie()
277 if (desc->txd.cookie == cookie) in atc_get_desc_by_cookie()
450 struct dma_async_tx_descriptor *txd = &desc->txd; in atc_chain_complete() local
454 "descriptor %u complete\n", txd->cookie); in atc_chain_complete()
458 dma_cookie_complete(txd); in atc_chain_complete()
472 dma_descriptor_unmap(txd); in atc_chain_complete()
476 dma_async_tx_callback callback = txd->callback; in atc_chain_complete()
477 void *param = txd->callback_param; in atc_chain_complete()
487 dma_run_dependencies(txd); in atc_chain_complete()
582 " cookie: %d\n", bad_desc->txd.cookie); in atc_handle_error()
600 struct dma_async_tx_descriptor *txd = &first->txd; in atc_handle_cyclic() local
601 dma_async_tx_callback callback = txd->callback; in atc_handle_cyclic()
602 void *param = txd->callback_param; in atc_handle_cyclic()
693 desc->txd.cookie); in atc_tx_submit()
698 desc->txd.cookie); in atc_tx_submit()
793 desc->txd.cookie = -EBUSY; in atc_prep_dma_interleaved()
799 desc->txd.flags = flags; /* client is in control of this ack */ in atc_prep_dma_interleaved()
801 return &desc->txd; in atc_prep_dma_interleaved()
862 desc->txd.cookie = 0; in atc_prep_dma_memcpy()
869 first->txd.cookie = -EBUSY; in atc_prep_dma_memcpy()
875 first->txd.flags = flags; /* client is in control of this ack */ in atc_prep_dma_memcpy()
877 return &first->txd; in atc_prep_dma_memcpy()
918 desc->txd.cookie = 0; in atc_create_memset_desc()
974 desc->txd.cookie = -EBUSY; in atc_prep_dma_memset()
980 desc->txd.flags = flags; in atc_prep_dma_memset()
982 return &desc->txd; in atc_prep_dma_memset()
1051 first->txd.cookie = -EBUSY; in atc_prep_dma_memset_sg()
1057 first->txd.flags = flags; in atc_prep_dma_memset_sg()
1059 return &first->txd; in atc_prep_dma_memset_sg()
1198 first->txd.cookie = -EBUSY; in atc_prep_slave_sg()
1202 first->txd.flags = flags; /* client is in control of this ack */ in atc_prep_slave_sg()
1204 return &first->txd; in atc_prep_slave_sg()
1315 desc->txd.cookie = 0; in atc_prep_dma_sg()
1330 first->txd.cookie = -EBUSY; in atc_prep_dma_sg()
1336 first->txd.flags = flags; /* client is in control of this ack */ in atc_prep_dma_sg()
1338 return &first->txd; in atc_prep_dma_sg()
1486 prev->lli.dscr = first->txd.phys; in atc_prep_dma_cyclic()
1489 first->txd.cookie = -EBUSY; in atc_prep_dma_cyclic()
1492 return &first->txd; in atc_prep_dma_cyclic()
1776 dma_pool_free(atdma->dma_desc_pool, desc, desc->txd.phys); in atc_free_chan_resources()