Lines Matching refs:adtx

230 	struct admac_tx *adtx = to_admac_tx(tx);  in admac_tx_submit()  local
237 list_add_tail(&adtx->node, &adchan->submitted); in admac_tx_submit()
256 struct admac_tx *adtx; in admac_prep_dma_cyclic() local
261 adtx = kzalloc(sizeof(*adtx), GFP_NOWAIT); in admac_prep_dma_cyclic()
262 if (!adtx) in admac_prep_dma_cyclic()
265 adtx->cyclic = true; in admac_prep_dma_cyclic()
267 adtx->buf_addr = buf_addr; in admac_prep_dma_cyclic()
268 adtx->buf_len = buf_len; in admac_prep_dma_cyclic()
269 adtx->buf_end = buf_addr + buf_len; in admac_prep_dma_cyclic()
270 adtx->period_len = period_len; in admac_prep_dma_cyclic()
272 adtx->submitted_pos = 0; in admac_prep_dma_cyclic()
273 adtx->reclaimed_pos = 0; in admac_prep_dma_cyclic()
275 dma_async_tx_descriptor_init(&adtx->tx, chan); in admac_prep_dma_cyclic()
276 adtx->tx.tx_submit = admac_tx_submit; in admac_prep_dma_cyclic()
277 adtx->tx.desc_free = admac_desc_free; in admac_prep_dma_cyclic()
279 return &adtx->tx; in admac_prep_dma_cyclic()
344 struct admac_tx *adtx) in admac_cyclic_read_residue() argument
367 pos = adtx->reclaimed_pos + adtx->period_len * (nreports + 1) - residue2; in admac_cyclic_read_residue()
369 return adtx->buf_len - pos % adtx->buf_len; in admac_cyclic_read_residue()
377 struct admac_tx *adtx; in admac_tx_status() local
388 adtx = adchan->current_tx; in admac_tx_status()
390 if (adtx && adtx->tx.cookie == cookie) { in admac_tx_status()
392 residue = admac_cyclic_read_residue(ad, adchan->no, adtx); in admac_tx_status()
396 list_for_each_entry(adtx, &adchan->issued, node) { in admac_tx_status()
397 if (adtx->tx.cookie == cookie) { in admac_tx_status()
398 residue = adtx->buf_len; in admac_tx_status()
536 struct admac_tx *adtx, *_adtx; in admac_synchronize() local
546 list_for_each_entry_safe(adtx, _adtx, &head, node) { in admac_synchronize()
547 list_del(&adtx->node); in admac_synchronize()
548 admac_desc_free(&adtx->tx); in admac_synchronize()
716 struct admac_tx *adtx; in admac_chan_tasklet() local
722 adtx = adchan->current_tx; in admac_chan_tasklet()
727 if (!adtx || !nacks) in admac_chan_tasklet()
733 dmaengine_desc_get_callback(&adtx->tx, &cb); in admac_chan_tasklet()