Lines Matching refs:used
119 pool->addr = 0; /* Only used for DMA pools */
240 /* Note: index *must* be used modulo the ring count here */
248 /* Note: index *must* be used modulo the ring count here */
408 u32 which = trans->used++;
445 /* assert(!trans->used); */
452 trans->used++; /* Transaction now owns the (DMA mapped) page */
457 /* Add an SKB transfer to a transaction. No other TREs will be used. */
461 u32 used;
465 /* assert(!trans->used); */
471 used = ret;
473 ret = dma_map_sg(trans->gsi->dev, sg, used, trans->direction);
477 trans->used += used; /* Transaction now owns the (DMA mapped) skb */
535 * Maps a transaction pointer to the last ring entry used for the transaction,
553 /* assert(trans->used > 0); */
563 for_each_sg(trans->sgl, sg, trans->used, i) {
564 bool last_tre = i == trans->used - 1;
577 ring->index += trans->used;
605 if (trans->used)
614 if (!trans->used)
634 if (!trans->used)
654 dma_unmap_sg(trans->gsi->dev, trans->sgl, trans->used,
731 /* The map array is used to determine what transaction is associated
758 * element is used to fill a single TRE when the transaction is