Home
last modified time | relevance | path

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

12345678910>>...86

/linux/arch/arm64/include/asm/
A Dmman.h9 static inline unsigned long arch_calc_vm_prot_bits(unsigned long prot, in arch_calc_vm_prot_bits() argument
14 if (system_supports_bti() && (prot & PROT_BTI)) in arch_calc_vm_prot_bits()
17 if (system_supports_mte() && (prot & PROT_MTE)) in arch_calc_vm_prot_bits()
22 #define arch_calc_vm_prot_bits(prot, pkey) arch_calc_vm_prot_bits(prot, pkey) argument
40 pteval_t prot = 0; in arch_vm_get_page_prot() local
43 prot |= PTE_GP; in arch_vm_get_page_prot()
56 prot |= PTE_ATTRINDX(MT_NORMAL_TAGGED); in arch_vm_get_page_prot()
58 return __pgprot(prot); in arch_vm_get_page_prot()
62 static inline bool arch_validate_prot(unsigned long prot, in arch_validate_prot() argument
73 return (prot & ~supported) == 0; in arch_validate_prot()
[all …]
A Dpgtable.h85 #define pfn_pte(pfn,prot) \ argument
159 pte_val(pte) |= pgprot_val(prot); in set_pte_bit()
171 pmd_val(pmd) |= pgprot_val(prot); in set_pmd_bit()
475 #define mk_pmd(page,prot) pfn_pmd(page_to_pfn(page),prot) argument
500 #define pgprot_nx(prot) \ argument
506 #define pgprot_noncached(prot) \ argument
510 #define pgprot_device(prot) \ argument
512 #define pgprot_tagged(prot) \ argument
618 #define mk_pte(page,prot) pfn_pte(page_to_pfn(page),prot) argument
1023 return prot; in arch_filter_pgprot()
[all …]
A Dpgalloc.h23 static inline void __pud_populate(pud_t *pudp, phys_addr_t pmdp, pudval_t prot) in __pud_populate() argument
25 set_pud(pudp, __pud(__phys_to_pud_val(pmdp) | prot)); in __pud_populate()
36 static inline void __pud_populate(pud_t *pudp, phys_addr_t pmdp, pudval_t prot) in __pud_populate() argument
44 static inline void __p4d_populate(p4d_t *p4dp, phys_addr_t pudp, p4dval_t prot) in __p4d_populate() argument
46 set_p4d(p4dp, __p4d(__phys_to_p4d_val(pudp) | prot)); in __p4d_populate()
57 static inline void __p4d_populate(p4d_t *p4dp, phys_addr_t pudp, p4dval_t prot) in __p4d_populate() argument
67 pmdval_t prot) in __pmd_populate() argument
69 set_pmd(pmdp, __pmd(__phys_to_pmd_val(ptep) | prot)); in __pmd_populate()
/linux/net/ipv4/
A Dprotocol.c32 int inet_add_protocol(const struct net_protocol *prot, unsigned char protocol) in inet_add_protocol() argument
35 NULL, prot) ? 0 : -1; in inet_add_protocol()
39 int inet_add_offload(const struct net_offload *prot, unsigned char protocol) in inet_add_offload() argument
42 NULL, prot) ? 0 : -1; in inet_add_offload()
46 int inet_del_protocol(const struct net_protocol *prot, unsigned char protocol) in inet_del_protocol() argument
51 prot, NULL) == prot) ? 0 : -1; in inet_del_protocol()
59 int inet_del_offload(const struct net_offload *prot, unsigned char protocol) in inet_del_offload() argument
64 prot, NULL) == prot) ? 0 : -1; in inet_del_offload()
/linux/net/ipv6/
A Dprotocol.c28 int inet6_add_protocol(const struct inet6_protocol *prot, unsigned char protocol) in inet6_add_protocol() argument
31 NULL, prot) ? 0 : -1; in inet6_add_protocol()
35 int inet6_del_protocol(const struct inet6_protocol *prot, unsigned char protocol) in inet6_del_protocol() argument
40 prot, NULL) == prot) ? 0 : -1; in inet6_del_protocol()
52 int inet6_add_offload(const struct net_offload *prot, unsigned char protocol) in inet6_add_offload() argument
55 NULL, prot) ? 0 : -1; in inet6_add_offload()
59 int inet6_del_offload(const struct net_offload *prot, unsigned char protocol) in inet6_del_offload() argument
64 prot, NULL) == prot) ? 0 : -1; in inet6_del_offload()
/linux/arch/powerpc/mm/
A Dioremap.c14 pgprot_t prot = pgprot_noncached(PAGE_KERNEL); in ioremap() local
18 return iowa_ioremap(addr, size, prot, caller); in ioremap()
19 return __ioremap_caller(addr, size, prot, caller); in ioremap()
25 pgprot_t prot = pgprot_noncached_wc(PAGE_KERNEL); in ioremap_wc() local
29 return iowa_ioremap(addr, size, prot, caller); in ioremap_wc()
30 return __ioremap_caller(addr, size, prot, caller); in ioremap_wc()
36 pgprot_t prot = pgprot_cached(PAGE_KERNEL); in ioremap_coherent() local
40 return iowa_ioremap(addr, size, prot, caller); in ioremap_coherent()
41 return __ioremap_caller(addr, size, prot, caller); in ioremap_coherent()
64 unsigned long size, pgprot_t prot) in early_ioremap_range() argument
[all …]
/linux/arch/arm/include/asm/
A Dpgtable.h103 #define __pgprot_modify(prot,mask,bits) \ argument
106 #define pgprot_noncached(prot) \ argument
109 #define pgprot_writecombine(prot) \ argument
112 #define pgprot_stronglyordered(prot) \ argument
115 #define pgprot_device(prot) \ argument
119 #define pgprot_dmacoherent(prot) \ argument
126 #define pgprot_dmacoherent(prot) \ argument
182 #define pfn_pte(pfn,prot) __pte(__pfn_to_phys(pfn) | pgprot_val(prot)) argument
185 #define mk_pte(page,prot) pfn_pte(page_to_pfn(page), prot) argument
230 pte_val(pte) &= ~pgprot_val(prot); in clear_pte_bit()
[all …]
/linux/net/tls/
A Dtls_main.c774 build_protos(tls_prots[TLSV6], prot); in tls_build_proto()
786 build_protos(tls_prots[TLSV4], prot); in tls_build_proto()
798 prot[TLS_BASE][TLS_BASE] = *base; in build_protos()
803 prot[TLS_SW][TLS_BASE] = prot[TLS_BASE][TLS_BASE]; in build_protos()
807 prot[TLS_BASE][TLS_SW] = prot[TLS_BASE][TLS_BASE]; in build_protos()
812 prot[TLS_SW][TLS_SW] = prot[TLS_SW][TLS_BASE]; in build_protos()
818 prot[TLS_HW][TLS_BASE] = prot[TLS_BASE][TLS_BASE]; in build_protos()
822 prot[TLS_HW][TLS_SW] = prot[TLS_BASE][TLS_SW]; in build_protos()
826 prot[TLS_BASE][TLS_HW] = prot[TLS_BASE][TLS_SW]; in build_protos()
828 prot[TLS_SW][TLS_HW] = prot[TLS_SW][TLS_SW]; in build_protos()
[all …]
A Dtls_sw.c168 struct tls_prot_info *prot; in tls_decrypt_done() local
522 prot->iv_size + prot->salt_size); in tls_do_encryption()
998 prot->overhead_size; in tls_sw_sendmsg()
1431 prot->tail_size; in decrypt_internal()
1490 prot->iv_size); in decrypt_internal()
1506 prot->tail_size, in decrypt_internal()
2118 prot->tail_size) { in tls_read_size()
2511 prot->tail_size = 1; in tls_set_sw_offload()
2514 prot->tail_size = 0; in tls_set_sw_offload()
2521 prot->overhead_size = prot->prepend_size + in tls_set_sw_offload()
[all …]
/linux/arch/riscv/kernel/
A Dsys_riscv.c14 unsigned long prot, unsigned long flags, in riscv_sys_mmap() argument
21 if ((prot & PROT_WRITE) && (prot & PROT_EXEC)) in riscv_sys_mmap()
22 if (unlikely(!(prot & PROT_READ))) in riscv_sys_mmap()
25 return ksys_mmap_pgoff(addr, len, prot, flags, fd, in riscv_sys_mmap()
31 unsigned long, prot, unsigned long, flags, in SYSCALL_DEFINE6() argument
34 return riscv_sys_mmap(addr, len, prot, flags, fd, offset, 0); in SYSCALL_DEFINE6()
38 unsigned long, prot, unsigned long, flags, in SYSCALL_DEFINE6() argument
45 return riscv_sys_mmap(addr, len, prot, flags, fd, offset, 12); in SYSCALL_DEFINE6()
/linux/arch/arm64/kvm/hyp/nvhe/
A Dmem_protect.c231 enum kvm_pgtable_prot prot) in __host_stage2_idmap() argument
234 prot, &host_s2_pool); in __host_stage2_idmap()
295 enum kvm_pgtable_prot prot) in host_stage2_idmap_locked() argument
327 return prot != PKVM_HOST_MEM_PROT; in host_stage2_force_pte_cb()
329 return prot != PKVM_HOST_MMIO_PROT; in host_stage2_force_pte_cb()
336 enum kvm_pgtable_prot prot; in host_stage2_idmap() local
357 return (prot & (required | denied)) == required; in check_prot()
363 enum kvm_pgtable_prot prot, cur; in __pkvm_host_share_hyp() local
388 prot = pkvm_mkstate(0, PKVM_PAGE_SHARED_BORROWED); in __pkvm_host_share_hyp()
389 if (!check_prot(cur, PKVM_HOST_MEM_PROT, prot)) { in __pkvm_host_share_hyp()
[all …]
/linux/arch/m68k/include/asm/
A Dpgtable_mm.h158 # define pgprot_noncached(prot) (__pgprot(pgprot_val(prot) | CF_PAGE_NOCACHE)) argument
165 #define pgprot_noncached(prot) \ argument
167 ? (__pgprot(pgprot_val(prot) | __SUN3_PAGE_NOCACHE)) \
169 ? (__pgprot(pgprot_val(prot) | _PAGE_NOCACHE030)) \
171 ? (__pgprot((pgprot_val(prot) & _CACHEMASK040) | _PAGE_NOCACHE_S)) \
172 : (prot)))
174 pgprot_t pgprot_dmacoherent(pgprot_t prot);
175 #define pgprot_dmacoherent(prot) pgprot_dmacoherent(prot) argument
/linux/arch/powerpc/include/asm/
A Dmman.h16 static inline unsigned long arch_calc_vm_prot_bits(unsigned long prot, in arch_calc_vm_prot_bits() argument
20 return (((prot & PROT_SAO) ? VM_SAO : 0) | pkey_to_vmflag_bits(pkey)); in arch_calc_vm_prot_bits()
22 return ((prot & PROT_SAO) ? VM_SAO : 0); in arch_calc_vm_prot_bits()
25 #define arch_calc_vm_prot_bits(prot, pkey) arch_calc_vm_prot_bits(prot, pkey) argument
39 static inline bool arch_validate_prot(unsigned long prot, unsigned long addr) in arch_validate_prot() argument
41 if (prot & ~(PROT_READ | PROT_WRITE | PROT_EXEC | PROT_SEM | PROT_SAO)) in arch_validate_prot()
43 if (prot & PROT_SAO) { in arch_validate_prot()
/linux/tools/testing/selftests/vm/
A Dksm_tests.c92 int prot = 0; in str_to_prot() local
95 prot |= PROT_READ; in str_to_prot()
97 prot |= PROT_WRITE; in str_to_prot()
99 prot |= PROT_EXEC; in str_to_prot()
101 return prot; in str_to_prot()
147 if (mprotect(map_ptr, map_size, prot)) { in allocate_memory()
562 map_ptr = allocate_memory(NULL, prot, mapping, '*', map_size); in ksm_merge_time()
669 int prot = 0; in main() local
682 prot = str_to_prot(optarg); in main()
744 if (prot == 0) in main()
[all …]
/linux/arch/x86/mm/
A Diomap_32.c21 int iomap_create_wc(resource_size_t base, unsigned long size, pgprot_t *prot) in iomap_create_wc() argument
33 *prot = __pgprot(__PAGE_KERNEL | cachemode2protval(pcm)); in iomap_create_wc()
35 pgprot_val(*prot) &= __default_kernel_pte_mask; in iomap_create_wc()
47 void __iomem *__iomap_local_pfn_prot(unsigned long pfn, pgprot_t prot) in __iomap_local_pfn_prot() argument
56 if (!pat_enabled() && pgprot2cachemode(prot) != _PAGE_CACHE_MODE_WB) in __iomap_local_pfn_prot()
57 prot = __pgprot(__PAGE_KERNEL | in __iomap_local_pfn_prot()
61 pgprot_val(prot) &= __default_kernel_pte_mask; in __iomap_local_pfn_prot()
63 return (void __force __iomem *)__kmap_local_pfn_prot(pfn, prot); in __iomap_local_pfn_prot()
/linux/include/net/
A Dprotocol.h87 struct proto *prot; member
104 int inet_add_protocol(const struct net_protocol *prot, unsigned char num);
105 int inet_del_protocol(const struct net_protocol *prot, unsigned char num);
106 int inet_add_offload(const struct net_offload *prot, unsigned char num);
107 int inet_del_offload(const struct net_offload *prot, unsigned char num);
112 int inet6_add_protocol(const struct inet6_protocol *prot, unsigned char num);
113 int inet6_del_protocol(const struct inet6_protocol *prot, unsigned char num);
117 int inet6_add_offload(const struct net_offload *prot, unsigned char num);
118 int inet6_del_offload(const struct net_offload *prot, unsigned char num);
/linux/arch/sh/include/asm/
A Dpgtable.h137 static inline bool __pte_access_permitted(pte_t pte, u64 prot) in __pte_access_permitted() argument
139 return (pte_val(pte) & (prot | _PAGE_SPECIAL)) == prot; in __pte_access_permitted()
145 u64 prot = _PAGE_PRESENT; in pte_access_permitted() local
147 prot |= _PAGE_EXT(_PAGE_EXT_KERN_READ | _PAGE_EXT_USER_READ); in pte_access_permitted()
149 prot |= _PAGE_EXT(_PAGE_EXT_KERN_WRITE | _PAGE_EXT_USER_WRITE); in pte_access_permitted()
150 return __pte_access_permitted(pte, prot); in pte_access_permitted()
155 u64 prot = _PAGE_PRESENT | _PAGE_USER; in pte_access_permitted() local
158 prot |= _PAGE_RW; in pte_access_permitted()
159 return __pte_access_permitted(pte, prot); in pte_access_permitted()
/linux/arch/arm/mm/
A Didmap.c25 unsigned long prot) in idmap_add_pmd() argument
50 *pmd = __pmd((addr & PMD_MASK) | prot); in idmap_add_pmd()
56 unsigned long prot) in idmap_add_pmd() argument
60 addr = (addr & PMD_MASK) | prot; in idmap_add_pmd()
69 unsigned long prot) in idmap_add_pud() argument
77 idmap_add_pmd(pud, addr, next, prot); in idmap_add_pud()
82 const char *text_end, unsigned long prot) in identity_mapping_add() argument
91 prot |= PMD_TYPE_SECT | PMD_SECT_AP_WRITE | PMD_SECT_AF; in identity_mapping_add()
94 prot |= PMD_BIT4; in identity_mapping_add()
99 idmap_add_pud(pgd, addr, next, prot); in identity_mapping_add()
/linux/include/xen/
A Dxen-ops.h54 xen_pfn_t *pfn, int nr, int *err_ptr, pgprot_t prot,
59 pgprot_t prot, unsigned int domid, in xen_remap_pfn() argument
73 int *err_ptr, pgprot_t prot,
86 int *err_ptr, pgprot_t prot, in xen_xlate_remap_gfn_array() argument
123 int *err_ptr, pgprot_t prot, in xen_remap_domain_gfn_array() argument
129 prot, domid, pages); in xen_remap_domain_gfn_array()
136 return xen_remap_pfn(vma, addr, gfn, nr, err_ptr, prot, domid, in xen_remap_domain_gfn_array()
159 pgprot_t prot, unsigned int domid) in xen_remap_domain_mfn_array() argument
164 return xen_remap_pfn(vma, addr, mfn, nr, err_ptr, prot, domid, in xen_remap_domain_mfn_array()
183 pgprot_t prot, unsigned int domid, in xen_remap_domain_gfn_range() argument
[all …]
/linux/fs/affs/
A Damigaffs.c403 if (prot & FIBF_GRP_READ) in affs_prot_to_mode()
409 if (prot & FIBF_OTR_READ) in affs_prot_to_mode()
444 prot |= FIBF_NOEXECUTE; in affs_mode_to_prot()
446 prot |= FIBF_NOREAD; in affs_mode_to_prot()
448 prot |= FIBF_NOWRITE; in affs_mode_to_prot()
454 prot |= FIBF_GRP_READ; in affs_mode_to_prot()
456 prot |= FIBF_GRP_WRITE; in affs_mode_to_prot()
458 prot |= FIBF_GRP_DELETE; in affs_mode_to_prot()
463 prot |= FIBF_OTR_READ; in affs_mode_to_prot()
465 prot |= FIBF_OTR_WRITE; in affs_mode_to_prot()
[all …]
/linux/arch/sparc/include/asm/
A Dmman.h30 #define arch_calc_vm_prot_bits(prot, pkey) sparc_calc_vm_prot_bits(prot) argument
31 static inline unsigned long sparc_calc_vm_prot_bits(unsigned long prot) in sparc_calc_vm_prot_bits() argument
33 if (adi_capable() && (prot & PROT_ADI)) { in sparc_calc_vm_prot_bits()
55 #define arch_validate_prot(prot, addr) sparc_validate_prot(prot, addr) argument
56 static inline int sparc_validate_prot(unsigned long prot, unsigned long addr) in sparc_validate_prot() argument
58 if (prot & ~(PROT_READ | PROT_WRITE | PROT_EXEC | PROT_SEM | PROT_ADI)) in sparc_validate_prot()
/linux/arch/mips/include/asm/
A Dpgtable-32.h159 pfn_pte(unsigned long pfn, pgprot_t prot) in pfn_pte() argument
164 (pgprot_val(prot) & ~_PFNX_MASK); in pfn_pte()
166 (pgprot_val(prot) & ~_PFN_MASK); in pfn_pte()
175 static inline pte_t pfn_pte(unsigned long pfn, pgprot_t prot) in pfn_pte() argument
179 pte.pte_high = (pfn << 6) | (pgprot_val(prot) & 0x3f); in pfn_pte()
180 pte.pte_low = pgprot_val(prot); in pfn_pte()
190 #define pfn_pte(pfn, prot) __pte(((pfn) << (PAGE_SHIFT + 2)) | pgprot_val(prot)) argument
193 #define pfn_pte(pfn, prot) __pte(((unsigned long long)(pfn) << _PFN_SHIFT) | pgprot_val(prot)) argument
194 #define pfn_pmd(pfn, prot) __pmd(((unsigned long long)(pfn) << _PFN_SHIFT) | pgprot_val(prot)) argument
/linux/include/linux/
A Dmman.h89 #define arch_calc_vm_prot_bits(prot, pkey) 0 argument
107 static inline bool arch_validate_prot(unsigned long prot, unsigned long addr) in arch_validate_prot() argument
109 return (prot & ~(PROT_READ | PROT_WRITE | PROT_EXEC | PROT_SEM)) == 0; in arch_validate_prot()
142 calc_vm_prot_bits(unsigned long prot, unsigned long pkey) in calc_vm_prot_bits() argument
144 return _calc_vm_trans(prot, PROT_READ, VM_READ ) | in calc_vm_prot_bits()
145 _calc_vm_trans(prot, PROT_WRITE, VM_WRITE) | in calc_vm_prot_bits()
146 _calc_vm_trans(prot, PROT_EXEC, VM_EXEC) | in calc_vm_prot_bits()
147 arch_calc_vm_prot_bits(prot, pkey); in calc_vm_prot_bits()
/linux/net/unix/
A Dunix_bpf.c100 static void unix_dgram_bpf_rebuild_protos(struct proto *prot, const struct proto *base) in unix_dgram_bpf_rebuild_protos() argument
102 *prot = *base; in unix_dgram_bpf_rebuild_protos()
103 prot->close = sock_map_close; in unix_dgram_bpf_rebuild_protos()
104 prot->recvmsg = unix_bpf_recvmsg; in unix_dgram_bpf_rebuild_protos()
105 prot->sock_is_readable = sk_msg_is_readable; in unix_dgram_bpf_rebuild_protos()
108 static void unix_stream_bpf_rebuild_protos(struct proto *prot, in unix_stream_bpf_rebuild_protos() argument
111 *prot = *base; in unix_stream_bpf_rebuild_protos()
112 prot->close = sock_map_close; in unix_stream_bpf_rebuild_protos()
113 prot->recvmsg = unix_bpf_recvmsg; in unix_stream_bpf_rebuild_protos()
114 prot->sock_is_readable = sk_msg_is_readable; in unix_stream_bpf_rebuild_protos()
[all …]
/linux/arch/powerpc/include/asm/nohash/
A Dpgtable.h233 #define pgprot_noncached(prot) (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \ argument
236 #define pgprot_noncached_wc(prot) (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \ argument
239 #define pgprot_cached(prot) (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \ argument
243 #define pgprot_cached_wthru(prot) (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \ argument
246 #define pgprot_cached_wthru(prot) pgprot_noncached(prot) argument
249 #define pgprot_cached_noncoherent(prot) \ argument
250 (__pgprot(pgprot_val(prot) & ~_PAGE_CACHE_CTL))

Completed in 43 milliseconds

12345678910>>...86