Lines Matching defs:prot

45 	pgprot_t prot;
177 pgprot_t prot, struct page **ret_page,
182 pgprot_t prot, struct page **ret_page,
202 pgprot_t prot = pgprot_dmacoherent(PAGE_KERNEL);
215 ptr = __alloc_from_contiguous(NULL, atomic_pool_size, prot,
219 ptr = __alloc_remap_buffer(NULL, atomic_pool_size, gfp, prot,
313 pgprot_t prot = *(pgprot_t *)data;
315 set_pte_ext(pte, mk_pte(page, prot), 0);
319 static void __dma_remap(struct page *page, size_t size, pgprot_t prot)
324 apply_to_page_range(&init_mm, start, size, __dma_update_pte, &prot);
329 pgprot_t prot, struct page **ret_page,
344 ptr = dma_common_contiguous_remap(page, size, prot, caller);
392 pgprot_t prot, struct page **ret_page,
411 ptr = dma_common_contiguous_remap(page, size, prot, caller);
417 __dma_remap(page, size, prot);
438 static inline pgprot_t __get_dma_pgprot(unsigned long attrs, pgprot_t prot)
440 prot = (attrs & DMA_ATTR_WRITE_COMBINE) ?
441 pgprot_writecombine(prot) :
442 pgprot_dmacoherent(prot);
443 return prot;
479 return __alloc_from_contiguous(args->dev, args->size, args->prot,
516 args->prot, ret_page, args->caller,
534 gfp_t gfp, pgprot_t prot, bool is_coherent,
546 .prot = prot,
735 int prot = 0;
738 prot |= IOMMU_PRIV;
742 return prot | IOMMU_READ | IOMMU_WRITE;
744 return prot | IOMMU_READ;
746 return prot | IOMMU_WRITE;
748 return prot;
1081 pgprot_t prot = __get_dma_pgprot(attrs, PAGE_KERNEL);
1104 addr = dma_common_pages_remap(pages, size, prot,
1197 int prot;
1213 prot = __dma_info_to_prot(dir, attrs);
1215 ret = iommu_map(mapping->domain, iova, phys, len, prot,
1377 int ret, prot, len = PAGE_ALIGN(size + offset);
1386 prot = __dma_info_to_prot(dir, attrs);
1389 prot, GFP_KERNEL);
1442 int ret, prot;
1451 prot = __dma_info_to_prot(dir, attrs) | IOMMU_MMIO;
1453 ret = iommu_map(mapping->domain, dma_addr, addr, len, prot, GFP_KERNEL);