Searched refs:new_mask (Results 1 - 23 of 23) sorted by relevance

/linux-4.1.27/arch/mips/kernel/
H A Dmips-mt-fpaff.c65 cpumask_var_t cpus_allowed, new_mask, effective_mask; mipsmt_sys_sched_setaffinity() local
70 if (len < sizeof(new_mask)) mipsmt_sys_sched_setaffinity()
73 if (copy_from_user(&new_mask, user_mask_ptr, sizeof(new_mask))) mipsmt_sys_sched_setaffinity()
94 if (!alloc_cpumask_var(&new_mask, GFP_KERNEL)) { mipsmt_sys_sched_setaffinity()
111 cpumask_copy(&p->thread.user_cpus_allowed, new_mask); mipsmt_sys_sched_setaffinity()
117 cpumask_intersects(new_mask, &mt_fpu_cpumask)) { mipsmt_sys_sched_setaffinity()
118 cpumask_and(effective_mask, new_mask, &mt_fpu_cpumask); mipsmt_sys_sched_setaffinity()
121 cpumask_copy(effective_mask, new_mask); mipsmt_sys_sched_setaffinity()
123 retval = set_cpus_allowed_ptr(p, new_mask); mipsmt_sys_sched_setaffinity()
134 cpumask_copy(new_mask, cpus_allowed); mipsmt_sys_sched_setaffinity()
141 free_cpumask_var(new_mask); mipsmt_sys_sched_setaffinity()
/linux-4.1.27/fs/notify/dnotify/
H A Ddnotify.c55 __u32 new_mask, old_mask; dnotify_recalc_inode_mask() local
64 new_mask = 0; dnotify_recalc_inode_mask()
66 new_mask |= (dn->dn_mask & ~FS_DN_MULTISHOT); dnotify_recalc_inode_mask()
67 fsnotify_set_mark_mask_locked(fsn_mark, new_mask); dnotify_recalc_inode_mask()
69 if (old_mask == new_mask) dnotify_recalc_inode_mask()
196 __u32 new_mask = FS_EVENT_ON_CHILD; convert_arg() local
199 new_mask |= FS_DN_MULTISHOT; convert_arg()
201 new_mask |= (FS_DELETE | FS_MOVED_FROM); convert_arg()
203 new_mask |= FS_MODIFY; convert_arg()
205 new_mask |= FS_ACCESS; convert_arg()
207 new_mask |= FS_ATTRIB; convert_arg()
209 new_mask |= FS_DN_RENAME; convert_arg()
211 new_mask |= (FS_CREATE | FS_MOVED_TO); convert_arg()
213 return new_mask; convert_arg()
/linux-4.1.27/arch/tile/include/asm/
H A Dsetup.h46 #define arch_set_cpus_allowed(p, new_mask) do { \
47 if (!cpumask_equal(&p->cpus_allowed, new_mask)) \
/linux-4.1.27/drivers/spi/
H A Dspi-dw.h201 u32 new_mask; spi_mask_intr() local
203 new_mask = dw_readl(dws, DW_SPI_IMR) & ~mask; spi_mask_intr()
204 dw_writel(dws, DW_SPI_IMR, new_mask); spi_mask_intr()
210 u32 new_mask; spi_umask_intr() local
212 new_mask = dw_readl(dws, DW_SPI_IMR) | mask; spi_umask_intr()
213 dw_writel(dws, DW_SPI_IMR, new_mask); spi_umask_intr()
/linux-4.1.27/crypto/
H A Dpcrypt.c412 struct pcrypt_cpumask *new_mask, *old_mask; pcrypt_cpumask_change_notify() local
419 new_mask = kmalloc(sizeof(*new_mask), GFP_KERNEL); pcrypt_cpumask_change_notify()
420 if (!new_mask) pcrypt_cpumask_change_notify()
422 if (!alloc_cpumask_var(&new_mask->mask, GFP_KERNEL)) { pcrypt_cpumask_change_notify()
423 kfree(new_mask); pcrypt_cpumask_change_notify()
429 cpumask_copy(new_mask->mask, cpumask->cbcpu); pcrypt_cpumask_change_notify()
430 rcu_assign_pointer(pcrypt->cb_cpumask, new_mask); pcrypt_cpumask_change_notify()
/linux-4.1.27/arch/mips/cavium-octeon/
H A Dsmp.c254 uint32_t mask, new_mask; octeon_cpu_die() local
275 new_mask = labi->avail_coremask; octeon_cpu_die()
280 new_mask = *p; octeon_cpu_die()
283 pr_info("Reset core %d. Available Coremask = 0x%x \n", coreid, new_mask); octeon_cpu_die()
/linux-4.1.27/kernel/time/
H A Dsched_clock.c170 u64 res, wrap, new_mask, new_epoch, cyc, ns; sched_clock_register() local
184 new_mask = CLOCKSOURCE_MASK(bits); sched_clock_register()
188 wrap = clocks_calc_max_nsecs(new_mult, new_shift, 0, new_mask, NULL); sched_clock_register()
200 rd.sched_clock_mask = new_mask; sched_clock_register()
/linux-4.1.27/drivers/net/wireless/ath/ath5k/
H A Ddma.c748 * @new_mask: The new interrupt mask to be set
755 ath5k_hw_set_imr(struct ath5k_hw *ah, enum ath5k_int new_mask) ath5k_hw_set_imr() argument
775 int_mask = new_mask & AR5K_INT_COMMON; ath5k_hw_set_imr()
783 if (new_mask & AR5K_INT_FATAL) { ath5k_hw_set_imr()
790 if (new_mask & AR5K_INT_TIM) ath5k_hw_set_imr()
793 if (new_mask & AR5K_INT_TIM) ath5k_hw_set_imr()
795 if (new_mask & AR5K_INT_DTIM) ath5k_hw_set_imr()
797 if (new_mask & AR5K_INT_DTIM_SYNC) ath5k_hw_set_imr()
799 if (new_mask & AR5K_INT_BCN_TIMEOUT) ath5k_hw_set_imr()
801 if (new_mask & AR5K_INT_CAB_TIMEOUT) ath5k_hw_set_imr()
805 if (new_mask & AR5K_INT_BNR) ath5k_hw_set_imr()
815 if (new_mask & AR5K_INT_FATAL) ath5k_hw_set_imr()
825 if (!(new_mask & AR5K_INT_RXNOFRM)) ath5k_hw_set_imr()
829 ah->ah_imr = new_mask; ath5k_hw_set_imr()
832 if (new_mask & AR5K_INT_GLOBAL) { ath5k_hw_set_imr()
H A Dath5k.h1520 enum ath5k_int ath5k_hw_set_imr(struct ath5k_hw *ah, enum ath5k_int new_mask);
/linux-4.1.27/drivers/net/wireless/libertas/
H A Ddebugfs.c285 int value, freq, new_mask; lbs_threshold_write() local
299 ret = sscanf(buf, "%d %d %d", &value, &freq, &new_mask); lbs_threshold_write()
319 if (new_mask) lbs_threshold_write()
320 new_mask = curr_mask | event_mask; lbs_threshold_write()
322 new_mask = curr_mask & ~event_mask; lbs_threshold_write()
329 events->events = cpu_to_le16(new_mask); lbs_threshold_write()
/linux-4.1.27/kernel/
H A Dcompat.c603 unsigned len, struct cpumask *new_mask) compat_get_user_cpu_mask()
608 memset(new_mask, 0, cpumask_size()); compat_get_user_cpu_mask()
612 k = cpumask_bits(new_mask); compat_get_user_cpu_mask()
620 cpumask_var_t new_mask; COMPAT_SYSCALL_DEFINE3() local
623 if (!alloc_cpumask_var(&new_mask, GFP_KERNEL)) COMPAT_SYSCALL_DEFINE3()
626 retval = compat_get_user_cpu_mask(user_mask_ptr, len, new_mask); COMPAT_SYSCALL_DEFINE3()
630 retval = sched_setaffinity(pid, new_mask); COMPAT_SYSCALL_DEFINE3()
632 free_cpumask_var(new_mask); COMPAT_SYSCALL_DEFINE3()
602 compat_get_user_cpu_mask(compat_ulong_t __user *user_mask_ptr, unsigned len, struct cpumask *new_mask) compat_get_user_cpu_mask() argument
/linux-4.1.27/fs/notify/inotify/
H A Dinotify_user.c522 __u32 old_mask, new_mask; inotify_update_existing_watch() local
542 new_mask = fsn_mark->mask; inotify_update_existing_watch()
546 if (old_mask != new_mask) { inotify_update_existing_watch()
548 int dropped = (old_mask & ~new_mask); inotify_update_existing_watch()
550 int do_inode = (new_mask & ~inode->i_fsnotify_mask); inotify_update_existing_watch()
/linux-4.1.27/fs/notify/
H A Dmark.c116 u32 new_mask = 0; fsnotify_recalc_mask() local
120 new_mask |= mark->mask; fsnotify_recalc_mask()
121 return new_mask; fsnotify_recalc_mask()
/linux-4.1.27/drivers/net/ethernet/brocade/bna/
H A Dbna_hw_defs.h177 #define bna_intx_enable(bna, new_mask) \
178 writel((new_mask), (bna)->regs.fn_int_mask)
/linux-4.1.27/kernel/sched/
H A Dcore.c4019 cpumask_var_t cpus_allowed, new_mask; sched_setaffinity() local
4043 if (!alloc_cpumask_var(&new_mask, GFP_KERNEL)) { sched_setaffinity()
4063 cpumask_and(new_mask, in_mask, cpus_allowed); sched_setaffinity()
4074 if (!cpumask_subset(task_rq(p)->rd->span, new_mask)) { sched_setaffinity()
4083 retval = set_cpus_allowed_ptr(p, new_mask); sched_setaffinity()
4087 if (!cpumask_subset(new_mask, cpus_allowed)) { sched_setaffinity()
4093 cpumask_copy(new_mask, cpus_allowed); sched_setaffinity()
4098 free_cpumask_var(new_mask); sched_setaffinity()
4107 struct cpumask *new_mask) get_user_cpu_mask()
4110 cpumask_clear(new_mask); get_user_cpu_mask()
4114 return copy_from_user(new_mask, user_mask_ptr, len) ? -EFAULT : 0; get_user_cpu_mask()
4128 cpumask_var_t new_mask; SYSCALL_DEFINE3() local
4131 if (!alloc_cpumask_var(&new_mask, GFP_KERNEL)) SYSCALL_DEFINE3()
4134 retval = get_user_cpu_mask(user_mask_ptr, len, new_mask); SYSCALL_DEFINE3()
4136 retval = sched_setaffinity(pid, new_mask); SYSCALL_DEFINE3()
4137 free_cpumask_var(new_mask); SYSCALL_DEFINE3()
4756 void do_set_cpus_allowed(struct task_struct *p, const struct cpumask *new_mask) do_set_cpus_allowed() argument
4759 p->sched_class->set_cpus_allowed(p, new_mask); do_set_cpus_allowed()
4761 cpumask_copy(&p->cpus_allowed, new_mask); do_set_cpus_allowed()
4762 p->nr_cpus_allowed = cpumask_weight(new_mask); do_set_cpus_allowed()
4788 int set_cpus_allowed_ptr(struct task_struct *p, const struct cpumask *new_mask) set_cpus_allowed_ptr() argument
4797 if (cpumask_equal(&p->cpus_allowed, new_mask)) set_cpus_allowed_ptr()
4800 if (!cpumask_intersects(new_mask, cpu_active_mask)) { set_cpus_allowed_ptr()
4805 do_set_cpus_allowed(p, new_mask); set_cpus_allowed_ptr()
4808 if (cpumask_test_cpu(task_cpu(p), new_mask)) set_cpus_allowed_ptr()
4811 dest_cpu = cpumask_any_and(cpu_active_mask, new_mask); set_cpus_allowed_ptr()
4106 get_user_cpu_mask(unsigned long __user *user_mask_ptr, unsigned len, struct cpumask *new_mask) get_user_cpu_mask() argument
H A Ddeadline.c1578 const struct cpumask *new_mask) set_cpus_allowed_dl()
1594 if (!cpumask_intersects(src_rd->span, new_mask)) { set_cpus_allowed_dl()
1615 weight = cpumask_weight(new_mask); set_cpus_allowed_dl()
1577 set_cpus_allowed_dl(struct task_struct *p, const struct cpumask *new_mask) set_cpus_allowed_dl() argument
H A Drt.c2063 const struct cpumask *new_mask) set_cpus_allowed_rt()
2073 weight = cpumask_weight(new_mask); set_cpus_allowed_rt()
2062 set_cpus_allowed_rt(struct task_struct *p, const struct cpumask *new_mask) set_cpus_allowed_rt() argument
/linux-4.1.27/include/linux/
H A Dsched.h2126 const struct cpumask *new_mask);
2129 const struct cpumask *new_mask);
2132 const struct cpumask *new_mask) do_set_cpus_allowed()
2136 const struct cpumask *new_mask) set_cpus_allowed_ptr()
2138 if (!cpumask_test_cpu(0, new_mask)) set_cpus_allowed_ptr()
2153 static inline int set_cpus_allowed(struct task_struct *p, cpumask_t new_mask) set_cpus_allowed() argument
2155 return set_cpus_allowed_ptr(p, &new_mask); set_cpus_allowed()
3015 extern long sched_setaffinity(pid_t pid, const struct cpumask *new_mask);
2131 do_set_cpus_allowed(struct task_struct *p, const struct cpumask *new_mask) do_set_cpus_allowed() argument
2135 set_cpus_allowed_ptr(struct task_struct *p, const struct cpumask *new_mask) set_cpus_allowed_ptr() argument
/linux-4.1.27/drivers/gpu/drm/radeon/
H A Dkv_dpm.c2409 u32 new_mask = (1 << level); kv_set_enabled_level() local
2413 new_mask); kv_set_enabled_level()
2419 u32 i, new_mask = 0; kv_set_enabled_levels() local
2422 new_mask |= (1 << i); kv_set_enabled_levels()
2426 new_mask); kv_set_enabled_levels()
/linux-4.1.27/drivers/input/keyboard/
H A Datkbd.c1415 DECLARE_BITMAP(new_mask, ATKBD_KEYMAP_SIZE); atkbd_set_force_release()
1418 err = bitmap_parselist(buf, new_mask, ATKBD_KEYMAP_SIZE); atkbd_set_force_release()
1422 memcpy(atkbd->force_release_mask, new_mask, sizeof(atkbd->force_release_mask)); atkbd_set_force_release()
/linux-4.1.27/drivers/ata/
H A Dsata_mv.c1053 u32 old_mask, new_mask; mv_set_main_irq_mask() local
1056 new_mask = (old_mask & ~disable_bits) | enable_bits; mv_set_main_irq_mask()
1057 if (new_mask != old_mask) { mv_set_main_irq_mask()
1058 hpriv->main_irq_mask = new_mask; mv_set_main_irq_mask()
1059 mv_write_main_irq_mask(new_mask, hpriv); mv_set_main_irq_mask()
H A Dlibata-eh.c3099 unsigned int new_mask = 0; ata_eh_revalidate_and_attach() local
3164 new_mask |= 1 << dev->devno; ata_for_each_dev()
3190 if (!(new_mask & (1 << dev->devno))) ata_for_each_dev()
/linux-4.1.27/kernel/locking/
H A Dlockdep.c2901 unsigned int new_mask = 1 << new_bit, ret = 1; mark_lock() local
2907 if (likely(hlock_class(this)->usage_mask & new_mask)) mark_lock()
2915 if (unlikely(hlock_class(this)->usage_mask & new_mask)) { mark_lock()
2920 hlock_class(this)->usage_mask |= new_mask; mark_lock()

Completed in 825 milliseconds