Lines Matching defs:dip
107 dev_info_t *dip;
111 dr_io_check_node(dev_info_t *dip, void *arg)
117 name = ddi_node_name(dip);
122 devid = ddi_prop_get_int(DDI_DEV_T_ANY, dip, DDI_PROP_DONTPASS,
132 if (!e_ddi_branch_held(dip))
133 e_ddi_branch_hold(dip);
135 sarg->dip = dip;
143 * Walk the device tree to find the dip corresponding to the devid
144 * passed in. If present, the dip is returned held. The caller must
145 * release the hold on the dip once it is no longer required. If no
157 arg.dip = NULL;
161 ASSERT((arg.dip == NULL) || (e_ddi_branch_held(arg.dip)));
163 return ((arg.dip) ? arg.dip : NULL);
239 dev_info_t *dip;
384 cba->dip = new_node;
441 dev_info_t *dip;
456 if ((dip = dr_io_find_node(name, devid)) != NULL) {
463 e_ddi_branch_rele(dip);
646 dev_info_t *dip;
657 if ((dip = dr_io_find_node(name, devid)) == NULL) {
667 ASSERT(e_ddi_branch_held(dip));
685 (void) ddi_pathname(dip, p + strlen(p));
722 } else if (rv = e_ddi_branch_destroy(dip, &fdip, 0)) {
734 (void) ddi_pathname(dip, path);
738 __func__, path, (fdip) ? (void *)fdip : (void *)dip);