| /linux/fs/notify/dnotify/ |
| H A D | dnotify.c | 64 __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 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/drivers/net/wireless/ath/ath5k/ |
| H A D | dma.c | 740 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 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/drivers/spi/ |
| H A D | spi-dw.h | 293 u32 new_mask; in dw_spi_mask_intr() local 295 new_mask = dw_readl(dws, DW_SPI_IMR) & ~mask; in dw_spi_mask_intr() 296 dw_writel(dws, DW_SPI_IMR, new_mask); in dw_spi_mask_intr() 302 u32 new_mask; in dw_spi_umask_intr() local 304 new_mask = dw_readl(dws, DW_SPI_IMR) | mask; in dw_spi_umask_intr() 305 dw_writel(dws, DW_SPI_IMR, new_mask); in dw_spi_umask_intr() 311 u32 new_mask; in dw_spi_jhb100_mask_intr() local 313 new_mask = dw_readl(dws, DW_SPI_JHB100_FILTER_IMR) & ~mask; in dw_spi_jhb100_mask_intr() 314 dw_writel(dws, DW_SPI_JHB100_FILTER_IMR, new_mask); in dw_spi_jhb100_mask_intr()
|
| /linux/kernel/sched/ |
| H A D | syscalls.c | 1139 cpumask_var_t cpus_allowed, new_mask; in __sched_setaffinity() local 1144 if (!alloc_cpumask_var(&new_mask, GFP_KERNEL)) { in __sched_setaffinity() 1150 cpumask_and(new_mask, ctx->new_mask, cpus_allowed); in __sched_setaffinity() 1152 ctx->new_mask = new_mask; in __sched_setaffinity() 1155 retval = dl_task_check_affinity(p, new_mask); in __sched_setaffinity() 1164 if (!cpumask_subset(new_mask, cpus_allowed)) { in __sched_setaffinity() 1169 cpumask_copy(new_mask, cpus_allowed); in __sched_setaffinity() 1180 bool empty = !cpumask_and(new_mask, new_mask, in __sched_setaffinity() 1184 cpumask_copy(new_mask, cpus_allowed); in __sched_setaffinity() 1191 free_cpumask_var(new_mask); in __sched_setaffinity() [all …]
|
| H A D | core.c | 2464 .new_mask = cpumask_of(rq->cpu), in migrate_disable_switch() 2482 .new_mask = &p->cpus_mask, in ___migrate_enable() 2787 p->cpus_ptr = ctx->new_mask; in set_cpus_allowed_common() 2791 cpumask_copy(&p->cpus_mask, ctx->new_mask); in set_cpus_allowed_common() 2792 p->nr_cpus_allowed = cpumask_weight(ctx->new_mask); in set_cpus_allowed_common() 2793 mm_update_cpus_allowed(p->mm, ctx->new_mask); in set_cpus_allowed_common() 2813 void set_cpus_allowed_force(struct task_struct *p, const struct cpumask *new_mask) in set_cpus_allowed_force() argument 2816 .new_mask = new_mask, in set_cpus_allowed_force() 3148 if (!kthread && !cpumask_subset(ctx->new_mask, cpu_allowed_mask)) { in __set_cpus_allowed_ptr_locked() 3163 if (cpumask_equal(&p->cpus_mask, ctx->new_mask)) { in __set_cpus_allowed_ptr_locked() [all …]
|
| /linux/io_uring/ |
| H A D | register.c | 300 cpumask_var_t new_mask) in __io_register_iowq_aff() argument 305 ret = io_wq_cpu_affinity(current->io_uring, new_mask); in __io_register_iowq_aff() 308 ret = io_sqpoll_wq_cpu_affinity(ctx, new_mask); in __io_register_iowq_aff() 318 cpumask_var_t new_mask; in io_register_iowq_aff() local 321 if (!alloc_cpumask_var(&new_mask, GFP_KERNEL)) in io_register_iowq_aff() 324 cpumask_clear(new_mask); in io_register_iowq_aff() 330 ret = compat_get_bitmap(cpumask_bits(new_mask), in io_register_iowq_aff() 335 ret = copy_from_user(new_mask, arg, len); in io_register_iowq_aff() 338 free_cpumask_var(new_mask); in io_register_iowq_aff() 342 ret = __io_register_iowq_aff(ctx, new_mask); in io_register_iowq_aff() [all …]
|
| /linux/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/kernel/trace/ |
| H A D | trace_boot.c | 72 cpumask_var_t new_mask; in trace_boot_set_instance_options() local 74 if (alloc_cpumask_var(&new_mask, GFP_KERNEL)) { in trace_boot_set_instance_options() 75 if (cpumask_parse(p, new_mask) < 0 || in trace_boot_set_instance_options() 76 tracing_set_cpumask(tr, new_mask) < 0) in trace_boot_set_instance_options() 78 free_cpumask_var(new_mask); in trace_boot_set_instance_options()
|
| /linux/drivers/net/ethernet/sfc/ |
| H A D | ef10_sriov.c | 684 u32 old_mask, new_mask; in efx_ef10_sriov_set_privilege_mask() local 706 new_mask = old_mask & ~mask; in efx_ef10_sriov_set_privilege_mask() 707 new_mask |= value; in efx_ef10_sriov_set_privilege_mask() 709 if (new_mask == old_mask) in efx_ef10_sriov_set_privilege_mask() 712 new_mask |= MC_CMD_PRIVILEGE_MASK_IN_DO_CHANGE; in efx_ef10_sriov_set_privilege_mask() 715 MCDI_SET_DWORD(pm_inbuf, PRIVILEGE_MASK_IN_NEW_MASK, new_mask); in efx_ef10_sriov_set_privilege_mask()
|
| /linux/include/linux/sched/ |
| H A D | deadline.h | 44 const struct cpumask *new_mask);
|
| /linux/drivers/net/wireless/marvell/libertas/ |
| H A D | debugfs.c | 274 int value, freq, new_mask; in lbs_threshold_write() local 283 ret = sscanf(buf, "%d %d %d", &value, &freq, &new_mask); in lbs_threshold_write() 303 if (new_mask) in lbs_threshold_write() 304 new_mask = curr_mask | event_mask; in lbs_threshold_write() 306 new_mask = curr_mask & ~event_mask; in lbs_threshold_write() 313 events->events = cpu_to_le16(new_mask); in lbs_threshold_write()
|
| /linux/drivers/net/ethernet/brocade/bna/ |
| H A D | bna_hw_defs.h | 169 #define bna_intx_enable(bna, new_mask) \ argument 170 writel((new_mask), (bna)->regs.fn_int_mask)
|
| /linux/drivers/net/fddi/ |
| H A D | defza.c | 290 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() 1089 unsigned int old_mask, new_mask; in fza_start_xmit() local 1131 new_mask = old_mask & ~FZA_MASK_SMT_TX_POLL; in fza_start_xmit() 1132 writew_u(new_mask, &fp->regs->int_mask); in fza_start_xmit() 1134 fp->int_mask = new_mask; in fza_start_xmit()
|
| /linux/drivers/net/wireless/quantenna/qtnfmac/ |
| H A D | cfg80211.c | 399 u16 new_mask = upd->interface_stypes; in qtnf_update_mgmt_frame_registrations() local 424 if (new_mask == old_mask) in qtnf_update_mgmt_frame_registrations() 433 if (!(new_mask & mask) == !(old_mask & mask)) in qtnf_update_mgmt_frame_registrations() 436 reg = new_mask & mask; in qtnf_update_mgmt_frame_registrations() 444 vif->mgmt_frames_bitmask = new_mask; in qtnf_update_mgmt_frame_registrations()
|
| /linux/drivers/irqchip/ |
| H A D | irq-sifive-plic.c | 431 u32 new_mask = j == i ? pending_irqs : 0; in cp100_isolate_pending_irq() local 433 if (new_mask != handler->enable_save[j]) in cp100_isolate_pending_irq() 434 writel_relaxed(new_mask, enable + j); in cp100_isolate_pending_irq()
|
| /linux/drivers/infiniband/hw/hfi1/ |
| H A D | sdma.c | 898 cpumask_var_t mask, new_mask; in sdma_set_cpu_to_sde_map() local 911 ret = zalloc_cpumask_var(&new_mask, GFP_KERNEL); in sdma_set_cpu_to_sde_map() 934 cpumask_set_cpu(cpu, new_mask); in sdma_set_cpu_to_sde_map() 990 cpumask_set_cpu(cpu, new_mask); in sdma_set_cpu_to_sde_map() 1038 cpumask_copy(&sde->cpu_mask, new_mask); in sdma_set_cpu_to_sde_map() 1043 free_cpumask_var(new_mask); in sdma_set_cpu_to_sde_map()
|
| /linux/drivers/input/keyboard/ |
| H A D | atkbd.c | 1523 DECLARE_BITMAP(new_mask, ATKBD_KEYMAP_SIZE); in atkbd_set_force_release() 1526 err = bitmap_parselist(buf, new_mask, ATKBD_KEYMAP_SIZE); in atkbd_set_force_release() 1530 memcpy(atkbd->force_release_mask, new_mask, sizeof(atkbd->force_release_mask)); in atkbd_set_force_release()
|
| /linux/fs/xfs/ |
| H A D | xfs_trace.h | 6152 unsigned int old_mask, unsigned int new_mask, 6154 TP_ARGS(hm, old_mask, new_mask, event), 6160 __field(unsigned int, new_mask) 6168 __entry->new_mask = new_mask; 6176 __entry->new_mask, 6182 unsigned int old_mask, unsigned int new_mask, 6184 TP_ARGS(hm, old_mask, new_mask, event), 6190 __field(unsigned int, new_mask) 6199 __entry->new_mask = new_mask; 6208 __entry->new_mask, [all …]
|
| /linux/drivers/gpu/drm/radeon/ |
| H A D | kv_dpm.c | 2206 u32 new_mask = (1 << level); in kv_set_enabled_level() local 2210 new_mask); in kv_set_enabled_level() 2216 u32 i, new_mask = 0; in kv_set_enabled_levels() local 2219 new_mask |= (1 << i); in kv_set_enabled_levels() 2223 new_mask); in kv_set_enabled_levels()
|
| /linux/drivers/scsi/lpfc/ |
| H A D | lpfc_ct.c | 3180 int cmdcode, uint32_t new_mask) in lpfc_fdmi_cmd() argument 3232 cmdcode, new_mask, vport->fdmi_port_mask, in lpfc_fdmi_cmd() 3273 if (new_mask) in lpfc_fdmi_cmd() 3274 mask = new_mask; in lpfc_fdmi_cmd() 3333 if (new_mask) in lpfc_fdmi_cmd() 3334 mask = new_mask; in lpfc_fdmi_cmd()
|
| /linux/drivers/net/ethernet/faraday/ |
| H A D | ftgmac100.c | 1235 unsigned int status, new_mask = FTGMAC100_INT_BAD; in ftgmac100_interrupt() local 1270 new_mask &= ~status; in ftgmac100_interrupt() 1274 iowrite32(new_mask, priv->base + FTGMAC100_OFFSET_IER); in ftgmac100_interrupt()
|
| /linux/arch/x86/events/intel/ |
| H A D | core.c | 6008 u64 new_mask, check_mask; in __intel_pmu_check_dyn_constr() local 6011 new_mask = c1->idxmsk64 & mask; in __intel_pmu_check_dyn_constr() 6012 new_weight = hweight64(new_mask); in __intel_pmu_check_dyn_constr() 6037 if (new_mask == check_mask || in __intel_pmu_check_dyn_constr() 6038 (new_mask ^ check_mask) == (new_mask | check_mask)) in __intel_pmu_check_dyn_constr() 6061 if ((new_mask | check_mask) != check_mask && in __intel_pmu_check_dyn_constr() 6062 fls64(new_mask) > fls64(check_mask)) in __intel_pmu_check_dyn_constr() 6065 if ((new_mask | check_mask) != new_mask && in __intel_pmu_check_dyn_constr() 6066 fls64(new_mask) < fls64(check_mask)) in __intel_pmu_check_dyn_constr()
|
| /linux/drivers/ata/ |
| H A D | sata_mv.c | 1013 u32 old_mask, new_mask; in mv_set_main_irq_mask() local 1016 new_mask = (old_mask & ~disable_bits) | enable_bits; in mv_set_main_irq_mask() 1017 if (new_mask != old_mask) { in mv_set_main_irq_mask() 1018 hpriv->main_irq_mask = new_mask; in mv_set_main_irq_mask() 1019 mv_write_main_irq_mask(new_mask, hpriv); in mv_set_main_irq_mask()
|