Home
last modified time | relevance | path

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

12

/linux/arch/mips/kernel/
H A Dmips-mt-fpaff.c69 cpumask_var_t cpus_allowed, new_mask, effective_mask; in mipsmt_sys_sched_setaffinity() local
74 if (len < sizeof(new_mask)) in mipsmt_sys_sched_setaffinity()
77 if (copy_from_user(&new_mask, user_mask_ptr, sizeof(new_mask))) in mipsmt_sys_sched_setaffinity()
98 if (!alloc_cpumask_var(&new_mask, GFP_KERNEL)) { in mipsmt_sys_sched_setaffinity()
116 cpumask_copy(&p->thread.user_cpus_allowed, new_mask); in mipsmt_sys_sched_setaffinity()
122 cpumask_intersects(new_mask, &mt_fpu_cpumask)) { in mipsmt_sys_sched_setaffinity()
123 cpumask_and(effective_mask, new_mask, &mt_fpu_cpumask); in mipsmt_sys_sched_setaffinity()
126 cpumask_copy(effective_mask, new_mask); in mipsmt_sys_sched_setaffinity()
128 retval = set_cpus_allowed_ptr(p, new_mask); in mipsmt_sys_sched_setaffinity()
139 cpumask_copy(new_mask, cpus_allowed); in mipsmt_sys_sched_setaffinity()
[all …]
/linux/fs/notify/dnotify/
H A Ddnotify.c64 __u32 new_mask = 0; in dnotify_recalc_inode_mask() local
73 new_mask |= (dn->dn_mask & ~FS_DN_MULTISHOT); in dnotify_recalc_inode_mask()
74 if (fsn_mark->mask == new_mask) in dnotify_recalc_inode_mask()
76 fsn_mark->mask = new_mask; in dnotify_recalc_inode_mask()
202 __u32 new_mask = FS_EVENT_ON_CHILD; in convert_arg() local
205 new_mask |= FS_DN_MULTISHOT; in convert_arg()
207 new_mask |= (FS_DELETE | FS_MOVED_FROM); in convert_arg()
209 new_mask |= FS_MODIFY; in convert_arg()
211 new_mask |= FS_ACCESS; in convert_arg()
213 new_mask |= FS_ATTRIB; in convert_arg()
[all …]
/linux/drivers/platform/x86/intel/
H A 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/drivers/net/wireless/ath/ath5k/
H A 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/kernel/
H A 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/kernel/sched/
H A Dsyscalls.c1159 cpumask_var_t cpus_allowed, new_mask; in __sched_setaffinity() local
1164 if (!alloc_cpumask_var(&new_mask, GFP_KERNEL)) { in __sched_setaffinity()
1170 cpumask_and(new_mask, ctx->new_mask, cpus_allowed); in __sched_setaffinity()
1172 ctx->new_mask = new_mask; in __sched_setaffinity()
1175 retval = dl_task_check_affinity(p, new_mask); in __sched_setaffinity()
1184 if (!cpumask_subset(new_mask, cpus_allowed)) { in __sched_setaffinity()
1189 cpumask_copy(new_mask, cpus_allowed); in __sched_setaffinity()
1200 bool empty = !cpumask_and(new_mask, new_mask, in __sched_setaffinity()
1204 cpumask_copy(new_mask, cpus_allowed); in __sched_setaffinity()
1211 free_cpumask_var(new_mask); in __sched_setaffinity()
[all …]
H A Dcore.c2340 .new_mask = cpumask_of(rq->cpu), in migrate_disable_switch()
2381 .new_mask = &p->cpus_mask, in migrate_enable()
2688 p->cpus_ptr = ctx->new_mask; in set_cpus_allowed_common()
2692 cpumask_copy(&p->cpus_mask, ctx->new_mask); in set_cpus_allowed_common()
2693 p->nr_cpus_allowed = cpumask_weight(ctx->new_mask); in set_cpus_allowed_common()
2740 mm_set_cpus_allowed(p->mm, ctx->new_mask); in __do_set_cpus_allowed()
2752 void do_set_cpus_allowed(struct task_struct *p, const struct cpumask *new_mask) in do_set_cpus_allowed() argument
2755 .new_mask = new_mask, in do_set_cpus_allowed()
3083 if (!kthread && !cpumask_subset(ctx->new_mask, cpu_allowed_mask)) { in __set_cpus_allowed_ptr_locked()
3098 if (cpumask_equal(&p->cpus_mask, ctx->new_mask)) { in __set_cpus_allowed_ptr_locked()
[all …]
/linux/drivers/spi/
H A 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/drivers/thermal/intel/
H A Dintel_powerclamp.c156 cpumask_var_t new_mask; in cpumask_set() local
167 ret = alloc_cpumask_var(&new_mask, GFP_KERNEL); in cpumask_set()
171 ret = bitmap_parse(arg, strlen(arg), cpumask_bits(new_mask), in cpumask_set()
176 if (cpumask_empty(new_mask) || check_invalid(new_mask, max_idle)) { in cpumask_set()
188 ret = allocate_copy_idle_injection_mask(new_mask); in cpumask_set()
191 free_cpumask_var(new_mask); in cpumask_set()
/linux/io_uring/
H A Dregister.c202 cpumask_var_t new_mask) in __io_register_iowq_aff() argument
207 ret = io_wq_cpu_affinity(current->io_uring, new_mask); in __io_register_iowq_aff()
210 ret = io_sqpoll_wq_cpu_affinity(ctx, new_mask); in __io_register_iowq_aff()
220 cpumask_var_t new_mask; in io_register_iowq_aff() local
223 if (!alloc_cpumask_var(&new_mask, GFP_KERNEL)) in io_register_iowq_aff()
226 cpumask_clear(new_mask); in io_register_iowq_aff()
232 ret = compat_get_bitmap(cpumask_bits(new_mask), in io_register_iowq_aff()
237 ret = copy_from_user(new_mask, arg, len); in io_register_iowq_aff()
240 free_cpumask_var(new_mask); in io_register_iowq_aff()
244 ret = __io_register_iowq_aff(ctx, new_mask); in io_register_iowq_aff()
[all …]
/linux/arch/mips/cavium-octeon/
H A 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/drivers/infiniband/core/
H A 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/drivers/net/ethernet/intel/i40e/
H A Di40e_ethtool.c4303 u64 current_mask, new_mask; in i40e_check_fdir_input_set() local
4352 new_mask = current_mask; in i40e_check_fdir_input_set()
4365 new_mask &= ~I40E_VERIFY_TAG_MASK; in i40e_check_fdir_input_set()
4373 new_mask |= I40E_L3_SRC_MASK; in i40e_check_fdir_input_set()
4375 new_mask &= ~I40E_L3_SRC_MASK; in i40e_check_fdir_input_set()
4381 new_mask |= I40E_L3_DST_MASK; in i40e_check_fdir_input_set()
4383 new_mask &= ~I40E_L3_DST_MASK; in i40e_check_fdir_input_set()
4389 new_mask |= I40E_L4_SRC_MASK; in i40e_check_fdir_input_set()
4391 new_mask &= ~I40E_L4_SRC_MASK; in i40e_check_fdir_input_set()
4397 new_mask |= I40E_L4_DST_MASK; in i40e_check_fdir_input_set()
[all …]
/linux/kernel/trace/
H A 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/drivers/net/ethernet/sfc/
H A 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/fs/notify/inotify/
H A Dinotify_user.c542 __u32 old_mask, new_mask; in inotify_update_existing_watch() local
565 new_mask = fsn_mark->mask; in inotify_update_existing_watch()
568 if (old_mask != new_mask) { in inotify_update_existing_watch()
570 int dropped = (old_mask & ~new_mask); in inotify_update_existing_watch()
572 int do_inode = (new_mask & ~READ_ONCE(inode->i_fsnotify_mask)); in inotify_update_existing_watch()
/linux/drivers/gpu/drm/imagination/
H A Dpvr_fw_trace.h73 u32 new_mask);
H A Dpvr_fw_trace.c448 pvr_fw_trace_mask_update(struct pvr_device *pvr_dev, u32 old_mask, u32 new_mask) in pvr_fw_trace_mask_update() argument
450 if (old_mask != new_mask) in pvr_fw_trace_mask_update()
451 update_logtype(pvr_dev, new_mask); in pvr_fw_trace_mask_update()
/linux/drivers/net/wireless/marvell/libertas/
H A 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/include/linux/
H A Dsched.h1809 extern void do_set_cpus_allowed(struct task_struct *p, const struct cpumask *new_mask);
1818 extern int set_cpus_allowed_ptr(struct task_struct *p, const struct cpumask *new_mask);
1825 static inline void do_set_cpus_allowed(struct task_struct *p, const struct cpumask *new_mask) in do_set_cpus_allowed() argument
1828 static inline int set_cpus_allowed_ptr(struct task_struct *p, const struct cpumask *new_mask) in set_cpus_allowed_ptr() argument
1831 if ((*cpumask_bits(new_mask) & 1) == 0) in set_cpus_allowed_ptr()
2187 extern long sched_setaffinity(pid_t pid, const struct cpumask *new_mask);
/linux/drivers/gpu/drm/display/
H A Ddrm_dp_tunnel.c1635 unsigned long old_mask, unsigned long new_mask) in resize_bw_array() argument
1637 unsigned long move_mask = old_mask & new_mask; in resize_bw_array()
1641 WARN_ON(!new_mask); in resize_bw_array()
1643 if (old_mask == new_mask) in resize_bw_array()
1646 new_bws = kcalloc(hweight32(new_mask), sizeof(*new_bws), GFP_KERNEL); in resize_bw_array()
1651 new_bws[stream_id_to_idx(new_mask, id)] = in resize_bw_array()
1656 tunnel_state->stream_mask = new_mask; in resize_bw_array()
/linux/drivers/net/fddi/
H A 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/drivers/net/ethernet/brocade/bna/
H A Dbna_hw_defs.h169 #define bna_intx_enable(bna, new_mask) \ argument
170 writel((new_mask), (bna)->regs.fn_int_mask)
/linux/drivers/net/wireless/quantenna/qtnfmac/
H A 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()
/linux/drivers/gpu/drm/arm/
H A Dmalidp_crtc.c425 u32 new_mask = crtc_state->connector_mask; in malidp_crtc_atomic_check() local
427 if ((old_mask ^ new_mask) == in malidp_crtc_atomic_check()

12