Lines Matching refs:newmask
336 static int cpus_mon_write(struct rdtgroup *rdtgrp, cpumask_var_t newmask, in cpus_mon_write() argument
343 cpumask_andnot(tmpmask, newmask, &prgrp->cpu_mask); in cpus_mon_write()
350 cpumask_andnot(tmpmask, &rdtgrp->cpu_mask, newmask); in cpus_mon_write()
361 cpumask_andnot(tmpmask, newmask, &rdtgrp->cpu_mask); in cpus_mon_write()
374 cpumask_copy(&rdtgrp->cpu_mask, newmask); in cpus_mon_write()
389 static int cpus_ctrl_write(struct rdtgroup *rdtgrp, cpumask_var_t newmask, in cpus_ctrl_write() argument
396 cpumask_andnot(tmpmask, &rdtgrp->cpu_mask, newmask); in cpus_ctrl_write()
415 cpumask_andnot(tmpmask, newmask, &rdtgrp->cpu_mask); in cpus_ctrl_write()
428 cpumask_copy(&rdtgrp->cpu_mask, newmask); in cpus_ctrl_write()
447 cpumask_var_t tmpmask, newmask, tmpmask1; in rdtgroup_cpus_write() local
456 if (!zalloc_cpumask_var(&newmask, GFP_KERNEL)) { in rdtgroup_cpus_write()
462 free_cpumask_var(newmask); in rdtgroup_cpus_write()
480 ret = cpulist_parse(buf, newmask); in rdtgroup_cpus_write()
482 ret = cpumask_parse(buf, newmask); in rdtgroup_cpus_write()
490 cpumask_andnot(tmpmask, newmask, cpu_online_mask); in rdtgroup_cpus_write()
498 ret = cpus_ctrl_write(rdtgrp, newmask, tmpmask, tmpmask1); in rdtgroup_cpus_write()
500 ret = cpus_mon_write(rdtgrp, newmask, tmpmask); in rdtgroup_cpus_write()
507 free_cpumask_var(newmask); in rdtgroup_cpus_write()