Home
last modified time | relevance | path

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

12

/openbmc/linux/arch/mips/kernel/
H A 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 …]
/openbmc/linux/fs/notify/dnotify/
H A 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 …]
/openbmc/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()
/openbmc/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 …]
/openbmc/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()
/openbmc/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()
/openbmc/linux/kernel/time/
H A 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()
/openbmc/linux/drivers/thermal/intel/
H A 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()
/openbmc/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()
/openbmc/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()
/openbmc/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()
/openbmc/linux/drivers/net/ethernet/intel/i40e/
H A Di40e_ethtool.c4298 u64 current_mask, new_mask; in i40e_check_fdir_input_set() local
4347 new_mask = current_mask; in i40e_check_fdir_input_set()
4360 new_mask &= ~I40E_VERIFY_TAG_MASK; in i40e_check_fdir_input_set()
4368 new_mask |= I40E_L3_SRC_MASK; in i40e_check_fdir_input_set()
4370 new_mask &= ~I40E_L3_SRC_MASK; in i40e_check_fdir_input_set()
4376 new_mask |= I40E_L3_DST_MASK; in i40e_check_fdir_input_set()
4378 new_mask &= ~I40E_L3_DST_MASK; in i40e_check_fdir_input_set()
4384 new_mask |= I40E_L4_SRC_MASK; in i40e_check_fdir_input_set()
4386 new_mask &= ~I40E_L4_SRC_MASK; in i40e_check_fdir_input_set()
4392 new_mask |= I40E_L4_DST_MASK; in i40e_check_fdir_input_set()
[all …]
/openbmc/linux/kernel/sched/
H A Dcore.c2394 .new_mask = cpumask_of(rq->cpu), in migrate_disable_switch()
2430 .new_mask = &p->cpus_mask, in migrate_enable()
2734 p->cpus_ptr = ctx->new_mask; in set_cpus_allowed_common()
2738 cpumask_copy(&p->cpus_mask, ctx->new_mask); in set_cpus_allowed_common()
2739 p->nr_cpus_allowed = cpumask_weight(ctx->new_mask); in set_cpus_allowed_common()
2797 void do_set_cpus_allowed(struct task_struct *p, const struct cpumask *new_mask) in do_set_cpus_allowed()
2800 .new_mask = new_mask, in do_set_cpus_allowed()
3138 if (!kthread && !cpumask_subset(ctx->new_mask, cpu_allowed_mask)) { in __set_cpus_allowed_ptr_locked()
3153 if (cpumask_equal(&p->cpus_mask, ctx->new_mask)) { in __set_cpus_allowed_ptr_locked()
2796 do_set_cpus_allowed(struct task_struct * p,const struct cpumask * new_mask) do_set_cpus_allowed() argument
3215 set_cpus_allowed_ptr(struct task_struct * p,const struct cpumask * new_mask) set_cpus_allowed_ptr() argument
3236 restrict_cpus_allowed_ptr(struct task_struct * p,struct cpumask * new_mask,const struct cpumask * subset_mask) restrict_cpus_allowed_ptr() argument
3279 cpumask_var_t new_mask; force_compatible_cpus_allowed_ptr() local
8309 cpumask_var_t cpus_allowed, new_mask; __sched_setaffinity() local
8432 get_user_cpu_mask(unsigned long __user * user_mask_ptr,unsigned len,struct cpumask * new_mask) get_user_cpu_mask() argument
8453 cpumask_var_t new_mask; SYSCALL_DEFINE3() local
[all...]
/openbmc/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()
/openbmc/linux/fs/notify/inotify/
H A 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()
/openbmc/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()
/openbmc/linux/drivers/gpu/drm/amd/pm/swsmu/
H A Dsmu_internal.h90 #define smu_set_pp_feature_mask(smu, new_mask) smu_ppt_funcs(set_pp_feature_mask, 0, smu, new_ma… argument
H A Dsmu_cmn.h93 uint64_t new_mask);
/openbmc/linux/arch/x86/kernel/
H A 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()
/openbmc/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()
/openbmc/qemu/hw/virtio/
H A Dvirtio-iommu.c592 static bool check_page_size_mask(VirtIOIOMMU *viommu, uint64_t new_mask, in check_page_size_mask() argument
597 if ((cur_mask & new_mask) == 0) { in check_page_size_mask()
600 new_mask, cur_mask); in check_page_size_mask()
611 if (!(BIT_ULL(cur_granule) & new_mask)) { in check_page_size_mask()
651 uint64_t new_mask = hiodc->get_page_size_mask(hiod); in virtio_iommu_set_iommu_device() local
653 if (check_page_size_mask(viommu, new_mask, errp)) { in virtio_iommu_set_iommu_device()
662 new_mask); in virtio_iommu_set_iommu_device()
664 viommu->config.page_size_mask &= new_mask; in virtio_iommu_set_iommu_device()
/openbmc/linux/include/linux/
H A Dsched.h1870 extern void do_set_cpus_allowed(struct task_struct *p, const struct cpumask *new_mask);
1879 extern int set_cpus_allowed_ptr(struct task_struct *p, const struct cpumask *new_mask);
1886 static inline void do_set_cpus_allowed(struct task_struct *p, const struct cpumask *new_mask) in do_set_cpus_allowed() argument
1889 static inline int set_cpus_allowed_ptr(struct task_struct *p, const struct cpumask *new_mask) in set_cpus_allowed_ptr() argument
1891 if (!cpumask_test_cpu(0, new_mask)) in set_cpus_allowed_ptr()
2309 extern long sched_setaffinity(pid_t pid, const struct cpumask *new_mask);
/openbmc/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)
/openbmc/linux/fs/notify/
H A 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()
/openbmc/qemu/hw/audio/
H A Dac97.c202 uint32_t new_mask = new_sr & SR_INT_MASK; in update_sr() local
206 if (new_mask ^ old_mask) { in update_sr()
208 if (!new_mask) { in update_sr()
212 if ((new_mask & SR_LVBCI) && (r->cr & CR_LVBIE)) { in update_sr()
216 if ((new_mask & SR_BCIS) && (r->cr & CR_IOCE)) { in update_sr()

12