Lines Matching defs:lpl_leaf

1831  * Add a resource named by lpl_leaf to rset of lpl_target
1845 lpl_rset_add(lpl_t *lpl_target, lpl_t *lpl_leaf)
1852 if (lpl_target->lpl_rset[i] == lpl_leaf) {
1857 lpl_leaf->lpl_lgrpid) {
1878 lpl_target->lpl_rset[entry_slot] = lpl_leaf;
1879 lpl_target->lpl_id2rset[lpl_leaf->lpl_lgrpid] = entry_slot;
1881 lpl_target->lpl_ncpu += lpl_leaf->lpl_ncpu;
1913 * Delete resource lpl_leaf from rset of lpl_target, assuming it's there.
1920 lpl_rset_del(lpl_t *lpl_target, lpl_t *lpl_leaf)
1930 if (lpl_target->lpl_rset[i] == lpl_leaf)
1935 if (lpl_target->lpl_rset[i] != lpl_leaf)
1940 lpl_target->lpl_id2rset[lpl_leaf->lpl_lgrpid] = -1;
1959 lpl_rset_contains(lpl_t *lpl_target, lpl_t *lpl_leaf)
1964 if (lpl_target->lpl_rset[i] == lpl_leaf)
1981 lpl_t *lpl_leaf;
1988 lpl_leaf = cp->cpu_lpl;
1989 lgrp_leaf = lgrp_table[lpl_leaf->lpl_lgrpid];
2022 lpl_init(lpl_t *lpl, lpl_t *lpl_leaf, lgrp_t *lgrp)
2026 if (lpl == lpl_leaf)
2029 lpl->lpl_ncpu = lpl_leaf->lpl_ncpu;
2031 lpl->lpl_rset[0] = lpl_leaf;
2032 lpl->lpl_id2rset[lpl_leaf->lpl_lgrpid] = 0;
2408 lpl_leaf_insert(lpl_t *lpl_leaf, cpupart_t *cpupart)
2430 lpl_leaf->lpl_lgrpid) ||
2445 if (lpl_cur == lpl_leaf) {
2455 lpl_init(lpl_cur, lpl_leaf, lgrp_cur);
2500 lpl_leaf_remove(lpl_t *lpl_leaf, cpupart_t *cpupart)
2522 lpl_leaf->lpl_lgrpid) ||
2523 (lpl_cur == lpl_leaf)) {
2543 lpl_rset_del(lpl_cur, lpl_leaf);
2553 lpl_clear(lpl_leaf);
2585 lpl_t *lpl_leaf;
2595 lpl_leaf = &cpupart->cp_lgrploads[lgrpid];
2596 cp->cpu_lpl = lpl_leaf;
2600 if (lpl_leaf->lpl_ncpu++ == 0) {
2601 lpl_init(lpl_leaf, lpl_leaf, lgrp_leaf);
2603 lpl_leaf_insert(lpl_leaf, cpupart);
2614 if (lpl_leaf->lpl_cpus) {
2615 cp->cpu_next_lpl = lpl_leaf->lpl_cpus;
2616 cp->cpu_prev_lpl = lpl_leaf->lpl_cpus->cpu_prev_lpl;
2617 lpl_leaf->lpl_cpus->cpu_prev_lpl->cpu_next_lpl = cp;
2618 lpl_leaf->lpl_cpus->cpu_prev_lpl = cp;
2625 ASSERT(lpl_leaf->lpl_ncpu == 1);
2626 lpl_leaf->lpl_cpus = cp->cpu_next_lpl = cp->cpu_prev_lpl = cp;