Lines Matching refs:txp
125 struct qib_sdma_txreq *txp, *txp_next;
127 list_for_each_entry_safe(txp, txp_next, &ppd->sdma_activelist, list) {
128 list_del_init(&txp->list);
129 if (txp->flags & QIB_SDMA_TXREQ_F_FREEDESC) {
132 idx = txp->start_idx;
133 while (idx != txp->next_descq_idx) {
139 if (txp->callback)
140 (*txp->callback)(txp, QIB_SDMA_TXREQ_S_ABORTED);
349 struct qib_sdma_txreq *txp = NULL;
360 * the next txp on the list.
365 txp = list_entry(lp, struct qib_sdma_txreq, list);
366 idx = txp->start_idx;
370 /* if desc is part of this txp, unmap if needed */
371 if (txp && (txp->flags & QIB_SDMA_TXREQ_F_FREEDESC) &&
385 /* if now past this txp's descs, do the callback */
386 if (txp && txp->next_descq_idx == ppd->sdma_descq_head) {
388 list_del_init(&txp->list);
389 if (txp->callback)
390 (*txp->callback)(txp, QIB_SDMA_TXREQ_S_OK);
391 /* see if there is another txp */
393 txp = NULL;
396 txp = list_entry(lp, struct qib_sdma_txreq,
398 idx = txp->start_idx;