Lines Matching refs:txd
142 txd_to_txx9dmac_desc(struct dma_async_tx_descriptor *txd) in txd_to_txx9dmac_desc() argument
144 return container_of(txd, struct txx9dmac_desc, txd); in txd_to_txx9dmac_desc()
202 dma_async_tx_descriptor_init(&desc->txd, &dc->chan); in txx9dmac_desc_alloc()
203 desc->txd.tx_submit = txx9dmac_tx_submit; in txx9dmac_desc_alloc()
205 desc->txd.flags = DMA_CTRL_ACK; in txx9dmac_desc_alloc()
206 desc->txd.phys = dma_map_single(chan2parent(&dc->chan), &desc->hwdesc, in txx9dmac_desc_alloc()
219 if (async_tx_test_ack(&desc->txd)) { in txx9dmac_desc_get()
252 child->txd.phys, ddev->descsize, in txx9dmac_sync_desc_for_cpu()
255 desc->txd.phys, ddev->descsize, in txx9dmac_sync_desc_for_cpu()
341 first->txd.cookie, first); in txx9dmac_dostart()
371 channel64_write_CHAR(dc, first->txd.phys); in txx9dmac_dostart()
392 channel32_writel(dc, CHAR, first->txd.phys); in txx9dmac_dostart()
394 channel32_writel(dc, CHAR, first->txd.phys); in txx9dmac_dostart()
408 struct dma_async_tx_descriptor *txd = &desc->txd; in txx9dmac_descriptor_complete() local
411 txd->cookie, desc); in txx9dmac_descriptor_complete()
413 dma_cookie_complete(txd); in txx9dmac_descriptor_complete()
414 callback = txd->callback; in txx9dmac_descriptor_complete()
415 param = txd->callback_param; in txx9dmac_descriptor_complete()
421 dma_descriptor_unmap(txd); in txx9dmac_descriptor_complete()
428 dma_run_dependencies(txd); in txx9dmac_descriptor_complete()
441 desc_write_CHAR(dc, prev, desc->txd.phys); in txx9dmac_dequeue()
443 prev->txd.phys, ddev->descsize, in txx9dmac_dequeue()
449 if ((desc->txd.flags & DMA_PREP_INTERRUPT) && in txx9dmac_dequeue()
535 bad_desc->txd.cookie); in txx9dmac_handle_error()
707 desc->txd.cookie, desc); in txx9dmac_tx_submit()
785 desc_write_CHAR(dc, prev, desc->txd.phys); in txx9dmac_prep_dma_memcpy()
787 prev->txd.phys, ddev->descsize, in txx9dmac_prep_dma_memcpy()
800 prev->txd.phys, ddev->descsize, in txx9dmac_prep_dma_memcpy()
803 first->txd.flags = flags; in txx9dmac_prep_dma_memcpy()
806 return &first->txd; in txx9dmac_prep_dma_memcpy()
879 desc_write_CHAR(dc, prev, desc->txd.phys); in txx9dmac_prep_slave_sg()
881 prev->txd.phys, in txx9dmac_prep_slave_sg()
895 prev->txd.phys, ddev->descsize, in txx9dmac_prep_slave_sg()
898 first->txd.flags = flags; in txx9dmac_prep_slave_sg()
901 return &first->txd; in txx9dmac_prep_slave_sg()
956 desc_write_CHAR(dc, prev, desc->txd.phys); in txx9dmac_chain_dynamic()
958 prev->txd.phys, ddev->descsize, in txx9dmac_chain_dynamic()
962 channel_read_CHAR(dc) == prev->txd.phys) in txx9dmac_chain_dynamic()
964 channel_write_CHAR(dc, desc->txd.phys); in txx9dmac_chain_dynamic()
983 if (!(prev->txd.flags & DMA_PREP_INTERRUPT) || in txx9dmac_issue_pending()
1073 dma_unmap_single(chan2parent(chan), desc->txd.phys, in txx9dmac_free_chan_resources()