Lines Matching refs:mnum
216 minor_t mnum;
220 mnum = MD_SID(un);
222 if (MD_UNIT(mnum) != NULL)
233 setno = MD_MIN2SET(mnum);
241 md_nblocks_set(mnum, un->c.un_total_blocks);
242 MD_UNIT(mnum) = un;
250 * mnum - minor number to be reset/removed.
260 reset_sp(mp_unit_t *un, minor_t mnum, int removing)
266 md_destroy_unit_incore(mnum, &sp_md_ops);
268 md_nblocks_set(mnum, -1ULL);
269 MD_UNIT(mnum) = NULL;
274 md_remove_minor_node(mnum);
286 sv->setno = MD_MIN2SET(mnum);
304 MD_MIN2SET(mnum), MD_MIN2UNIT(mnum));
468 minor_t mnum = MD_SID(un);
474 ps->ps_ui = MDI_UNIT(mnum);
483 minor_t mnum = MD_SID(un);
489 ps->ps_ui = MDI_UNIT(mnum);
1082 * INPUT: mnum - minor number
1094 sp_directed_read(minor_t mnum, vol_directed_rd_t *vdr, int mode)
1111 ui = MDI_UNIT(mnum);
1400 minor_t mnum;
1413 mnum = MD_MKMIN(setno, i);
1414 if ((ui = MDI_UNIT(mnum)) == NULL)
1428 mnum = MD_MKMIN(setno, i);
1429 if ((ui = MDI_UNIT(mnum)) == NULL)
1433 reset_sp((mp_unit_t *)MD_UNIT(mnum), mnum, 0);
1451 minor_t mnum = MD_SID(un);
1463 tmpdev = md_resolve_bydevid(mnum, tmpdev, un->un_key);
1465 err = md_layered_open(mnum, &tmpdev, oflags);
1496 minor_t mnum = getminor(*dev);
1497 mdi_unit_t *ui = MDI_UNIT(mnum);
1508 setno = MD_MIN2SET(mnum);
1534 if ((err = md_unit_incopen(mnum, flag,
1551 (void) md_unit_decopen(mnum, otyp);
1600 if ((err = md_unit_incopen(mnum, flag, otyp)) != 0)
1630 minor_t mnum = getminor(dev);
1631 mdi_unit_t *ui = MDI_UNIT(mnum);
1639 if ((err = md_unit_decopen(mnum, otyp)) != 0)
1655 mdmn_clear_all_capabilities(mnum);