Lines Matching refs:mnum
253 minor_t mnum = MD_SID(un);
263 tmpdev = md_resolve_bydevid(mnum, tmpdev, un->un_m_key);
265 err = md_layered_open(mnum, &tmpdev, MD_OFLG_NULL);
287 minor_t mnum;
297 mnum = MD_SID(un);
299 if (MD_UNIT(mnum) != NULL)
302 setno = MD_MIN2SET(mnum);
360 un->un_dev = md_makedevice(md_major, mnum);
382 md_nblocks_set(mnum, un->c.un_total_blocks);
383 MD_UNIT(mnum) = un;
496 trans_reset(mt_unit_t *un, minor_t mnum, int removing, int force)
514 md_destroy_unit_incore(mnum, &trans_md_ops);
516 md_nblocks_set(mnum, -1ULL);
517 MD_UNIT(mnum) = NULL;
529 sv.setno = MD_MIN2SET(mnum);
958 minor_t mnum;
963 mnum = MD_MKMIN(setno, i);
964 if ((ui = MDI_UNIT(mnum)) == NULL)
973 mnum = MD_MKMIN(setno, i);
974 if ((ui = MDI_UNIT(mnum)) == NULL)
978 un = (mt_unit_t *)MD_UNIT(mnum);
988 mnum = MD_MKMIN(setno, i);
989 if ((ui = MDI_UNIT(mnum)) == NULL)
993 ldl_open_underlying((mt_unit_t *)MD_UNIT(mnum));
1000 mnum = MD_MKMIN(setno, i);
1001 if ((ui = MDI_UNIT(mnum)) == NULL)
1013 mnum = MD_MKMIN(setno, i);
1014 if ((ui = MDI_UNIT(mnum)) == NULL)
1018 (void) trans_reset((mt_unit_t *)MD_UNIT(mnum), mnum,
1039 minor_t mnum = getminor(*dev);
1040 mdi_unit_t *ui = MDI_UNIT(mnum);
1053 err = md_unit_incopen(mnum, flag, otyp);
1074 err = md_unit_incopen(mnum, flag, otyp);
1093 minor_t mnum = getminor(dev);
1094 mdi_unit_t *ui = MDI_UNIT(mnum);
1102 if ((err = md_unit_decopen(mnum, otyp)) != 0) {