Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/arch/mips/kernel/
Dmips-mt-fpaff.c68 cpumask_var_t cpus_allowed, new_mask, effective_mask; in mipsmt_sys_sched_setaffinity() local
73 if (len < sizeof(new_mask)) in mipsmt_sys_sched_setaffinity()
76 if (copy_from_user(&new_mask, user_mask_ptr, sizeof(new_mask))) in mipsmt_sys_sched_setaffinity()
97 if (!alloc_cpumask_var(&new_mask, GFP_KERNEL)) { in mipsmt_sys_sched_setaffinity()
115 cpumask_copy(&p->thread.user_cpus_allowed, new_mask); in mipsmt_sys_sched_setaffinity()
121 cpumask_intersects(new_mask, &mt_fpu_cpumask)) { in mipsmt_sys_sched_setaffinity()
122 cpumask_and(effective_mask, new_mask, &mt_fpu_cpumask); in mipsmt_sys_sched_setaffinity()
125 cpumask_copy(effective_mask, new_mask); in mipsmt_sys_sched_setaffinity()
127 retval = set_cpus_allowed_ptr(p, new_mask); in mipsmt_sys_sched_setaffinity()
138 cpumask_copy(new_mask, cpus_allowed); in mipsmt_sys_sched_setaffinity()
[all …]
/kernel/linux/linux-5.10/fs/notify/dnotify/
Ddnotify.c48 __u32 new_mask = 0; in dnotify_recalc_inode_mask() local
57 new_mask |= (dn->dn_mask & ~FS_DN_MULTISHOT); in dnotify_recalc_inode_mask()
58 if (fsn_mark->mask == new_mask) in dnotify_recalc_inode_mask()
60 fsn_mark->mask = new_mask; in dnotify_recalc_inode_mask()
186 __u32 new_mask = FS_EVENT_ON_CHILD; in convert_arg() local
189 new_mask |= FS_DN_MULTISHOT; in convert_arg()
191 new_mask |= (FS_DELETE | FS_MOVED_FROM); in convert_arg()
193 new_mask |= FS_MODIFY; in convert_arg()
195 new_mask |= FS_ACCESS; in convert_arg()
197 new_mask |= FS_ATTRIB; in convert_arg()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath5k/
Ddma.c755 ath5k_hw_set_imr(struct ath5k_hw *ah, enum ath5k_int new_mask) in ath5k_hw_set_imr() argument
775 int_mask = new_mask & AR5K_INT_COMMON; in ath5k_hw_set_imr()
783 if (new_mask & AR5K_INT_FATAL) { in ath5k_hw_set_imr()
790 if (new_mask & AR5K_INT_TIM) in ath5k_hw_set_imr()
793 if (new_mask & AR5K_INT_TIM) in ath5k_hw_set_imr()
795 if (new_mask & AR5K_INT_DTIM) in ath5k_hw_set_imr()
797 if (new_mask & AR5K_INT_DTIM_SYNC) in ath5k_hw_set_imr()
799 if (new_mask & AR5K_INT_BCN_TIMEOUT) in ath5k_hw_set_imr()
801 if (new_mask & AR5K_INT_CAB_TIMEOUT) in ath5k_hw_set_imr()
805 if (new_mask & AR5K_INT_BNR) in ath5k_hw_set_imr()
[all …]
/kernel/linux/linux-5.10/kernel/
Dcompat.c111 unsigned len, struct cpumask *new_mask) in compat_get_user_cpu_mask() argument
116 memset(new_mask, 0, cpumask_size()); in compat_get_user_cpu_mask()
120 k = cpumask_bits(new_mask); in compat_get_user_cpu_mask()
128 cpumask_var_t new_mask; in COMPAT_SYSCALL_DEFINE3() local
131 if (!alloc_cpumask_var(&new_mask, GFP_KERNEL)) in COMPAT_SYSCALL_DEFINE3()
134 retval = compat_get_user_cpu_mask(user_mask_ptr, len, new_mask); in COMPAT_SYSCALL_DEFINE3()
138 retval = sched_setaffinity(pid, new_mask); in COMPAT_SYSCALL_DEFINE3()
140 free_cpumask_var(new_mask); in COMPAT_SYSCALL_DEFINE3()
/kernel/linux/linux-5.10/drivers/spi/
Dspi-dw.h241 u32 new_mask; in spi_mask_intr() local
243 new_mask = dw_readl(dws, DW_SPI_IMR) & ~mask; in spi_mask_intr()
244 dw_writel(dws, DW_SPI_IMR, new_mask); in spi_mask_intr()
250 u32 new_mask; in spi_umask_intr() local
252 new_mask = dw_readl(dws, DW_SPI_IMR) | mask; in spi_umask_intr()
253 dw_writel(dws, DW_SPI_IMR, new_mask); in spi_umask_intr()
/kernel/linux/linux-5.10/arch/x86/hyperv/
Dhv_apic.c228 struct cpumask new_mask; in hv_send_ipi_mask_allbutself() local
231 cpumask_copy(&new_mask, mask); in hv_send_ipi_mask_allbutself()
232 cpumask_clear_cpu(this_cpu, &new_mask); in hv_send_ipi_mask_allbutself()
233 local_mask = &new_mask; in hv_send_ipi_mask_allbutself()
/kernel/linux/linux-5.10/kernel/time/
Dsched_clock.c155 u64 res, wrap, new_mask, new_epoch, cyc, ns; in sched_clock_register() local
170 new_mask = CLOCKSOURCE_MASK(bits); in sched_clock_register()
174 wrap = clocks_calc_max_nsecs(new_mult, new_shift, 0, new_mask, NULL); in sched_clock_register()
186 rd.sched_clock_mask = new_mask; in sched_clock_register()
/kernel/linux/linux-5.10/kernel/trace/
Dtrace_boot.c70 cpumask_var_t new_mask; in trace_boot_set_instance_options() local
72 if (alloc_cpumask_var(&new_mask, GFP_KERNEL)) { in trace_boot_set_instance_options()
73 if (cpumask_parse(p, new_mask) < 0 || in trace_boot_set_instance_options()
74 tracing_set_cpumask(tr, new_mask) < 0) in trace_boot_set_instance_options()
76 free_cpumask_var(new_mask); in trace_boot_set_instance_options()
/kernel/linux/linux-5.10/arch/mips/cavium-octeon/
Dsmp.c312 uint32_t mask, new_mask; in octeon_cpu_die() local
333 new_mask = labi->avail_coremask; in octeon_cpu_die()
338 new_mask = *p; in octeon_cpu_die()
341 pr_info("Reset core %d. Available Coremask = 0x%x \n", coreid, new_mask); in octeon_cpu_die()
/kernel/linux/linux-5.10/drivers/infiniband/core/
Dcounters.c15 enum rdma_nl_counter_mask new_mask) in __counter_set_mode() argument
18 ((new_mask & (~ALL_AUTO_MODE_MASKS)) || in __counter_set_mode()
23 curr->mask = new_mask; in __counter_set_mode()
137 enum rdma_nl_counter_mask new_mask) in auto_mode_init_counter() argument
142 counter->mode.mask = new_mask; in auto_mode_init_counter()
144 if (new_mask & RDMA_COUNTER_MASK_QP_TYPE) in auto_mode_init_counter()
/kernel/linux/linux-5.10/fs/notify/inotify/
Dinotify_user.c507 __u32 old_mask, new_mask; in inotify_update_existing_watch() local
531 new_mask = fsn_mark->mask; in inotify_update_existing_watch()
534 if (old_mask != new_mask) { in inotify_update_existing_watch()
536 int dropped = (old_mask & ~new_mask); in inotify_update_existing_watch()
538 int do_inode = (new_mask & ~inode->i_fsnotify_mask); in inotify_update_existing_watch()
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/
Def10_sriov.c696 u32 old_mask, new_mask; in efx_ef10_sriov_set_privilege_mask() local
718 new_mask = old_mask & ~mask; in efx_ef10_sriov_set_privilege_mask()
719 new_mask |= value; in efx_ef10_sriov_set_privilege_mask()
721 if (new_mask == old_mask) in efx_ef10_sriov_set_privilege_mask()
724 new_mask |= MC_CMD_PRIVILEGE_MASK_IN_DO_CHANGE; in efx_ef10_sriov_set_privilege_mask()
727 MCDI_SET_DWORD(pm_inbuf, PRIVILEGE_MASK_IN_NEW_MASK, new_mask); in efx_ef10_sriov_set_privilege_mask()
/kernel/linux/linux-5.10/kernel/sched/
Dcore.c1901 void set_cpus_allowed_common(struct task_struct *p, const struct cpumask *new_mask) in set_cpus_allowed_common() argument
1903 cpumask_copy(&p->cpus_mask, new_mask); in set_cpus_allowed_common()
1904 p->nr_cpus_allowed = cpumask_weight(new_mask); in set_cpus_allowed_common()
1907 void do_set_cpus_allowed(struct task_struct *p, const struct cpumask *new_mask) in do_set_cpus_allowed() argument
1928 p->sched_class->set_cpus_allowed(p, new_mask); in do_set_cpus_allowed()
1946 const struct cpumask *new_mask, bool check) in __set_cpus_allowed_ptr() argument
1976 if (cpumask_equal(&p->cpus_mask, new_mask)) in __set_cpus_allowed_ptr()
1980 cpumask_andnot(&allowed_mask, new_mask, cpu_isolated_mask); in __set_cpus_allowed_ptr()
1985 cpumask_and(&allowed_mask, cpu_valid_mask, new_mask); in __set_cpus_allowed_ptr()
1987 if (!cpumask_intersects(new_mask, cpu_valid_mask)) { in __set_cpus_allowed_ptr()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/marvell/libertas/
Ddebugfs.c277 int value, freq, new_mask; in lbs_threshold_write() local
286 ret = sscanf(buf, "%d %d %d", &value, &freq, &new_mask); in lbs_threshold_write()
306 if (new_mask) in lbs_threshold_write()
307 new_mask = curr_mask | event_mask; in lbs_threshold_write()
309 new_mask = curr_mask & ~event_mask; in lbs_threshold_write()
316 events->events = cpu_to_le16(new_mask); in lbs_threshold_write()
/kernel/linux/linux-5.10/arch/x86/kernel/
Dkvm.c580 struct cpumask *new_mask = this_cpu_cpumask_var_ptr(__pv_cpu_mask); in kvm_send_ipi_mask_allbutself() local
583 cpumask_copy(new_mask, mask); in kvm_send_ipi_mask_allbutself()
584 cpumask_clear_cpu(this_cpu, new_mask); in kvm_send_ipi_mask_allbutself()
585 local_mask = new_mask; in kvm_send_ipi_mask_allbutself()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/pm/swsmu/
Dsmu_cmn.h67 uint64_t new_mask);
Dsmu_internal.h94 #define smu_set_pp_feature_mask(smu, new_mask) smu_ppt_funcs(set_pp_feature_mask, 0, smu, new_ma… argument
Dsmu_cmn.c480 uint64_t new_mask) in smu_cmn_set_pp_feature_mask() argument
497 feature_2_enabled = ~feature_enables & new_mask; in smu_cmn_set_pp_feature_mask()
498 feature_2_disabled = feature_enables & ~new_mask; in smu_cmn_set_pp_feature_mask()
/kernel/linux/linux-5.10/include/linux/
Dsched.h1816 extern void do_set_cpus_allowed(struct task_struct *p, const struct cpumask *new_mask);
1817 extern int set_cpus_allowed_ptr(struct task_struct *p, const struct cpumask *new_mask);
1819 static inline void do_set_cpus_allowed(struct task_struct *p, const struct cpumask *new_mask) in do_set_cpus_allowed() argument
1822 static inline int set_cpus_allowed_ptr(struct task_struct *p, const struct cpumask *new_mask) in set_cpus_allowed_ptr() argument
1824 if (!cpumask_test_cpu(0, new_mask)) in set_cpus_allowed_ptr()
2106 extern long sched_setaffinity(pid_t pid, const struct cpumask *new_mask);
/kernel/linux/linux-5.10/drivers/net/ethernet/brocade/bna/
Dbna_hw_defs.h169 #define bna_intx_enable(bna, new_mask) \ argument
170 writel((new_mask), (bna)->regs.fn_int_mask)
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/i40e/
Di40e_ethtool.c4129 u64 current_mask, new_mask; in i40e_check_fdir_input_set() local
4161 new_mask = current_mask; in i40e_check_fdir_input_set()
4174 new_mask &= ~I40E_VERIFY_TAG_MASK; in i40e_check_fdir_input_set()
4182 new_mask |= I40E_L3_SRC_MASK; in i40e_check_fdir_input_set()
4184 new_mask &= ~I40E_L3_SRC_MASK; in i40e_check_fdir_input_set()
4190 new_mask |= I40E_L3_DST_MASK; in i40e_check_fdir_input_set()
4192 new_mask &= ~I40E_L3_DST_MASK; in i40e_check_fdir_input_set()
4198 new_mask |= I40E_L4_SRC_MASK; in i40e_check_fdir_input_set()
4200 new_mask &= ~I40E_L4_SRC_MASK; in i40e_check_fdir_input_set()
4206 new_mask |= I40E_L4_DST_MASK; in i40e_check_fdir_input_set()
[all …]
/kernel/linux/linux-5.10/drivers/net/fddi/
Ddefza.c290 unsigned int old_mask, new_mask; in fza_cmd_send() local
296 new_mask = old_mask & ~FZA_MASK_STATE_CHG; in fza_cmd_send()
297 writew_u(new_mask, &fp->regs->int_mask); in fza_cmd_send()
299 fp->int_mask = new_mask; in fza_cmd_send()
1081 unsigned int old_mask, new_mask; in fza_start_xmit() local
1123 new_mask = old_mask & ~FZA_MASK_SMT_TX_POLL; in fza_start_xmit()
1124 writew_u(new_mask, &fp->regs->int_mask); in fza_start_xmit()
1126 fp->int_mask = new_mask; in fza_start_xmit()
/kernel/linux/linux-5.10/fs/notify/
Dmark.c121 u32 new_mask = 0; in __fsnotify_recalc_mask() local
130 new_mask |= mark->mask; in __fsnotify_recalc_mask()
132 *fsnotify_conn_mask_p(conn) = new_mask; in __fsnotify_recalc_mask()
/kernel/linux/linux-5.10/drivers/net/wireless/quantenna/qtnfmac/
Dcfg80211.c397 u16 new_mask = upd->interface_stypes; in qtnf_update_mgmt_frame_registrations() local
422 if (new_mask == old_mask) in qtnf_update_mgmt_frame_registrations()
431 if (!(new_mask & mask) == !(old_mask & mask)) in qtnf_update_mgmt_frame_registrations()
434 reg = new_mask & mask; in qtnf_update_mgmt_frame_registrations()
442 vif->mgmt_frames_bitmask = new_mask; in qtnf_update_mgmt_frame_registrations()
/kernel/linux/linux-5.10/drivers/gpu/drm/arm/
Dmalidp_crtc.c420 u32 new_mask = state->connector_mask; in malidp_crtc_atomic_check() local
422 if ((old_mask ^ new_mask) == in malidp_crtc_atomic_check()

12