Lines Matching refs:newmask
344 static int cpus_mon_write(struct rdtgroup *rdtgrp, cpumask_var_t newmask, in cpus_mon_write() argument
351 cpumask_andnot(tmpmask, newmask, &prgrp->cpu_mask); in cpus_mon_write()
358 cpumask_andnot(tmpmask, &rdtgrp->cpu_mask, newmask); in cpus_mon_write()
369 cpumask_andnot(tmpmask, newmask, &rdtgrp->cpu_mask); in cpus_mon_write()
382 cpumask_copy(&rdtgrp->cpu_mask, newmask); in cpus_mon_write()
397 static int cpus_ctrl_write(struct rdtgroup *rdtgrp, cpumask_var_t newmask, in cpus_ctrl_write() argument
404 cpumask_andnot(tmpmask, &rdtgrp->cpu_mask, newmask); in cpus_ctrl_write()
423 cpumask_andnot(tmpmask, newmask, &rdtgrp->cpu_mask); in cpus_ctrl_write()
436 cpumask_copy(&rdtgrp->cpu_mask, newmask); in cpus_ctrl_write()
455 cpumask_var_t tmpmask, newmask, tmpmask1; in rdtgroup_cpus_write() local
464 if (!zalloc_cpumask_var(&newmask, GFP_KERNEL)) { in rdtgroup_cpus_write()
470 free_cpumask_var(newmask); in rdtgroup_cpus_write()
488 ret = cpulist_parse(buf, newmask); in rdtgroup_cpus_write()
490 ret = cpumask_parse(buf, newmask); in rdtgroup_cpus_write()
498 cpumask_andnot(tmpmask, newmask, cpu_online_mask); in rdtgroup_cpus_write()
506 ret = cpus_ctrl_write(rdtgrp, newmask, tmpmask, tmpmask1); in rdtgroup_cpus_write()
508 ret = cpus_mon_write(rdtgrp, newmask, tmpmask); in rdtgroup_cpus_write()
515 free_cpumask_var(newmask); in rdtgroup_cpus_write()