| /linux-6.15/tools/testing/selftests/net/ |
| H A D | cmsg_ip.sh | 54 [ $p == "u" ] && prot=UDP 55 [ $p == "U" ] && prot=UDP 56 [ $p == "i" ] && prot=ICMP 57 [ $p == "r" ] && prot=RAW 86 [ $p == "u" ] && prot=UDP 87 [ $p == "U" ] && prot=UDP 88 [ $p == "i" ] && prot=ICMP 89 [ $p == "r" ] && prot=RAW 140 [ $p == "u" ] && prot=UDP 141 [ $p == "U" ] && prot=UDP [all …]
|
| H A D | cmsg_time.sh | 64 [ $p == "u" ] && prot=UDPv${i:1:2} 65 [ $p == "i" ] && prot=ICMPv${i:1:2} 66 [ $p == "r" ] && prot=RAWv${i:1:2} 69 check_result $? "$ts" "" "$prot - no options" 72 check_result $? "$ts" "2" "$prot - ts cnt" 75 check_result $? "$ts" "OK" "$prot - ts0 SCHED" 78 check_result $? "$ts" "OK" "$prot - ts0 SND" 82 check_result $? "$ts" "OK" "$prot - TXTIME abs" 91 check_result $? "$ts" "OK" "$prot - TXTIME rel" $xfail
|
| /linux-6.15/net/ipv6/ |
| H A 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.15/net/ipv4/ |
| H A 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.15/arch/powerpc/mm/ |
| H A D | ioremap.c | 13 pgprot_t prot = pgprot_noncached(PAGE_KERNEL); in ioremap() local 16 return __ioremap_caller(addr, size, prot, caller); in ioremap() 22 pgprot_t prot = pgprot_noncached_wc(PAGE_KERNEL); in ioremap_wc() local 25 return __ioremap_caller(addr, size, prot, caller); in ioremap_wc() 31 pgprot_t prot = pgprot_cached(PAGE_KERNEL); in ioremap_coherent() local 34 return __ioremap_caller(addr, size, prot, caller); in ioremap_coherent() 37 void __iomem *ioremap_prot(phys_addr_t addr, size_t size, pgprot_t prot) in ioremap_prot() argument 39 pte_t pte = __pte(pgprot_val(prot)); in ioremap_prot() 51 unsigned long size, pgprot_t prot) in early_ioremap_range() argument 56 int err = map_kernel_page(ea + i, pa + i, pgprot_nx(prot)); in early_ioremap_range()
|
| /linux-6.15/arch/powerpc/include/asm/ |
| H A 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.15/arch/arm/include/asm/ |
| H A D | pgtable.h | 111 #define __pgprot_modify(prot,mask,bits) \ argument 114 #define pgprot_noncached(prot) \ argument 117 #define pgprot_writecombine(prot) \ argument 120 #define pgprot_stronglyordered(prot) \ argument 123 #define pgprot_device(prot) \ argument 127 #define pgprot_dmacoherent(prot) \ argument 134 #define pgprot_dmacoherent(prot) \ argument 168 #define pfn_pte(pfn,prot) __pte(__pfn_to_phys(pfn) | pgprot_val(prot)) argument 171 #define mk_pte(page,prot) pfn_pte(page_to_pfn(page), prot) argument 219 pte_val(pte) &= ~pgprot_val(prot); in clear_pte_bit() [all …]
|
| /linux-6.15/arch/arm64/include/asm/ |
| H A D | mman.h | 14 static inline unsigned long arch_calc_vm_prot_bits(unsigned long prot, in arch_calc_vm_prot_bits() argument 19 if (system_supports_bti() && (prot & PROT_BTI)) in arch_calc_vm_prot_bits() 22 if (system_supports_mte() && (prot & PROT_MTE)) in arch_calc_vm_prot_bits() 35 #define arch_calc_vm_prot_bits(prot, pkey) arch_calc_vm_prot_bits(prot, pkey) argument 56 static inline bool arch_validate_prot(unsigned long prot, in arch_validate_prot() argument 67 return (prot & ~supported) == 0; in arch_validate_prot() 69 #define arch_validate_prot(prot, addr) arch_validate_prot(prot, addr) argument
|
| H A D | pgalloc.h | 24 static inline void __pud_populate(pud_t *pudp, phys_addr_t pmdp, pudval_t prot) in __pud_populate() argument 26 set_pud(pudp, __pud(__phys_to_pud_val(pmdp) | prot)); in __pud_populate() 37 static inline void __pud_populate(pud_t *pudp, phys_addr_t pmdp, pudval_t prot) in __pud_populate() argument 45 static inline void __p4d_populate(p4d_t *p4dp, phys_addr_t pudp, p4dval_t prot) in __p4d_populate() argument 48 set_p4d(p4dp, __p4d(__phys_to_p4d_val(pudp) | prot)); in __p4d_populate() 66 static inline void __p4d_populate(p4d_t *p4dp, phys_addr_t pudp, p4dval_t prot) in __p4d_populate() argument 74 static inline void __pgd_populate(pgd_t *pgdp, phys_addr_t p4dp, pgdval_t prot) in __pgd_populate() argument 77 set_pgd(pgdp, __pgd(__phys_to_pgd_val(p4dp) | prot)); in __pgd_populate() 89 static inline void __pgd_populate(pgd_t *pgdp, phys_addr_t p4dp, pgdval_t prot) in __pgd_populate() argument 99 pmdval_t prot) in __pmd_populate() argument [all …]
|
| /linux-6.15/arch/x86/mm/ |
| H A 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.15/net/tls/ |
| H A D | tls.h | 145 int init_prot_info(struct tls_prot_info *prot, 314 if (prot->version != TLS_1_3_VERSION && in tls_advance_record_sn() 317 prot->iv_size); in tls_advance_record_sn() 325 if (prot->version == TLS_1_3_VERSION || in tls_xor_iv_with_seq() 337 size_t pkt_len, iv_size = prot->iv_size; in tls_fill_prepend() 339 pkt_len = plaintext_len + prot->tag_size; in tls_fill_prepend() 340 if (prot->version != TLS_1_3_VERSION && in tls_fill_prepend() 351 buf[0] = prot->version == TLS_1_3_VERSION ? in tls_fill_prepend() 365 if (prot->version != TLS_1_3_VERSION) { in tls_make_aad() 369 size += prot->tag_size; in tls_make_aad() [all …]
|
| H A D | tls_sw.c | 558 prot->iv_size + prot->salt_size); in tls_do_encryption() 1069 prot->overhead_size; in tls_sw_sendmsg_locked() 1548 prot->iv_size + prot->salt_size); in tls_decrypt_sg() 1552 prot->iv_size); in tls_decrypt_sg() 1561 prot->tail_size, in tls_decrypt_sg() 1623 if (prot->tail_size) in tls_decrypt_sg() 1913 max_rec = prot->overhead_size - prot->tail_size + TLS_MAX_PAYLOAD_SIZE; in tls_read_flush_backlog() 2426 prot->tail_size) { in tls_rx_msg_size() 2699 prot->tail_size = 1; in init_prot_info() 2702 prot->tail_size = 0; in init_prot_info() [all …]
|
| H A D | tls_main.c | 928 build_protos(tls_prots[TLSV6], prot); in tls_build_proto() 940 build_protos(tls_prots[TLSV4], prot); in tls_build_proto() 952 prot[TLS_BASE][TLS_BASE] = *base; in build_protos() 958 prot[TLS_SW][TLS_BASE] = prot[TLS_BASE][TLS_BASE]; in build_protos() 962 prot[TLS_BASE][TLS_SW] = prot[TLS_BASE][TLS_BASE]; in build_protos() 967 prot[TLS_SW][TLS_SW] = prot[TLS_SW][TLS_BASE]; in build_protos() 973 prot[TLS_HW][TLS_BASE] = prot[TLS_BASE][TLS_BASE]; in build_protos() 977 prot[TLS_HW][TLS_SW] = prot[TLS_BASE][TLS_SW]; in build_protos() 981 prot[TLS_BASE][TLS_HW] = prot[TLS_BASE][TLS_SW]; in build_protos() 983 prot[TLS_SW][TLS_HW] = prot[TLS_SW][TLS_SW]; in build_protos() [all …]
|
| /linux-6.15/arch/m68k/include/asm/ |
| H A 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
|
| H A D | video.h | 8 static inline pgprot_t pgprot_framebuffer(pgprot_t prot, in pgprot_framebuffer() argument 14 pgprot_val(prot) |= SUN3_PAGE_NOCACHE; in pgprot_framebuffer() 17 pgprot_val(prot) |= _PAGE_NOCACHE030; in pgprot_framebuffer() 19 pgprot_val(prot) &= _CACHEMASK040; in pgprot_framebuffer() 21 pgprot_val(prot) |= _PAGE_NOCACHE_S; in pgprot_framebuffer() 26 return prot; in pgprot_framebuffer()
|
| /linux-6.15/arch/sh/include/asm/ |
| H A D | pgtable.h | 121 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()
|
| /linux-6.15/include/net/ |
| H A D | protocol.h | 86 struct proto *prot; member 103 int inet_add_protocol(const struct net_protocol *prot, unsigned char num); 104 int inet_del_protocol(const struct net_protocol *prot, unsigned char num); 105 int inet_add_offload(const struct net_offload *prot, unsigned char num); 106 int inet_del_offload(const struct net_offload *prot, unsigned char num); 111 int inet6_add_protocol(const struct inet6_protocol *prot, unsigned char num); 112 int inet6_del_protocol(const struct inet6_protocol *prot, unsigned char num); 116 int inet6_add_offload(const struct net_offload *prot, unsigned char num); 117 int inet6_del_offload(const struct net_offload *prot, unsigned char num);
|
| /linux-6.15/arch/sparc/include/asm/ |
| H A 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.15/arch/arm64/mm/ |
| H A D | mmap.c | 86 pteval_t prot; in vm_get_page_prot() local 90 prot = _PAGE_GCS_RO; in vm_get_page_prot() 92 prot = pgprot_val(protection_map[vm_flags & in vm_get_page_prot() 97 prot |= PTE_GP; in vm_get_page_prot() 110 prot |= PTE_ATTRINDX(MT_NORMAL_TAGGED); in vm_get_page_prot() 115 prot |= PTE_PO_IDX_0; in vm_get_page_prot() 117 prot |= PTE_PO_IDX_1; in vm_get_page_prot() 119 prot |= PTE_PO_IDX_2; in vm_get_page_prot() 123 return __pgprot(prot); in vm_get_page_prot()
|
| /linux-6.15/arch/arm/mm/ |
| H A 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 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()
|
| /linux-6.15/include/xen/ |
| H A 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.15/tools/testing/selftests/landlock/ |
| H A D | net_test.c | 297 .prot = { in FIXTURE_VARIANT_ADD() 309 .prot = { in FIXTURE_VARIANT_ADD() 320 .prot = { in FIXTURE_VARIANT_ADD() 331 .prot = { in FIXTURE_VARIANT_ADD() 343 .prot = { in FIXTURE_VARIANT_ADD() 354 .prot = { in FIXTURE_VARIANT_ADD() 365 .prot = { in FIXTURE_VARIANT_ADD() 375 .prot = { in FIXTURE_VARIANT_ADD() 385 .prot = { in FIXTURE_VARIANT_ADD() 395 .prot = { in FIXTURE_VARIANT_ADD() [all …]
|
| /linux-6.15/arch/powerpc/kernel/ |
| H A 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.15/fs/affs/ |
| H A D | amigaffs.c | 403 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-6.15/tools/testing/selftests/mm/ |
| H A D | ksm_tests.c | 146 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() 209 if (mprotect(map_ptr, map_size, prot)) { in allocate_memory() 626 map_ptr = allocate_memory(NULL, prot, mapping, '*', map_size); in ksm_merge_time() 780 int prot = 0; in main() local 794 prot = str_to_prot(optarg); in main() 874 if (prot == 0) in main() [all …]
|