Lines Matching refs:hierarchy
415 static struct dtpm *dtpm_setup_virtual(const struct dtpm_node *hierarchy, in dtpm_setup_virtual() argument
426 ret = dtpm_register(hierarchy->name, dtpm, parent); in dtpm_setup_virtual()
429 hierarchy->name, ret); in dtpm_setup_virtual()
437 static struct dtpm *dtpm_setup_dt(const struct dtpm_node *hierarchy, in dtpm_setup_dt() argument
443 np = of_find_node_by_path(hierarchy->name); in dtpm_setup_dt()
445 pr_err("Failed to find '%s'\n", hierarchy->name); in dtpm_setup_dt()
478 static int dtpm_for_each_child(const struct dtpm_node *hierarchy, in dtpm_for_each_child() argument
484 for (i = 0; hierarchy[i].name; i++) { in dtpm_for_each_child()
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()
511 hierarchy[i].name); in dtpm_for_each_child()
515 ret = dtpm_for_each_child(hierarchy, &hierarchy[i], dtpm); in dtpm_for_each_child()
552 const struct dtpm_node *hierarchy; in dtpm_create_hierarchy() local
582 hierarchy = match->data; in dtpm_create_hierarchy()
583 if (!hierarchy) { in dtpm_create_hierarchy()
588 ret = dtpm_for_each_child(hierarchy, NULL, NULL); in dtpm_create_hierarchy()