Lines Matching refs:tcemem
90 struct tce_iommu_prereg *tcemem) in tce_iommu_prereg_free() argument
94 ret = mm_iommu_put(container->mm, tcemem->mem); in tce_iommu_prereg_free()
98 list_del(&tcemem->next); in tce_iommu_prereg_free()
99 kfree(tcemem); in tce_iommu_prereg_free()
108 struct tce_iommu_prereg *tcemem; in tce_iommu_unregister_pages() local
119 list_for_each_entry(tcemem, &container->prereg_list, next) { in tce_iommu_unregister_pages()
120 if (tcemem->mem == mem) { in tce_iommu_unregister_pages()
129 ret = tce_iommu_prereg_free(container, tcemem); in tce_iommu_unregister_pages()
141 struct tce_iommu_prereg *tcemem; in tce_iommu_register_pages() local
150 list_for_each_entry(tcemem, &container->prereg_list, next) { in tce_iommu_register_pages()
151 if (tcemem->mem == mem) { in tce_iommu_register_pages()
162 tcemem = kzalloc(sizeof(*tcemem), GFP_KERNEL); in tce_iommu_register_pages()
163 if (!tcemem) { in tce_iommu_register_pages()
168 tcemem->mem = mem; in tce_iommu_register_pages()
169 list_add(&tcemem->next, &container->prereg_list); in tce_iommu_register_pages()
348 struct tce_iommu_prereg *tcemem, *tmtmp; in tce_iommu_release() local
371 list_for_each_entry_safe(tcemem, tmtmp, &container->prereg_list, next) in tce_iommu_release()
372 WARN_ON(tce_iommu_prereg_free(container, tcemem)); in tce_iommu_release()