Home
last modified time | relevance | path

Searched refs:newflags (Results 1 – 11 of 11) sorted by relevance

/Linux-v5.10/mm/
Dmprotect.c400 unsigned long start, unsigned long end, unsigned long newflags) in mprotect_fixup() argument
410 if (newflags == oldflags) { in mprotect_fixup()
422 (newflags & VM_ACCESS_FLAGS) == 0) { in mprotect_fixup()
423 pgprot_t new_pgprot = vm_get_page_prot(newflags); in mprotect_fixup()
437 if (newflags & VM_WRITE) { in mprotect_fixup()
439 if (!may_expand_vm(mm, newflags, nrpages) && in mprotect_fixup()
447 newflags |= VM_ACCOUNT; in mprotect_fixup()
455 *pprev = vma_merge(mm, *pprev, start, end, newflags, in mprotect_fixup()
460 VM_WARN_ON((vma->vm_flags ^ newflags) & ~VM_SOFTDIRTY); in mprotect_fixup()
483 vma->vm_flags = newflags; in mprotect_fixup()
[all …]
Dmlock.c525 unsigned long start, unsigned long end, vm_flags_t newflags) in mlock_fixup() argument
531 int lock = !!(newflags & VM_LOCKED); in mlock_fixup()
534 if (newflags == vma->vm_flags || (vma->vm_flags & VM_SPECIAL) || in mlock_fixup()
541 *prev = vma_merge(mm, *prev, start, end, newflags, vma->anon_vma, in mlock_fixup()
579 vma->vm_flags = newflags; in mlock_fixup()
611 vm_flags_t newflags = vma->vm_flags & VM_LOCKED_CLEAR_MASK; in apply_vma_lock_flags() local
613 newflags |= flags; in apply_vma_lock_flags()
619 error = mlock_fixup(vma, &prev, nstart, tmp, newflags); in apply_vma_lock_flags()
791 vm_flags_t newflags; in apply_mlockall_flags() local
793 newflags = vma->vm_flags & VM_LOCKED_CLEAR_MASK; in apply_mlockall_flags()
[all …]
/Linux-v5.10/arch/x86/kernel/
Dvm86_32.c593 newflags |= X86_EFLAGS_TF in handle_vm86_fault()
637 unsigned long newflags; in handle_vm86_fault() local
639 newflags = popl(ssp, sp, simulate_sigsegv); in handle_vm86_fault()
642 newflags = popw(ssp, sp, simulate_sigsegv); in handle_vm86_fault()
648 set_vflags_long(newflags, regs); in handle_vm86_fault()
650 set_vflags_short(newflags, regs); in handle_vm86_fault()
674 unsigned long newflags; in handle_vm86_fault() local
678 newflags = popl(ssp, sp, simulate_sigsegv); in handle_vm86_fault()
683 newflags = popw(ssp, sp, simulate_sigsegv); in handle_vm86_fault()
690 set_vflags_long(newflags, regs); in handle_vm86_fault()
[all …]
/Linux-v5.10/arch/s390/kvm/
Dvsie.c106 int newflags, cpuflags = atomic_read(&scb_o->cpuflags); in prepare_cpuflags() local
118 newflags = CPUSTAT_ZARCH; in prepare_cpuflags()
120 newflags |= CPUSTAT_GED; in prepare_cpuflags()
124 newflags |= CPUSTAT_GED2; in prepare_cpuflags()
127 newflags |= cpuflags & CPUSTAT_P; in prepare_cpuflags()
129 newflags |= cpuflags & CPUSTAT_SM; in prepare_cpuflags()
131 newflags |= cpuflags & CPUSTAT_IBS; in prepare_cpuflags()
133 newflags |= cpuflags & CPUSTAT_KSS; in prepare_cpuflags()
135 atomic_set(&scb_s->cpuflags, newflags); in prepare_cpuflags()
/Linux-v5.10/drivers/hid/usbhid/
Dhiddev.c666 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-v5.10/lib/
Ddynamic_debug.c153 unsigned int newflags; in ddebug_change() local
205 newflags = (dp->flags & modifiers->mask) | modifiers->flags; in ddebug_change()
206 if (newflags == dp->flags) in ddebug_change()
215 dp->flags = newflags; in ddebug_change()
/Linux-v5.10/fs/btrfs/
Dioctl.c4732 u64 newflags; in btrfs_ioctl_set_features() local
4772 newflags = btrfs_super_compat_flags(super_block); in btrfs_ioctl_set_features()
4773 newflags |= flags[0].compat_flags & flags[1].compat_flags; in btrfs_ioctl_set_features()
4774 newflags &= ~(flags[0].compat_flags & ~flags[1].compat_flags); in btrfs_ioctl_set_features()
4775 btrfs_set_super_compat_flags(super_block, newflags); in btrfs_ioctl_set_features()
4777 newflags = btrfs_super_compat_ro_flags(super_block); in btrfs_ioctl_set_features()
4778 newflags |= flags[0].compat_ro_flags & flags[1].compat_ro_flags; in btrfs_ioctl_set_features()
4779 newflags &= ~(flags[0].compat_ro_flags & ~flags[1].compat_ro_flags); in btrfs_ioctl_set_features()
4780 btrfs_set_super_compat_ro_flags(super_block, newflags); in btrfs_ioctl_set_features()
4782 newflags = btrfs_super_incompat_flags(super_block); in btrfs_ioctl_set_features()
[all …]
/Linux-v5.10/fs/cifs/
Dconnect.c3428 unsigned int newflags = new->mnt_cifs_flags & CIFS_MOUNT_MASK; in compare_mount_options() local
3434 newflags &= ~CIFS_MOUNT_SERVER_INUM; in compare_mount_options()
3436 if (oldflags != newflags) in compare_mount_options()
/Linux-v5.10/fs/ocfs2/
Ddlmglue.c890 unsigned long newflags) in lockres_set_flags() argument
896 lockres->l_flags = newflags; in lockres_set_flags()
/Linux-v5.10/include/linux/
Dmm.h1853 unsigned long end, unsigned long newflags);
/Linux-v5.10/security/selinux/
Dhooks.c842 char newflags = new->flags & SE_MNTMASK; in selinux_cmp_sb_context() local
844 if (oldflags != newflags) in selinux_cmp_sb_context()