Lines Matching refs:tmp
520 static inline int alloc_cpumasks(struct cpuset *cs, struct tmpmasks *tmp) in alloc_cpumasks() argument
529 pmask1 = &tmp->new_cpus; in alloc_cpumasks()
530 pmask2 = &tmp->addmask; in alloc_cpumasks()
531 pmask3 = &tmp->delmask; in alloc_cpumasks()
562 static inline void free_cpumasks(struct cpuset *cs, struct tmpmasks *tmp) in free_cpumasks() argument
570 if (tmp) { in free_cpumasks()
571 free_cpumask_var(tmp->new_cpus); in free_cpumasks()
572 free_cpumask_var(tmp->addmask); in free_cpumasks()
573 free_cpumask_var(tmp->delmask); in free_cpumasks()
1233 struct tmpmasks *tmp) in update_parent_subparts_cpumask() argument
1276 cpumask_copy(tmp->addmask, cpuset->cpus_allowed); in update_parent_subparts_cpumask()
1279 deleting = cpumask_and(tmp->delmask, cpuset->cpus_allowed, in update_parent_subparts_cpumask()
1289 cpumask_andnot(tmp->delmask, cpuset->cpus_allowed, newmask); in update_parent_subparts_cpumask()
1290 deleting = cpumask_and(tmp->delmask, tmp->delmask, in update_parent_subparts_cpumask()
1293 cpumask_and(tmp->addmask, newmask, parent->effective_cpus); in update_parent_subparts_cpumask()
1294 adding = cpumask_andnot(tmp->addmask, tmp->addmask, in update_parent_subparts_cpumask()
1300 cpumask_equal(parent->effective_cpus, tmp->addmask)) { in update_parent_subparts_cpumask()
1308 if (!cpumask_and(tmp->addmask, tmp->delmask, in update_parent_subparts_cpumask()
1311 cpumask_copy(tmp->addmask, parent->effective_cpus); in update_parent_subparts_cpumask()
1323 adding = cpumask_and(tmp->addmask, cpuset->cpus_allowed, in update_parent_subparts_cpumask()
1325 part_error = cpumask_equal(tmp->addmask, in update_parent_subparts_cpumask()
1360 deleting = cpumask_and(tmp->delmask, cpuset->cpus_allowed, in update_parent_subparts_cpumask()
1375 parent->subparts_cpus, tmp->addmask); in update_parent_subparts_cpumask()
1377 parent->effective_cpus, tmp->addmask); in update_parent_subparts_cpumask()
1381 parent->subparts_cpus, tmp->delmask); in update_parent_subparts_cpumask()
1385 cpumask_and(tmp->delmask, tmp->delmask, cpu_active_mask); in update_parent_subparts_cpumask()
1387 parent->effective_cpus, tmp->delmask); in update_parent_subparts_cpumask()
1413 static void update_cpumasks_hier(struct cpuset *cs, struct tmpmasks *tmp) in update_cpumasks_hier() argument
1424 compute_effective_cpumask(tmp->new_cpus, cp, parent); in update_cpumasks_hier()
1430 if (is_in_v2_mode() && cpumask_empty(tmp->new_cpus)) { in update_cpumasks_hier()
1431 cpumask_copy(tmp->new_cpus, parent->effective_cpus); in update_cpumasks_hier()
1447 cpumask_equal(tmp->new_cpus, cp->effective_cpus)) { in update_cpumasks_hier()
1482 if (update_parent_subparts_cpumask(cp, partcmd_update, NULL, tmp)) in update_cpumasks_hier()
1501 cpumask_copy(cp->effective_cpus, tmp->new_cpus); in update_cpumasks_hier()
1518 cpumask_copy(cp->effective_cpus, tmp->new_cpus); in update_cpumasks_hier()
1522 tmp->new_cpus)) { in update_cpumasks_hier()
1524 cp->subparts_cpus, tmp->new_cpus); in update_cpumasks_hier()
1569 struct tmpmasks *tmp) in update_sibling_cpumasks() argument
1594 update_cpumasks_hier(sibling, tmp); in update_sibling_cpumasks()
1611 struct tmpmasks tmp; in update_cpumask() local
1649 tmp.addmask = trialcs->subparts_cpus; in update_cpumask()
1650 tmp.delmask = trialcs->effective_cpus; in update_cpumask()
1651 tmp.new_cpus = trialcs->cpus_allowed; in update_cpumask()
1659 trialcs->cpus_allowed, &tmp) < 0) in update_cpumask()
1676 update_cpumasks_hier(cs, &tmp); in update_cpumask()
1686 update_sibling_cpumasks(parent, cs, &tmp); in update_cpumask()
3208 static void cpuset_hotplug_update_tasks(struct cpuset *cs, struct tmpmasks *tmp) in cpuset_hotplug_update_tasks() argument
3240 if (!tmp || !cs->partition_root_state) in cpuset_hotplug_update_tasks()
3269 NULL, tmp); in cpuset_hotplug_update_tasks()
3289 update_parent_subparts_cpumask(cs, partcmd_update, NULL, tmp)) in cpuset_hotplug_update_tasks()
3328 struct tmpmasks tmp, *ptmp = NULL; in cpuset_hotplug_workfn() local
3330 if (on_dfl && !alloc_cpumasks(NULL, &tmp)) in cpuset_hotplug_workfn()
3331 ptmp = &tmp; in cpuset_hotplug_workfn()