Lines Matching defs:node

255 		di_node_t target_node, node;
265 /* mark the target node so we display it */
270 * mark the ancestors of this node so we display
273 node = target_node;
274 while (node = di_parent_node(node))
275 node_display_set(node);
282 * depth of the target node in the tree. we do
285 * target node starts with an indentation of zero.
287 node = target_node;
288 while (node = di_parent_node(node))
294 * mark the children of this node so we display
320 i_find_target_node(di_node_t node, void *arg)
327 if ((path = di_devfs_path(node)) == NULL)
332 *target = node;
340 while ((minor = di_minor_next(node, minor)) != DI_MINOR_NIL) {
342 *target = node;
358 /* special case to allow displaying of the root node */
374 node_display(di_node_t node)
376 long data = (long)di_node_private_get(node);
381 node_display_set(di_node_t node)
383 long data = (long)di_node_private_get(node);
385 di_node_private_set(node, (void *)data);
545 void *node, dev_t dev, int *compat_printed)
557 while ((prop = NEXTPROP(dumpops)(node, prop)) != DI_PROP_NIL) {
584 while ((minor = di_minor_next((di_node_t)node,
595 * node.
714 di_node_t node;
716 node = di_drv_first_node(dbg.d_drivername, root);
718 while (node != DI_NODE_NIL) {
719 (void) dump_devs(node, di_arg);
720 node = di_drv_next_node(node);
725 * print out information about this node, returns appropriate code.
729 dump_devs(di_node_t node, void *arg)
740 char *path = di_devfs_path(node);
741 dprintf("Dump node %s\n", path);
749 tmp = node;
758 if (opts.o_target && !node_display(node)) {
768 (void) printf("%s", di_node_name(node));
770 (void) print_pciid(node, di_arg->prom_hdl, di_arg->pcidb_hdl);
773 * if this node does not have an instance number or is the
774 * root node (1229946), we don't print an instance number
776 root_node = tmp = node;
779 if ((di_instance(node) >= 0) && (node != root_node))
780 (void) printf(", instance #%d", di_instance(node));
783 driver_name = di_driver_name(node);
786 } else if (di_retired(node)) {
788 } else if (di_state(node) & DI_DRIVER_DETACHED)
794 node, DDI_DEV_T_ANY, NULL)) {
796 node, DDI_DEV_T_ANY, NULL);
800 node, DDI_DEV_T_ANY, NULL);
803 node, DDI_DEV_T_NONE, NULL);
806 ilev + 1, node, DDI_DEV_T_ANY, &compat_printed);
811 ilev + 1, node);
815 ilev + 1, node, di_arg->pcidb_hdl);
817 dump_priv_data(ilev + 1, node);
818 dump_pathing_data(ilev + 1, node);
819 dump_link_data(ilev + 1, node, devlink_hdl);
820 dump_minor_data(ilev + 1, node, devlink_hdl);
826 if (!opts.o_pseudodevs && (strcmp(di_node_name(node), "pseudo") == 0))
954 /* print current node */
970 if (strcmp("node", name) != 0) {
1041 dump_pathing_data(int ilev, di_node_t node)
1049 if (node == DI_PATH_NIL)
1052 while ((pi = di_path_client_next_path(node, pi)) != DI_PATH_NIL) {
1079 di_node_name(node),
1111 /* get the path to the device and the minor node name */
1115 /* display the path to this minor node */
1121 /* get the device minor node information */
1141 /* display the device minor node information */
1146 /* display all the devlinks for this device minor node */
1155 create_minor_list(di_node_t node)
1161 if (di_minor_next(node, DI_MINOR_NIL) == DI_MINOR_NIL)
1171 * displaying each node so it doesn't look like we're pausing
1174 major = di_driver_major(node);
1176 while ((minor = di_minor_next(node, minor)) != DI_MINOR_NIL) {
1185 /* this is the first minor node we're looking at */
1193 * to the node with the lowest dev value
1243 di_node_t node = DI_NODE_NIL;
1264 * minor node (i.e. if it's bound to a dev_t) and
1266 * minor node pathing information.
1275 /* display paths to the src devt minor node */
1276 while (minor = di_minor_next(node, minor)) {
1295 * This device lnode is not did not have any minor node
1296 * pathing information so display the path to device node.
1298 node = di_lnode_devinfo(lnode);
1299 if ((path = di_devfs_path(node)) == NULL)
1308 dump_minor_link_data(int ilev, di_node_t node, dev_t devt,
1315 while (link = di_link_next_by_node(node, link, DI_LINK_TGT)) {
1339 while (link = di_link_next_by_node(node, link, DI_LINK_SRC)) {
1364 dump_minor_data(int ilev, di_node_t node, di_devlink_handle_t devlink_hdl)
1373 * node as undisplayed
1376 while (lnode = di_lnode_next(node, lnode))
1379 while (minor = di_minor_next(node, minor)) {
1388 create_minor_list(node);
1391 major = di_driver_major(node);
1393 while ((minor = di_minor_next(node, minor)) != DI_MINOR_NIL) {
1418 /* display the device minor node information */
1425 /* display device minor node path info */
1430 /* get a pointer to the next node */
1434 /* display who has this device minor node open */
1435 dump_minor_link_data(ilev + 1, node, devt, devlink_hdl);
1439 ilev + 1, node, devt, NULL);
1443 * now go through all the target lnodes for this node and
1447 * minor node does not exist for the opened devt
1450 while (link = di_link_next_by_node(node, link, DI_LINK_TGT)) {
1465 /* display the device minor node information */
1474 /* display who has this cloned device minor node open */
1475 dump_minor_link_data(ilev + 1, node, devt, devlink_hdl);
1477 /* mark node as displayed */
1483 dump_link_data(int ilev, di_node_t node, di_devlink_handle_t devlink_hdl)
1489 while (link = di_link_next_by_node(node, link, DI_LINK_SRC)) {
1499 * we won't display this link while dumping minor node
1806 /* Get model and version properties under node "openprom" */
1840 get_propval_by_name(di_prom_handle_t promh, di_node_t node, const char *name,
1846 len = di_prom_prop_lookup_bytes(promh, node, name,
1857 dump_prodinfo(di_prom_handle_t promh, di_node_t node, const char **propstr,
1864 len = get_propval_by_name(promh, node, propstr[index1],
1905 dump_compatible(char *name, int ilev, di_node_t node)
1912 if (node == DI_PATH_NIL)
1915 ncompat = di_compatible_names(node, &compat_array);
1950 dump_pciid(char *name, int ilev, di_node_t node, pcidb_hdl_t *pci)
1958 di_node_t pnode = di_parent_node(node);
1990 if (di_prop_lookup_ints(DDI_DEV_T_ANY, node, "vendor-id", &vid) <= 0)
1993 if (di_prop_lookup_ints(DDI_DEV_T_ANY, node, "device-id", &did) <= 0)
1996 if (di_prop_lookup_ints(DDI_DEV_T_ANY, node, "subsystem-vendor-id",
1997 &svid) <= 0 || di_prop_lookup_ints(DDI_DEV_T_ANY, node,