Lines Matching refs:txd
116 dma_async_tx_descriptor_init(&desc->txd, chan); in atc_alloc_descriptor()
118 desc->txd.flags = DMA_CTRL_ACK; in atc_alloc_descriptor()
119 desc->txd.tx_submit = atc_tx_submit; in atc_alloc_descriptor()
120 desc->txd.phys = phys; in atc_alloc_descriptor()
141 if (async_tx_test_ack(&desc->txd)) { in atc_desc_get()
208 (*prev)->lli.dscr = desc->txd.phys; in atc_desc_chain()
249 channel_writel(atchan, DSCR, first->txd.phys); in atc_dostart()
266 if (desc->txd.cookie == cookie) in atc_get_desc_by_cookie()
271 if (desc->txd.cookie == cookie) in atc_get_desc_by_cookie()
388 struct dma_async_tx_descriptor *txd = &desc->txd; in atc_chain_complete() local
391 "descriptor %u complete\n", txd->cookie); in atc_chain_complete()
395 dma_cookie_complete(txd); in atc_chain_complete()
402 dma_descriptor_unmap(txd); in atc_chain_complete()
406 dma_async_tx_callback callback = txd->callback; in atc_chain_complete()
407 void *param = txd->callback_param; in atc_chain_complete()
417 dma_run_dependencies(txd); in atc_chain_complete()
512 " cookie: %d\n", bad_desc->txd.cookie); in atc_handle_error()
530 struct dma_async_tx_descriptor *txd = &first->txd; in atc_handle_cyclic() local
531 dma_async_tx_callback callback = txd->callback; in atc_handle_cyclic()
532 void *param = txd->callback_param; in atc_handle_cyclic()
623 desc->txd.cookie); in atc_tx_submit()
628 desc->txd.cookie); in atc_tx_submit()
695 desc->txd.cookie = 0; in atc_prep_dma_memcpy()
702 first->txd.cookie = -EBUSY; in atc_prep_dma_memcpy()
712 first->txd.flags = flags; /* client is in control of this ack */ in atc_prep_dma_memcpy()
714 return &first->txd; in atc_prep_dma_memcpy()
854 first->txd.cookie = -EBUSY; in atc_prep_slave_sg()
862 first->txd.flags = flags; /* client is in control of this ack */ in atc_prep_slave_sg()
864 return &first->txd; in atc_prep_slave_sg()
975 desc->txd.cookie = 0; in atc_prep_dma_sg()
996 first->txd.cookie = -EBUSY; in atc_prep_dma_sg()
1002 first->txd.flags = flags; /* client is in control of this ack */ in atc_prep_dma_sg()
1004 return &first->txd; in atc_prep_dma_sg()
1152 prev->lli.dscr = first->txd.phys; in atc_prep_dma_cyclic()
1155 first->txd.cookie = -EBUSY; in atc_prep_dma_cyclic()
1159 return &first->txd; in atc_prep_dma_cyclic()
1443 dma_pool_free(atdma->dma_desc_pool, desc, desc->txd.phys); in atc_free_chan_resources()