Home
last modified time | relevance | path

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

/linux/mm/
H A Dmlock.c424 unsigned long start, unsigned long end, vm_flags_t newflags) in mlock_vma_pages_range() argument
442 if (newflags & VM_LOCKED) in mlock_vma_pages_range()
443 newflags |= VM_IO; in mlock_vma_pages_range()
445 vm_flags_reset_once(vma, newflags); in mlock_vma_pages_range()
451 if (newflags & VM_IO) { in mlock_vma_pages_range()
452 newflags &= ~VM_IO; in mlock_vma_pages_range()
453 vm_flags_reset_once(vma, newflags); in mlock_vma_pages_range()
468 unsigned long end, vm_flags_t newflags) in mlock_fixup() argument
475 if (newflags == oldflags || (oldflags & VM_SPECIAL) || in mlock_fixup()
481 vma = vma_modify_flags(vmi, *prev, vma, start, end, newflags); in mlock_fixup()
[all …]
H A Dmprotect.c607 unsigned long start, unsigned long end, unsigned long newflags) in mprotect_fixup()
619 if (newflags == oldflags) { in mprotect_fixup()
631 (newflags & VM_ACCESS_FLAGS) == 0) { in mprotect_fixup()
632 pgprot_t new_pgprot = vm_get_page_prot(newflags); in mprotect_fixup()
649 if (newflags & VM_WRITE) { in mprotect_fixup()
651 if (!may_expand_vm(mm, newflags, nrpages) && in mprotect_fixup()
659 newflags |= VM_ACCOUNT; in mprotect_fixup()
663 newflags &= ~VM_ACCOUNT; in mprotect_fixup()
666 vma = vma_modify_flags(vmi, *pprev, vma, start, end, newflags); in mprotect_fixup()
679 vm_flags_reset(vma, newflags); in mprotect_fixup()
605 mprotect_fixup(struct vma_iterator * vmi,struct mmu_gather * tlb,struct vm_area_struct * vma,struct vm_area_struct ** pprev,unsigned long start,unsigned long end,unsigned long newflags) mprotect_fixup() argument
784 unsigned long newflags; do_mprotect_pkey() local
[all...]
H A Dmseal.c74 unsigned long end, vm_flags_t newflags) in mseal_fixup()
79 if (newflags == oldflags) in mseal_fixup()
82 vma = vma_modify_flags(vmi, *prev, vma, start, end, newflags); in mseal_fixup()
146 vm_flags_t newflags; in apply_mm_seal()
148 newflags = vma->vm_flags | VM_SEALED; in apply_mm_seal()
152 error = mseal_fixup(&vmi, vma, &prev, nstart, tmp, newflags); in apply_mm_seal()
73 mseal_fixup(struct vma_iterator * vmi,struct vm_area_struct * vma,struct vm_area_struct ** prev,unsigned long start,unsigned long end,vm_flags_t newflags) mseal_fixup() argument
145 vm_flags_t newflags; apply_mm_seal() local
/linux/arch/x86/kernel/
H A Dvm86_32.c559 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/fs/bcachefs/
H A Dfs-ioctl.c45 unsigned newflags = s->flags; in bch2_inode_flags_set() local
48 if (((newflags ^ oldflags) & (BCH_INODE_append|BCH_INODE_immutable)) && in bch2_inode_flags_set()
54 (newflags & (BCH_INODE_nodump|BCH_INODE_noatime)) != newflags) in bch2_inode_flags_set()
63 bi->bi_flags |= newflags; in bch2_inode_flags_set()
/linux/arch/x86/include/asm/
H A Dtlbflush.h297 unsigned long newflags, in pte_flags_need_flush() argument
315 unsigned long diff = oldflags ^ newflags; in pte_flags_need_flush()
/linux/drivers/hid/usbhid/
H A 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/lib/
H A Ddynamic_debug.c179 unsigned int newflags; in ddebug_change() local
246 newflags = (dp->flags & modifiers->mask) | modifiers->flags; in ddebug_change()
247 if (newflags == dp->flags) in ddebug_change()
251 if (!(newflags & _DPRINTK_FLAGS_PRINT)) in ddebug_change()
253 } else if (newflags & _DPRINTK_FLAGS_PRINT) { in ddebug_change()
261 ddebug_describe_flags(newflags, &nbuf)); in ddebug_change()
262 dp->flags = newflags; in ddebug_change()
/linux/fs/btrfs/
H A Dioctl.c4407 u64 newflags; in btrfs_ioctl_set_features() local
4447 newflags = btrfs_super_compat_flags(super_block); in btrfs_ioctl_set_features()
4448 newflags |= flags[0].compat_flags & flags[1].compat_flags; in btrfs_ioctl_set_features()
4449 newflags &= ~(flags[0].compat_flags & ~flags[1].compat_flags); in btrfs_ioctl_set_features()
4450 btrfs_set_super_compat_flags(super_block, newflags); in btrfs_ioctl_set_features()
4452 newflags = btrfs_super_compat_ro_flags(super_block); in btrfs_ioctl_set_features()
4453 newflags |= flags[0].compat_ro_flags & flags[1].compat_ro_flags; in btrfs_ioctl_set_features()
4454 newflags &= ~(flags[0].compat_ro_flags & ~flags[1].compat_ro_flags); in btrfs_ioctl_set_features()
4455 btrfs_set_super_compat_ro_flags(super_block, newflags); in btrfs_ioctl_set_features()
4457 newflags = btrfs_super_incompat_flags(super_block); in btrfs_ioctl_set_features()
[all …]
/linux/arch/x86/kernel/cpu/sgx/
H A Dencl.c571 unsigned long end, unsigned long newflags) in sgx_vma_mprotect() argument
573 return sgx_encl_may_map(vma->vm_private_data, start, end, newflags); in sgx_vma_mprotect()
/linux/tools/testing/vma/
H A Dvma_internal.h318 unsigned long end, unsigned long newflags);
/linux/fs/smb/client/
H A Dconnect.c2852 unsigned int newflags = new->mnt_cifs_flags & CIFS_MOUNT_MASK; in compare_mount_options() local
2858 newflags &= ~CIFS_MOUNT_SERVER_INUM; in compare_mount_options()
2860 if (oldflags != newflags) in compare_mount_options()
/linux/include/linux/
H A Dmm.h627 unsigned long end, unsigned long newflags);
2587 unsigned long start, unsigned long end, unsigned long newflags);
/linux/fs/ocfs2/
H A Ddlmglue.c889 unsigned long newflags) in lockres_set_flags() argument
895 lockres->l_flags = newflags; in lockres_set_flags()
/linux/security/selinux/
H A Dhooks.c882 char newflags = new->flags & SE_MNTMASK; in selinux_cmp_sb_context() local
884 if (oldflags != newflags) in selinux_cmp_sb_context()