| /linux/tools/testing/selftests/net/bench/page_pool/ |
| H A D | time_bench.c | 258 cpumask_t newmask = CPU_MASK_NONE; in invoke_test_on_cpu_func() local 262 cpumask_set_cpu(cpu->rec.cpu, &newmask); in invoke_test_on_cpu_func() 263 set_cpus_allowed_ptr(current, &newmask); in invoke_test_on_cpu_func()
|
| /linux/net/sched/ |
| H A D | cls_flower.c | 2238 struct fl_flow_mask *newmask; in fl_create_new_mask() local 2241 newmask = kzalloc_obj(*newmask, GFP_KERNEL_ACCOUNT); in fl_create_new_mask() 2242 if (!newmask) in fl_create_new_mask() 2245 fl_mask_copy(newmask, mask); in fl_create_new_mask() 2247 if ((newmask->key.tp_range.tp_min.dst && in fl_create_new_mask() 2248 newmask->key.tp_range.tp_max.dst) || in fl_create_new_mask() 2249 (newmask->key.tp_range.tp_min.src && in fl_create_new_mask() 2250 newmask->key.tp_range.tp_max.src)) in fl_create_new_mask() 2251 newmask->flags |= TCA_FLOWER_MASK_FLAGS_RANGE; in fl_create_new_mask() 2253 err = fl_init_mask_hashtable(newmask); in fl_create_new_mask() [all …]
|
| /linux/fs/resctrl/ |
| H A D | rdtgroup.c | 402 static int cpus_mon_write(struct rdtgroup *rdtgrp, cpumask_var_t newmask, in cpus_mon_write() argument 409 cpumask_andnot(tmpmask, newmask, &prgrp->cpu_mask); in cpus_mon_write() 416 cpumask_andnot(tmpmask, &rdtgrp->cpu_mask, newmask); in cpus_mon_write() 427 cpumask_andnot(tmpmask, newmask, &rdtgrp->cpu_mask); in cpus_mon_write() 440 cpumask_copy(&rdtgrp->cpu_mask, newmask); in cpus_mon_write() 455 static int cpus_ctrl_write(struct rdtgroup *rdtgrp, cpumask_var_t newmask, in cpus_ctrl_write() argument 462 cpumask_andnot(tmpmask, &rdtgrp->cpu_mask, newmask); in cpus_ctrl_write() 481 cpumask_andnot(tmpmask, newmask, &rdtgrp->cpu_mask); in cpus_ctrl_write() 494 cpumask_copy(&rdtgrp->cpu_mask, newmask); in cpus_ctrl_write() 513 cpumask_var_t tmpmask = CPUMASK_VAR_NULL, newmask = CPUMASK_VAR_NULL; in rdtgroup_cpus_write() local [all …]
|
| /linux/kernel/cgroup/ |
| H A D | cpuset.c | 1762 * @newmask: Optional new cpumask for partcmd_update 1776 * For partcmd_update, if the optional newmask is specified, the cpu list is in update_parent_effective_cpumask() 1777 * to be changed from effective_xcpus to newmask. Otherwise, effective_xcpus is in update_parent_effective_cpumask() 1789 * The partcmd_update command is used by update_cpumasks_hier() with newmask in update_parent_effective_cpumask() 1790 * NULL and update_cpumask() with newmask set. The partcmd_invalidate is used in update_parent_effective_cpumask() 1791 * by update_cpumask() with NULL newmask. In both cases, the callers won't in update_parent_effective_cpumask() 1796 struct cpumask *newmask, in update_parent_effective_cpumask() 1844 if (!newmask && xcpus_empty(cs)) in update_parent_effective_cpumask() 1902 } else if (newmask) { in update_parent_effective_cpumask() 1906 if (cpumask_empty(newmask)) { in update_parent_effective_cpumask() 1774 update_parent_effective_cpumask(struct cpuset * cs,int cmd,struct cpumask * newmask,struct tmpmasks * tmp) update_parent_effective_cpumask() argument [all...] |
| /linux/fs/notify/fanotify/ |
| H A D | fanotify_user.c | 1225 __u32 oldmask, newmask; in fanotify_mark_remove_from_mask() local 1236 newmask = fsnotify_calc_mask(fsn_mark); in fanotify_mark_remove_from_mask() 1246 return oldmask & ~newmask; in fanotify_mark_remove_from_mask()
|
| /linux/net/openvswitch/ |
| H A D | flow_netlink.c | 1781 struct nlattr *newmask = NULL; in ovs_nla_get_match() local 1810 newmask = kmemdup(nla_key, in ovs_nla_get_match() 1813 if (!newmask) in ovs_nla_get_match() 1816 mask_set_nlattr(newmask, 0xff); in ovs_nla_get_match() 1825 nla_mask = newmask; in ovs_nla_get_match() 1850 kfree(newmask); in ovs_nla_get_match()
|
| /linux/net/netfilter/ipvs/ |
| H A D | ip_vs_ctl.c | 2497 cpumask_var_t newmask; in ipvs_proc_est_cpumask_set() local 2500 if (!zalloc_cpumask_var(&newmask, GFP_KERNEL)) in ipvs_proc_est_cpumask_set() 2503 ret = cpulist_parse(buffer, newmask); in ipvs_proc_est_cpumask_set() 2516 cpumask_and(newmask, newmask, ¤t->cpus_mask); in ipvs_proc_est_cpumask_set() 2517 cpumask_copy(*valp, newmask); in ipvs_proc_est_cpumask_set() 2527 free_cpumask_var(newmask); in ipvs_proc_est_cpumask_set()
|
| /linux/mm/ |
| H A D | mempolicy.c | 538 static void mpol_rebind_policy(struct mempolicy *pol, const nodemask_t *newmask) in mpol_rebind_policy() argument 543 nodes_equal(pol->w.cpuset_mems_allowed, *newmask)) in mpol_rebind_policy() 546 mpol_ops[pol->mode].rebind(pol, newmask); in mpol_rebind_policy()
|
| /linux/kernel/ |
| H A D | signal.c | 4858 SYSCALL_DEFINE1(ssetmask, int, newmask) in SYSCALL_DEFINE1() argument 4863 siginitset(&newset, newmask); in SYSCALL_DEFINE1()
|