Home
last modified time | relevance | path

Searched refs:new_flags (Results 1 – 25 of 47) sorted by relevance

12

/linux-6.6.21/tools/testing/selftests/mount_setattr/
Dmount_setattr_test.c474 unsigned int old_flags = 0, new_flags = 0, expected_flags = 0; in TEST_F() local
523 new_flags = read_mnt_flags("/mnt/A"); in TEST_F()
524 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
526 new_flags = read_mnt_flags("/mnt/A/AA"); in TEST_F()
527 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
529 new_flags = read_mnt_flags("/mnt/A/AA/B"); in TEST_F()
530 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
532 new_flags = read_mnt_flags("/mnt/A/AA/B/BB"); in TEST_F()
533 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
538 unsigned int old_flags = 0, new_flags = 0, expected_flags = 0; in TEST_F() local
[all …]
/linux-6.6.21/tools/testing/selftests/arm64/signal/testcases/
Dtestcases.c136 int new_flags, i; in validate_reserved() local
156 new_flags = 0; in validate_reserved()
181 new_flags |= FPSIMD_CTX; in validate_reserved()
196 new_flags |= SVE_CTX; in validate_reserved()
203 new_flags |= ZA_CTX; in validate_reserved()
210 new_flags |= ZT_CTX; in validate_reserved()
218 new_flags |= EXTRA_CTX; in validate_reserved()
259 if (new_flags & EXTRA_CTX) in validate_reserved()
263 if (new_flags & SVE_CTX) in validate_reserved()
266 if (new_flags & ZA_CTX) in validate_reserved()
[all …]
/linux-6.6.21/drivers/net/ethernet/intel/igc/
Digc_tsn.c38 unsigned int new_flags = adapter->flags & ~IGC_FLAG_TSN_ANY_ENABLED; in igc_tsn_new_flags() local
41 new_flags |= IGC_FLAG_TSN_QBV_ENABLED; in igc_tsn_new_flags()
44 new_flags |= IGC_FLAG_TSN_QBV_ENABLED; in igc_tsn_new_flags()
47 new_flags |= IGC_FLAG_TSN_QAV_ENABLED; in igc_tsn_new_flags()
49 return new_flags; in igc_tsn_new_flags()
317 unsigned int new_flags; in igc_tsn_reset() local
320 new_flags = igc_tsn_new_flags(adapter); in igc_tsn_reset()
322 if (!(new_flags & IGC_FLAG_TSN_ANY_ENABLED)) in igc_tsn_reset()
329 adapter->flags = new_flags; in igc_tsn_reset()
/linux-6.6.21/mm/
Dmadvise.c139 unsigned long end, unsigned long new_flags, in madvise_update_vma() argument
147 if (new_flags == vma->vm_flags && anon_vma_name_eq(anon_vma_name(vma), anon_name)) { in madvise_update_vma()
153 *prev = vma_merge(&vmi, mm, *prev, start, end, new_flags, in madvise_update_vma()
178 vm_flags_reset(vma, new_flags); in madvise_update_vma()
1031 unsigned long new_flags = vma->vm_flags; in madvise_vma_behavior() local
1050 new_flags = new_flags & ~VM_RAND_READ & ~VM_SEQ_READ; in madvise_vma_behavior()
1053 new_flags = (new_flags & ~VM_RAND_READ) | VM_SEQ_READ; in madvise_vma_behavior()
1056 new_flags = (new_flags & ~VM_SEQ_READ) | VM_RAND_READ; in madvise_vma_behavior()
1059 new_flags |= VM_DONTCOPY; in madvise_vma_behavior()
1064 new_flags &= ~VM_DONTCOPY; in madvise_vma_behavior()
[all …]
Dswap.c417 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()
435 if (new_flags == LRU_REFS_MASK) in folio_inc_refs()
438 new_flags += BIT(LRU_REFS_PGOFF); 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()
/linux-6.6.21/tools/testing/selftests/bpf/progs/
Dtest_lwt_seg6local.c327 uint8_t new_flags = SR6_FLAG_ALERT; in __add_egr_x() local
344 (void *)&new_flags, sizeof(new_flags)); in __add_egr_x()
364 uint8_t new_flags = 0; in __pop_egr() local
384 if (bpf_lwt_seg6_store_bytes(skb, offset, (void *)&new_flags, in __pop_egr()
385 sizeof(new_flags))) in __pop_egr()
Dtest_seg6_loop.c231 uint8_t new_flags = SR6_FLAG_ALERT; in __add_egr_x() local
248 (void *)&new_flags, sizeof(new_flags)); in __add_egr_x()
/linux-6.6.21/net/mac80211/
Dmain.c41 unsigned int new_flags = 0; in ieee80211_configure_filter() local
44 new_flags |= FIF_ALLMULTI; in ieee80211_configure_filter()
48 new_flags |= FIF_BCN_PRBRESP_PROMISC; in ieee80211_configure_filter()
51 new_flags |= FIF_PROBE_REQ; in ieee80211_configure_filter()
54 new_flags |= FIF_FCSFAIL; in ieee80211_configure_filter()
57 new_flags |= FIF_PLCPFAIL; in ieee80211_configure_filter()
60 new_flags |= FIF_CONTROL; in ieee80211_configure_filter()
63 new_flags |= FIF_OTHER_BSS; in ieee80211_configure_filter()
66 new_flags |= FIF_PSPOLL; in ieee80211_configure_filter()
69 new_flags |= FIF_MCAST_ACTION; in ieee80211_configure_filter()
[all …]
/linux-6.6.21/drivers/net/wireless/ath/ath5k/
Dmac80211-ops.c368 unsigned int *new_flags, u64 multicast) in ath5k_configure_filter() argument
385 *new_flags &= SUPPORTED_FIF_FLAGS; in ath5k_configure_filter()
395 if (*new_flags & FIF_ALLMULTI) { in ath5k_configure_filter()
401 if (*new_flags & (FIF_FCSFAIL | FIF_PLCPFAIL)) in ath5k_configure_filter()
406 if ((*new_flags & FIF_BCN_PRBRESP_PROMISC) || (ah->nvifs > 1)) in ath5k_configure_filter()
413 if (*new_flags & FIF_CONTROL) in ath5k_configure_filter()
465 ah->fif_filter_flags = *new_flags; in ath5k_configure_filter()
/linux-6.6.21/fs/btrfs/
Dsuper.h7 unsigned long new_flags);
/linux-6.6.21/drivers/net/wireless/realtek/rtw88/
Dmac80211.c269 unsigned int *new_flags, in rtw_ops_configure_filter() argument
274 *new_flags &= FIF_ALLMULTI | FIF_OTHER_BSS | FIF_FCSFAIL | in rtw_ops_configure_filter()
282 if (*new_flags & FIF_ALLMULTI) in rtw_ops_configure_filter()
288 if (*new_flags & FIF_FCSFAIL) in rtw_ops_configure_filter()
294 if (*new_flags & FIF_OTHER_BSS) in rtw_ops_configure_filter()
300 if (*new_flags & FIF_BCN_PRBRESP_PROMISC) in rtw_ops_configure_filter()
308 changed_flags, *new_flags, rtwdev->hal.rcr); in rtw_ops_configure_filter()
/linux-6.6.21/fs/
Duserfaultfd.c898 unsigned long new_flags; in userfaultfd_release() local
924 new_flags = vma->vm_flags & ~__VM_UFFD_FLAGS; in userfaultfd_release()
926 new_flags, vma->anon_vma, in userfaultfd_release()
937 userfaultfd_set_vm_flags(vma, new_flags); in userfaultfd_release()
1323 unsigned long vm_flags, new_flags; in userfaultfd_register() local
1480 new_flags = (vma->vm_flags & ~__VM_UFFD_FLAGS) | vm_flags; in userfaultfd_register()
1482 prev = vma_merge(&vmi, mm, prev, start, vma_end, new_flags, in userfaultfd_register()
1509 userfaultfd_set_vm_flags(vma, new_flags); in userfaultfd_register()
1559 unsigned long new_flags; in userfaultfd_unregister() local
1666 new_flags = vma->vm_flags & ~__VM_UFFD_FLAGS; in userfaultfd_unregister()
[all …]
/linux-6.6.21/drivers/net/ethernet/google/gve/
Dgve_ethtool.c549 u64 ori_flags, new_flags; in gve_set_priv_flags() local
554 new_flags = ori_flags; in gve_set_priv_flags()
558 new_flags |= BIT(0); in gve_set_priv_flags()
560 new_flags &= ~(BIT(0)); in gve_set_priv_flags()
561 priv->ethtool_flags = new_flags; in gve_set_priv_flags()
/linux-6.6.21/drivers/net/wireless/purelifi/plfxlc/
Dmac.c546 unsigned int *new_flags, in plfxlc_op_configure_filter() argument
557 *new_flags &= SUPPORTED_FIF_FLAGS; in plfxlc_op_configure_filter()
566 if (*new_flags & (FIF_ALLMULTI)) in plfxlc_op_configure_filter()
570 mac->pass_failed_fcs = !!(*new_flags & FIF_FCSFAIL); in plfxlc_op_configure_filter()
571 mac->pass_ctrl = !!(*new_flags & FIF_CONTROL); in plfxlc_op_configure_filter()
/linux-6.6.21/fs/exfat/
Dsuper.c90 static int exfat_set_vol_flags(struct super_block *sb, unsigned short new_flags) in exfat_set_vol_flags() argument
96 new_flags |= sbi->vol_flags_persistent; in exfat_set_vol_flags()
99 if (sbi->vol_flags == new_flags) in exfat_set_vol_flags()
102 sbi->vol_flags = new_flags; in exfat_set_vol_flags()
110 p_boot->vol_flags = cpu_to_le16(new_flags); in exfat_set_vol_flags()
/linux-6.6.21/kernel/trace/
Dtrace_functions.c399 u32 new_flags; in func_set_flag() local
409 new_flags = (func_flags.val & ~bit) | (set ? bit : 0); in func_set_flag()
410 func = select_trace_function(new_flags); in func_set_flag()
418 if (!handle_func_repeats(tr, new_flags)) in func_set_flag()
/linux-6.6.21/drivers/net/wireless/realtek/rtw89/
Dmac80211.c223 unsigned int *new_flags, in rtw89_ops_configure_filter() argument
232 *new_flags &= FIF_ALLMULTI | FIF_OTHER_BSS | FIF_FCSFAIL | in rtw89_ops_configure_filter()
236 if (*new_flags & FIF_ALLMULTI) in rtw89_ops_configure_filter()
242 if (*new_flags & FIF_FCSFAIL) in rtw89_ops_configure_filter()
248 if (*new_flags & FIF_OTHER_BSS) in rtw89_ops_configure_filter()
254 if (*new_flags & FIF_BCN_PRBRESP_PROMISC) { in rtw89_ops_configure_filter()
265 if (*new_flags & FIF_PROBE_REQ) { in rtw89_ops_configure_filter()
/linux-6.6.21/drivers/net/ethernet/intel/ice/
Dice_fltr.h50 u32 new_flags);
/linux-6.6.21/fs/gfs2/
Dfile.c226 u32 new_flags, flags; in do_gfs2_set_flags() local
234 new_flags = (flags & ~mask) | (reqflags & mask); in do_gfs2_set_flags()
235 if ((new_flags ^ flags) == 0) in do_gfs2_set_flags()
243 if ((flags ^ new_flags) & GFS2_DIF_JDATA) { in do_gfs2_set_flags()
244 if (new_flags & GFS2_DIF_JDATA) in do_gfs2_set_flags()
254 if (new_flags & GFS2_DIF_JDATA) in do_gfs2_set_flags()
265 ip->i_diskflags = new_flags; in do_gfs2_set_flags()
/linux-6.6.21/drivers/net/ethernet/pasemi/
Dpasemi_mac.c979 unsigned int new_flags; in pasemi_adjust_link() local
999 new_flags = flags & ~(PAS_MAC_CFG_PCFG_HD | PAS_MAC_CFG_PCFG_SPD_M | in pasemi_adjust_link()
1003 new_flags |= PAS_MAC_CFG_PCFG_HD; in pasemi_adjust_link()
1007 new_flags |= PAS_MAC_CFG_PCFG_SPD_1G | in pasemi_adjust_link()
1011 new_flags |= PAS_MAC_CFG_PCFG_SPD_100M | in pasemi_adjust_link()
1015 new_flags |= PAS_MAC_CFG_PCFG_SPD_10M | in pasemi_adjust_link()
1023 msg = mac->link != dev->phydev->link || flags != new_flags; in pasemi_adjust_link()
1029 if (new_flags != flags) in pasemi_adjust_link()
1030 write_mac_reg(mac, PAS_MAC_CFG_PCFG, new_flags); in pasemi_adjust_link()
/linux-6.6.21/drivers/net/wireless/ath/carl9170/
Dmain.c974 unsigned int *new_flags, in carl9170_op_configure_filter() argument
980 *new_flags &= FIF_ALLMULTI | ar->rx_filter_caps; in carl9170_op_configure_filter()
987 ar->filter_state = *new_flags; in carl9170_op_configure_filter()
993 if (*new_flags & FIF_ALLMULTI) in carl9170_op_configure_filter()
1000 ar->sniffer_enabled = !!(*new_flags & FIF_OTHER_BSS); in carl9170_op_configure_filter()
1011 if (!(*new_flags & (FIF_FCSFAIL | FIF_PLCPFAIL))) in carl9170_op_configure_filter()
1014 if (!(*new_flags & FIF_CONTROL)) in carl9170_op_configure_filter()
1017 if (!(*new_flags & FIF_PSPOLL)) in carl9170_op_configure_filter()
1020 if (!(*new_flags & FIF_OTHER_BSS)) { in carl9170_op_configure_filter()
/linux-6.6.21/net/batman-adv/
Dmulticast.c776 struct batadv_mcast_mla_flags *new_flags) in batadv_mcast_bridge_log() argument
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()
787 if (new_flags->bridged) { in batadv_mcast_bridge_log()
790 &new_flags->querier_ipv4); in batadv_mcast_bridge_log()
793 &new_flags->querier_ipv6); in batadv_mcast_bridge_log()
/linux-6.6.21/tools/perf/
Dbuiltin-kmem.c692 char *new_flags = NULL; in compact_gfp_flags() local
710 new = realloc(new_flags, len + strlen(cpt) + 2); in compact_gfp_flags()
712 free(new_flags); in compact_gfp_flags()
717 new_flags = new; in compact_gfp_flags()
720 strcpy(new_flags, cpt); in compact_gfp_flags()
722 strcat(new_flags, "|"); in compact_gfp_flags()
723 strcat(new_flags, cpt); in compact_gfp_flags()
737 return new_flags; in compact_gfp_flags()
/linux-6.6.21/drivers/net/ethernet/intel/i40e/
Di40e_ethtool.c5245 u64 orig_flags, new_flags, changed_flags; in i40e_set_priv_flags() local
5254 new_flags = orig_flags; in i40e_set_priv_flags()
5262 new_flags |= priv_flags->flag; in i40e_set_priv_flags()
5264 new_flags &= ~(priv_flags->flag); in i40e_set_priv_flags()
5268 ((orig_flags ^ new_flags) & ~BIT(i))) in i40e_set_priv_flags()
5281 new_flags |= priv_flags->flag; in i40e_set_priv_flags()
5283 new_flags &= ~(priv_flags->flag); in i40e_set_priv_flags()
5287 ((orig_flags ^ new_flags) & ~BIT(i))) in i40e_set_priv_flags()
5292 changed_flags = orig_flags ^ new_flags; in i40e_set_priv_flags()
5305 if ((new_flags & I40E_FLAG_HW_ATR_EVICT_ENABLED) && in i40e_set_priv_flags()
[all …]
/linux-6.6.21/arch/x86/mm/pat/
Dmemtype.c144 unsigned long new_flags; in set_page_memtype() local
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()

12