/linux-6.6.21/tools/testing/selftests/mount_setattr/ |
D | mount_setattr_test.c | 474 unsigned int old_flags = 0, new_flags = 0, expected_flags = 0; in TEST_F() local 486 old_flags = read_mnt_flags("/mnt/A"); in TEST_F() 487 ASSERT_GT(old_flags, 0); in TEST_F() 520 expected_flags = old_flags; in TEST_F() 538 unsigned int old_flags = 0, new_flags = 0, expected_flags = 0; in TEST_F() local 547 old_flags = read_mnt_flags("/mnt/A"); in TEST_F() 548 ASSERT_GT(old_flags, 0); in TEST_F() 552 expected_flags = old_flags; in TEST_F() 562 ASSERT_EQ(new_flags, old_flags); in TEST_F() 565 ASSERT_EQ(new_flags, old_flags); in TEST_F() [all …]
|
/linux-6.6.21/mm/ |
D | mmzone.c | 98 unsigned long old_flags, flags; in page_cpupid_xchg_last() local 101 old_flags = READ_ONCE(page->flags); in page_cpupid_xchg_last() 103 flags = old_flags; in page_cpupid_xchg_last() 108 } while (unlikely(!try_cmpxchg(&page->flags, &old_flags, flags))); in page_cpupid_xchg_last()
|
D | swap.c | 417 unsigned long new_flags, old_flags = READ_ONCE(folio->flags); in folio_inc_refs() local 434 new_flags = old_flags & LRU_REFS_MASK; in folio_inc_refs() 439 new_flags |= old_flags & ~LRU_REFS_MASK; in folio_inc_refs() 440 } while (!try_cmpxchg(&folio->flags, &old_flags, new_flags)); in folio_inc_refs()
|
D | vmscan.c | 3775 unsigned long new_flags, old_flags = READ_ONCE(folio->flags); in folio_update_gen() local 3782 if (!(old_flags & LRU_GEN_MASK)) { in folio_update_gen() 3784 new_flags = old_flags | BIT(PG_referenced); in folio_update_gen() 3788 new_flags = old_flags & ~(LRU_GEN_MASK | LRU_REFS_MASK | LRU_REFS_FLAGS); in folio_update_gen() 3790 } while (!try_cmpxchg(&folio->flags, &old_flags, new_flags)); in folio_update_gen() 3792 return ((old_flags & LRU_GEN_MASK) >> LRU_GEN_PGOFF) - 1; in folio_update_gen() 3801 unsigned long new_flags, old_flags = READ_ONCE(folio->flags); in folio_inc_gen() local 3803 VM_WARN_ON_ONCE_FOLIO(!(old_flags & LRU_GEN_MASK), folio); in folio_inc_gen() 3806 new_gen = ((old_flags & LRU_GEN_MASK) >> LRU_GEN_PGOFF) - 1; in folio_inc_gen() 3813 new_flags = old_flags & ~(LRU_GEN_MASK | LRU_REFS_MASK | LRU_REFS_FLAGS); in folio_inc_gen() [all …]
|
/linux-6.6.21/drivers/pcmcia/ |
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()
|
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.6.21/net/batman-adv/ |
D | multicast.c | 778 struct batadv_mcast_mla_flags *old_flags = &bat_priv->mcast.mla_flags; in batadv_mcast_bridge_log() local 780 if (!old_flags->bridged && new_flags->bridged) in batadv_mcast_bridge_log() 783 else if (old_flags->bridged && !new_flags->bridged) in batadv_mcast_bridge_log() 789 &old_flags->querier_ipv4, in batadv_mcast_bridge_log() 792 &old_flags->querier_ipv6, in batadv_mcast_bridge_log() 808 u8 old_flags = bat_priv->mcast.mla_flags.tvlv_flags; in batadv_mcast_flags_log() local 812 (old_flags & BATADV_MCAST_WANT_ALL_UNSNOOPABLES) ? 'U' : '.', in batadv_mcast_flags_log() 813 (old_flags & BATADV_MCAST_WANT_ALL_IPV4) ? '4' : '.', in batadv_mcast_flags_log() 814 (old_flags & BATADV_MCAST_WANT_ALL_IPV6) ? '6' : '.', in batadv_mcast_flags_log() 815 !(old_flags & BATADV_MCAST_WANT_NO_RTR4) ? "R4" : ". ", in batadv_mcast_flags_log() [all …]
|
/linux-6.6.21/tools/testing/selftests/bpf/ |
D | test_maps.c | 330 int i, first, second, old_flags; in test_hashmap_zero_seed() local 333 old_flags = map_opts.map_flags; in test_hashmap_zero_seed() 356 map_opts.map_flags = old_flags; in test_hashmap_zero_seed() 1526 __u32 old_flags; in test_map_rdonly() local 1528 old_flags = map_opts.map_flags; in test_map_rdonly() 1532 map_opts.map_flags = old_flags; in test_map_rdonly() 1555 __u32 old_flags; in test_map_wronly_hash() local 1557 old_flags = map_opts.map_flags; in test_map_wronly_hash() 1561 map_opts.map_flags = old_flags; in test_map_wronly_hash() 1583 __u32 old_flags; in test_map_wronly_stack_or_queue() local [all …]
|
/linux-6.6.21/kernel/trace/ |
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
|
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.6.21/drivers/input/serio/ |
D | libps2.c | 571 unsigned long old_flags = ps2dev->flags; in ps2_cleanup() local 576 if (old_flags & PS2_FLAG_ACK) in ps2_cleanup() 579 if (old_flags & (PS2_FLAG_ACK | PS2_FLAG_CMD)) in ps2_cleanup()
|
/linux-6.6.21/arch/x86/include/asm/ |
D | kprobes.h | 103 unsigned long old_flags; member
|
/linux-6.6.21/arch/x86/mm/pat/ |
D | memtype.c | 143 unsigned long old_flags; in set_page_memtype() local 162 old_flags = READ_ONCE(pg->flags); in set_page_memtype() 164 new_flags = (old_flags & _PGMT_CLEAR_MASK) | memtype_flags; in set_page_memtype() 165 } while (!try_cmpxchg(&pg->flags, &old_flags, new_flags)); in set_page_memtype()
|
/linux-6.6.21/net/netfilter/ |
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.6.21/net/core/ |
D | dev.h | 98 void __dev_notify_flags(struct net_device *dev, unsigned int old_flags,
|
D | dev.c | 8398 unsigned int old_flags = dev->flags; in __dev_set_promiscuity() local 8419 if (dev->flags != old_flags) { in __dev_set_promiscuity() 8428 (old_flags & IFF_PROMISC), in __dev_set_promiscuity() 8438 __dev_notify_flags(dev, old_flags, IFF_PROMISC, 0, NULL); in __dev_set_promiscuity() 8455 unsigned int old_flags = dev->flags; in dev_set_promiscuity() local 8461 if (dev->flags != old_flags) in dev_set_promiscuity() 8469 unsigned int old_flags = dev->flags, old_gflags = dev->gflags; in __dev_set_allmulti() local 8488 if (dev->flags ^ old_flags) { in __dev_set_allmulti() 8494 __dev_notify_flags(dev, old_flags, in __dev_set_allmulti() 8594 unsigned int old_flags = dev->flags; in __dev_change_flags() local [all …]
|
/linux-6.6.21/net/8021q/ |
D | vlan_dev.c | 218 u32 old_flags = vlan->flags; in vlan_dev_change_flags() local 225 vlan->flags = (old_flags & ~mask) | (flags & mask); in vlan_dev_change_flags() 227 if (netif_running(dev) && (vlan->flags ^ old_flags) & VLAN_FLAG_GVRP) { in vlan_dev_change_flags() 234 if (netif_running(dev) && (vlan->flags ^ old_flags) & VLAN_FLAG_MVRP) { in vlan_dev_change_flags()
|
/linux-6.6.21/net/bridge/ |
D | br_netlink.c | 945 unsigned long old_flags, changed_mask; in br_setport() local 949 old_flags = p->flags; in br_setport() 950 br_vlan_tunnel_old = (old_flags & BR_VLAN_TUNNEL) ? true : false; in br_setport() 976 p->flags = old_flags; in br_setport() 978 } else if (!(p->flags & BR_PORT_MAB) && (old_flags & BR_PORT_MAB)) { in br_setport() 988 changed_mask = old_flags ^ p->flags; in br_setport() 992 p->flags = old_flags; in br_setport()
|
/linux-6.6.21/kernel/ |
D | softirq.c | 513 unsigned long old_flags = current->flags; in __do_softirq() local 583 current_restore_flags(old_flags, PF_MEMALLOC); in __do_softirq()
|
/linux-6.6.21/net/wireless/ |
D | lib80211_crypt_tkip.c | 79 unsigned long old_flags = _priv->flags; in lib80211_tkip_set_flags() local 81 return old_flags; in lib80211_tkip_set_flags()
|
/linux-6.6.21/net/sched/ |
D | sch_hfsc.c | 960 int old_flags; in hfsc_change_class() local 982 old_flags = cl->cl_flags; in hfsc_change_class() 995 if (old_flags & HFSC_RSC) in hfsc_change_class() 1002 if (old_flags & HFSC_FSC) in hfsc_change_class()
|
/linux-6.6.21/arch/x86/kernel/kprobes/ |
D | core.c | 802 kcb->prev_kprobe.old_flags = kcb->kprobe_old_flags; in save_previous_kprobe() 811 kcb->kprobe_old_flags = kcb->prev_kprobe.old_flags; in restore_previous_kprobe()
|
/linux-6.6.21/fs/btrfs/ |
D | super.c | 1691 unsigned old_flags = sb->s_flags; in btrfs_remount() local 1871 old_flags |= SB_RDONLY; in btrfs_remount() 1872 if (!(old_flags & SB_RDONLY)) in btrfs_remount() 1874 sb->s_flags = old_flags; in btrfs_remount()
|
/linux-6.6.21/drivers/pci/ |
D | setup-bus.c | 1521 unsigned int old_flags; in pci_bridge_release_resources() local 1558 type = old_flags = r->flags & PCI_RES_TYPE_MASK; in pci_bridge_release_resources() 1571 r->flags = old_flags; in pci_bridge_release_resources()
|
/linux-6.6.21/include/linux/ |
D | mm.h | 1810 unsigned long old_flags, flags; in page_kasan_tag_set() local 1816 old_flags = READ_ONCE(page->flags); in page_kasan_tag_set() 1818 flags = old_flags; in page_kasan_tag_set() 1821 } while (unlikely(!try_cmpxchg(&page->flags, &old_flags, flags))); in page_kasan_tag_set()
|