Lines Matching refs:ph

47 static boolean_t is_root_complex(di_prom_handle_t ph, di_node_t di);
49 di_prom_handle_t ph, di_node_t di, md_node_t *node, char *path);
51 di_prom_handle_t ph, md_node_t *node, di_node_t parent);
53 di_prom_handle_t ph, md_node_t *node, di_node_t dev);
116 is_root_complex(di_prom_handle_t ph, di_node_t di) in is_root_complex() argument
121 len = di_prom_prop_lookup_strings(ph, di, "device_type", &type); in is_root_complex()
147 add_prom_string_prop(di_prom_handle_t ph, in add_prom_string_prop() argument
156 count = di_prom_prop_lookup_strings(ph, di, alt_name, &pp_data); in add_prom_string_prop()
159 count = di_prom_prop_lookup_strings(ph, di, name, &pp_data); in add_prom_string_prop()
178 add_prom_int_prop(di_prom_handle_t ph, in add_prom_int_prop() argument
186 count = di_prom_prop_lookup_ints(ph, di, alt_name, &pp_data); in add_prom_int_prop()
189 count = di_prom_prop_lookup_ints(ph, di, name, &pp_data); in add_prom_int_prop()
205 di_prom_handle_t ph, di_node_t di, md_node_t *node, char *path) in link_device_node() argument
218 if (add_prom_string_prop(ph, mdp, np, di, "device_type", NULL) != 0) in link_device_node()
221 if (add_prom_string_prop(ph, mdp, np, di, "compatible", NULL) != 0) in link_device_node()
224 if (add_prom_int_prop(ph, in link_device_node()
228 if (add_prom_int_prop(ph, in link_device_node()
232 if (add_prom_int_prop(ph, in link_device_node()
245 di_prom_handle_t ph, md_node_t *md_parent, di_node_t di_parent) in create_children() argument
257 md_node = link_device_node(mdp, ph, di_parent, md_parent, path); in create_children()
267 ph, di_child, md_node, path); in create_children()
274 rv = create_peers(mdp, ph, md_node, di_child); in create_children()
285 create_peers(mmd_t *mdp, di_prom_handle_t ph, md_node_t *node, di_node_t dev) in create_peers() argument
291 rv = create_children(mdp, ph, node, di_peer); in create_peers()
304 di_prom_handle_t ph; in device_tree_to_md() local
314 ph = di_prom_init(); in device_tree_to_md()
315 if (ph == DI_PROM_HANDLE_NIL) { in device_tree_to_md()
323 if (is_root_complex(ph, node)) { in device_tree_to_md()
324 rv = create_children(mdp, ph, top, node); in device_tree_to_md()
331 di_prom_fini(ph); in device_tree_to_md()