Home
last modified time | relevance | path

Searched refs:orig_phys (Results 1 – 1 of 1) sorted by relevance

/OK3568_Linux_fs/kernel/arch/arm64/mm/
H A Ddma-mapping-noalias.c390 phys_addr_t *orig_phys; in arm64_iommu_map_sg() local
395 orig_phys = kmalloc_array(nents, sizeof(*orig_phys), GFP_ATOMIC); in arm64_iommu_map_sg()
396 if (!orig_phys) in arm64_iommu_map_sg()
414 orig_phys[i] = sg_phys(sg); in arm64_iommu_map_sg()
423 sg_assign_page(sg, phys_to_page(orig_phys[i])); in arm64_iommu_map_sg()
424 sg->offset = offset_in_page(orig_phys[i]); in arm64_iommu_map_sg()
427 kfree(orig_phys); in arm64_iommu_map_sg()
433 sg_assign_page(sg, phys_to_page(orig_phys[i])); in arm64_iommu_map_sg()
434 sg->offset = offset_in_page(orig_phys[i]); in arm64_iommu_map_sg()
436 kfree(orig_phys); in arm64_iommu_map_sg()