Lines Matching full:drc

165 	indexes = of_get_property(dn, "ibm,drc-indexes", NULL);  in get_children_props()
166 names = of_get_property(dn, "ibm,drc-names", NULL); in get_children_props()
167 types = of_get_property(dn, "ibm,drc-types", NULL); in get_children_props()
168 domains = of_get_property(dn, "ibm,drc-power-domains", NULL); in get_children_props()
190 * current node. First obtain its my-drc-index property. Next,
191 * obtain the DRC info from its parent. Use the my-drc-index for
211 /* Iterate through parent properties, looking for my-drc-index */ in rpaphp_check_drc_props_v1()
232 struct of_drc_info drc; in rpaphp_check_drc_props_v2() local
237 info = of_find_property(dn->parent, "ibm,drc-info", NULL); in rpaphp_check_drc_props_v2()
248 of_read_drc_info_cell(&info, &value, &drc); in rpaphp_check_drc_props_v2()
253 if (my_index >= drc.drc_index_start && my_index <= drc.last_drc_index) { in rpaphp_check_drc_props_v2()
254 int index = my_index - drc.drc_index_start; in rpaphp_check_drc_props_v2()
255 sprintf(cell_drc_name, "%s%d", drc.drc_name_prefix, in rpaphp_check_drc_props_v2()
256 drc.drc_name_suffix_start + index); in rpaphp_check_drc_props_v2()
264 (drc_type && !strcmp(drc_type, drc.drc_type)))) in rpaphp_check_drc_props_v2()
275 my_index = of_get_property(dn, "ibm,my-drc-index", NULL); in rpaphp_check_drc_props()
281 if (of_property_present(dn->parent, "ibm,drc-info")) in rpaphp_check_drc_props()
338 struct of_drc_info drc; in rpaphp_drc_info_add_slot() local
344 info = of_find_property(dn, "ibm,drc-info", NULL); in rpaphp_drc_info_add_slot()
354 of_read_drc_info_cell(&info, &cur, &drc); in rpaphp_drc_info_add_slot()
355 if (!is_php_type(drc.drc_type)) in rpaphp_drc_info_add_slot()
358 sprintf(drc_name, "%s%d", drc.drc_name_prefix, drc.drc_name_suffix_start); in rpaphp_drc_info_add_slot()
360 slot = alloc_slot_struct(dn, drc.drc_index_start, drc_name, drc.drc_power_domain); in rpaphp_drc_info_add_slot()
364 slot->type = simple_strtoul(drc.drc_type, NULL, 10); in rpaphp_drc_info_add_slot()
403 dbg("Found drc-index:0x%x drc-name:%s drc-type:%s\n", in rpaphp_drc_add_slot()
443 if (of_property_present(dn, "ibm,drc-info")) in rpaphp_add_slot()