Home
last modified time | relevance | path

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

12

/linux-5.19.10/tools/testing/selftests/mount_setattr/ !
Dmount_setattr_test.c480 unsigned int old_flags = 0, new_flags = 0, expected_flags = 0; in TEST_F() local
529 new_flags = read_mnt_flags("/mnt/A"); in TEST_F()
530 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
532 new_flags = read_mnt_flags("/mnt/A/AA"); in TEST_F()
533 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
535 new_flags = read_mnt_flags("/mnt/A/AA/B"); in TEST_F()
536 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
538 new_flags = read_mnt_flags("/mnt/A/AA/B/BB"); in TEST_F()
539 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
544 unsigned int old_flags = 0, new_flags = 0, expected_flags = 0; in TEST_F() local
[all …]
/linux-5.19.10/drivers/net/ethernet/intel/igc/ !
Digc_tsn.c37 unsigned int new_flags = adapter->flags & ~IGC_FLAG_TSN_ANY_ENABLED; in igc_tsn_new_flags() local
40 new_flags |= IGC_FLAG_TSN_QBV_ENABLED; in igc_tsn_new_flags()
43 new_flags |= IGC_FLAG_TSN_QBV_ENABLED; in igc_tsn_new_flags()
46 new_flags |= IGC_FLAG_TSN_QAV_ENABLED; in igc_tsn_new_flags()
48 return new_flags; in igc_tsn_new_flags()
235 unsigned int new_flags; in igc_tsn_reset() local
238 new_flags = igc_tsn_new_flags(adapter); in igc_tsn_reset()
240 if (!(new_flags & IGC_FLAG_TSN_ANY_ENABLED)) in igc_tsn_reset()
247 adapter->flags = new_flags; in igc_tsn_reset()
/linux-5.19.10/mm/ !
Dmadvise.c141 unsigned long end, unsigned long new_flags, in madvise_update_vma() argument
148 if (new_flags == vma->vm_flags && anon_vma_name_eq(anon_vma_name(vma), anon_name)) { in madvise_update_vma()
154 *prev = vma_merge(mm, *prev, start, end, new_flags, vma->anon_vma, in madvise_update_vma()
184 vma->vm_flags = new_flags; in madvise_update_vma()
996 unsigned long new_flags = vma->vm_flags; in madvise_vma_behavior() local
1015 new_flags = new_flags & ~VM_RAND_READ & ~VM_SEQ_READ; in madvise_vma_behavior()
1018 new_flags = (new_flags & ~VM_RAND_READ) | VM_SEQ_READ; in madvise_vma_behavior()
1021 new_flags = (new_flags & ~VM_SEQ_READ) | VM_RAND_READ; in madvise_vma_behavior()
1024 new_flags |= VM_DONTCOPY; in madvise_vma_behavior()
1029 new_flags &= ~VM_DONTCOPY; in madvise_vma_behavior()
[all …]
/linux-5.19.10/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-5.19.10/net/mac80211/ !
Dmain.c40 unsigned int new_flags = 0; in ieee80211_configure_filter() local
43 new_flags |= FIF_ALLMULTI; in ieee80211_configure_filter()
47 new_flags |= FIF_BCN_PRBRESP_PROMISC; in ieee80211_configure_filter()
50 new_flags |= FIF_PROBE_REQ; in ieee80211_configure_filter()
53 new_flags |= FIF_FCSFAIL; in ieee80211_configure_filter()
56 new_flags |= FIF_PLCPFAIL; in ieee80211_configure_filter()
59 new_flags |= FIF_CONTROL; in ieee80211_configure_filter()
62 new_flags |= FIF_OTHER_BSS; in ieee80211_configure_filter()
65 new_flags |= FIF_PSPOLL; in ieee80211_configure_filter()
68 new_flags |= FIF_MCAST_ACTION; in ieee80211_configure_filter()
[all …]
/linux-5.19.10/drivers/net/wireless/ath/ath5k/ !
Dmac80211-ops.c368 unsigned int *new_flags, u64 multicast) in ath5k_configure_filter() argument
386 *new_flags &= SUPPORTED_FIF_FLAGS; in ath5k_configure_filter()
396 if (*new_flags & FIF_ALLMULTI) { in ath5k_configure_filter()
402 if (*new_flags & (FIF_FCSFAIL | FIF_PLCPFAIL)) in ath5k_configure_filter()
407 if ((*new_flags & FIF_BCN_PRBRESP_PROMISC) || (ah->nvifs > 1)) in ath5k_configure_filter()
414 if (*new_flags & FIF_CONTROL) in ath5k_configure_filter()
466 ah->fif_filter_flags = *new_flags; in ath5k_configure_filter()
/linux-5.19.10/drivers/net/wireless/realtek/rtw89/ !
Dmac80211.c162 unsigned int *new_flags, in rtw89_ops_configure_filter() argument
170 *new_flags &= FIF_ALLMULTI | FIF_OTHER_BSS | FIF_FCSFAIL | in rtw89_ops_configure_filter()
174 if (*new_flags & FIF_ALLMULTI) in rtw89_ops_configure_filter()
180 if (*new_flags & FIF_FCSFAIL) in rtw89_ops_configure_filter()
186 if (*new_flags & FIF_OTHER_BSS) in rtw89_ops_configure_filter()
192 if (*new_flags & FIF_BCN_PRBRESP_PROMISC) { in rtw89_ops_configure_filter()
203 if (*new_flags & FIF_PROBE_REQ) { in rtw89_ops_configure_filter()
/linux-5.19.10/drivers/net/ethernet/google/gve/ !
Dgve_ethtool.c502 u64 ori_flags, new_flags; in gve_set_priv_flags() local
505 new_flags = ori_flags; in gve_set_priv_flags()
509 new_flags |= BIT(0); in gve_set_priv_flags()
511 new_flags &= ~(BIT(0)); in gve_set_priv_flags()
512 priv->ethtool_flags = new_flags; in gve_set_priv_flags()
/linux-5.19.10/drivers/net/wireless/realtek/rtw88/ !
Dmac80211.c261 unsigned int *new_flags, in rtw_ops_configure_filter() argument
266 *new_flags &= FIF_ALLMULTI | FIF_OTHER_BSS | FIF_FCSFAIL | in rtw_ops_configure_filter()
274 if (*new_flags & FIF_ALLMULTI) in rtw_ops_configure_filter()
280 if (*new_flags & FIF_FCSFAIL) in rtw_ops_configure_filter()
286 if (*new_flags & FIF_OTHER_BSS) in rtw_ops_configure_filter()
292 if (*new_flags & FIF_BCN_PRBRESP_PROMISC) in rtw_ops_configure_filter()
300 changed_flags, *new_flags, rtwdev->hal.rcr); in rtw_ops_configure_filter()
/linux-5.19.10/fs/ !
Duserfaultfd.c859 unsigned long new_flags; in userfaultfd_release() local
884 new_flags = vma->vm_flags & ~__VM_UFFD_FLAGS; in userfaultfd_release()
886 new_flags, vma->anon_vma, in userfaultfd_release()
894 vma->vm_flags = new_flags; in userfaultfd_release()
1271 unsigned long vm_flags, new_flags; in userfaultfd_register() local
1426 new_flags = (vma->vm_flags & ~__VM_UFFD_FLAGS) | vm_flags; in userfaultfd_register()
1427 prev = vma_merge(mm, prev, start, vma_end, new_flags, in userfaultfd_register()
1452 vma->vm_flags = new_flags; in userfaultfd_register()
1502 unsigned long new_flags; in userfaultfd_unregister() local
1608 new_flags = vma->vm_flags & ~__VM_UFFD_FLAGS; in userfaultfd_unregister()
[all …]
/linux-5.19.10/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-5.19.10/fs/exfat/ !
Dsuper.c99 static int exfat_set_vol_flags(struct super_block *sb, unsigned short new_flags) in exfat_set_vol_flags() argument
105 new_flags |= sbi->vol_flags_persistent; in exfat_set_vol_flags()
108 if (sbi->vol_flags == new_flags) in exfat_set_vol_flags()
111 sbi->vol_flags = new_flags; in exfat_set_vol_flags()
119 p_boot->vol_flags = cpu_to_le16(new_flags); in exfat_set_vol_flags()
/linux-5.19.10/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-5.19.10/drivers/net/ethernet/intel/ice/ !
Dice_fltr.h50 u32 new_flags);
/linux-5.19.10/arch/s390/kernel/ !
Dperf_cpum_sf.c1478 unsigned long long orig_overflow, orig_flags, new_flags; in aux_set_alert() local
1493 new_flags = orig_flags | SDB_TE_ALERT_REQ_MASK; in aux_set_alert()
1496 new_flags, 0ULL)); in aux_set_alert()
1525 unsigned long long orig_overflow, orig_flags, new_flags; in aux_reset_buffer() local
1560 new_flags = orig_flags & ~SDB_TE_BUFFER_FULL_MASK; in aux_reset_buffer()
1562 new_flags |= SDB_TE_ALERT_REQ_MASK; in aux_reset_buffer()
1564 new_flags &= ~SDB_TE_ALERT_REQ_MASK; in aux_reset_buffer()
1567 new_flags, 0ULL)); in aux_reset_buffer()
/linux-5.19.10/fs/gfs2/ !
Dfile.c225 u32 new_flags, flags; in do_gfs2_set_flags() local
233 new_flags = (flags & ~mask) | (reqflags & mask); in do_gfs2_set_flags()
234 if ((new_flags ^ flags) == 0) in do_gfs2_set_flags()
242 if ((flags ^ new_flags) & GFS2_DIF_JDATA) { in do_gfs2_set_flags()
243 if (new_flags & GFS2_DIF_JDATA) in do_gfs2_set_flags()
253 if (new_flags & GFS2_DIF_JDATA) in do_gfs2_set_flags()
264 ip->i_diskflags = new_flags; in do_gfs2_set_flags()
/linux-5.19.10/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-5.19.10/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-5.19.10/tools/perf/ !
Dbuiltin-kmem.c670 char *new_flags = NULL; in compact_gfp_flags() local
688 new = realloc(new_flags, len + strlen(cpt) + 2); in compact_gfp_flags()
690 free(new_flags); in compact_gfp_flags()
695 new_flags = new; in compact_gfp_flags()
698 strcpy(new_flags, cpt); in compact_gfp_flags()
700 strcat(new_flags, "|"); in compact_gfp_flags()
701 strcat(new_flags, cpt); in compact_gfp_flags()
715 return new_flags; in compact_gfp_flags()
/linux-5.19.10/drivers/net/ethernet/intel/i40e/ !
Di40e_ethtool.c5144 u64 orig_flags, new_flags, changed_flags; in i40e_set_priv_flags() local
5153 new_flags = orig_flags; in i40e_set_priv_flags()
5161 new_flags |= priv_flags->flag; in i40e_set_priv_flags()
5163 new_flags &= ~(priv_flags->flag); in i40e_set_priv_flags()
5167 ((orig_flags ^ new_flags) & ~BIT(i))) in i40e_set_priv_flags()
5180 new_flags |= priv_flags->flag; in i40e_set_priv_flags()
5182 new_flags &= ~(priv_flags->flag); in i40e_set_priv_flags()
5186 ((orig_flags ^ new_flags) & ~BIT(i))) in i40e_set_priv_flags()
5191 changed_flags = orig_flags ^ new_flags; in i40e_set_priv_flags()
5204 if ((new_flags & I40E_FLAG_HW_ATR_EVICT_ENABLED) && in i40e_set_priv_flags()
[all …]
/linux-5.19.10/net/batman-adv/ !
Dmulticast.c777 struct batadv_mcast_mla_flags *new_flags) in batadv_mcast_bridge_log() argument
781 if (!old_flags->bridged && new_flags->bridged) in batadv_mcast_bridge_log()
784 else if (old_flags->bridged && !new_flags->bridged) in batadv_mcast_bridge_log()
788 if (new_flags->bridged) { in batadv_mcast_bridge_log()
791 &new_flags->querier_ipv4); in batadv_mcast_bridge_log()
794 &new_flags->querier_ipv6); in batadv_mcast_bridge_log()
/linux-5.19.10/drivers/net/ethernet/intel/iavf/ !
Diavf_ethtool.c486 u32 orig_flags, new_flags, changed_flags; in iavf_set_priv_flags() local
490 new_flags = orig_flags; in iavf_set_priv_flags()
498 new_flags |= priv_flags->flag; in iavf_set_priv_flags()
500 new_flags &= ~(priv_flags->flag); in iavf_set_priv_flags()
503 ((orig_flags ^ new_flags) & ~BIT(i))) in iavf_set_priv_flags()
518 if (cmpxchg(&adapter->flags, orig_flags, new_flags) != orig_flags) { in iavf_set_priv_flags()
524 changed_flags = orig_flags ^ new_flags; in iavf_set_priv_flags()
/linux-5.19.10/kernel/locking/ !
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()
/linux-5.19.10/drivers/net/wireless/marvell/libertas_tf/ !
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()

12