Lines Matching defs:active
341 struct axi_dmac_desc *active)
343 struct dmaengine_result *rslt = &active->vdesc.tx_result;
344 unsigned int start = active->num_completed - 1;
355 for (i = start; i < active->num_sgs; i++) {
356 sg = &active->sg[i];
365 struct axi_dmac_desc *active;
369 active = axi_dmac_active_desc(chan);
370 if (!active)
378 sg = &active->sg[active->num_completed];
383 active->num_completed++;
391 axi_dmac_compute_residue(chan, active);
393 if (active->cyclic)
394 vchan_cyclic_callback(&active->vdesc);
396 if (active->num_completed == active->num_sgs ||
398 if (active->cyclic) {
399 active->num_completed = 0; /* wrap around */
401 list_del(&active->vdesc.node);
402 vchan_cookie_complete(&active->vdesc);
403 active = axi_dmac_active_desc(chan);
406 } while (active);