Home
last modified time | relevance | path

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

12

/linux/tools/testing/selftests/mount_setattr/
H A Dmount_setattr_test.c468 unsigned int old_flags = 0, new_flags = 0, expected_flags = 0; in TEST_F() local
517 new_flags = read_mnt_flags("/mnt/A"); in TEST_F()
518 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
520 new_flags = read_mnt_flags("/mnt/A/AA"); in TEST_F()
521 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
523 new_flags = read_mnt_flags("/mnt/A/AA/B"); in TEST_F()
524 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
526 new_flags = read_mnt_flags("/mnt/A/AA/B/BB"); in TEST_F()
527 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
532 unsigned int old_flags = 0, new_flags = 0, expected_flags = 0; in 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/mm/
H A Dmadvise.c152 static int madvise_update_vma(vm_flags_t new_flags, in madvise_update_vma() argument
161 if (new_flags == vma->vm_flags && (!set_new_anon_name || in madvise_update_vma()
170 range->start, range->end, new_flags); in madvise_update_vma()
179 vm_flags_reset(vma, new_flags); in madvise_update_vma()
1337 vm_flags_t new_flags = vma->vm_flags; in madvise_vma_behavior() local
1368 new_flags = new_flags & ~VM_RAND_READ & ~VM_SEQ_READ; in madvise_vma_behavior()
1371 new_flags = (new_flags & ~VM_RAND_READ) | VM_SEQ_READ; in madvise_vma_behavior()
1374 new_flags = (new_flags & ~VM_SEQ_READ) | VM_RAND_READ; in madvise_vma_behavior()
1377 new_flags |= VM_DONTCOPY; in madvise_vma_behavior()
1380 if (new_flags & VM_IO) in madvise_vma_behavior()
[all …]
H A Dswap.c391 unsigned long new_flags, old_flags = READ_ONCE(folio->flags.f); in lru_gen_inc_refs() local
409 new_flags = old_flags + BIT(LRU_REFS_PGOFF); in lru_gen_inc_refs()
410 } while (!try_cmpxchg(&folio->flags.f, &old_flags, new_flags)); in lru_gen_inc_refs()
/linux/drivers/net/ethernet/intel/igc/
H A Digc_tsn.c235 unsigned int new_flags = adapter->flags & ~IGC_FLAG_TSN_ANY_ENABLED; in igc_tsn_new_flags() local
240 new_flags |= IGC_FLAG_TSN_QBV_ENABLED; in igc_tsn_new_flags()
243 new_flags |= IGC_FLAG_TSN_QAV_ENABLED; in igc_tsn_new_flags()
246 new_flags |= IGC_FLAG_TSN_PREEMPT_ENABLED; in igc_tsn_new_flags()
248 return new_flags; in igc_tsn_new_flags()
674 unsigned int new_flags; in igc_tsn_reset() local
685 new_flags = igc_tsn_new_flags(adapter); in igc_tsn_reset()
687 if (!(new_flags & IGC_FLAG_TSN_ANY_ENABLED)) in igc_tsn_reset()
694 adapter->flags = new_flags; in igc_tsn_reset()
/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.c539 unsigned int *new_flags, in plfxlc_op_configure_filter() argument
550 *new_flags &= SUPPORTED_FIF_FLAGS; in plfxlc_op_configure_filter()
559 if (*new_flags & (FIF_ALLMULTI)) in plfxlc_op_configure_filter()
563 mac->pass_failed_fcs = !!(*new_flags & FIF_FCSFAIL); in plfxlc_op_configure_filter()
564 mac->pass_ctrl = !!(*new_flags & FIF_CONTROL); in plfxlc_op_configure_filter()
/linux/fs/exfat/
H A Dsuper.c72 static int exfat_set_vol_flags(struct super_block *sb, unsigned short new_flags) in exfat_set_vol_flags() argument
78 new_flags |= sbi->vol_flags_persistent; in exfat_set_vol_flags()
81 if (sbi->vol_flags == new_flags) in exfat_set_vol_flags()
84 sbi->vol_flags = new_flags; in exfat_set_vol_flags()
92 p_boot->vol_flags = cpu_to_le16(new_flags); in exfat_set_vol_flags()
/linux/drivers/net/ethernet/intel/ice/
H A Dice_fltr.h50 u32 new_flags);
/linux/kernel/trace/
H A Dtrace_functions.c459 u32 new_flags; in func_set_flag() local
469 new_flags = (func_flags.val & ~bit) | (set ? bit : 0); in func_set_flag()
470 func = select_trace_function(new_flags); in func_set_flag()
478 if (!handle_func_repeats(tr, new_flags)) in func_set_flag()
/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()
255 if (new_flags & GFS2_DIF_JDATA) in do_gfs2_set_flags()
266 ip->i_diskflags = new_flags; in do_gfs2_set_flags()
/linux/drivers/net/ethernet/pasemi/
H A Dpasemi_mac.c980 unsigned int new_flags; in pasemi_adjust_link() local
1000 new_flags = flags & ~(PAS_MAC_CFG_PCFG_HD | PAS_MAC_CFG_PCFG_SPD_M | in pasemi_adjust_link()
1004 new_flags |= PAS_MAC_CFG_PCFG_HD; in pasemi_adjust_link()
1008 new_flags |= PAS_MAC_CFG_PCFG_SPD_1G | in pasemi_adjust_link()
1012 new_flags |= PAS_MAC_CFG_PCFG_SPD_100M | in pasemi_adjust_link()
1016 new_flags |= PAS_MAC_CFG_PCFG_SPD_10M | in pasemi_adjust_link()
1024 msg = mac->link != dev->phydev->link || flags != new_flags; in pasemi_adjust_link()
1030 if (new_flags != flags) in pasemi_adjust_link()
1031 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/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.c805 struct batadv_mcast_mla_flags *new_flags) in batadv_mcast_bridge_log() argument
809 if (!old_flags->bridged && new_flags->bridged) in batadv_mcast_bridge_log()
812 else if (old_flags->bridged && !new_flags->bridged) in batadv_mcast_bridge_log()
816 if (new_flags->bridged) { in batadv_mcast_bridge_log()
819 &new_flags->querier_ipv4); in batadv_mcast_bridge_log()
822 &new_flags->querier_ipv6); in batadv_mcast_bridge_log()
/linux/drivers/net/ethernet/google/gve/
H A Dgve_ethtool.c680 u64 ori_flags, new_flags; in gve_set_priv_flags() local
685 new_flags = ori_flags; in gve_set_priv_flags()
689 new_flags |= BIT(0); in gve_set_priv_flags()
691 new_flags &= ~(BIT(0)); in gve_set_priv_flags()
692 priv->ethtool_flags = new_flags; in gve_set_priv_flags()
/linux/arch/x86/mm/pat/
H A Dmemtype.c146 unsigned long new_flags; in set_page_memtype() local
166 new_flags = (old_flags & _PGMT_CLEAR_MASK) | memtype_flags; in set_page_memtype()
167 } while (!try_cmpxchg(&pg->flags.f, &old_flags, new_flags)); in set_page_memtype()
/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/arch/loongarch/kvm/
H A Dmmu.c449 u32 new_flags = new ? new->flags : 0; in kvm_arch_commit_memory_region() local
450 bool log_dirty_pages = new_flags & KVM_MEM_LOG_DIRTY_PAGES; in kvm_arch_commit_memory_region()
457 if ((old_flags & new_flags) & KVM_MEM_READONLY) in kvm_arch_commit_memory_region()
/linux/kernel/locking/
H A Drwsem.c747 unsigned long flags, new_flags; in rwsem_spin_on_owner() local
764 new = rwsem_owner_flags(sem, &new_flags); in rwsem_spin_on_owner()
765 if ((new != owner) || (new_flags != flags)) { in rwsem_spin_on_owner()
766 state = rwsem_owner_state(new, new_flags); in rwsem_spin_on_owner()

12