/linux-6.1.9/net/ipv6/ |
D | protocol.c | 28 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-6.1.9/net/ipv4/ |
D | protocol.c | 32 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-6.1.9/arch/powerpc/mm/ |
D | ioremap.c | 14 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-6.1.9/tools/testing/selftests/net/ |
D | cmsg_ipv6.sh | 53 [ $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 …]
|
D | cmsg_time.sh | 48 [ $p == "u" ] && prot=UDPv${i:1:2} 49 [ $p == "i" ] && prot=ICMPv${i:1:2} 50 [ $p == "r" ] && prot=RAWv${i:1:2} 53 check_result $? "$ts" "" "$prot - no options" 56 check_result $? "$ts" "2" "$prot - ts cnt" 59 check_result $? "$ts" "OK" "$prot - ts0 SCHED" 62 check_result $? "$ts" "OK" "$prot - ts0 SND" 66 check_result $? "$ts" "OK" "$prot - TXTIME abs" 72 check_result $? "$ts" "OK" "$prot - TXTIME rel"
|
/linux-6.1.9/arch/arm64/include/asm/ |
D | mman.h | 9 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 38 static inline bool arch_validate_prot(unsigned long prot, in arch_validate_prot() argument 49 return (prot & ~supported) == 0; in arch_validate_prot() 51 #define arch_validate_prot(prot, addr) arch_validate_prot(prot, addr) argument
|
D | pgalloc.h | 23 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-6.1.9/arch/powerpc/include/asm/ |
D | mman.h | 17 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()
|
/linux-6.1.9/arch/arm/include/asm/ |
D | pgtable.h | 112 #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 …]
|
D | pgtable-nommu.h | 50 #define pgprot_noncached(prot) (prot) argument 51 #define pgprot_writecombine(prot) (prot) argument 52 #define pgprot_device(prot) (prot) argument
|
/linux-6.1.9/net/tls/ |
D | tls.h | 249 tls_advance_record_sn(struct sock *sk, struct tls_prot_info *prot, in tls_advance_record_sn() argument 252 if (tls_bigint_increment(ctx->rec_seq, prot->rec_seq_size)) in tls_advance_record_sn() 255 if (prot->version != TLS_1_3_VERSION && in tls_advance_record_sn() 256 prot->cipher_type != TLS_CIPHER_CHACHA20_POLY1305) in tls_advance_record_sn() 257 tls_bigint_increment(ctx->iv + prot->salt_size, in tls_advance_record_sn() 258 prot->iv_size); in tls_advance_record_sn() 262 tls_xor_iv_with_seq(struct tls_prot_info *prot, char *iv, char *seq) in tls_xor_iv_with_seq() argument 266 if (prot->version == TLS_1_3_VERSION || in tls_xor_iv_with_seq() 267 prot->cipher_type == TLS_CIPHER_CHACHA20_POLY1305) { in tls_xor_iv_with_seq() 277 struct tls_prot_info *prot = &ctx->prot_info; in tls_fill_prepend() local [all …]
|
D | tls_sw.c | 150 static int tls_padding_length(struct tls_prot_info *prot, struct sk_buff *skb, in tls_padding_length() argument 158 if (prot->version == TLS_1_3_VERSION) { in tls_padding_length() 164 if (offset < prot->prepend_size) in tls_padding_length() 230 struct tls_prot_info *prot = &tls_ctx->prot_info; in tls_do_decryption() local 235 aead_request_set_ad(aead_req, prot->aad_size); in tls_do_decryption() 237 data_len + prot->tag_size, in tls_do_decryption() 266 struct tls_prot_info *prot = &tls_ctx->prot_info; in tls_trim_both_msgs() local 272 target_size += prot->overhead_size; in tls_trim_both_msgs() 289 struct tls_prot_info *prot = &tls_ctx->prot_info; in tls_clone_plaintext_msg() local 305 skip = prot->prepend_size + msg_pl->sg.size; in tls_clone_plaintext_msg() [all …]
|
D | tls_main.c | 84 static void build_protos(struct proto prot[TLS_NUM_CONFIG][TLS_NUM_CONFIG], 963 struct proto *prot = READ_ONCE(sk->sk_prot); in tls_build_proto() local 967 unlikely(prot != smp_load_acquire(&saved_tcpv6_prot))) { in tls_build_proto() 969 if (likely(prot != saved_tcpv6_prot)) { in tls_build_proto() 970 build_protos(tls_prots[TLSV6], prot); in tls_build_proto() 973 smp_store_release(&saved_tcpv6_prot, prot); in tls_build_proto() 979 unlikely(prot != smp_load_acquire(&saved_tcpv4_prot))) { in tls_build_proto() 981 if (likely(prot != saved_tcpv4_prot)) { in tls_build_proto() 982 build_protos(tls_prots[TLSV4], prot); in tls_build_proto() 985 smp_store_release(&saved_tcpv4_prot, prot); in tls_build_proto() [all …]
|
/linux-6.1.9/arch/x86/mm/ |
D | iomap_32.c | 21 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-6.1.9/include/net/ |
D | protocol.h | 83 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);
|
/linux-6.1.9/arch/sh/include/asm/ |
D | pgtable.h | 120 static inline bool __pte_access_permitted(pte_t pte, u64 prot) in __pte_access_permitted() argument 122 return (pte_val(pte) & (prot | _PAGE_SPECIAL)) == prot; in __pte_access_permitted() 128 u64 prot = _PAGE_PRESENT; in pte_access_permitted() local 130 prot |= _PAGE_EXT(_PAGE_EXT_KERN_READ | _PAGE_EXT_USER_READ); in pte_access_permitted() 132 prot |= _PAGE_EXT(_PAGE_EXT_KERN_WRITE | _PAGE_EXT_USER_WRITE); in pte_access_permitted() 133 return __pte_access_permitted(pte, prot); in pte_access_permitted() 138 u64 prot = _PAGE_PRESENT | _PAGE_USER; in pte_access_permitted() local 141 prot |= _PAGE_RW; in pte_access_permitted() 142 return __pte_access_permitted(pte, prot); in pte_access_permitted()
|
/linux-6.1.9/arch/m68k/include/asm/ |
D | pgtable_mm.h | 165 # 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
|
/linux-6.1.9/arch/sparc/include/asm/ |
D | mman.h | 30 #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()
|
/linux-6.1.9/tools/testing/selftests/vm/ |
D | ksm_tests.c | 86 int prot = 0; in str_to_prot() local 89 prot |= PROT_READ; in str_to_prot() 91 prot |= PROT_WRITE; in str_to_prot() 93 prot |= PROT_EXEC; in str_to_prot() 95 return prot; in str_to_prot() 132 static void *allocate_memory(void *ptr, int prot, int mapping, char data, size_t map_size) in allocate_memory() argument 141 if (mprotect(map_ptr, map_size, prot)) { in allocate_memory() 255 static int check_ksm_merge(int mapping, int prot, long page_count, int timeout, size_t page_size) in check_ksm_merge() argument 266 map_ptr = allocate_memory(NULL, prot, mapping, '*', page_size * page_count); in check_ksm_merge() 286 static int check_ksm_unmerge(int mapping, int prot, int timeout, size_t page_size) in check_ksm_unmerge() argument [all …]
|
/linux-6.1.9/arch/arm/mm/ |
D | idmap.c | 25 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-6.1.9/arch/powerpc/kernel/ |
D | syscalls.c | 40 unsigned long prot, unsigned long flags, in do_mmap2() argument 43 if (!arch_validate_prot(prot, addr)) in do_mmap2() 49 return ksys_mmap_pgoff(addr, len, prot, flags, fd, off >> shift); in do_mmap2() 53 unsigned long, prot, unsigned long, flags, in SYSCALL_DEFINE6() argument 56 return do_mmap2(addr, len, prot, flags, fd, pgoff, PAGE_SHIFT-12); in SYSCALL_DEFINE6() 62 unsigned long, prot, unsigned long, flags, in COMPAT_SYSCALL_DEFINE6() argument 65 return do_mmap2(addr, len, prot, flags, fd, off_4k, PAGE_SHIFT-12); in COMPAT_SYSCALL_DEFINE6() 70 unsigned long, prot, unsigned long, flags, in SYSCALL_DEFINE6() argument 73 return do_mmap2(addr, len, prot, flags, fd, offset, PAGE_SHIFT); in SYSCALL_DEFINE6()
|
/linux-6.1.9/include/xen/ |
D | xen-ops.h | 48 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 …]
|
/linux-6.1.9/include/linux/ |
D | mman.h | 89 #define arch_calc_vm_prot_bits(prot, pkey) 0 argument 103 static inline bool arch_validate_prot(unsigned long prot, unsigned long addr) in arch_validate_prot() argument 105 return (prot & ~(PROT_READ | PROT_WRITE | PROT_EXEC | PROT_SEM)) == 0; in arch_validate_prot() 138 calc_vm_prot_bits(unsigned long prot, unsigned long pkey) in calc_vm_prot_bits() argument 140 return _calc_vm_trans(prot, PROT_READ, VM_READ ) | in calc_vm_prot_bits() 141 _calc_vm_trans(prot, PROT_WRITE, VM_WRITE) | in calc_vm_prot_bits() 142 _calc_vm_trans(prot, PROT_EXEC, VM_EXEC) | in calc_vm_prot_bits() 143 arch_calc_vm_prot_bits(prot, pkey); in calc_vm_prot_bits()
|
/linux-6.1.9/fs/affs/ |
D | amigaffs.c | 391 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 …]
|
/linux-6.1.9/arch/powerpc/include/asm/nohash/ |
D | pgtable.h | 213 #define pgprot_noncached(prot) (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \ argument 216 #define pgprot_noncached_wc(prot) (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \ argument 219 #define pgprot_cached(prot) (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \ argument 223 #define pgprot_cached_wthru(prot) (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \ argument 226 #define pgprot_cached_wthru(prot) pgprot_noncached(prot) argument 229 #define pgprot_cached_noncoherent(prot) \ argument 230 (__pgprot(pgprot_val(prot) & ~_PAGE_CACHE_CTL))
|