/linux-6.1.9/mm/ |
D | mlock.c | 364 unsigned long start, unsigned long end, vm_flags_t newflags) in mlock_vma_pages_range() argument 381 if (newflags & VM_LOCKED) in mlock_vma_pages_range() 382 newflags |= VM_IO; in mlock_vma_pages_range() 383 WRITE_ONCE(vma->vm_flags, newflags); in mlock_vma_pages_range() 389 if (newflags & VM_IO) { in mlock_vma_pages_range() 390 newflags &= ~VM_IO; in mlock_vma_pages_range() 391 WRITE_ONCE(vma->vm_flags, newflags); in mlock_vma_pages_range() 405 unsigned long start, unsigned long end, vm_flags_t newflags) in mlock_fixup() argument 413 if (newflags == oldflags || (oldflags & VM_SPECIAL) || in mlock_fixup() 420 *prev = vma_merge(mm, *prev, start, end, newflags, vma->anon_vma, in mlock_fixup() [all …]
|
D | mprotect.c | 550 unsigned long end, unsigned long newflags) in mprotect_fixup() argument 560 if (newflags == oldflags) { in mprotect_fixup() 572 (newflags & VM_ACCESS_FLAGS) == 0) { in mprotect_fixup() 573 pgprot_t new_pgprot = vm_get_page_prot(newflags); in mprotect_fixup() 587 if (newflags & VM_WRITE) { in mprotect_fixup() 589 if (!may_expand_vm(mm, newflags, nrpages) && in mprotect_fixup() 597 newflags |= VM_ACCOUNT; in mprotect_fixup() 605 *pprev = vma_merge(mm, *pprev, start, end, newflags, in mprotect_fixup() 610 VM_WARN_ON((vma->vm_flags ^ newflags) & ~VM_SOFTDIRTY); in mprotect_fixup() 633 vma->vm_flags = newflags; in mprotect_fixup() [all …]
|
/linux-6.1.9/arch/x86/kernel/ |
D | vm86_32.c | 559 newflags |= X86_EFLAGS_TF in handle_vm86_fault() 603 unsigned long newflags; in handle_vm86_fault() local 605 newflags = popl(ssp, sp, simulate_sigsegv); in handle_vm86_fault() 608 newflags = popw(ssp, sp, simulate_sigsegv); in handle_vm86_fault() 614 set_vflags_long(newflags, regs); in handle_vm86_fault() 616 set_vflags_short(newflags, regs); in handle_vm86_fault() 640 unsigned long newflags; in handle_vm86_fault() local 644 newflags = popl(ssp, sp, simulate_sigsegv); in handle_vm86_fault() 649 newflags = popw(ssp, sp, simulate_sigsegv); in handle_vm86_fault() 656 set_vflags_long(newflags, regs); in handle_vm86_fault() [all …]
|
/linux-6.1.9/arch/x86/include/asm/ |
D | tlbflush.h | 264 unsigned long newflags, in pte_flags_need_flush() argument 281 unsigned long diff = oldflags ^ newflags; in pte_flags_need_flush()
|
/linux-6.1.9/arch/s390/kvm/ |
D | vsie.c | 107 int newflags, cpuflags = atomic_read(&scb_o->cpuflags); in prepare_cpuflags() local 119 newflags = CPUSTAT_ZARCH; in prepare_cpuflags() 121 newflags |= CPUSTAT_GED; in prepare_cpuflags() 125 newflags |= CPUSTAT_GED2; in prepare_cpuflags() 128 newflags |= cpuflags & CPUSTAT_P; in prepare_cpuflags() 130 newflags |= cpuflags & CPUSTAT_SM; in prepare_cpuflags() 132 newflags |= cpuflags & CPUSTAT_IBS; in prepare_cpuflags() 134 newflags |= cpuflags & CPUSTAT_KSS; in prepare_cpuflags() 136 atomic_set(&scb_s->cpuflags, newflags); in prepare_cpuflags()
|
/linux-6.1.9/drivers/hid/usbhid/ |
D | hiddev.c | 666 int newflags; in hiddev_ioctl() local 668 if (get_user(newflags, (int __user *)arg)) { in hiddev_ioctl() 673 if ((newflags & ~HIDDEV_FLAGS) != 0 || in hiddev_ioctl() 674 ((newflags & HIDDEV_FLAG_REPORT) != 0 && in hiddev_ioctl() 675 (newflags & HIDDEV_FLAG_UREF) == 0)) in hiddev_ioctl() 678 list->flags = newflags; in hiddev_ioctl()
|
/linux-6.1.9/lib/ |
D | dynamic_debug.c | 178 unsigned int newflags; in ddebug_change() local 245 newflags = (dp->flags & modifiers->mask) | modifiers->flags; in ddebug_change() 246 if (newflags == dp->flags) in ddebug_change() 250 if (!(newflags & _DPRINTK_FLAGS_PRINT)) in ddebug_change() 252 } else if (newflags & _DPRINTK_FLAGS_PRINT) { in ddebug_change() 260 ddebug_describe_flags(newflags, &nbuf)); in ddebug_change() 261 dp->flags = newflags; in ddebug_change()
|
/linux-6.1.9/fs/btrfs/ |
D | ioctl.c | 5140 u64 newflags; in btrfs_ioctl_set_features() local 5180 newflags = btrfs_super_compat_flags(super_block); in btrfs_ioctl_set_features() 5181 newflags |= flags[0].compat_flags & flags[1].compat_flags; in btrfs_ioctl_set_features() 5182 newflags &= ~(flags[0].compat_flags & ~flags[1].compat_flags); in btrfs_ioctl_set_features() 5183 btrfs_set_super_compat_flags(super_block, newflags); in btrfs_ioctl_set_features() 5185 newflags = btrfs_super_compat_ro_flags(super_block); in btrfs_ioctl_set_features() 5186 newflags |= flags[0].compat_ro_flags & flags[1].compat_ro_flags; in btrfs_ioctl_set_features() 5187 newflags &= ~(flags[0].compat_ro_flags & ~flags[1].compat_ro_flags); in btrfs_ioctl_set_features() 5188 btrfs_set_super_compat_ro_flags(super_block, newflags); in btrfs_ioctl_set_features() 5190 newflags = btrfs_super_incompat_flags(super_block); in btrfs_ioctl_set_features() [all …]
|
/linux-6.1.9/arch/x86/kernel/cpu/sgx/ |
D | encl.c | 551 unsigned long end, unsigned long newflags) in sgx_vma_mprotect() argument 553 return sgx_encl_may_map(vma->vm_private_data, start, end, newflags); in sgx_vma_mprotect()
|
/linux-6.1.9/include/linux/ |
D | mm.h | 555 unsigned long end, unsigned long newflags); 2034 unsigned long end, unsigned long newflags);
|
/linux-6.1.9/fs/cifs/ |
D | connect.c | 2656 unsigned int newflags = new->mnt_cifs_flags & CIFS_MOUNT_MASK; in compare_mount_options() local 2662 newflags &= ~CIFS_MOUNT_SERVER_INUM; in compare_mount_options() 2664 if (oldflags != newflags) in compare_mount_options()
|
/linux-6.1.9/fs/ocfs2/ |
D | dlmglue.c | 889 unsigned long newflags) in lockres_set_flags() argument 895 lockres->l_flags = newflags; in lockres_set_flags()
|
/linux-6.1.9/security/selinux/ |
D | hooks.c | 842 char newflags = new->flags & SE_MNTMASK; in selinux_cmp_sb_context() local 844 if (oldflags != newflags) in selinux_cmp_sb_context()
|