Lines Matching defs:dnp
133 struct devnames *dnp;
138 dnp = &devnamesp[major];
139 LOCK_DEV_OPS(&dnp->dn_lock);
155 UNLOCK_DEV_OPS(&dnp->dn_lock);
167 UNLOCK_DEV_OPS(&dnp->dn_lock);
374 struct devnames *dnp;
376 dnp = &devnamesp[major];
378 ASSERT(mutex_owned(&dnp->dn_lock));
384 if (dnp->dn_flags & (DN_CONF_PARSED | DN_DRIVER_REMOVED))
385 return (dnp->dn_pl);
399 * If there are global properties, reference it from dnp.
402 dnp->dn_global_prop_ptr = i_ddi_prop_list_create(props);
416 dnp->dn_flags |= DN_FORCE_ATTACH;
419 dnp->dn_flags |= DN_OPEN_RETURNS_EINTR;
422 dnp->dn_flags |= DN_SCSI_SIZE_CLEAN;
427 dnp->dn_flags |= DN_PHCI_DRIVER;
431 dnp->dn_flags |= DN_DEVID_REGISTRANT;
434 dnp->dn_flags |= DN_CONF_PARSED;
435 dnp->dn_pl = pl;
446 struct devnames *dnp = &devnamesp[major];
454 if (dnp->dn_global_prop_ptr) {
455 i_ddi_prop_list_rele(dnp->dn_global_prop_ptr, dnp);
456 dnp->dn_global_prop_ptr = NULL;
462 for (pl = dnp->dn_pl; pl; pl = pl->par_next)
465 impl_delete_par_list(dnp->dn_pl);
466 dnp->dn_pl = NULL;
467 dnp->dn_flags &= ~DN_CONF_PARSED;
706 struct devnames *dnp;
716 dnp = &devnamesp[major];
717 LOCK_DEV_OPS(&dnp->dn_lock);
718 if (dnp->dn_name) {
719 if (strcmp(dnp->dn_name, name) != 0) {
721 UNLOCK_DEV_OPS(&dnp->dn_lock);
725 dnp->dn_flags &= ~DN_DRIVER_REMOVED;
726 dnp->dn_flags |= dn_flags;
727 UNLOCK_DEV_OPS(&dnp->dn_lock);
734 if (dnp->dn_flags & DN_TAKEN_GETUDEV) {
735 UNLOCK_DEV_OPS(&dnp->dn_lock);
744 dnp->dn_name = copy;
745 dnp->dn_flags = dn_flags;
746 UNLOCK_DEV_OPS(&dnp->dn_lock);