Lines Matching refs:used_count
224 index += trans->used_count - 1; in gsi_trans_map()
388 if (!trans->used_count) { in gsi_trans_free()
410 u32 which = trans->used_count++; in gsi_trans_cmd_add()
446 if (WARN_ON(trans->used_count)) in gsi_trans_page_add()
454 trans->used_count++; /* Transaction now owns the (DMA mapped) page */ in gsi_trans_page_add()
463 u32 used_count; in gsi_trans_skb_add() local
468 if (WARN_ON(trans->used_count)) in gsi_trans_skb_add()
475 used_count = ret; in gsi_trans_skb_add()
477 ret = dma_map_sg(trans->gsi->dev, sg, used_count, trans->direction); in gsi_trans_skb_add()
482 trans->used_count += used_count; in gsi_trans_skb_add()
558 WARN_ON(!trans->used_count); in __gsi_trans_commit()
568 for_each_sg(trans->sgl, sg, trans->used_count, i) { in __gsi_trans_commit()
569 bool last_tre = i == trans->used_count - 1; in __gsi_trans_commit()
585 tre_ring->index += trans->used_count; in __gsi_trans_commit()
606 if (trans->used_count) in gsi_trans_commit()
615 if (!trans->used_count) in gsi_trans_commit_wait()
633 dma_unmap_sg(trans->gsi->dev, trans->sgl, trans->used_count, in gsi_trans_complete()