Lines Matching defs:node

93 	struct drmach_node	*node;
100 pnode_t (*get_dnode)(struct drmach_node *node);
101 int (*walk)(struct drmach_node *node, void *data,
103 dev_info_t *(*n_getdip)(struct drmach_node *node);
104 int (*n_getproplen)(struct drmach_node *node, char *name,
106 int (*n_getprop)(struct drmach_node *node, char *name,
108 int (*get_parent)(struct drmach_node *node,
156 drmach_node_t *node;
670 nargs->nwargs->node->here = (void *)dip;
679 nargs->nwargs->node->here = NULL;
696 args.node = np;
704 * Root node doesn't have to be held in any way.
954 rdip = dp->node->n_getdip(dp->node);
979 drmach_device_new(drmach_node_t *node,
988 rv = node->n_getprop(node, "name", name, OBP_MAXDRVNAME);
990 /* every node is expected to have a name */
991 err = drerr_new(1, EOPL_GETPROP, "device node %s: property %s",
992 ddi_node_name(node->n_getdip(node)), "name");
997 * The node currently being examined is not listed in the name2type[]
998 * array. In this case, the node is no interest to drmach. Both
1015 proto.node = node;
1179 cmn_err(CE_WARN, "Device node 0x%p has invalid "
1220 * Walk immediate children of the root devinfo node
1271 ip->dev.node = drmach_node_dup(proto->node);
1295 if (self->dev.node)
1296 drmach_node_dispose(self->dev.node);
1517 * continue processing this node.
1535 * node should be considered for a dr operation according
1536 * to predefined dr type nodes and the node's name.
1537 * Formal Parameter : The name of a device node.
1555 /* Determine if the node's name correspond to a predefined type. */
1558 /* The node is an allowed type for dr. */
1563 * If the name of the node does not map to any of the
1564 * types in the array drmach_name2type then the node is not of
1573 * - portid[9:5] of cmp node is LSB #, portid[7:3] of pci is LSB#
1586 drmach_node_t *node = args->node;
1596 portid = drmach_get_portid(node);
1599 * we use cpuid as the portid of the cpu node
1603 rv = node->n_getprop(node, "name", name, OBP_MAXDRVNAME);
1608 rv = node->n_getprop(node, OBP_BOARDNUM, &bnum, sizeof (bnum));
1630 * Create a device data structure from this node data.
1631 * The call may yield nothing if the node is not of interest
1634 data->err = drmach_device_new(node, obj, portid, &id);
1639 * drmach_device_new examined the node we passed in
1823 /* portid is CPUID of the node */
1835 cp->dev.node = drmach_node_dup(proto->node);
1854 * reg property of the parent node contains core ID
1876 if (self->dev.node)
1877 drmach_node_dispose(self->dev.node);
1974 np = cpu->node;
2009 *dip = dp->node->n_getdip(dp->node);
2024 dip = dp->node->n_getdip(dp->node);
2038 char *name; /* name of the node */
2106 dip = obj->dev.node->n_getdip(obj->dev.node);
2220 if ((proto->node->n_getproplen(proto->node, "mc-addr", &rv) < 0) ||
2230 mp->dev.node = drmach_node_dup(proto->node);
2239 dip = mp->dev.node->n_getdip(mp->dev.node);
2264 if (mp->dev.node)
2265 drmach_node_dispose(mp->dev.node);
2697 rdip = dp->node->n_getdip(dp->node);
2701 rv = dp->node->n_getprop(dp->node, "name", name, OBP_MAXDRVNAME);
2928 pnode_t node;
2932 node = prom_rootnode();
2933 if (node == OBP_BADNODE) {
2937 len = prom_getproplen(node, OPL_DR_STATUS_PROP);
2947 rtn = prom_getprop(node, OPL_DR_STATUS_PROP, str);