Lines Matching refs:parent
105 struct dtpm *parent = dtpm->parent; in __dtpm_sub_power() local
107 while (parent) { in __dtpm_sub_power()
108 parent->power_min -= dtpm->power_min; in __dtpm_sub_power()
109 parent->power_max -= dtpm->power_max; in __dtpm_sub_power()
110 parent->power_limit -= dtpm->power_limit; in __dtpm_sub_power()
111 parent = parent->parent; in __dtpm_sub_power()
117 struct dtpm *parent = dtpm->parent; in __dtpm_add_power() local
119 while (parent) { in __dtpm_add_power()
120 parent->power_min += dtpm->power_min; in __dtpm_add_power()
121 parent->power_max += dtpm->power_max; in __dtpm_add_power()
122 parent->power_limit += dtpm->power_limit; in __dtpm_add_power()
123 parent = parent->parent; in __dtpm_add_power()
172 struct dtpm *parent = dtpm->parent; in dtpm_release_zone() local
177 if (parent) in dtpm_release_zone()
365 int dtpm_register(const char *name, struct dtpm *dtpm, struct dtpm *parent) in dtpm_register() argument
372 if (root && !parent) in dtpm_register()
375 if (!root && parent) in dtpm_register()
378 if (parent && parent->ops) in dtpm_register()
391 parent ? &parent->zone : NULL, in dtpm_register()
397 if (parent) { in dtpm_register()
398 list_add_tail(&dtpm->sibling, &parent->children); in dtpm_register()
399 dtpm->parent = parent; in dtpm_register()
416 struct dtpm *parent) in dtpm_setup_virtual() argument
426 ret = dtpm_register(hierarchy->name, dtpm, parent); in dtpm_setup_virtual()
438 struct dtpm *parent) in dtpm_setup_dt() argument
454 ret = dtpm_subsys[i]->setup(parent, np); in dtpm_setup_dt()
479 const struct dtpm_node *it, struct dtpm *parent) in dtpm_for_each_child() argument
486 if (hierarchy[i].parent != it) in dtpm_for_each_child()
489 dtpm = dtpm_node_callback[hierarchy[i].type](&hierarchy[i], parent); in dtpm_for_each_child()