Home
last modified time | relevance | path

Searched refs:prot (Results 1 – 8 of 8) 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.c226 unsigned long size, pgprot_t prot) in remap_oldmem_pfn_range() argument
228 prot = pgprot_encrypted(prot); in remap_oldmem_pfn_range()
229 return remap_pfn_range(vma, from, pfn, size, prot); in remap_oldmem_pfn_range()
503 unsigned long size, pgprot_t prot) in remap_oldmem_pfn_checked() argument
525 prot)) in remap_oldmem_pfn_checked()
532 PAGE_SIZE, prot)) in remap_oldmem_pfn_checked()
542 map_size, prot)) in remap_oldmem_pfn_checked()
553 unsigned long size, pgprot_t prot) in vmcore_remap_oldmem_pfn() argument
563 ret = remap_oldmem_pfn_checked(vma, from, pfn, size, prot); in vmcore_remap_oldmem_pfn()
565 ret = remap_oldmem_pfn_range(vma, from, pfn, size, prot); in vmcore_remap_oldmem_pfn()
/fs/smb/server/
Dsmb_common.c30 char *prot; member
107 if (!strncmp(str, smb1_protos[offt].prot, len)) { in ksmbd_lookup_protocol_idx()
109 smb1_protos[offt].prot, offt); in ksmbd_lookup_protocol_idx()
117 if (!strncmp(str, smb2_protos[offt].prot, len)) { in ksmbd_lookup_protocol_idx()
119 smb2_protos[offt].prot, offt); in ksmbd_lookup_protocol_idx()
/fs/pstore/
Dram_core.c409 pgprot_t prot; in persistent_ram_vmap() local
418 prot = PAGE_KERNEL; in persistent_ram_vmap()
421 prot = pgprot_noncached(PAGE_KERNEL); in persistent_ram_vmap()
424 prot = pgprot_writecombine(PAGE_KERNEL); in persistent_ram_vmap()
446 vaddr = vmap(pages, page_count, VM_MAP | VM_IOREMAP, prot); in persistent_ram_vmap()
/fs/
Dbinfmt_elf_fdpic.c1028 int prot = 0, flags; in elf_fdpic_map_file_by_direct_mmap() local
1040 if (phdr->p_flags & PF_R) prot |= PROT_READ; in elf_fdpic_map_file_by_direct_mmap()
1041 if (phdr->p_flags & PF_W) prot |= PROT_WRITE; in elf_fdpic_map_file_by_direct_mmap()
1042 if (phdr->p_flags & PF_X) prot |= PROT_EXEC; in elf_fdpic_map_file_by_direct_mmap()
1085 maddr = vm_mmap(file, maddr, phdr->p_memsz + disp, prot, flags, in elf_fdpic_map_file_by_direct_mmap()
1089 loop, phdr->p_memsz + disp, prot, flags, in elf_fdpic_map_file_by_direct_mmap()
1109 if (prot & PROT_WRITE && disp > 0) { in elf_fdpic_map_file_by_direct_mmap()
1131 prot, flags, 0); in elf_fdpic_map_file_by_direct_mmap()
1135 loop, xaddr, excess - excess1, prot, flags, in elf_fdpic_map_file_by_direct_mmap()
1142 if (prot & PROT_WRITE && excess1 > 0) { in elf_fdpic_map_file_by_direct_mmap()
Dbinfmt_elf.c112 static int set_brk(unsigned long start, unsigned long end, int prot) in set_brk() argument
123 prot & PROT_EXEC ? VM_EXEC : 0); in set_brk()
366 const struct elf_phdr *eppnt, int prot, int type, in elf_map() argument
390 map_addr = vm_mmap(filep, addr, total_size, prot, type, off); in elf_map()
394 map_addr = vm_mmap(filep, addr, size, prot, type, off); in elf_map()
575 int prot = 0; in make_prot() local
578 prot |= PROT_READ; in make_prot()
580 prot |= PROT_WRITE; in make_prot()
582 prot |= PROT_EXEC; in make_prot()
584 return arch_elf_adjust_prot(prot, arch_state, has_interp, is_interp); in make_prot()