| /linux/tools/testing/selftests/mount_setattr/ |
| H A D | mount_setattr_test.c | 468 unsigned int old_flags = 0, new_flags = 0, expected_flags = 0; in TEST_F() local 480 old_flags = read_mnt_flags("/mnt/A"); in TEST_F() 481 ASSERT_GT(old_flags, 0); in TEST_F() 514 expected_flags = old_flags; in TEST_F() 532 unsigned int old_flags = 0, new_flags = 0, expected_flags = 0; in TEST_F() local 541 old_flags = read_mnt_flags("/mnt/A"); in TEST_F() 542 ASSERT_GT(old_flags, 0); in TEST_F() 546 expected_flags = old_flags; in TEST_F() 556 ASSERT_EQ(new_flags, old_flags); in TEST_F() 559 ASSERT_EQ(new_flags, old_flags); in TEST_F() [all …]
|
| /linux/mm/ |
| H A D | mmzone.c | 101 unsigned long old_flags, flags; in folio_xchg_last_cpupid() local 104 old_flags = READ_ONCE(folio->flags.f); in folio_xchg_last_cpupid() 106 flags = old_flags; in folio_xchg_last_cpupid() 111 } while (unlikely(!try_cmpxchg(&folio->flags.f, &old_flags, flags))); in folio_xchg_last_cpupid()
|
| H A D | folio.c | 357 unsigned long new_flags, old_flags = READ_ONCE(folio->flags.f); in lru_gen_inc_refs() local 369 if ((old_flags & LRU_REFS_MASK) == LRU_REFS_MASK) { in lru_gen_inc_refs() 375 new_flags = old_flags + BIT(LRU_REFS_PGOFF); in lru_gen_inc_refs() 376 } while (!try_cmpxchg(&folio->flags.f, &old_flags, new_flags)); in lru_gen_inc_refs()
|
| H A D | vmscan.c | 3271 unsigned long new_flags, old_flags = READ_ONCE(folio->flags.f); in folio_update_gen() local 3288 if (!(old_flags & LRU_GEN_MASK)) in folio_update_gen() 3291 new_flags = old_flags & ~(LRU_GEN_MASK | LRU_REFS_FLAGS); in folio_update_gen() 3293 } while (!try_cmpxchg(&folio->flags.f, &old_flags, new_flags)); in folio_update_gen() 3295 return ((old_flags & LRU_GEN_MASK) >> LRU_GEN_PGOFF) - 1; in folio_update_gen() 3304 unsigned long new_flags, old_flags = READ_ONCE(folio->flags.f); in folio_inc_gen() local 3306 VM_WARN_ON_ONCE_FOLIO(!(old_flags & LRU_GEN_MASK), folio); in folio_inc_gen() 3309 new_gen = ((old_flags & LRU_GEN_MASK) >> LRU_GEN_PGOFF) - 1; in folio_inc_gen() 3316 new_flags = old_flags & ~(LRU_GEN_MASK | LRU_REFS_FLAGS); in folio_inc_gen() 3318 } while (!try_cmpxchg(&folio->flags.f, &old_flags, new_flags)); in folio_inc_gen()
|
| /linux/net/batman-adv/ |
| H A D | multicast.c | 810 struct batadv_mcast_mla_flags *old_flags = &bat_priv->mcast.mla_flags; in batadv_mcast_bridge_log() local 812 if (!old_flags->bridged && new_flags->bridged) in batadv_mcast_bridge_log() 815 else if (old_flags->bridged && !new_flags->bridged) in batadv_mcast_bridge_log() 821 &old_flags->querier_ipv4, in batadv_mcast_bridge_log() 824 &old_flags->querier_ipv6, in batadv_mcast_bridge_log() 840 u8 old_flags = bat_priv->mcast.mla_flags.tvlv_flags; in batadv_mcast_flags_log() local 844 (old_flags & BATADV_MCAST_WANT_ALL_UNSNOOPABLES) ? 'U' : '.', in batadv_mcast_flags_log() 845 (old_flags & BATADV_MCAST_WANT_ALL_IPV4) ? '4' : '.', in batadv_mcast_flags_log() 846 (old_flags & BATADV_MCAST_WANT_ALL_IPV6) ? '6' : '.', in batadv_mcast_flags_log() 847 !(old_flags & BATADV_MCAST_WANT_NO_RTR4) ? "R4" : ". ", in batadv_mcast_flags_log() [all …]
|
| /linux/tools/testing/selftests/net/af_unix/ |
| H A D | msg_oob.c | 299 int ret, old_flags, flags; in __setblockingpair() local 301 old_flags = fcntl(self->fd[i * 2 + 1], F_GETFL, 0); in __setblockingpair() 302 ASSERT_NE(-1, old_flags); in __setblockingpair() 304 ret = fcntl(self->fd[i * 2 + 1], F_SETFL, old_flags & ~O_NONBLOCK); in __setblockingpair() 308 ASSERT_EQ(old_flags & ~O_NONBLOCK, flags); in __setblockingpair()
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | test_maps.c | 337 int i, first, second, old_flags; in test_hashmap_zero_seed() local 340 old_flags = map_opts.map_flags; in test_hashmap_zero_seed() 363 map_opts.map_flags = old_flags; in test_hashmap_zero_seed() 1537 __u32 old_flags; in test_map_rdonly() local 1539 old_flags = map_opts.map_flags; in test_map_rdonly() 1543 map_opts.map_flags = old_flags; in test_map_rdonly() 1566 __u32 old_flags; in test_map_wronly_hash() local 1568 old_flags = map_opts.map_flags; in test_map_wronly_hash() 1572 map_opts.map_flags = old_flags; in test_map_wronly_hash() 1594 __u32 old_flags; in test_map_wronly_stack_or_queue() local [all …]
|
| /linux/kernel/trace/ |
| H A D | trace_nop.c | 64 static int nop_set_flag(struct trace_array *tr, u32 old_flags, u32 bit, int set) in nop_set_flag() argument
|
| H A D | trace_events_filter.c | 1300 unsigned long old_flags = file->flags; in filter_disable() local 1304 if (old_flags != file->flags) in filter_disable() 2245 unsigned long old_flags = file->flags; in event_set_filtered_flag() local 2249 if (old_flags != file->flags) in event_set_filtered_flag()
|
| H A D | trace_functions.c | 456 func_set_flag(struct trace_array *tr, u32 old_flags, u32 bit, int set) in func_set_flag() argument
|
| /linux/arch/x86/mm/pat/ |
| H A D | memtype.c | 146 unsigned long old_flags; in set_page_memtype() local 165 old_flags = READ_ONCE(pg->flags.f); in set_page_memtype() 167 new_flags = (old_flags & _PGMT_CLEAR_MASK) | memtype_flags; in set_page_memtype() 168 } while (!try_cmpxchg(&pg->flags.f, &old_flags, new_flags)); in set_page_memtype()
|
| /linux/arch/x86/include/asm/ |
| H A D | kprobes.h | 103 unsigned long old_flags; member
|
| /linux/arch/loongarch/kvm/ |
| H A D | mmu.c | 458 u32 old_flags = old ? old->flags : 0; in kvm_arch_commit_memory_region() local 467 if ((old_flags & new_flags) & KVM_MEM_READONLY) in kvm_arch_commit_memory_region() 479 if (!(old_flags & KVM_MEM_LOG_DIRTY_PAGES) && log_dirty_pages) { in kvm_arch_commit_memory_region()
|
| /linux/fs/nfs/ |
| H A D | localio.c | 884 unsigned long old_flags = current->flags; in nfs_local_call_write() local 927 current->flags = old_flags; in nfs_local_call_write() 1091 unsigned long old_flags = current->flags; in nfs_local_fsync_work() local 1104 current->flags = old_flags; in nfs_local_fsync_work()
|
| /linux/net/8021q/ |
| H A D | vlan_dev.c | 227 u32 old_flags = vlan->flags; in vlan_dev_change_flags() local 234 vlan->flags = (old_flags & ~mask) | (flags & mask); in vlan_dev_change_flags() 236 if (netif_running(dev) && (vlan->flags ^ old_flags) & VLAN_FLAG_GVRP) { in vlan_dev_change_flags() 243 if (netif_running(dev) && (vlan->flags ^ old_flags) & VLAN_FLAG_MVRP) { in vlan_dev_change_flags()
|
| /linux/drivers/net/wireless/intel/ipw2x00/ |
| H A D | libipw_crypto_tkip.c | 65 unsigned long old_flags = _priv->flags; in libipw_tkip_set_flags() local 67 return old_flags; in libipw_tkip_set_flags()
|
| /linux/kernel/ |
| H A D | softirq.c | 605 unsigned long old_flags = current->flags; in handle_softirqs() local 674 current_restore_flags(old_flags, PF_MEMALLOC); in handle_softirqs()
|
| /linux/kernel/bpf/ |
| H A D | trampoline.c | 1681 tr->multi_attach.old_flags = tr->flags; in bpf_trampoline_multi_attach() 1700 tr->multi_attach.old_flags = 0; in bpf_trampoline_multi_attach() 1708 tr->flags = tr->multi_attach.old_flags; in bpf_trampoline_multi_attach() 1711 tr->multi_attach.old_flags = 0; in bpf_trampoline_multi_attach()
|
| H A D | cgroup.c | 819 u32 old_flags, old_pl_flags; in __cgroup_bpf_attach() local 891 old_flags = cgrp->bpf.flags[atype]; in __cgroup_bpf_attach() 931 cgrp->bpf.flags[atype] = old_flags; in __cgroup_bpf_attach()
|
| /linux/net/sched/ |
| H A D | sch_hfsc.c | 961 int old_flags; in hfsc_change_class() local 984 old_flags = cl->cl_flags; in hfsc_change_class() 1001 if (old_flags & HFSC_RSC) in hfsc_change_class() 1008 if (old_flags & HFSC_FSC) in hfsc_change_class()
|
| /linux/net/core/ |
| H A D | dev.c | 9691 unsigned int old_flags = dev->flags; in __dev_set_promiscuity() 9708 flags = old_flags & ~IFF_PROMISC; in netif_set_promiscuity() 9710 flags = old_flags | IFF_PROMISC; in netif_set_promiscuity() 9713 if (flags != old_flags) { in netif_set_promiscuity() 9723 (old_flags & IFF_PROMISC), in netif_set_allmulti() 9733 __dev_notify_flags(dev, old_flags, IFF_PROMISC, 0, NULL); in netif_set_allmulti() 9739 unsigned int old_flags = dev->flags; in netif_set_allmulti() 9745 if (dev->flags != old_flags) in netif_set_allmulti() 9752 unsigned int old_flags = dev->flags, old_gflags = dev->gflags; 9767 flags = old_flags in netif_get_flags() 9659 unsigned int old_flags = dev->flags; __dev_set_promiscuity() local 9707 unsigned int old_flags = dev->flags; netif_set_promiscuity() local 9720 unsigned int old_flags = dev->flags, old_gflags = dev->gflags; netif_set_allmulti() local 9788 unsigned int old_flags = dev->flags; __dev_change_flags() local 9851 __dev_notify_flags(struct net_device * dev,unsigned int old_flags,unsigned int gchanges,u32 portid,const struct nlmsghdr * nlh) __dev_notify_flags() argument 9886 unsigned int changes, old_flags = dev->flags, old_gflags = dev->gflags; netif_change_flags() local [all...] |
| H A D | dev.h | 184 void __dev_notify_flags(struct net_device *dev, unsigned int old_flags,
|
| /linux/arch/x86/kernel/kprobes/ |
| H A D | core.c | 817 kcb->prev_kprobe.old_flags = kcb->kprobe_old_flags; in save_previous_kprobe() 826 kcb->kprobe_old_flags = kcb->prev_kprobe.old_flags; in restore_previous_kprobe()
|
| /linux/tools/perf/util/ |
| H A D | symbol.c | 388 uint16_t old_flags = atomic_load_explicit(&sym->flags, memory_order_relaxed); in symbol__set_idle() local 393 new_flags = old_flags & ~SYMBOL_FLAG_IDLE_MASK; in symbol__set_idle() 395 } while (!atomic_compare_exchange_weak(&sym->flags, &old_flags, new_flags)); in symbol__set_idle()
|
| /linux/include/linux/ |
| H A D | mm.h | 2588 unsigned long old_flags, flags; in page_kasan_tag_set() local 2594 old_flags = READ_ONCE(page->flags.f); in page_kasan_tag_set() 2596 flags = old_flags; in page_kasan_tag_set() 2599 } while (unlikely(!try_cmpxchg(&page->flags.f, &old_flags, flags))); in page_kasan_tag_set()
|