Lines Matching defs:dnp
57 static void in_removenode(struct devnames *dnp, in_node_t *mp, in_node_t *ap);
71 static void in_removedrv(struct devnames *dnp, in_drv_t *mp);
238 struct devnames *dnp;
243 dnp = &devnamesp[m];
244 dip = dnp->dn_head;
246 DEVI(dip)->devi_instance = dnp->dn_instance;
247 dnp->dn_instance++;
262 dnp->dn_pinstance = dnp->dn_instance;
263 dnp->dn_instance = IN_SEARCHME;
668 struct devnames *dnp;
675 dnp = &devnamesp[major];
676 for (dp = dnp->dn_inlist; dp != NULL; dp = dp->ind_next)
705 struct devnames *dnp;
710 dnp = &devnamesp[major];
716 if (!instance_searchme && (dnp->dn_instance != IN_SEARCHME)) {
717 base = dnp->dn_instance;
718 dnp->dn_instance += block_size;
725 for (dp = dnp->dn_inlist; dp; dp = dp->ind_next)
726 if (dp->ind_instance >= dnp->dn_pinstance)
731 base = dnp->dn_pinstance;
733 dnp->dn_instance = block_size;
739 if ((prev - dnp->dn_pinstance) >= block_size)
740 return (dnp->dn_pinstance); /* we fit in beginning hole */
756 if ((hole == 0) && (dnp->dn_pinstance == 0))
757 dnp->dn_instance = prev + 1 + block_size;
780 struct devnames *dnp;
800 dnp = &devnamesp[major];
822 in_removedrv(dnp, dp);
828 in_removenode(dnp, np, ap);
919 in_removenode(struct devnames *dnp, in_node_t *mp, in_node_t *ap)
950 panic("in_removenode dnp %p mp %p", (void *)dnp, (void *)mp);
1296 struct devnames *dnp;
1307 dnp = &devnamesp[major];
1309 dp = dnp->dn_inlist;
1321 struct devnames *dnp;
1334 * dnp->dn_inlist is sorted by instance number.
1339 dnp = &devnamesp[major];
1340 pp = mp = dnp->dn_inlist;
1343 dnp->dn_instance = IN_SEARCHME;
1345 dnp->dn_inlist = dp;
1369 in_removedrv(struct devnames *dnp, in_drv_t *mp)
1374 if (dnp->dn_inlist == mp) { /* head of list */
1375 dnp->dn_inlist = mp->ind_next;
1376 dnp->dn_instance = IN_SEARCHME;
1381 prevp = dnp->dn_inlist;
1390 dnp->dn_instance = IN_SEARCHME;