Lines Matching full:drc

163 	indexes = of_get_property(dn, "ibm,drc-indexes", NULL);  in get_children_props()
164 names = of_get_property(dn, "ibm,drc-names", NULL); in get_children_props()
165 types = of_get_property(dn, "ibm,drc-types", NULL); in get_children_props()
166 domains = of_get_property(dn, "ibm,drc-power-domains", NULL); in get_children_props()
188 * current node. First obtain its my-drc-index property. Next,
189 * obtain the DRC info from its parent. Use the my-drc-index for
209 /* Iterate through parent properties, looking for my-drc-index */ in rpaphp_check_drc_props_v1()
230 struct of_drc_info drc; in rpaphp_check_drc_props_v2() local
235 info = of_find_property(dn->parent, "ibm,drc-info", NULL); in rpaphp_check_drc_props_v2()
246 of_read_drc_info_cell(&info, &value, &drc); in rpaphp_check_drc_props_v2()
251 if (my_index >= drc.drc_index_start && my_index <= drc.last_drc_index) { in rpaphp_check_drc_props_v2()
252 int index = my_index - drc.drc_index_start; in rpaphp_check_drc_props_v2()
253 sprintf(cell_drc_name, "%s%d", drc.drc_name_prefix, in rpaphp_check_drc_props_v2()
254 drc.drc_name_suffix_start + index); in rpaphp_check_drc_props_v2()
262 (drc_type && !strcmp(drc_type, drc.drc_type)))) in rpaphp_check_drc_props_v2()
273 my_index = of_get_property(dn, "ibm,my-drc-index", NULL); in rpaphp_check_drc_props()
279 if (of_find_property(dn->parent, "ibm,drc-info", NULL)) in rpaphp_check_drc_props()
336 struct of_drc_info drc; in rpaphp_drc_info_add_slot() local
342 info = of_find_property(dn, "ibm,drc-info", NULL); in rpaphp_drc_info_add_slot()
352 of_read_drc_info_cell(&info, &cur, &drc); in rpaphp_drc_info_add_slot()
353 if (!is_php_type(drc.drc_type)) in rpaphp_drc_info_add_slot()
356 sprintf(drc_name, "%s%d", drc.drc_name_prefix, drc.drc_name_suffix_start); in rpaphp_drc_info_add_slot()
358 slot = alloc_slot_struct(dn, drc.drc_index_start, drc_name, drc.drc_power_domain); in rpaphp_drc_info_add_slot()
362 slot->type = simple_strtoul(drc.drc_type, NULL, 10); in rpaphp_drc_info_add_slot()
401 dbg("Found drc-index:0x%x drc-name:%s drc-type:%s\n", in rpaphp_drc_add_slot()
441 if (of_find_property(dn, "ibm,drc-info", NULL)) in rpaphp_add_slot()