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