Lines Matching defs:prot

45 	pgprot_t prot;
310 pgprot_t prot, struct page **ret_page,
315 pgprot_t prot, struct page **ret_page,
335 pgprot_t prot = pgprot_dmacoherent(PAGE_KERNEL);
348 ptr = __alloc_from_contiguous(NULL, atomic_pool_size, prot,
352 ptr = __alloc_remap_buffer(NULL, atomic_pool_size, gfp, prot,
442 pgprot_t prot = *(pgprot_t *)data;
444 set_pte_ext(pte, mk_pte(page, prot), 0);
448 static void __dma_remap(struct page *page, size_t size, pgprot_t prot)
453 apply_to_page_range(&init_mm, start, size, __dma_update_pte, &prot);
458 pgprot_t prot, struct page **ret_page,
473 ptr = dma_common_contiguous_remap(page, size, prot, caller);
521 pgprot_t prot, struct page **ret_page,
540 ptr = dma_common_contiguous_remap(page, size, prot, caller);
546 __dma_remap(page, size, prot);
567 static inline pgprot_t __get_dma_pgprot(unsigned long attrs, pgprot_t prot)
569 prot = (attrs & DMA_ATTR_WRITE_COMBINE) ?
570 pgprot_writecombine(prot) :
571 pgprot_dmacoherent(prot);
572 return prot;
608 return __alloc_from_contiguous(args->dev, args->size, args->prot,
645 args->prot, ret_page, args->caller,
663 gfp_t gfp, pgprot_t prot, bool is_coherent,
675 .prot = prot,
746 pgprot_t prot = __get_dma_pgprot(attrs, PAGE_KERNEL);
748 return __dma_alloc(dev, size, handle, gfp, prot, false,
1080 int prot = 0;
1083 prot |= IOMMU_PRIV;
1087 return prot | IOMMU_READ | IOMMU_WRITE;
1089 return prot | IOMMU_READ;
1091 return prot | IOMMU_WRITE;
1093 return prot;
1426 pgprot_t prot = __get_dma_pgprot(attrs, PAGE_KERNEL);
1457 addr = dma_common_pages_remap(pages, size, prot,
1587 int prot;
1603 prot = __dma_info_to_prot(dir, attrs);
1605 ret = iommu_map(mapping->domain, iova, phys, len, prot);
1808 int ret, prot, len = PAGE_ALIGN(size + offset);
1814 prot = __dma_info_to_prot(dir, attrs);
1816 ret = iommu_map(mapping->domain, dma_addr, page_to_phys(page), len, prot);
1911 int ret, prot;
1920 prot = __dma_info_to_prot(dir, attrs) | IOMMU_MMIO;
1922 ret = iommu_map(mapping->domain, dma_addr, addr, len, prot);