| /linux-6.15/mm/ |
| H A D | mmzone.c | 99 unsigned long old_flags, flags; in folio_xchg_last_cpupid() local 102 old_flags = READ_ONCE(folio->flags); in folio_xchg_last_cpupid() 104 flags = old_flags; in folio_xchg_last_cpupid() 109 } while (unlikely(!try_cmpxchg(&folio->flags, &old_flags, flags))); in folio_xchg_last_cpupid()
|
| H A D | swap.c | 385 unsigned long new_flags, old_flags = READ_ONCE(folio->flags); in lru_gen_inc_refs() local 397 if ((old_flags & LRU_REFS_MASK) == LRU_REFS_MASK) { in lru_gen_inc_refs() 403 new_flags = old_flags + BIT(LRU_REFS_PGOFF); in lru_gen_inc_refs() 404 } while (!try_cmpxchg(&folio->flags, &old_flags, new_flags)); in lru_gen_inc_refs()
|
| H A D | vmscan.c | 3229 unsigned long new_flags, old_flags = READ_ONCE(folio->flags); in folio_update_gen() local 3241 if (!(old_flags & LRU_GEN_MASK)) in folio_update_gen() 3244 new_flags = old_flags & ~(LRU_GEN_MASK | LRU_REFS_FLAGS); in folio_update_gen() 3246 } while (!try_cmpxchg(&folio->flags, &old_flags, new_flags)); in folio_update_gen() 3248 return ((old_flags & LRU_GEN_MASK) >> LRU_GEN_PGOFF) - 1; in folio_update_gen() 3257 unsigned long new_flags, old_flags = READ_ONCE(folio->flags); in folio_inc_gen() local 3259 VM_WARN_ON_ONCE_FOLIO(!(old_flags & LRU_GEN_MASK), folio); in folio_inc_gen() 3262 new_gen = ((old_flags & LRU_GEN_MASK) >> LRU_GEN_PGOFF) - 1; in folio_inc_gen() 3269 new_flags = old_flags & ~(LRU_GEN_MASK | LRU_REFS_FLAGS); in folio_inc_gen() 3274 } while (!try_cmpxchg(&folio->flags, &old_flags, new_flags)); in folio_inc_gen()
|
| /linux-6.15/tools/testing/selftests/mount_setattr/ |
| H A D | mount_setattr_test.c | 512 ASSERT_GT(old_flags, 0); in TEST_F() 545 expected_flags = old_flags; in TEST_F() 573 ASSERT_GT(old_flags, 0); in TEST_F() 577 expected_flags = old_flags; in TEST_F() 609 ASSERT_GT(old_flags, 0); in TEST_F() 613 expected_flags = old_flags; in TEST_F() 704 ASSERT_GT(old_flags, 0); in TEST_F() 812 ASSERT_GT(old_flags, 0); in TEST_F() 818 expected_flags = old_flags; in TEST_F() 939 ASSERT_GT(old_flags, 0); in TEST_F() [all …]
|
| /linux-6.15/include/linux/ |
| H A D | pgalloc_tag.h | 142 unsigned long old_flags; in update_page_tag_ref() local 152 old_flags = READ_ONCE(page->flags); in update_page_tag_ref() 153 flags = old_flags; in update_page_tag_ref() 156 } while (unlikely(!try_cmpxchg(&page->flags, &old_flags, flags))); in update_page_tag_ref()
|
| /linux-6.15/net/batman-adv/ |
| H A D | multicast.c | 811 if (!old_flags->bridged && new_flags->bridged) in batadv_mcast_bridge_log() 814 else if (old_flags->bridged && !new_flags->bridged) in batadv_mcast_bridge_log() 820 &old_flags->querier_ipv4, in batadv_mcast_bridge_log() 823 &old_flags->querier_ipv6, in batadv_mcast_bridge_log() 839 u8 old_flags = bat_priv->mcast.mla_flags.tvlv_flags; in batadv_mcast_flags_log() local 843 (old_flags & BATADV_MCAST_WANT_ALL_UNSNOOPABLES) ? 'U' : '.', in batadv_mcast_flags_log() 844 (old_flags & BATADV_MCAST_WANT_ALL_IPV4) ? '4' : '.', in batadv_mcast_flags_log() 845 (old_flags & BATADV_MCAST_WANT_ALL_IPV6) ? '6' : '.', in batadv_mcast_flags_log() 846 !(old_flags & BATADV_MCAST_WANT_NO_RTR4) ? "R4" : ". ", in batadv_mcast_flags_log() 847 !(old_flags & BATADV_MCAST_WANT_NO_RTR6) ? "R6" : ". ", in batadv_mcast_flags_log() [all …]
|
| /linux-6.15/drivers/pcmcia/ |
| H A D | xxs1500_ss.c | 64 unsigned int old_flags; member 97 changed = state->flags ^ sock->old_flags; in xxs1500_pcmcia_configure() 110 sock->old_flags = state->flags; in xxs1500_pcmcia_configure()
|
| H A D | db1xxx_ss.c | 53 unsigned int old_flags; member 297 changed = state->flags ^ sock->old_flags; in db1x_pcmcia_configure() 315 sock->old_flags = state->flags; in db1x_pcmcia_configure()
|
| /linux-6.15/tools/testing/selftests/bpf/ |
| H A D | test_maps.c | 326 int i, first, second, old_flags; in test_hashmap_zero_seed() local 329 old_flags = map_opts.map_flags; in test_hashmap_zero_seed() 352 map_opts.map_flags = old_flags; in test_hashmap_zero_seed() 1534 __u32 old_flags; in test_map_rdonly() local 1536 old_flags = map_opts.map_flags; in test_map_rdonly() 1540 map_opts.map_flags = old_flags; in test_map_rdonly() 1563 __u32 old_flags; in test_map_wronly_hash() local 1565 old_flags = map_opts.map_flags; in test_map_wronly_hash() 1569 map_opts.map_flags = old_flags; in test_map_wronly_hash() 1591 __u32 old_flags; in test_map_wronly_stack_or_queue() local [all …]
|
| /linux-6.15/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 | 1297 unsigned long old_flags = file->flags; in filter_disable() local 1301 if (old_flags != file->flags) in filter_disable() 2115 unsigned long old_flags = file->flags; in event_set_filtered_flag() local 2119 if (old_flags != file->flags) in event_set_filtered_flag()
|
| /linux-6.15/drivers/input/serio/ |
| H A D | libps2.c | 573 unsigned long old_flags = ps2dev->flags; in ps2_cleanup() local 578 if (old_flags & PS2_FLAG_ACK) in ps2_cleanup() 581 if (old_flags & (PS2_FLAG_ACK | PS2_FLAG_CMD)) in ps2_cleanup()
|
| /linux-6.15/arch/x86/include/asm/ |
| H A D | kprobes.h | 103 unsigned long old_flags; member
|
| /linux-6.15/net/netfilter/ |
| H A D | nfnetlink_acct.c | 148 u32 old_flags; in nfnl_acct_fill_info() local 159 old_flags = acct->flags; in nfnl_acct_fill_info() 179 if (nla_put_be32(skb, NFACCT_FLAGS, htonl(old_flags)) || in nfnl_acct_fill_info()
|
| /linux-6.15/arch/x86/mm/pat/ |
| H A D | memtype.c | 145 unsigned long old_flags; in set_page_memtype() local 164 old_flags = READ_ONCE(pg->flags); in set_page_memtype() 166 new_flags = (old_flags & _PGMT_CLEAR_MASK) | memtype_flags; in set_page_memtype() 167 } while (!try_cmpxchg(&pg->flags, &old_flags, new_flags)); in set_page_memtype()
|
| /linux-6.15/arch/loongarch/kvm/ |
| H A D | mmu.c | 448 u32 old_flags = old ? old->flags : 0; in kvm_arch_commit_memory_region() local 457 if ((old_flags & new_flags) & KVM_MEM_READONLY) in kvm_arch_commit_memory_region() 469 if (!(old_flags & KVM_MEM_LOG_DIRTY_PAGES) && log_dirty_pages) { in kvm_arch_commit_memory_region()
|
| /linux-6.15/net/8021q/ |
| H A D | vlan_dev.c | 219 u32 old_flags = vlan->flags; in vlan_dev_change_flags() local 226 vlan->flags = (old_flags & ~mask) | (flags & mask); in vlan_dev_change_flags() 228 if (netif_running(dev) && (vlan->flags ^ old_flags) & VLAN_FLAG_GVRP) { in vlan_dev_change_flags() 235 if (netif_running(dev) && (vlan->flags ^ old_flags) & VLAN_FLAG_MVRP) { in vlan_dev_change_flags()
|
| /linux-6.15/net/bridge/ |
| H A D | br_netlink.c | 946 unsigned long old_flags, changed_mask; in br_setport() local 950 old_flags = p->flags; in br_setport() 951 br_vlan_tunnel_old = (old_flags & BR_VLAN_TUNNEL) ? true : false; in br_setport() 977 p->flags = old_flags; in br_setport() 979 } else if (!(p->flags & BR_PORT_MAB) && (old_flags & BR_PORT_MAB)) { in br_setport() 989 changed_mask = old_flags ^ p->flags; in br_setport() 993 p->flags = old_flags; in br_setport()
|
| /linux-6.15/kernel/ |
| H A D | softirq.c | 539 unsigned long old_flags = current->flags; in handle_softirqs() local 608 current_restore_flags(old_flags, PF_MEMALLOC); in handle_softirqs()
|
| /linux-6.15/net/core/ |
| H A D | dev.c | 9167 flags = old_flags & ~IFF_PROMISC; in __dev_set_promiscuity() 9169 flags = old_flags | IFF_PROMISC; in __dev_set_promiscuity() 9172 if (flags != old_flags) { in __dev_set_promiscuity() 9182 (old_flags & IFF_PROMISC), in __dev_set_promiscuity() 9204 if (dev->flags != old_flags) in netif_set_promiscuity() 9226 flags = old_flags & ~IFF_ALLMULTI; in netif_set_allmulti() 9228 flags = old_flags | IFF_ALLMULTI; in netif_set_allmulti() 9231 if (flags != old_flags) { in netif_set_allmulti() 9351 if (old_flags & IFF_UP) in __dev_change_flags() 9359 old_flags = dev->flags; in __dev_change_flags() [all …]
|
| H A D | dev.h | 129 void __dev_notify_flags(struct net_device *dev, unsigned int old_flags,
|
| /linux-6.15/drivers/net/wireless/intel/ipw2x00/ |
| H A D | libipw_crypto_tkip.c | 72 unsigned long old_flags = _priv->flags; in libipw_tkip_set_flags() local 74 return old_flags; in libipw_tkip_set_flags()
|
| /linux-6.15/net/sched/ |
| H A D | sch_hfsc.c | 963 int old_flags; in hfsc_change_class() local 986 old_flags = cl->cl_flags; in hfsc_change_class() 1003 if (old_flags & HFSC_RSC) in hfsc_change_class() 1010 if (old_flags & HFSC_FSC) in hfsc_change_class()
|
| /linux-6.15/fs/nfs/ |
| H A D | localio.c | 654 unsigned long old_flags = current->flags; in nfs_local_call_write() local 674 current->flags = old_flags; in nfs_local_call_write()
|
| /linux-6.15/arch/x86/kernel/kprobes/ |
| H A D | core.c | 840 kcb->prev_kprobe.old_flags = kcb->kprobe_old_flags; in save_previous_kprobe() 849 kcb->kprobe_old_flags = kcb->prev_kprobe.old_flags; in restore_previous_kprobe()
|