Lines Matching defs:node
45 * structure used for searching device tree for a node matching
56 * structure used for searching device tree for a node matching
61 di_node_t node;
112 static void new_disk_list_entry(di_node_t node);
113 static int i_disktype(di_node_t node, di_minor_t minor, void *arg);
122 static di_node_t search_tree_match_pcibdf(di_node_t node, int bus, int dev,
124 static int i_match_pcibdf(di_node_t node, void *arg);
126 static di_node_t search_tree_match_usbserialno(di_node_t node,
128 static int i_match_usbserialno(di_node_t node, void *arg);
130 static di_node_t search_children_match_busaddr(di_node_t node,
136 new_disk_list_entry(di_node_t node)
158 devfspath = di_devfs_path(node);
167 i_disktype(di_node_t node, di_minor_t minor, void *arg)
178 new_disk_list_entry(node);
210 i_match_pcibdf(di_node_t node, void *arg)
222 parentnode = di_parent_node(node);
231 len = di_prop_lookup_ints(DDI_DEV_T_ANY, node, "reg",
236 len = di_prom_prop_lookup_ints(prom_hdl, node, "reg",
252 pbp->di_node = node;
261 search_tree_match_pcibdf(di_node_t node, int bus, int dev, int fn)
269 (void) di_walk_node(node, DI_WALK_CLDFIRST, &pb, i_match_pcibdf);
275 i_match_usbserialno(di_node_t node, void *arg)
283 len = di_prop_lookup_bytes(DDI_DEV_T_ANY, node, "usb-serialno",
288 usbsp->node = node;
295 search_tree_match_usbserialno(di_node_t node, uint64_t serialno)
301 usbs.node = DI_NODE_NIL;
303 (void) di_walk_node(node, DI_WALK_CLDFIRST, &usbs, i_match_usbserialno);
304 return (usbs.node);
322 * Find first child of 'node' whose unit address is 'matchbusaddr'
325 search_children_match_busaddr(di_node_t node, char *matchbusaddr)
334 while ((pi = di_path_phci_next_path(node, pi)) != DI_PATH_NIL) {
342 for (cnode = di_child_node(node); cnode != DI_NODE_NIL;
362 di_node_t node, cnode = DI_NODE_NIL;
396 /* look into devinfo tree and find a node with matching pci b/d/f */
397 node = search_tree_match_pcibdf(root_node, bd->interfacepath.pci.bus,
400 if (node == DI_NODE_NIL) {
402 (void) printf(" could not find a node in tree "
422 cnode = search_children_match_busaddr(node, busaddrbuf);
428 if (strncmp(di_node_name(node), "pci-ide", 7) == 0) {
437 if ((cnode = search_children_match_busaddr(node,
471 cnode = search_children_match_busaddr(node,
481 cnode = search_tree_match_usbserialno(node,