Home
last modified time | relevance | path

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

/fs/affs/
Damigaffs.c391 affs_prot_to_mode(u32 prot) in affs_prot_to_mode() argument
395 if (!(prot & FIBF_NOWRITE)) in affs_prot_to_mode()
397 if (!(prot & FIBF_NOREAD)) in affs_prot_to_mode()
399 if (!(prot & FIBF_NOEXECUTE)) in affs_prot_to_mode()
401 if (prot & FIBF_GRP_WRITE) in affs_prot_to_mode()
403 if (prot & FIBF_GRP_READ) in affs_prot_to_mode()
405 if (prot & FIBF_GRP_EXECUTE) in affs_prot_to_mode()
407 if (prot & FIBF_OTR_WRITE) in affs_prot_to_mode()
409 if (prot & FIBF_OTR_READ) in affs_prot_to_mode()
411 if (prot & FIBF_OTR_EXECUTE) in affs_prot_to_mode()
[all …]
Dinode.c26 u32 prot; in affs_iget() local
51 prot = be32_to_cpu(tail->protect); in affs_iget()
58 AFFS_I(inode)->i_protect = prot; in affs_iget()
74 inode->i_mode = affs_prot_to_mode(prot); in affs_iget()
Daffs.h143 extern umode_t affs_prot_to_mode(u32 prot);
/fs/proc/
Dvmcore.c189 unsigned long size, pgprot_t prot) in remap_oldmem_pfn_range() argument
191 prot = pgprot_encrypted(prot); in remap_oldmem_pfn_range()
192 return remap_pfn_range(vma, from, pfn, size, prot); in remap_oldmem_pfn_range()
488 unsigned long size, pgprot_t prot) in remap_oldmem_pfn_checked() argument
510 prot)) in remap_oldmem_pfn_checked()
517 PAGE_SIZE, prot)) in remap_oldmem_pfn_checked()
527 map_size, prot)) in remap_oldmem_pfn_checked()
538 unsigned long size, pgprot_t prot) in vmcore_remap_oldmem_pfn() argument
545 return remap_oldmem_pfn_checked(vma, from, pfn, size, prot); in vmcore_remap_oldmem_pfn()
547 return remap_oldmem_pfn_range(vma, from, pfn, size, prot); in vmcore_remap_oldmem_pfn()
/fs/
Dbinfmt_elf_fdpic.c1023 int prot = 0, flags; in elf_fdpic_map_file_by_direct_mmap() local
1035 if (phdr->p_flags & PF_R) prot |= PROT_READ; in elf_fdpic_map_file_by_direct_mmap()
1036 if (phdr->p_flags & PF_W) prot |= PROT_WRITE; in elf_fdpic_map_file_by_direct_mmap()
1037 if (phdr->p_flags & PF_X) prot |= PROT_EXEC; in elf_fdpic_map_file_by_direct_mmap()
1083 maddr = vm_mmap(file, maddr, phdr->p_memsz + disp, prot, flags, in elf_fdpic_map_file_by_direct_mmap()
1087 loop, phdr->p_memsz + disp, prot, flags, in elf_fdpic_map_file_by_direct_mmap()
1107 if (prot & PROT_WRITE && disp > 0) { in elf_fdpic_map_file_by_direct_mmap()
1129 prot, flags, 0); in elf_fdpic_map_file_by_direct_mmap()
1133 loop, xaddr, excess - excess1, prot, flags, in elf_fdpic_map_file_by_direct_mmap()
1140 if (prot & PROT_WRITE && excess1 > 0) { in elf_fdpic_map_file_by_direct_mmap()
Dbinfmt_elf.c102 static int set_brk(unsigned long start, unsigned long end, int prot) in set_brk() argument
113 prot & PROT_EXEC ? VM_EXEC : 0); in set_brk()
349 const struct elf_phdr *eppnt, int prot, int type, in elf_map() argument
373 map_addr = vm_mmap(filep, addr, total_size, prot, type, off); in elf_map()
377 map_addr = vm_mmap(filep, addr, size, prot, type, off); in elf_map()
530 int prot = 0; in make_prot() local
533 prot |= PROT_READ; in make_prot()
535 prot |= PROT_WRITE; in make_prot()
537 prot |= PROT_EXEC; in make_prot()
538 return prot; in make_prot()
/fs/pstore/
Dram_core.c407 pgprot_t prot; in persistent_ram_vmap() local
415 prot = pgprot_noncached(PAGE_KERNEL); in persistent_ram_vmap()
417 prot = pgprot_writecombine(PAGE_KERNEL); in persistent_ram_vmap()
430 vaddr = vmap(pages, page_count, VM_MAP, prot); in persistent_ram_vmap()