Home
last modified time | relevance | path

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

12345678910>>...28

/openbmc/qemu/target/i386/
H A Dmonitor.c252 hwaddr end, int prot) in mem_print() argument
256 if (prot != prot1) { in mem_print()
267 if (prot != 0) in mem_print()
271 *plast_prot = prot; in mem_print()
278 int prot, last_prot; in mem_info_32() local
291 prot = pde & (PG_USER_MASK | PG_RW_MASK | PG_PRESENT_MASK); in mem_info_32()
292 mem_print(mon, env, &start, &last_prot, end, prot); in mem_info_32()
299 prot = pte & pde & in mem_info_32()
302 prot = 0; in mem_info_32()
304 mem_print(mon, env, &start, &last_prot, end, prot); in mem_info_32()
[all …]
/openbmc/qemu/bsd-user/
H A Dmmap.c64 int target_mprotect(abi_ulong start, abi_ulong len, int prot) in target_mprotect() argument
71 prot & PROT_READ ? 'r' : '-', in target_mprotect()
72 prot & PROT_WRITE ? 'w' : '-', in target_mprotect()
73 prot & PROT_EXEC ? 'x' : '-'); in target_mprotect()
80 prot &= PROT_READ | PROT_WRITE | PROT_EXEC; in target_mprotect()
89 prot1 = prot; in target_mprotect()
106 prot1 = prot; in target_mprotect()
119 ret = mprotect(g2h_untagged(host_start), host_end - host_start, prot); in target_mprotect()
123 page_set_flags(start, start + len - 1, prot | PAGE_VALID); in target_mprotect()
188 int prot, int flags, int fd, abi_ulong offset) in mmap_frag() argument
[all …]
/openbmc/linux/tools/testing/selftests/riscv/mm/
H A Dmmap_test.h37 int prot = PROT_READ | PROT_WRITE; in do_mmaps() local
41 mmap(NULL, 5 * sizeof(int), prot, flags, 0, 0); in do_mmaps()
43 mmap(on_37_bits, 5 * sizeof(int), prot, flags, 0, 0); in do_mmaps()
45 mmap(on_38_bits, 5 * sizeof(int), prot, flags, 0, 0); in do_mmaps()
47 mmap(on_46_bits, 5 * sizeof(int), prot, flags, 0, 0); in do_mmaps()
49 mmap(on_47_bits, 5 * sizeof(int), prot, flags, 0, 0); in do_mmaps()
51 mmap(on_55_bits, 5 * sizeof(int), prot, flags, 0, 0); in do_mmaps()
53 mmap(on_56_bits, 5 * sizeof(int), prot, flags, 0, 0); in do_mmaps()
59 int prot = PROT_READ | PROT_WRITE; in memory_layout() local
62 void *value1 = mmap(NULL, sizeof(int), prot, flags, 0, 0); in memory_layout()
[all …]
/openbmc/qemu/target/ppc/
H A Dmmu-booke.c35 if (!(tlb->prot & PAGE_VALID)) { in ppcemb_tlb_check()
42 mask, (uint32_t)tlb->PID, tlb->prot); in ppcemb_tlb_check()
71 int mmu40x_get_physical_address(CPUPPCState *env, hwaddr *raddr, int *prot, in mmu40x_get_physical_address() argument
100 *prot = PAGE_RWX; in mmu40x_get_physical_address()
108 *prot = 0; in mmu40x_get_physical_address()
116 *prot = tlb->prot; in mmu40x_get_physical_address()
117 if (check_prot_access_type(*prot, access_type)) { in mmu40x_get_physical_address()
129 ret < 0 ? 0 : *raddr, *prot, ret); in mmu40x_get_physical_address()
158 hwaddr *raddr, int *prot, target_ulong address, in mmubooke_check_tlb() argument
175 *prot = tlb->prot & 0xF; in mmubooke_check_tlb()
[all …]
H A Dmmu-hash32.h116 int prot; in ppc_hash32_prot() local
121 prot = 0; in ppc_hash32_prot()
125 prot = PAGE_READ; in ppc_hash32_prot()
128 prot = PAGE_READ | PAGE_WRITE; in ppc_hash32_prot()
138 prot = PAGE_READ | PAGE_WRITE; in ppc_hash32_prot()
141 prot = PAGE_READ; in ppc_hash32_prot()
147 return nx ? prot : prot | PAGE_EXEC; in ppc_hash32_prot()
152 int prot = 0; in ppc_hash32_bat_prot() local
156 prot = PAGE_READ | PAGE_EXEC; in ppc_hash32_bat_prot()
158 prot |= PAGE_WRITE; in ppc_hash32_bat_prot()
[all …]
/openbmc/linux/net/ipv6/
H 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()
/openbmc/linux/net/ipv4/
H 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()
/openbmc/qemu/target/mips/sysemu/
H A Dphysaddr.c79 int *prot, target_ulong real_address, in get_seg_physical_address() argument
92 return env->tlb->map_address(env, physical, prot, real_address, in get_seg_physical_address()
97 *prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in get_seg_physical_address()
103 int *prot, target_ulong real_address, in get_segctl_physical_address() argument
111 return get_seg_physical_address(env, physical, prot, real_address, in get_segctl_physical_address()
117 int *prot, target_ulong real_address, in get_physical_address() argument
142 ret = get_segctl_physical_address(env, physical, prot, in get_physical_address()
149 ret = env->tlb->map_address(env, physical, prot, in get_physical_address()
158 ret = env->tlb->map_address(env, physical, prot, in get_physical_address()
185 ret = get_seg_physical_address(env, physical, prot, in get_physical_address()
[all …]
/openbmc/linux/tools/testing/selftests/net/
H A Dcmsg_ipv6.sh53 [ $p == "u" ] && prot=UDP
54 [ $p == "i" ] && prot=ICMP
55 [ $p == "r" ] && prot=RAW
63 check_result $? $df "DONTFRAG $prot $ovr"
77 [ $p == "u" ] && prot=UDP
78 [ $p == "i" ] && prot=ICMP
79 [ $p == "r" ] && prot=RAW
91 check_result $? 0 "TCLASS $prot $ovr - pass"
98 check_result $? 0 "TCLASS $prot $ovr - packet data"
105 check_result $? 1 "TCLASS $prot $ovr - rejection"
[all …]
/openbmc/linux/arch/powerpc/mm/
H 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 …]
/openbmc/linux/arch/powerpc/include/asm/
H A Dmman.h17 static inline unsigned long arch_calc_vm_prot_bits(unsigned long prot, in arch_calc_vm_prot_bits() argument
21 return (((prot & PROT_SAO) ? VM_SAO : 0) | pkey_to_vmflag_bits(pkey)); in arch_calc_vm_prot_bits()
23 return ((prot & PROT_SAO) ? VM_SAO : 0); in arch_calc_vm_prot_bits()
26 #define arch_calc_vm_prot_bits(prot, pkey) arch_calc_vm_prot_bits(prot, pkey) argument
28 static inline bool arch_validate_prot(unsigned long prot, unsigned long addr) in arch_validate_prot() argument
30 if (prot & ~(PROT_READ | PROT_WRITE | PROT_EXEC | PROT_SEM | PROT_SAO)) in arch_validate_prot()
32 if (prot & PROT_SAO) { in arch_validate_prot()
/openbmc/linux/arch/arm64/include/asm/
H A Dmman.h11 static inline unsigned long arch_calc_vm_prot_bits(unsigned long prot, in arch_calc_vm_prot_bits() argument
16 if (system_supports_bti() && (prot & PROT_BTI)) in arch_calc_vm_prot_bits()
19 if (system_supports_mte() && (prot & PROT_MTE)) in arch_calc_vm_prot_bits()
24 #define arch_calc_vm_prot_bits(prot, pkey) arch_calc_vm_prot_bits(prot, pkey) argument
45 static inline bool arch_validate_prot(unsigned long prot, in arch_validate_prot() argument
56 return (prot & ~supported) == 0; in arch_validate_prot()
58 #define arch_validate_prot(prot, addr) arch_validate_prot(prot, addr) argument
/openbmc/linux/arch/arm/include/asm/
H A Dpgtable.h112 #define __pgprot_modify(prot,mask,bits) \ argument
113 __pgprot((pgprot_val(prot) & ~(mask)) | (bits))
115 #define pgprot_noncached(prot) \ argument
116 __pgprot_modify(prot, L_PTE_MT_MASK, L_PTE_MT_UNCACHED)
118 #define pgprot_writecombine(prot) \ argument
119 __pgprot_modify(prot, L_PTE_MT_MASK, L_PTE_MT_BUFFERABLE)
121 #define pgprot_stronglyordered(prot) \ argument
122 __pgprot_modify(prot, L_PTE_MT_MASK, L_PTE_MT_UNCACHED)
124 #define pgprot_device(prot) \ argument
125 __pgprot_modify(prot, L_PTE_MT_MASK, L_PTE_MT_DEV_SHARED | L_PTE_SHARED | L_PTE_DIRTY | L_PTE_XN)
[all …]
/openbmc/linux/arch/x86/mm/
H 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()
/openbmc/linux/include/net/
H A Dprotocol.h83 struct proto *prot; member
100 int inet_add_protocol(const struct net_protocol *prot, unsigned char num);
101 int inet_del_protocol(const struct net_protocol *prot, unsigned char num);
102 int inet_add_offload(const struct net_offload *prot, unsigned char num);
103 int inet_del_offload(const struct net_offload *prot, unsigned char num);
108 int inet6_add_protocol(const struct inet6_protocol *prot, unsigned char num);
109 int inet6_del_protocol(const struct inet6_protocol *prot, unsigned char num);
113 int inet6_add_offload(const struct net_offload *prot, unsigned char num);
114 int inet6_del_offload(const struct net_offload *prot, unsigned char num);
/openbmc/linux/arch/m68k/include/asm/
H A Dpgtable_mm.h165 # define pgprot_noncached(prot) (__pgprot(pgprot_val(prot) | CF_PAGE_NOCACHE)) argument
172 #define pgprot_noncached(prot) \ argument
174 ? (__pgprot(pgprot_val(prot) | __SUN3_PAGE_NOCACHE)) \
176 ? (__pgprot(pgprot_val(prot) | _PAGE_NOCACHE030)) \
178 ? (__pgprot((pgprot_val(prot) & _CACHEMASK040) | _PAGE_NOCACHE_S)) \
179 : (prot)))
181 pgprot_t pgprot_dmacoherent(pgprot_t prot);
182 #define pgprot_dmacoherent(prot) pgprot_dmacoherent(prot) argument
/openbmc/linux/arch/sh/include/asm/
H A Dpgtable.h121 static inline bool __pte_access_permitted(pte_t pte, u64 prot) in __pte_access_permitted() argument
123 return (pte_val(pte) & (prot | _PAGE_SPECIAL)) == prot; in __pte_access_permitted()
129 u64 prot = _PAGE_PRESENT; in pte_access_permitted() local
131 prot |= _PAGE_EXT(_PAGE_EXT_KERN_READ | _PAGE_EXT_USER_READ); in pte_access_permitted()
133 prot |= _PAGE_EXT(_PAGE_EXT_KERN_WRITE | _PAGE_EXT_USER_WRITE); in pte_access_permitted()
134 return __pte_access_permitted(pte, prot); in pte_access_permitted()
139 u64 prot = _PAGE_PRESENT | _PAGE_USER; in pte_access_permitted() local
142 prot |= _PAGE_RW; in pte_access_permitted()
143 return __pte_access_permitted(pte, prot); in pte_access_permitted()
/openbmc/linux/net/tls/
H A Dtls.h304 tls_advance_record_sn(struct sock *sk, struct tls_prot_info *prot, in tls_advance_record_sn() argument
307 if (tls_bigint_increment(ctx->rec_seq, prot->rec_seq_size)) in tls_advance_record_sn()
310 if (prot->version != TLS_1_3_VERSION && in tls_advance_record_sn()
311 prot->cipher_type != TLS_CIPHER_CHACHA20_POLY1305) in tls_advance_record_sn()
312 tls_bigint_increment(ctx->iv + prot->salt_size, in tls_advance_record_sn()
313 prot->iv_size); in tls_advance_record_sn()
317 tls_xor_iv_with_seq(struct tls_prot_info *prot, char *iv, char *seq) in tls_xor_iv_with_seq() argument
321 if (prot->version == TLS_1_3_VERSION || in tls_xor_iv_with_seq()
322 prot->cipher_type == TLS_CIPHER_CHACHA20_POLY1305) { in tls_xor_iv_with_seq()
332 struct tls_prot_info *prot = &ctx->prot_info; in tls_fill_prepend() local
[all …]
H A Dtls_sw.c157 static int tls_padding_length(struct tls_prot_info *prot, struct sk_buff *skb, in tls_padding_length() argument
165 if (prot->version == TLS_1_3_VERSION) { in tls_padding_length()
171 if (offset < prot->prepend_size) in tls_padding_length()
261 struct tls_prot_info *prot = &tls_ctx->prot_info; in tls_do_decryption() local
266 aead_request_set_ad(aead_req, prot->aad_size); in tls_do_decryption()
268 data_len + prot->tag_size, in tls_do_decryption()
310 struct tls_prot_info *prot = &tls_ctx->prot_info; in tls_trim_both_msgs() local
316 target_size += prot->overhead_size; in tls_trim_both_msgs()
333 struct tls_prot_info *prot = &tls_ctx->prot_info; in tls_clone_plaintext_msg() local
349 skip = prot->prepend_size + msg_pl->sg.size; in tls_clone_plaintext_msg()
[all …]
/openbmc/qemu/target/openrisc/
H A Dmmu.c30 static inline void get_phys_nommu(hwaddr *phys_addr, int *prot, in get_phys_nommu() argument
34 *prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in get_phys_nommu()
37 static int get_phys_mmu(OpenRISCCPU *cpu, hwaddr *phys_addr, int *prot, in get_phys_mmu() argument
78 *prot = right; in get_phys_mmu()
113 int prot; in openrisc_cpu_tlb_fill() local
118 get_phys_nommu(&phys_addr, &prot, addr); in openrisc_cpu_tlb_fill()
125 excp = get_phys_mmu(cpu, &phys_addr, &prot, addr, need, super); in openrisc_cpu_tlb_fill()
130 phys_addr & TARGET_PAGE_MASK, prot, in openrisc_cpu_tlb_fill()
145 int prot, excp, sr = cpu->env.sr; in openrisc_cpu_get_phys_page_debug() local
151 excp = get_phys_mmu(cpu, &phys_addr, &prot, addr, in openrisc_cpu_get_phys_page_debug()
[all …]
/openbmc/linux/arch/sparc/include/asm/
H 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()
49 #define arch_validate_prot(prot, addr) sparc_validate_prot(prot, addr) argument
50 static inline int sparc_validate_prot(unsigned long prot, unsigned long addr) in sparc_validate_prot() argument
52 if (prot & ~(PROT_READ | PROT_WRITE | PROT_EXEC | PROT_SEM | PROT_ADI)) in sparc_validate_prot()
/openbmc/linux/arch/arm/mm/
H 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
98 prot |= PMD_TYPE_SECT | PMD_SECT_AP_WRITE | PMD_SECT_AF; in identity_mapping_add()
101 prot |= PMD_BIT4; in identity_mapping_add()
106 idmap_add_pud(pgd, addr, next, prot); in identity_mapping_add()
/openbmc/linux/tools/testing/selftests/mm/
H A Dksm_tests.c146 int prot = 0; in str_to_prot() local
149 prot |= PROT_READ; in str_to_prot()
151 prot |= PROT_WRITE; in str_to_prot()
153 prot |= PROT_EXEC; in str_to_prot()
155 return prot; in str_to_prot()
200 static void *allocate_memory(void *ptr, int prot, int mapping, char data, size_t map_size) in allocate_memory() argument
209 if (mprotect(map_ptr, map_size, prot)) { in allocate_memory()
347 static int check_ksm_merge(int merge_type, int mapping, int prot, in check_ksm_merge() argument
359 map_ptr = allocate_memory(NULL, prot, mapping, '*', page_size * page_count); in check_ksm_merge()
381 static int check_ksm_unmerge(int merge_type, int mapping, int prot, int timeout, size_t page_size) in check_ksm_unmerge() argument
[all …]
/openbmc/linux/include/xen/
H A Dxen-ops.h48 xen_pfn_t *pfn, int nr, int *err_ptr, pgprot_t prot,
53 pgprot_t prot, unsigned int domid, in xen_remap_pfn() argument
67 int *err_ptr, pgprot_t prot,
80 int *err_ptr, pgprot_t prot, in xen_xlate_remap_gfn_array() argument
117 int *err_ptr, pgprot_t prot, in xen_remap_domain_gfn_array() argument
123 prot, domid, pages); in xen_remap_domain_gfn_array()
130 return xen_remap_pfn(vma, addr, gfn, nr, err_ptr, prot, domid, in xen_remap_domain_gfn_array()
153 pgprot_t prot, unsigned int domid) in xen_remap_domain_mfn_array() argument
158 return xen_remap_pfn(vma, addr, mfn, nr, err_ptr, prot, domid, in xen_remap_domain_mfn_array()
177 pgprot_t prot, unsigned int domid, in xen_remap_domain_gfn_range() argument
[all …]
/openbmc/linux/fs/affs/
H A 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 …]

12345678910>>...28