Lines Matching refs:dn
170 static int get_children_props(struct device_node *dn, const int **drc_indexes, in get_children_props() argument
176 indexes = of_get_property(dn, "ibm,drc-indexes", NULL); in get_children_props()
177 names = of_get_property(dn, "ibm,drc-names", NULL); in get_children_props()
178 types = of_get_property(dn, "ibm,drc-types", NULL); in get_children_props()
179 domains = of_get_property(dn, "ibm,drc-power-domains", NULL); in get_children_props()
203 int rpaphp_get_drc_props(struct device_node *dn, int *drc_index, in rpaphp_get_drc_props() argument
212 my_index = of_get_property(dn, "ibm,my-drc-index", NULL); in rpaphp_get_drc_props()
218 rc = get_children_props(dn->parent, &indexes, &names, &types, &domains); in rpaphp_get_drc_props()
273 static int is_php_dn(struct device_node *dn, const int **indexes, in is_php_dn() argument
279 rc = get_children_props(dn, indexes, names, &drc_types, power_domains); in is_php_dn()
306 int rpaphp_add_slot(struct device_node *dn) in rpaphp_add_slot() argument
314 if (!dn->name || strcmp(dn->name, "pci")) in rpaphp_add_slot()
318 if (!is_php_dn(dn, &indexes, &names, &types, &power_domains)) in rpaphp_add_slot()
321 dbg("Entry %s: dn->full_name=%s\n", __func__, dn->full_name); in rpaphp_add_slot()
330 slot = alloc_slot_struct(dn, index, name, in rpaphp_add_slot()
377 struct device_node *dn; in rpaphp_init() local
381 for_each_node_by_name(dn, "pci") in rpaphp_init()
382 rpaphp_add_slot(dn); in rpaphp_init()