Lines Matching refs:newmask
349 static int cpus_mon_write(struct rdtgroup *rdtgrp, cpumask_var_t newmask, in cpus_mon_write() argument
356 cpumask_andnot(tmpmask, newmask, &prgrp->cpu_mask); in cpus_mon_write()
363 cpumask_andnot(tmpmask, &rdtgrp->cpu_mask, newmask); in cpus_mon_write()
374 cpumask_andnot(tmpmask, newmask, &rdtgrp->cpu_mask); in cpus_mon_write()
387 cpumask_copy(&rdtgrp->cpu_mask, newmask); in cpus_mon_write()
402 static int cpus_ctrl_write(struct rdtgroup *rdtgrp, cpumask_var_t newmask, in cpus_ctrl_write() argument
409 cpumask_andnot(tmpmask, &rdtgrp->cpu_mask, newmask); in cpus_ctrl_write()
428 cpumask_andnot(tmpmask, newmask, &rdtgrp->cpu_mask); in cpus_ctrl_write()
441 cpumask_copy(&rdtgrp->cpu_mask, newmask); in cpus_ctrl_write()
460 cpumask_var_t tmpmask, newmask, tmpmask1; in rdtgroup_cpus_write() local
469 if (!zalloc_cpumask_var(&newmask, GFP_KERNEL)) { in rdtgroup_cpus_write()
475 free_cpumask_var(newmask); in rdtgroup_cpus_write()
493 ret = cpulist_parse(buf, newmask); in rdtgroup_cpus_write()
495 ret = cpumask_parse(buf, newmask); in rdtgroup_cpus_write()
503 cpumask_andnot(tmpmask, newmask, cpu_online_mask); in rdtgroup_cpus_write()
511 ret = cpus_ctrl_write(rdtgrp, newmask, tmpmask, tmpmask1); in rdtgroup_cpus_write()
513 ret = cpus_mon_write(rdtgrp, newmask, tmpmask); in rdtgroup_cpus_write()
520 free_cpumask_var(newmask); in rdtgroup_cpus_write()