Lines Matching refs:devi
224 dv_mkino(dev_info_t *devi, vtype_t typ, dev_t dev) in dv_mkino() argument
232 major = ((L_MAXMAJ32 + 1) >> 1) + DEVI(devi)->devi_major; in dv_mkino()
233 minor = ddi_get_instance(devi); in dv_mkino()
238 major = DEVI(devi)->devi_major; in dv_mkino()
335 dv_mkdir(struct dv_node *ddv, dev_info_t *devi, char *nm) in dv_mkdir() argument
341 ASSERT((devi)); in dv_mkdir()
359 dv->dv_devi = devi; in dv_mkdir()
360 ndi_hold_devi(devi); in dv_mkdir()
362 dv->dv_ino = dv_mkino(devi, VDIR, NODEV); in dv_mkdir()
386 dv_mknod(struct dv_node *ddv, dev_info_t *devi, char *nm, in dv_mknod() argument
411 ASSERT(DEVI_BUSY_OWNED(devi)); in dv_mknod()
412 mutex_enter(&DEVI(devi)->devi_lock); in dv_mknod()
413 dv->dv_devi = devi; in dv_mknod()
414 DEVI(devi)->devi_ref++; /* ndi_hold_devi(dip) */ in dv_mknod()
415 mutex_exit(&DEVI(devi)->devi_lock); in dv_mknod()
417 dv->dv_ino = dv_mkino(devi, vp->v_type, vp->v_rdev); in dv_mknod()
842 dv_find_leafnode(dev_info_t *devi, char *minor_nm, struct ddi_minor_data *r_mi) in dv_find_leafnode() argument
846 ASSERT(i_ddi_devi_attached(devi)); in dv_find_leafnode()
849 ASSERT(DEVI_BUSY_OWNED(devi)); in dv_find_leafnode()
850 for (dmd = DEVI(devi)->devi_minor; dmd; dmd = dmd->next) { in dv_find_leafnode()
936 dev_info_t *pdevi, *devi = NULL; in dv_find() local
1095 rv = ndi_devi_config_one(pdevi, nm, &devi, ndi_flags | NDI_NO_EVENT); in dv_find()
1103 ASSERT(devi); in dv_find()
1106 if (ddi_aliases_present == B_TRUE && ddi_get_parent(devi) != pdevi) { in dv_find()
1109 (void) ddi_pathname(devi, curr); in dv_find()
1123 if (ndi_dev_is_hidden_node(devi)) { in dv_find()
1124 ndi_rele_devi(devi); in dv_find()
1133 if (isminiroot == 0 && ddi_get_parent(devi) != pdevi) { in dv_find()
1134 ndi_rele_devi(devi); in dv_find()
1139 ASSERT(devi && i_ddi_devi_attached(devi)); in dv_find()
1153 dv = dv_mkdir(ddv, devi, nm); in dv_find()
1160 ndi_devi_enter(devi); in dv_find()
1161 if (devi == clone_dip) { in dv_find()
1171 if (dv_find_leafnode(devi, mnm + 1, dmd) == 0) { in dv_find()
1172 dv = dv_mknod(ddv, devi, nm, dmd); in dv_find()
1177 ndi_devi_exit(devi); in dv_find()
1183 ndi_rele_devi(devi); in dv_find()
1274 dev_info_t *devi, *pdevi; in dv_filldir() local
1292 for (devi = ddi_get_child(pdevi); devi; in dv_filldir()
1293 devi = ddi_get_next_sibling(devi)) { in dv_filldir()
1303 if (i_ddi_node_state(devi) < DS_ATTACHED) in dv_filldir()
1307 if (ndi_dev_is_hidden_node(devi)) in dv_filldir()
1310 dcmn_err3(("dv_filldir: node %s\n", ddi_node_name(devi))); in dv_filldir()
1312 ndi_devi_enter(devi); in dv_filldir()
1313 for (dmd = DEVI(devi)->devi_minor; dmd; dmd = dmd->next) { in dv_filldir()
1326 addr = ddi_get_name_addr(devi); in dv_filldir()
1329 ddi_node_name(devi), addr, dmd->ddm_name); in dv_filldir()
1332 ddi_node_name(devi), dmd->ddm_name); in dv_filldir()
1340 dv = dv_mknod(ddv, devi, devnm, dmd); in dv_filldir()
1344 ndi_devi_exit(devi); in dv_filldir()
1346 (void) ddi_deviname(devi, devnm); in dv_filldir()
1349 dv = dv_mkdir(ddv, devi, devnm + 1); in dv_filldir()