pfn = page_to_pfn(virt_to_page((void*)addr));if(attrs & DMA_ATTR_WRITE_COMBINE) vma->vm_page_prot =pgprot_writecombine(vma->vm_page_prot);elsevma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);if(dma_mmap_from_dev_coherent(dev, vma, cpu_addr, size, &ret))returnret;if...
pfn = page_to_pfn(virt_to_page((void*)addr));if(attrs & DMA_ATTR_WRITE_COMBINE) vma->vm_page_prot =pgprot_writecombine(vma->vm_page_prot);elsevma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);if(dma_mmap_from_dev_coherent(dev, vma, cpu_addr, size, &ret))returnret;if...