Home
last modified time | relevance | path

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

12

/linux/tools/testing/selftests/mount_setattr/
H A 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 in TEST_F() local
574 unsigned int old_flags = 0, new_flags = 0, expected_flags = 0; TEST_F() local
668 unsigned int old_flags = 0, new_flags = 0; TEST_F() local
725 unsigned int old_flags1 = 0, old_flags2 = 0, new_flags = 0, expected_flags = 0; TEST_F() local
759 unsigned int old_flags = 0, new_flags = 0, expected_flags = 0; TEST_F() local
906 unsigned int old_flags = 0, new_flags = 0, expected_flags = 0; TEST_F() local
1450 unsigned int old_flags = 0, new_flags = 0, expected_flags = 0; TEST_F() local
[all...]
/linux/tools/testing/selftests/arm64/signal/testcases/
H A Dtestcases.c113 int new_flags, i; in validate_reserved() local
133 new_flags = 0; in validate_reserved()
158 new_flags |= FPSIMD_CTX; in validate_reserved()
177 new_flags |= SVE_CTX; in validate_reserved()
184 new_flags |= ZA_CTX; in validate_reserved()
191 new_flags |= ZT_CTX; in validate_reserved()
199 new_flags |= FPMR_CTX; in validate_reserved()
206 new_flags |= GCS_CTX; in validate_reserved()
214 new_flags |= EXTRA_CTX; in validate_reserved()
255 if (new_flags & EXTRA_CTX) in validate_reserved()
[all …]
/linux/drivers/net/ethernet/intel/igc/
H A 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()
50 new_flags |= IGC_FLAG_TSN_LEGACY_ENABLED; in igc_tsn_new_flags()
52 return new_flags; in igc_tsn_new_flags()
425 unsigned int new_flags; in igc_tsn_reset() local
428 new_flags = igc_tsn_new_flags(adapter); in igc_tsn_reset()
430 if (!(new_flags & IGC_FLAG_TSN_ANY_ENABLED)) in igc_tsn_reset()
437 adapter->flags = new_flags; in igc_tsn_reset()
/linux/mm/
H A Dmadvise.c147 unsigned long end, unsigned long new_flags, in madvise_update_vma()
154 if (new_flags == vma->vm_flags && anon_vma_name_eq(anon_vma_name(vma), anon_name)) { in madvise_update_vma()
159 vma = vma_modify_flags_name(&vmi, *prev, vma, start, end, new_flags, in madvise_update_vma()
168 vm_flags_reset(vma, new_flags); in madvise_update_vma()
1248 unsigned long new_flags = vma->vm_flags; in madvise_walk_vmas()
1267 new_flags = new_flags & ~VM_RAND_READ & ~VM_SEQ_READ; in madvise_walk_vmas()
1270 new_flags = (new_flags & ~VM_RAND_READ) | VM_SEQ_READ; in madvise_walk_vmas()
1273 new_flags in madvise_walk_vmas()
139 madvise_update_vma(struct vm_area_struct * vma,struct vm_area_struct ** prev,unsigned long start,unsigned long end,unsigned long new_flags,struct anon_vma_name * anon_name) madvise_update_vma() argument
1032 unsigned long new_flags = vma->vm_flags; madvise_vma_behavior() local
[all...]
H A Dswap.c384 unsigned long new_flags, old_flags = READ_ONCE(folio->flags); in __lru_cache_activate_folio()
401 new_flags = old_flags & LRU_REFS_MASK; in __lru_cache_activate_folio()
402 if (new_flags == LRU_REFS_MASK) in __lru_cache_activate_folio()
405 new_flags += BIT(LRU_REFS_PGOFF); in __lru_cache_activate_folio()
406 new_flags |= old_flags & ~LRU_REFS_MASK; in __lru_cache_activate_folio()
407 } while (!try_cmpxchg(&folio->flags, &old_flags, new_flags)); in __lru_cache_activate_folio()
415 unsigned long new_flags, old_flags = READ_ONCE(folio->flags); folio_inc_refs() local
H A Dvma.h186 unsigned long new_flags); in init_vma_munmap()
195 unsigned long new_flags, in init_vma_munmap()
212 unsigned long new_flags,
/linux/tools/testing/selftests/bpf/progs/
H A Dtest_lwt_seg6local.c329 uint8_t new_flags = SR6_FLAG_ALERT; in __add_egr_x() local
346 (void *)&new_flags, sizeof(new_flags)); in __add_egr_x()
366 uint8_t new_flags = 0; in __pop_egr() local
386 if (bpf_lwt_seg6_store_bytes(skb, offset, (void *)&new_flags, in __pop_egr()
387 sizeof(new_flags))) in __pop_egr()
H A Dtest_seg6_loop.c233 uint8_t new_flags = SR6_FLAG_ALERT; in __add_egr_x() local
250 (void *)&new_flags, sizeof(new_flags)); in __add_egr_x()
/linux/drivers/net/wireless/ath/ath5k/
H A 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/net/mac80211/
H A 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/drivers/net/wireless/realtek/rtw88/
H A Dmac80211.c278 unsigned int *new_flags, in rtw_ops_configure_filter() argument
283 *new_flags &= FIF_ALLMULTI | FIF_OTHER_BSS | FIF_FCSFAIL | in rtw_ops_configure_filter()
291 if (*new_flags & FIF_ALLMULTI) in rtw_ops_configure_filter()
297 if (*new_flags & FIF_FCSFAIL) in rtw_ops_configure_filter()
303 if (*new_flags & FIF_OTHER_BSS) in rtw_ops_configure_filter()
309 if (*new_flags & FIF_BCN_PRBRESP_PROMISC) in rtw_ops_configure_filter()
317 changed_flags, *new_flags, rtwdev->hal.rcr); in rtw_ops_configure_filter()
/linux/drivers/net/wireless/purelifi/plfxlc/
H A Dmac.c545 unsigned int *new_flags, in plfxlc_op_configure_filter() argument
556 *new_flags &= SUPPORTED_FIF_FLAGS; in plfxlc_op_configure_filter()
565 if (*new_flags & (FIF_ALLMULTI)) in plfxlc_op_configure_filter()
569 mac->pass_failed_fcs = !!(*new_flags & FIF_FCSFAIL); in plfxlc_op_configure_filter()
570 mac->pass_ctrl = !!(*new_flags & FIF_CONTROL); in plfxlc_op_configure_filter()
/linux/fs/exfat/
H A 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/kernel/trace/
H A Dtrace_functions.c435 u32 new_flags; in func_set_flag() local
445 new_flags = (func_flags.val & ~bit) | (set ? bit : 0); in func_set_flag()
446 func = select_trace_function(new_flags); in func_set_flag()
454 if (!handle_func_repeats(tr, new_flags)) in func_set_flag()
/linux/drivers/net/ethernet/google/gve/
H A Dgve_ethtool.c674 u64 ori_flags, new_flags; in gve_set_priv_flags() local
679 new_flags = ori_flags; in gve_set_priv_flags()
683 new_flags |= BIT(0); in gve_set_priv_flags()
685 new_flags &= ~(BIT(0)); in gve_set_priv_flags()
686 priv->ethtool_flags = new_flags; in gve_set_priv_flags()
/linux/fs/gfs2/
H A 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/drivers/net/ethernet/pasemi/
H A 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/drivers/net/wireless/ath/carl9170/
H A 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/drivers/net/ethernet/intel/ice/
H A Dice_fltr.h50 u32 new_flags);
/linux/tools/perf/
H A 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/net/batman-adv/
H A Dmulticast.c808 struct batadv_mcast_mla_flags *new_flags) in batadv_mcast_bridge_log() argument
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()
819 if (new_flags->bridged) { in batadv_mcast_bridge_log()
822 &new_flags->querier_ipv4); in batadv_mcast_bridge_log()
825 &new_flags->querier_ipv6); in batadv_mcast_bridge_log()
/linux/drivers/net/wireless/realtek/rtw89/
H A Dmac80211.c300 unsigned int *new_flags, in rtw89_ops_configure_filter() argument
310 *new_flags &= FIF_ALLMULTI | FIF_OTHER_BSS | FIF_FCSFAIL | in rtw89_ops_configure_filter()
314 if (*new_flags & FIF_ALLMULTI) in rtw89_ops_configure_filter()
320 if (*new_flags & FIF_FCSFAIL) in rtw89_ops_configure_filter()
326 if (*new_flags & FIF_OTHER_BSS) in rtw89_ops_configure_filter()
332 if (*new_flags & FIF_BCN_PRBRESP_PROMISC) { in rtw89_ops_configure_filter()
343 if (*new_flags & FIF_PROBE_REQ) { in rtw89_ops_configure_filter()
/linux/drivers/net/ethernet/intel/i40e/
H A Di40e_ethtool.c5250 DECLARE_BITMAP(new_flags, I40E_PF_FLAGS_NBITS); in i40e_set_priv_flags()
5260 bitmap_copy(new_flags, pf->flags, I40E_PF_FLAGS_NBITS); in i40e_set_priv_flags()
5275 set_bit(priv_flag->bitno, new_flags); in i40e_set_priv_flags()
5277 clear_bit(priv_flag->bitno, new_flags); in i40e_set_priv_flags()
5296 set_bit(priv_flag->bitno, new_flags); in i40e_set_priv_flags()
5298 clear_bit(priv_flag->bitno, new_flags); in i40e_set_priv_flags()
5302 bitmap_xor(changed_flags, new_flags, orig_flags, I40E_PF_FLAGS_NBITS); in i40e_set_priv_flags()
5317 if (test_bit(I40E_FLAG_HW_ATR_EVICT_ENA, new_flags) && in i40e_set_priv_flags()
5360 !test_bit(I40E_FLAG_FD_ATR_ENA, new_flags)) { in i40e_set_priv_flags()
5369 if (!test_bit(I40E_FLAG_TRUE_PROMISC_ENA, new_flags)) in i40e_set_priv_flags()
[all …]
/linux/drivers/net/wireless/marvell/libertas_tf/
H A Dmain.c376 unsigned int *new_flags, in lbtf_op_configure_filter() argument
385 *new_flags &= SUPPORTED_FIF_FLAGS; in lbtf_op_configure_filter()
393 if (*new_flags & (FIF_ALLMULTI) || in lbtf_op_configure_filter()
/linux/kernel/locking/
H A Drwsem.c748 unsigned long flags, new_flags; in rwsem_spin_on_owner() local
765 new = rwsem_owner_flags(sem, &new_flags); in rwsem_spin_on_owner()
766 if ((new != owner) || (new_flags != flags)) { in rwsem_spin_on_owner()
767 state = rwsem_owner_state(new, new_flags); in rwsem_spin_on_owner()

12