Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/arm64/mte/
H A Dmte_common_util.c128 int prot_flag, map_flag; in __mte_allocate_memory_range() local
142 prot_flag = PROT_READ | PROT_WRITE; in __mte_allocate_memory_range()
144 prot_flag |= PROT_MTE; in __mte_allocate_memory_range()
151 ptr = mmap(NULL, entire_size, prot_flag, map_flag, fd, 0); in __mte_allocate_memory_range()
157 if (mprotect(ptr, entire_size, prot_flag | PROT_MTE)) { in __mte_allocate_memory_range()
H A Dcheck_mmap_options.c133 int run, prot_flag, result, fd, map_size; in check_clear_prot_mte_flag() local
136 prot_flag = PROT_READ | PROT_WRITE; in check_clear_prot_mte_flag()
147 if (mprotect(map_ptr, map_size, prot_flag)) { in check_clear_prot_mte_flag()
170 if (mprotect(map_ptr, map_size, prot_flag)) { in check_clear_prot_mte_flag()
/linux/drivers/video/fbdev/aty/
H A Datyfb_base.c221 unsigned long prot_flag; member
1985 pgprot_val(vma->vm_page_prot) |= par->mmap_map[i].prot_flag; in atyfb_mmap()
3009 par->mmap_map[j].prot_flag = _PAGE_E; in atyfb_setup_sparc()
3022 par->mmap_map[j].prot_flag = _PAGE_E | _PAGE_IE; in atyfb_setup_sparc()
3031 par->mmap_map[j].prot_flag = _PAGE_E; in atyfb_setup_sparc()
3597 par->mmap_map[0].prot_flag = _PAGE_E; in atyfb_pci_probe()
3602 par->mmap_map[1].prot_flag = _PAGE_E; in atyfb_pci_probe()