Lines Matching defs:adtx
232 struct admac_tx *adtx = to_admac_tx(tx);
239 list_add_tail(&adtx->node, &adchan->submitted);
258 struct admac_tx *adtx;
263 adtx = kzalloc(sizeof(*adtx), GFP_NOWAIT);
264 if (!adtx)
267 adtx->cyclic = true;
269 adtx->buf_addr = buf_addr;
270 adtx->buf_len = buf_len;
271 adtx->buf_end = buf_addr + buf_len;
272 adtx->period_len = period_len;
274 adtx->submitted_pos = 0;
275 adtx->reclaimed_pos = 0;
277 dma_async_tx_descriptor_init(&adtx->tx, chan);
278 adtx->tx.tx_submit = admac_tx_submit;
279 adtx->tx.desc_free = admac_desc_free;
281 return &adtx->tx;
346 struct admac_tx *adtx)
369 pos = adtx->reclaimed_pos + adtx->period_len * (nreports + 1) - residue2;
371 return adtx->buf_len - pos % adtx->buf_len;
379 struct admac_tx *adtx;
390 adtx = adchan->current_tx;
392 if (adtx && adtx->tx.cookie == cookie) {
394 residue = admac_cyclic_read_residue(ad, adchan->no, adtx);
398 list_for_each_entry(adtx, &adchan->issued, node) {
399 if (adtx->tx.cookie == cookie) {
400 residue = adtx->buf_len;
538 struct admac_tx *adtx, *_adtx;
548 list_for_each_entry_safe(adtx, _adtx, &head, node) {
549 list_del(&adtx->node);
550 admac_desc_free(&adtx->tx);
718 struct admac_tx *adtx;
724 adtx = adchan->current_tx;
729 if (!adtx || !nacks)
735 dmaengine_desc_get_callback(&adtx->tx, &cb);