Lines Matching defs:node

122 	int		depth;	/* depth of current node to be copied */
137 #define PUSH_STACK(stack, node, off_p) { \
138 ASSERT(node != NULL); \
139 ndi_devi_enter((dev_info_t *)node, &(stack)->circ[(stack)->depth]); \
140 (stack)->dip[(stack)->depth] = (node); \
225 * i_link ptr to links coming into this i_lnode node
231 * i_link ptr to links going out of this i_lnode node
239 dev_info_t *hp_child; /* Child devinfo node of the di_hp_t */
327 static int di_dip_find(struct di_state *st, dev_info_t *node, di_off_t *off_p);
512 * of the selected minor node are currently open, we return EAGAIN.
1377 dcmn_err((CE_CONT, "Devinfo node %s not found\n",
1386 * Hold the devinfo node referred by the path.
1390 dcmn_err((CE_CONT, "Devinfo node %s not found\n",
1526 dcmn_err3((CE_CONT, "vhci node %s%d\n",
1531 dcmn_err((CE_WARN, "di_dip_find error for the given node\n"));
1576 dcmn_err((CE_WARN, "di_dip_find error for the given node\n"));
1580 dcmn_err3((CE_CONT, "phci node %s%d, at offset 0x%x\n",
1604 struct dev_info *node;
1610 node = DEVI(dnp->dn_head);
1611 for (; node; node = node->devi_next) {
1612 if (di_dip_find(st, (dev_info_t *)node, &off) != 0)
1683 * Snapshot per-driver node list
1734 struct dev_info *node;
1757 * As long as there is a node on the stack, copy the node.
1762 node = TOP_NODE(dsp);
1763 off = di_copynode(node, dsp, st);
1776 * node into the snapshot. The amount of information is determined by the
1780 di_copynode(struct dev_info *node, struct di_stack *dsp, struct di_state *st)
1788 ASSERT((node != NULL) && (node == TOP_NODE(dsp)));
1799 dcmn_err((CE_CONT, "copy node %s, instance #%d, at offset 0x%x\n",
1800 node->devi_node_name, node->devi_instance, off));
1804 * self -- offset of current node within snapshot
1805 * nodeid -- pointer to PROM node (tri-valued)
1807 * node_state -- devinfo node state
1809 me->instance = node->devi_instance;
1810 me->nodeid = node->devi_nodeid;
1811 me->node_class = node->devi_node_class;
1812 me->attributes = node->devi_node_attributes;
1813 me->state = node->devi_state;
1814 me->flags = node->devi_flags;
1815 me->node_state = node->devi_node_state;
1824 * and store it in the current node
1838 di_register_dip(st, (dev_info_t *)node, me->self);
1842 if (node->devi_devid_str) {
1852 if (ddi_devid_str_decode(node->devi_devid_str, &devid, NULL) ==
1864 if (node->devi_node_name) {
1865 size = strlen(node->devi_node_name) + 1;
1867 (void) strcpy(di_mem_addr(st, off), node->devi_node_name);
1871 if (node->devi_compat_names && (node->devi_compat_length > 1)) {
1872 size = node->devi_compat_length;
1875 bcopy(node->devi_compat_names, di_mem_addr(st, off), size);
1879 if (node->devi_addr) {
1880 size = strlen(node->devi_addr) + 1;
1882 (void) strcpy(di_mem_addr(st, off), node->devi_addr);
1886 if (node->devi_binding_name) {
1887 size = strlen(node->devi_binding_name) + 1;
1889 (void) strcpy(di_mem_addr(st, off), node->devi_binding_name);
1893 me->drv_major = node->devi_major;
1922 ASSERT(DEVI_BUSY_OWNED(node));
1923 if (node->devi_minor) { /* minor data */
1925 off = di_getmdata(node->devi_minor, &me->minor_data,
1934 if (MDI_VHCI(node)) {
1938 if (MDI_CLIENT(node)) {
1941 off = di_getpath_data((dev_info_t *)node, &me->multipath_client,
1943 dcmn_err((CE_WARN, "me->multipath_client = %x for node %p "
1946 (void *)node, node->devi_mdi_component, off));
1949 if (MDI_PHCI(node)) {
1952 off = di_getpath_data((dev_info_t *)node, &me->multipath_phci,
1954 dcmn_err((CE_WARN, "me->multipath_phci = %x for node %p "
1957 (void *)node, node->devi_mdi_component, off));
1965 if (node->devi_drv_prop_ptr) { /* driver property list */
1967 off = di_getprop(DI_PROP_DRV_LIST, &node->devi_drv_prop_ptr,
1968 &me->drv_prop, st, node);
1971 if (node->devi_sys_prop_ptr) { /* system property list */
1973 off = di_getprop(DI_PROP_SYS_LIST, &node->devi_sys_prop_ptr,
1974 &me->sys_prop, st, node);
1977 if (node->devi_hw_prop_ptr) { /* hardware property list */
1979 off = di_getprop(DI_PROP_HW_LIST, &node->devi_hw_prop_ptr,
1980 &me->hw_prop, st, node);
1983 if (node->devi_global_prop_list == NULL) {
1993 if (node->devi_global_prop_list !=
1997 &node->devi_global_prop_list->prop_list,
1998 &me->glob_prop, st, node);
2007 if (node->devi_hp_hdlp) { /* hotplug data */
2009 off = di_gethpdata(node->devi_hp_hdlp, &me->hp_data, st);
2017 if (ddi_get_parent_data((dev_info_t *)node) != NULL) {
2019 off = di_getppdata(node, &me->parent_data, st);
2022 if (ddi_get_driver_private((dev_info_t *)node) != NULL) {
2024 off = di_getdpdata(node, &me->driver_data, st);
2043 if ((n = node->devi_child) != NULL) {
2057 * sibling of a parent node is found or root node is reached.
2061 if ((n = node->devi_sibling) != NULL) {
2071 node = TOP_NODE(dsp);
2198 * correspond to a device node then we don't report it via
2428 me->node = i_lnode->di_node->self;
2438 * set the offset of the devinfo node associated with this
2441 * devinfo node. (could occure when multiple minor nodes
2514 * Copy all minor data nodes attached to a devinfo node into the snapshot.
2519 di_getmdata(struct ddi_minor_data *mnode, di_off_t *off_p, di_off_t node,
2538 me->node = node;
2585 struct dev_info *node = DEVI(dip);
2596 dk->dk_major = node->devi_major;
2597 dk->dk_inst = node->devi_instance;
2598 dk->dk_nodeid = node->devi_nodeid;
2920 * We've already seen this pathinfo node so we need to
3006 * Return driver prop_op entry point for the specified devinfo node.
3161 * Copy a list of properties attached to a devinfo node. Called from
3265 /* property of devinfo node */
3286 /* property of devinfo node */
3306 di_match_drv_name(struct dev_info *node, struct di_state *st, int match)
3314 dcmn_err2((CE_CONT, "di_match_drv_name: node = %s, match = %x\n",
3315 node->devi_node_name, match));
3318 node = DEVI(node->devi_parent);
3321 if (node == NULL) {
3325 major = node->devi_major;
3378 di_getprvdata(struct di_priv_format *pdp, struct dev_info *node,
3494 ddi_pathname((dev_info_t *)node, path), data);
3505 di_getppdata(struct dev_info *node, di_off_t *off_p, struct di_state *st)
3513 if ((ppdp = di_match_drv_name(node, st, DI_MATCH_PARENT)) == NULL) {
3519 return (di_getprvdata(ppdp, node,
3520 ddi_get_parent_data((dev_info_t *)node), off_p, st));
3527 di_getdpdata(struct dev_info *node, di_off_t *off_p, struct di_state *st)
3535 if ((dpdp = di_match_drv_name(node, st, DI_MATCH_DRIVER)) == NULL) {
3541 return (di_getprvdata(dpdp, node,
3542 ddi_get_driver_private((dev_info_t *)node), off_p, st));
3546 * Copy hotplug data associated with a devinfo node into the snapshot.
3610 * or terminate the chain when processing the last node.