| /linux-6.15/arch/mips/kernel/ |
| H A D | mips-mt-fpaff.c | 69 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-6.15/fs/notify/dnotify/ |
| H A D | dnotify.c | 64 __u32 new_mask = 0; in dnotify_recalc_inode_mask() local 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() 209 new_mask |= FS_MODIFY; in convert_arg() 211 new_mask |= FS_ACCESS; in convert_arg() 213 new_mask |= FS_ATTRIB; in convert_arg() 215 new_mask |= FS_RENAME; in convert_arg() 217 new_mask |= (FS_CREATE | FS_MOVED_TO); in convert_arg() [all …]
|
| /linux-6.15/drivers/platform/x86/intel/ |
| H A D | crystal_cove_charger.c | 30 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.15/drivers/net/wireless/ath/ath5k/ |
| H A D | dma.c | 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() 790 if (new_mask & AR5K_INT_BNR) in ath5k_hw_set_imr() 800 if (new_mask & AR5K_INT_FATAL) in ath5k_hw_set_imr() 810 if (!(new_mask & AR5K_INT_RXNOFRM)) in ath5k_hw_set_imr() 814 ah->ah_imr = new_mask; in ath5k_hw_set_imr() [all …]
|
| /linux-6.15/kernel/ |
| H A D | compat.c | 111 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.15/kernel/sched/ |
| H A D | syscalls.c | 1156 cpumask_var_t cpus_allowed, new_mask; in __sched_setaffinity() local 1167 cpumask_and(new_mask, ctx->new_mask, cpus_allowed); in __sched_setaffinity() 1169 ctx->new_mask = new_mask; in __sched_setaffinity() 1186 cpumask_copy(new_mask, cpus_allowed); in __sched_setaffinity() 1197 bool empty = !cpumask_and(new_mask, new_mask, in __sched_setaffinity() 1208 free_cpumask_var(new_mask); in __sched_setaffinity() 1249 .new_mask = in_mask, in sched_setaffinity() 1261 struct cpumask *new_mask) in get_user_cpu_mask() argument 1264 cpumask_clear(new_mask); in get_user_cpu_mask() 1282 cpumask_var_t new_mask; in SYSCALL_DEFINE3() local [all …]
|
| H A D | core.c | 2395 .new_mask = &p->cpus_mask, in migrate_enable() 2702 p->cpus_ptr = ctx->new_mask; in set_cpus_allowed_common() 2769 .new_mask = new_mask, in do_set_cpus_allowed() 3177 .new_mask = new_mask, in set_cpus_allowed_ptr() 3195 struct cpumask *new_mask, in restrict_cpus_allowed_ptr() argument 3199 .new_mask = new_mask, in restrict_cpus_allowed_ptr() 3238 cpumask_var_t new_mask; in force_compatible_cpus_allowed_ptr() local 3260 override_mask = new_mask; in force_compatible_cpus_allowed_ptr() 3272 free_cpumask_var(new_mask); in force_compatible_cpus_allowed_ptr() 3285 .new_mask = task_user_cpus(p), in relax_compatible_cpus_allowed_ptr() [all …]
|
| /linux-6.15/drivers/spi/ |
| H A D | spi-dw.h | 252 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.15/drivers/thermal/intel/ |
| H A D | intel_powerclamp.c | 156 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-6.15/kernel/time/ |
| H A D | sched_clock.c | 180 u64 res, wrap, new_mask, new_epoch, cyc, ns; in sched_clock_register() local 195 new_mask = CLOCKSOURCE_MASK(bits); in sched_clock_register() 199 wrap = clocks_calc_max_nsecs(new_mult, new_shift, 0, new_mask, NULL); in sched_clock_register() 211 rd.sched_clock_mask = new_mask; in sched_clock_register()
|
| /linux-6.15/io_uring/ |
| H A D | register.c | 205 cpumask_var_t new_mask) in __io_register_iowq_aff() argument 210 ret = io_wq_cpu_affinity(current->io_uring, new_mask); in __io_register_iowq_aff() 213 ret = io_sqpoll_wq_cpu_affinity(ctx, new_mask); in __io_register_iowq_aff() 223 cpumask_var_t new_mask; in io_register_iowq_aff() local 226 if (!alloc_cpumask_var(&new_mask, GFP_KERNEL)) in io_register_iowq_aff() 229 cpumask_clear(new_mask); in io_register_iowq_aff() 235 ret = compat_get_bitmap(cpumask_bits(new_mask), in io_register_iowq_aff() 240 ret = copy_from_user(new_mask, arg, len); in io_register_iowq_aff() 243 free_cpumask_var(new_mask); in io_register_iowq_aff() 247 ret = __io_register_iowq_aff(ctx, new_mask); in io_register_iowq_aff() [all …]
|
| /linux-6.15/arch/mips/cavium-octeon/ |
| H A D | smp.c | 308 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.15/drivers/infiniband/core/ |
| H A D | counters.c | 15 enum rdma_nl_counter_mask new_mask, in __counter_set_mode() argument 19 if (new_mask & (~ALL_AUTO_MODE_MASKS)) in __counter_set_mode() 26 port_counter->mode.mask = new_mask; in __counter_set_mode() 84 enum rdma_nl_counter_mask new_mask) in auto_mode_init_counter() argument 89 counter->mode.mask = new_mask; in auto_mode_init_counter() 91 if (new_mask & RDMA_COUNTER_MASK_QP_TYPE) in auto_mode_init_counter()
|
| /linux-6.15/kernel/trace/ |
| H A D | trace_boot.c | 70 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.15/drivers/net/ethernet/intel/i40e/ |
| H A D | i40e_ethtool.c | 4305 u64 current_mask, new_mask; in i40e_check_fdir_input_set() local 4354 new_mask = current_mask; in i40e_check_fdir_input_set() 4375 new_mask |= I40E_L3_SRC_MASK; in i40e_check_fdir_input_set() 4383 new_mask |= I40E_L3_DST_MASK; in i40e_check_fdir_input_set() 4391 new_mask |= I40E_L4_SRC_MASK; in i40e_check_fdir_input_set() 4399 new_mask |= I40E_L4_DST_MASK; in i40e_check_fdir_input_set() 4439 new_mask |= I40E_L4_SRC_MASK; in i40e_check_fdir_input_set() 4447 new_mask |= I40E_L4_DST_MASK; in i40e_check_fdir_input_set() 4462 new_mask |= I40E_L3_SRC_MASK; in i40e_check_fdir_input_set() 4470 new_mask |= I40E_L3_DST_MASK; in i40e_check_fdir_input_set() [all …]
|
| /linux-6.15/drivers/net/ethernet/sfc/ |
| H A D | ef10_sriov.c | 685 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.15/drivers/gpu/drm/imagination/ |
| H A D | pvr_fw_trace.h | 73 u32 new_mask);
|
| H A D | pvr_fw_trace.c | 448 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-6.15/fs/notify/inotify/ |
| H A D | inotify_user.c | 542 __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-6.15/drivers/net/wireless/marvell/libertas/ |
| H A D | debugfs.c | 277 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.15/drivers/gpu/drm/amd/pm/swsmu/ |
| H A D | smu_internal.h | 89 #define smu_set_pp_feature_mask(smu, new_mask) smu_ppt_funcs(set_pp_feature_mask, 0, smu, new_ma… argument
|
| /linux-6.15/arch/x86/kernel/ |
| H A D | kvm.c | 567 struct cpumask *new_mask = this_cpu_cpumask_var_ptr(__pv_cpu_mask); in kvm_send_ipi_mask_allbutself() local 570 cpumask_copy(new_mask, mask); in kvm_send_ipi_mask_allbutself() 571 cpumask_clear_cpu(this_cpu, new_mask); in kvm_send_ipi_mask_allbutself() 572 local_mask = new_mask; in kvm_send_ipi_mask_allbutself()
|
| /linux-6.15/drivers/mmc/host/ |
| H A D | sdhci-brcmstb.c | 87 u32 new_mask = (mask & (SDHCI_RESET_CMD | SDHCI_RESET_DATA)) << 24; in brcmstb_sdhci_reset_cmd_data() local 96 new_mask |= SDHCI_CLOCK_CARD_EN | SDHCI_CLOCK_INT_EN; in brcmstb_sdhci_reset_cmd_data() 98 sdhci_writel(host, reg | new_mask, SDHCI_CLOCK_CONTROL); in brcmstb_sdhci_reset_cmd_data()
|
| /linux-6.15/include/linux/ |
| H A D | sched.h | 1853 extern void do_set_cpus_allowed(struct task_struct *p, const struct cpumask *new_mask); 1862 extern int set_cpus_allowed_ptr(struct task_struct *p, const struct cpumask *new_mask); 1869 static inline void do_set_cpus_allowed(struct task_struct *p, const struct cpumask *new_mask) in do_set_cpus_allowed() argument 1872 static inline int set_cpus_allowed_ptr(struct task_struct *p, const struct cpumask *new_mask) in set_cpus_allowed_ptr() argument 1875 if ((*cpumask_bits(new_mask) & 1) == 0) in set_cpus_allowed_ptr() 2230 extern long sched_setaffinity(pid_t pid, const struct cpumask *new_mask);
|
| /linux-6.15/drivers/gpu/drm/display/ |
| H A D | drm_dp_tunnel.c | 1635 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()
|