Home
last modified time | relevance | path

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

12

/linux-6.6.21/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 …]
/linux-6.6.21/fs/notify/dnotify/
Ddnotify.c66 __u32 new_mask = 0; in dnotify_recalc_inode_mask() local
75 new_mask |= (dn->dn_mask & ~FS_DN_MULTISHOT); in dnotify_recalc_inode_mask()
76 if (fsn_mark->mask == new_mask) in dnotify_recalc_inode_mask()
78 fsn_mark->mask = new_mask; in dnotify_recalc_inode_mask()
204 __u32 new_mask = FS_EVENT_ON_CHILD; in convert_arg() local
207 new_mask |= FS_DN_MULTISHOT; in convert_arg()
209 new_mask |= (FS_DELETE | FS_MOVED_FROM); in convert_arg()
211 new_mask |= FS_MODIFY; in convert_arg()
213 new_mask |= FS_ACCESS; in convert_arg()
215 new_mask |= FS_ATTRIB; in convert_arg()
[all …]
/linux-6.6.21/drivers/platform/x86/intel/
Dcrystal_cove_charger.c30 u8 new_mask; member
57 if (charger->mask != charger->new_mask) { in crystal_cove_charger_irq_bus_sync_unlock()
58 regmap_write(charger->regmap, MCHGRIRQ_REG, charger->new_mask); in crystal_cove_charger_irq_bus_sync_unlock()
59 charger->mask = charger->new_mask; in crystal_cove_charger_irq_bus_sync_unlock()
69 charger->new_mask &= ~BIT(data->hwirq); in crystal_cove_charger_irq_unmask()
76 charger->new_mask |= BIT(data->hwirq); in crystal_cove_charger_irq_mask()
131 charger->mask = charger->new_mask = BIT(0); in crystal_cove_charger_probe()
/linux-6.6.21/drivers/net/wireless/ath/ath5k/
Ddma.c740 ath5k_hw_set_imr(struct ath5k_hw *ah, enum ath5k_int new_mask) in ath5k_hw_set_imr() argument
760 int_mask = new_mask & AR5K_INT_COMMON; in ath5k_hw_set_imr()
768 if (new_mask & AR5K_INT_FATAL) { in ath5k_hw_set_imr()
775 if (new_mask & AR5K_INT_TIM) in ath5k_hw_set_imr()
778 if (new_mask & AR5K_INT_TIM) in ath5k_hw_set_imr()
780 if (new_mask & AR5K_INT_DTIM) in ath5k_hw_set_imr()
782 if (new_mask & AR5K_INT_DTIM_SYNC) in ath5k_hw_set_imr()
784 if (new_mask & AR5K_INT_BCN_TIMEOUT) in ath5k_hw_set_imr()
786 if (new_mask & AR5K_INT_CAB_TIMEOUT) in ath5k_hw_set_imr()
790 if (new_mask & AR5K_INT_BNR) in ath5k_hw_set_imr()
[all …]
/linux-6.6.21/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()
/linux-6.6.21/drivers/spi/
Dspi-dw.h252 u32 new_mask; in dw_spi_mask_intr() local
254 new_mask = dw_readl(dws, DW_SPI_IMR) & ~mask; in dw_spi_mask_intr()
255 dw_writel(dws, DW_SPI_IMR, new_mask); in dw_spi_mask_intr()
261 u32 new_mask; in dw_spi_umask_intr() local
263 new_mask = dw_readl(dws, DW_SPI_IMR) | mask; in dw_spi_umask_intr()
264 dw_writel(dws, DW_SPI_IMR, new_mask); in dw_spi_umask_intr()
/linux-6.6.21/kernel/time/
Dsched_clock.c166 u64 res, wrap, new_mask, new_epoch, cyc, ns; in sched_clock_register() local
181 new_mask = CLOCKSOURCE_MASK(bits); in sched_clock_register()
185 wrap = clocks_calc_max_nsecs(new_mult, new_shift, 0, new_mask, NULL); in sched_clock_register()
197 rd.sched_clock_mask = new_mask; in sched_clock_register()
/linux-6.6.21/drivers/thermal/intel/
Dintel_powerclamp.c157 cpumask_var_t new_mask; in cpumask_set() local
168 ret = alloc_cpumask_var(&new_mask, GFP_KERNEL); in cpumask_set()
172 ret = bitmap_parse(arg, strlen(arg), cpumask_bits(new_mask), in cpumask_set()
177 if (cpumask_empty(new_mask) || check_invalid(new_mask, max_idle)) { in cpumask_set()
189 ret = allocate_copy_idle_injection_mask(new_mask); in cpumask_set()
192 free_cpumask_var(new_mask); in cpumask_set()
/linux-6.6.21/arch/mips/cavium-octeon/
Dsmp.c308 uint32_t mask, new_mask; in octeon_cpu_die() local
329 new_mask = labi->avail_coremask; in octeon_cpu_die()
334 new_mask = *p; in octeon_cpu_die()
337 pr_info("Reset core %d. Available Coremask = 0x%x \n", coreid, new_mask); in octeon_cpu_die()
/linux-6.6.21/drivers/infiniband/core/
Dcounters.c15 enum rdma_nl_counter_mask new_mask) in __counter_set_mode() argument
18 if (new_mask & (~ALL_AUTO_MODE_MASKS)) in __counter_set_mode()
25 port_counter->mode.mask = new_mask; in __counter_set_mode()
80 enum rdma_nl_counter_mask new_mask) in auto_mode_init_counter() argument
85 counter->mode.mask = new_mask; in auto_mode_init_counter()
87 if (new_mask & RDMA_COUNTER_MASK_QP_TYPE) in auto_mode_init_counter()
/linux-6.6.21/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()
/linux-6.6.21/drivers/net/ethernet/intel/i40e/
Di40e_ethtool.c4297 u64 current_mask, new_mask; in i40e_check_fdir_input_set() local
4346 new_mask = current_mask; in i40e_check_fdir_input_set()
4359 new_mask &= ~I40E_VERIFY_TAG_MASK; in i40e_check_fdir_input_set()
4367 new_mask |= I40E_L3_SRC_MASK; in i40e_check_fdir_input_set()
4369 new_mask &= ~I40E_L3_SRC_MASK; in i40e_check_fdir_input_set()
4375 new_mask |= I40E_L3_DST_MASK; in i40e_check_fdir_input_set()
4377 new_mask &= ~I40E_L3_DST_MASK; in i40e_check_fdir_input_set()
4383 new_mask |= I40E_L4_SRC_MASK; in i40e_check_fdir_input_set()
4385 new_mask &= ~I40E_L4_SRC_MASK; in i40e_check_fdir_input_set()
4391 new_mask |= I40E_L4_DST_MASK; in i40e_check_fdir_input_set()
[all …]
/linux-6.6.21/kernel/sched/
Dcore.c2395 .new_mask = cpumask_of(rq->cpu), in migrate_disable_switch()
2431 .new_mask = &p->cpus_mask, in migrate_enable()
2735 p->cpus_ptr = ctx->new_mask; in set_cpus_allowed_common()
2739 cpumask_copy(&p->cpus_mask, ctx->new_mask); in set_cpus_allowed_common()
2740 p->nr_cpus_allowed = cpumask_weight(ctx->new_mask); in set_cpus_allowed_common()
2798 void do_set_cpus_allowed(struct task_struct *p, const struct cpumask *new_mask) in do_set_cpus_allowed() argument
2801 .new_mask = new_mask, in do_set_cpus_allowed()
3139 if (!kthread && !cpumask_subset(ctx->new_mask, cpu_allowed_mask)) { in __set_cpus_allowed_ptr_locked()
3154 if (cpumask_equal(&p->cpus_mask, ctx->new_mask)) { in __set_cpus_allowed_ptr_locked()
3162 !cpumask_test_cpu(task_cpu(p), ctx->new_mask))) { in __set_cpus_allowed_ptr_locked()
[all …]
/linux-6.6.21/drivers/net/ethernet/sfc/
Def10_sriov.c685 u32 old_mask, new_mask; in efx_ef10_sriov_set_privilege_mask() local
707 new_mask = old_mask & ~mask; in efx_ef10_sriov_set_privilege_mask()
708 new_mask |= value; in efx_ef10_sriov_set_privilege_mask()
710 if (new_mask == old_mask) in efx_ef10_sriov_set_privilege_mask()
713 new_mask |= MC_CMD_PRIVILEGE_MASK_IN_DO_CHANGE; in efx_ef10_sriov_set_privilege_mask()
716 MCDI_SET_DWORD(pm_inbuf, PRIVILEGE_MASK_IN_NEW_MASK, new_mask); in efx_ef10_sriov_set_privilege_mask()
/linux-6.6.21/fs/notify/inotify/
Dinotify_user.c543 __u32 old_mask, new_mask; in inotify_update_existing_watch() local
566 new_mask = fsn_mark->mask; in inotify_update_existing_watch()
569 if (old_mask != new_mask) { in inotify_update_existing_watch()
571 int dropped = (old_mask & ~new_mask); in inotify_update_existing_watch()
573 int do_inode = (new_mask & ~inode->i_fsnotify_mask); in inotify_update_existing_watch()
/linux-6.6.21/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()
/linux-6.6.21/drivers/gpu/drm/amd/pm/swsmu/
Dsmu_internal.h90 #define smu_set_pp_feature_mask(smu, new_mask) smu_ppt_funcs(set_pp_feature_mask, 0, smu, new_ma… argument
Dsmu_cmn.h93 uint64_t new_mask);
Dsmu_cmn.c754 uint64_t new_mask) in smu_cmn_set_pp_feature_mask() argument
765 feature_2_enabled = ~feature_mask & new_mask; in smu_cmn_set_pp_feature_mask()
766 feature_2_disabled = feature_mask & ~new_mask; in smu_cmn_set_pp_feature_mask()
/linux-6.6.21/arch/x86/kernel/
Dkvm.c564 struct cpumask *new_mask = this_cpu_cpumask_var_ptr(__pv_cpu_mask); in kvm_send_ipi_mask_allbutself() local
567 cpumask_copy(new_mask, mask); in kvm_send_ipi_mask_allbutself()
568 cpumask_clear_cpu(this_cpu, new_mask); in kvm_send_ipi_mask_allbutself()
569 local_mask = new_mask; in kvm_send_ipi_mask_allbutself()
/linux-6.6.21/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)
/linux-6.6.21/include/linux/
Dsched.h1863 extern void do_set_cpus_allowed(struct task_struct *p, const struct cpumask *new_mask);
1872 extern int set_cpus_allowed_ptr(struct task_struct *p, const struct cpumask *new_mask);
1879 static inline void do_set_cpus_allowed(struct task_struct *p, const struct cpumask *new_mask) in do_set_cpus_allowed() argument
1882 static inline int set_cpus_allowed_ptr(struct task_struct *p, const struct cpumask *new_mask) in set_cpus_allowed_ptr() argument
1884 if (!cpumask_test_cpu(0, new_mask)) in set_cpus_allowed_ptr()
2302 extern long sched_setaffinity(pid_t pid, const struct cpumask *new_mask);
/linux-6.6.21/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()
/linux-6.6.21/fs/notify/
Dmark.c158 u32 new_mask = 0; in __fsnotify_recalc_mask() local
169 new_mask |= fsnotify_calc_mask(mark); in __fsnotify_recalc_mask()
174 *fsnotify_conn_mask_p(conn) = new_mask; in __fsnotify_recalc_mask()
/linux-6.6.21/drivers/net/wireless/quantenna/qtnfmac/
Dcfg80211.c398 u16 new_mask = upd->interface_stypes; in qtnf_update_mgmt_frame_registrations() local
423 if (new_mask == old_mask) in qtnf_update_mgmt_frame_registrations()
432 if (!(new_mask & mask) == !(old_mask & mask)) in qtnf_update_mgmt_frame_registrations()
435 reg = new_mask & mask; in qtnf_update_mgmt_frame_registrations()
443 vif->mgmt_frames_bitmask = new_mask; in qtnf_update_mgmt_frame_registrations()

12