Home
last modified time | relevance | path

Searched refs:mnum (Results 1 – 25 of 66) sorted by relevance

123

/titanic_41/usr/src/uts/common/io/lvm/softpart/
H A Dsp_ioctl.c106 sp_getun(minor_t mnum, md_error_t *mde) in sp_getun() argument
110 set_t setno = MD_MIN2SET(mnum); in sp_getun()
113 if ((setno >= md_nsets) || (MD_MIN2UNIT(mnum) >= md_nunits)) { in sp_getun()
114 (void) mdmderror(mde, MDE_INVAL_UNIT, mnum); in sp_getun()
119 (void) mdmddberror(mde, MDE_DB_STALE, mnum, setno); in sp_getun()
123 ui = MDI_UNIT(mnum); in sp_getun()
126 (void) mdmderror(mde, MDE_UNIT_NOT_SETUP, mnum); in sp_getun()
130 un = (mp_unit_t *)MD_UNIT(mnum); in sp_getun()
133 (void) mdmderror(mde, MDE_NOT_SP, mnum); in sp_getun()
223 minor_t mnum; in sp_update_watermarks() local
[all …]
H A Dsp.c216 minor_t mnum; in sp_build_incore() local
220 mnum = MD_SID(un); in sp_build_incore()
222 if (MD_UNIT(mnum) != NULL) in sp_build_incore()
233 setno = MD_MIN2SET(mnum); in sp_build_incore()
241 md_nblocks_set(mnum, un->c.un_total_blocks); in sp_build_incore()
242 MD_UNIT(mnum) = un; in sp_build_incore()
260 reset_sp(mp_unit_t *un, minor_t mnum, int removing) in reset_sp() argument
266 md_destroy_unit_incore(mnum, &sp_md_ops); in reset_sp()
268 md_nblocks_set(mnum, -1ULL); in reset_sp()
269 MD_UNIT(mnum) = NULL; in reset_sp()
[all …]
/titanic_41/usr/src/uts/common/io/lvm/raid/
H A Draid_ioctl.c142 raid_getun(minor_t mnum, md_error_t *mde, int flags, IOLOCK *lock) in raid_getun() argument
146 set_t setno = MD_MIN2SET(mnum); in raid_getun()
148 if ((setno >= md_nsets) || (MD_MIN2UNIT(mnum) >= md_nunits)) { in raid_getun()
149 (void) mdmderror(mde, MDE_INVAL_UNIT, mnum); in raid_getun()
155 (void) mdmddberror(mde, MDE_DB_STALE, mnum, setno); in raid_getun()
160 ui = MDI_UNIT(mnum); in raid_getun()
163 (void) mdmderror(mde, MDE_UNIT_ALREADY_SETUP, mnum); in raid_getun()
170 (void) mdmderror(mde, MDE_UNIT_NOT_SETUP, mnum); in raid_getun()
185 un = (mr_unit_t *)MD_UNIT(mnum); in raid_getun()
188 (void) mdmderror(mde, MDE_NOT_RAID, mnum); in raid_getun()
[all …]
H A Draid_hotspare.c132 minor_t mnum = MD_SID(un); in check_comp_4_hs() local
148 ui = MDI_UNIT(mnum); in check_comp_4_hs()
169 md_shortname(mnum), in check_comp_4_hs()
170 md_devname(MD_MIN2SET(mnum), col->un_dev, NULL, 0)); in check_comp_4_hs()
188 if (resync_request(mnum, hs_index, 0, NULL)) in check_comp_4_hs()
204 release_resync_request(mnum); in check_comp_4_hs()
229 tmpdev = md_resolve_bydevid(mnum, tmpdev, col->un_hs_key); in check_comp_4_hs()
230 if (md_layered_open(mnum, &tmpdev, MD_OFLG_NULL)) { in check_comp_4_hs()
234 release_resync_request(mnum); in check_comp_4_hs()
242 md_shortname(mnum), in check_comp_4_hs()
[all …]
H A Draid_resync.c105 minor_t mnum in release_resync_request() argument
110 un = MD_UNIT(mnum); in release_resync_request()
147 minor_t mnum, in resync_request() argument
155 un = MD_UNIT(mnum); in resync_request()
164 return (mdmderror(mde, MDE_GROW_DELAYED, mnum)); in resync_request()
593 minor_t mnum, in resync_comp() argument
624 ui = MDI_UNIT(mnum); in resync_comp()
962 minor_t mnum in resync_unit() argument
978 ui = MDI_UNIT(mnum); in resync_unit()
1003 resync_comp(mnum, cs); in resync_unit()
[all …]
/titanic_41/usr/src/uts/common/io/lvm/stripe/
H A Dstripe_ioctl.c69 minor_t mnum = params->mnum; in stripe_replace() local
82 un = (ms_unit_t *)MD_UNIT(mnum); in stripe_replace()
85 return (mdmderror(&params->mde, MDE_RESYNC_ACTIVE, mnum)); in stripe_replace()
103 fake_devt = md_makedevice(0, mnum); in stripe_replace()
133 minor_t mnum; in stripe_set() local
149 mnum = msp->mnum; in stripe_set()
150 setno = MD_MIN2SET(mnum); in stripe_set()
156 if ((setno >= md_nsets) || (MD_MIN2UNIT(mnum) >= md_nunits)) { in stripe_set()
157 return (mdmderror(mdep, MDE_INVAL_UNIT, mnum)); in stripe_set()
161 return (mdmddberror(mdep, MDE_DB_STALE, mnum, setno)); in stripe_set()
[all …]
H A Dstripe.c173 minor_t mnum = MD_SID(un); in stripe_open_all_devs() local
229 tmpdev = md_resolve_bydevid(mnum, in stripe_open_all_devs()
244 err = md_layered_open(mnum, &tmpdev, md_oflags); in stripe_open_all_devs()
288 minor_t mnum; in stripe_build_incore() local
294 mnum = MD_SID(un); in stripe_build_incore()
296 if (MD_UNIT(mnum) != NULL) in stripe_build_incore()
327 setno = MD_MIN2SET(mnum); in stripe_build_incore()
348 md_nblocks_set(mnum, un->c.un_total_blocks); in stripe_build_incore()
349 MD_UNIT(mnum) = un; in stripe_build_incore()
355 reset_stripe(ms_unit_t *un, minor_t mnum, int removing) in reset_stripe() argument
[all …]
/titanic_41/usr/src/uts/common/io/lvm/mirror/
H A Dmirror_ioctl.c106 mirror_getun(minor_t mnum, md_error_t *mde, int flags, IOLOCK *lock) in mirror_getun() argument
110 set_t setno = MD_MIN2SET(mnum); in mirror_getun()
112 if ((setno >= md_nsets) || (MD_MIN2UNIT(mnum) >= md_nunits)) { in mirror_getun()
113 (void) mdmderror(mde, MDE_INVAL_UNIT, mnum); in mirror_getun()
119 (void) mdmddberror(mde, MDE_DB_STALE, mnum, setno); in mirror_getun()
124 ui = MDI_UNIT(mnum); in mirror_getun()
127 (void) mdmderror(mde, MDE_UNIT_ALREADY_SETUP, mnum); in mirror_getun()
134 (void) mdmderror(mde, MDE_UNIT_NOT_SETUP, mnum); in mirror_getun()
149 un = (mm_unit_t *)MD_UNIT(mnum); in mirror_getun()
152 (void) mdmderror(mde, MDE_NOT_MM, mnum); in mirror_getun()
[all …]
H A Dmirror_resync.c281 minor_t mnum = MD_SID(un); in process_resync_regions_non_owner() local
282 mdi_unit_t *ui = MDI_UNIT(mnum); in process_resync_regions_non_owner()
409 minor_t mnum = MD_SID(un); in process_resync_regions_owner() local
410 mdi_unit_t *ui = MDI_UNIT(mnum); in process_resync_regions_owner()
1326 minor_t mnum; in optimized_resync() local
1341 mnum = MD_SID(un); in optimized_resync()
1342 ui = MDI_UNIT(mnum); in optimized_resync()
1428 un = (mm_unit_t *)MD_UNIT(mnum); in optimized_resync()
1594 minor_t mnum; in check_comp_4_resync() local
1614 mnum = MD_SID(un); in check_comp_4_resync()
[all …]
/titanic_41/usr/src/uts/common/io/lvm/md/
H A Dmd.c321 md_nblocks_set(minor_t mnum, uint64_t nblocks) in md_nblocks_set() argument
326 (mod_hash_key_t)(intptr_t)mnum); in md_nblocks_set()
329 (mod_hash_key_t)(intptr_t)mnum, in md_nblocks_set()
336 md_nblocks_get(minor_t mnum) in md_nblocks_get() argument
342 (mod_hash_key_t)(intptr_t)mnum, &hv) == 0) { in md_nblocks_get()
666 int mnum = 0; in mdattach() local
677 mnum *= 10; in mdattach()
678 mnum += *p - '0'; in mdattach()
681 if (md_create_minor_node(0, mnum)) { in mdattach()
978 md_create_minor_node(set_t setno, minor_t mnum) in md_create_minor_node() argument
[all …]
H A Dmd_error.c131 minor_t mnum in mdmderror() argument
139 ip->mnum = mnum; in mdmderror()
151 minor_t mnum, in mdcomperror() argument
160 ip->comp.mnum = mnum; in mdcomperror()
215 minor_t mnum, in mdmddberror() argument
224 ip->mnum = mnum; in mdmddberror()
234 minor_t mnum, in mddbstatus2error() argument
306 return (mdmddberror(ep, errnum, mnum, setno)); in mddbstatus2error()
H A Dmd_rename.c191 minor_t mnum; in md_rename_lock() local
201 mnum = md_getminor(delta->dev); in md_rename_lock()
208 if (op == MDRNOP_RENAME && mnum == rtxnp->to.mnum) { in md_rename_lock()
214 (void) mdmderror(&rtxnp->mde, MDE_UNIT_NOT_SETUP, mnum); in md_rename_lock()
220 (void) mdmderror(&rtxnp->mde, MDE_UNIT_NOT_SETUP, mnum); in md_rename_lock()
376 rtxnp->from.mnum); in md_rename_listfolks()
391 rtxnp->from.mnum); in md_rename_listfolks()
449 rtxnp->from.mnum); in md_rename_listself()
465 md_makedevice(md_major, rtxnp->from.mnum), in md_rename_listself()
480 md_makedevice(md_major, rtxnp->from.mnum), in md_rename_listself()
[all …]
H A Dmd_subr.c1056 minor_t mnum, in md_unit_incopen() argument
1061 mdi_unit_t *ui = MDI_UNIT(mnum); in md_unit_incopen()
1085 md_kstat_init(mnum); in md_unit_incopen()
1096 minor_t mnum, in md_unit_decopen() argument
1100 mdi_unit_t *ui = MDI_UNIT(mnum); in md_unit_decopen()
1141 md_kstat_destroy(mnum); in md_unit_decopen()
1915 minor_t mnum, in md_layered_open() argument
1936 mnum = getminor(ddi_dev); in md_layered_open()
1938 ui = MDI_UNIT(mnum); in md_layered_open()
1952 err = md_unit_incopen(mnum, flag, OTYP_LYR); in md_layered_open()
[all …]
H A Dmd_ioctl.c166 verify_minor(minor_t mnum) in verify_minor() argument
168 set_t setno = MD_MIN2SET(mnum); in verify_minor()
173 if (setno >= md_nsets || (MD_MIN2UNIT(mnum) >= md_nunits)) { in verify_minor()
292 nm->mnum, name, nm->imp_flag, (ddi_devid_t)devid, minorname, in setnm_ioctl()
357 nm->mnum); in getnm_ioctl()
360 nm->mnum); in getnm_ioctl()
380 sizeof (nm->drvnm), &nm->major, &nm->mnum, &nm->retkey); in getnm_ioctl()
388 (md_set[MD_MIN2SET(nm->mnum)].s_un == NULL) || in getnm_ioctl()
389 (MD_UNIT(nm->mnum) == NULL)) { in getnm_ioctl()
408 un = MD_UNIT(nm->mnum); in getnm_ioctl()
[all …]
/titanic_41/usr/src/uts/common/io/lvm/trans/
H A Dmdtrans.c253 minor_t mnum = MD_SID(un); in trans_open_all_devs() local
263 tmpdev = md_resolve_bydevid(mnum, tmpdev, un->un_m_key); in trans_open_all_devs()
265 err = md_layered_open(mnum, &tmpdev, MD_OFLG_NULL); in trans_open_all_devs()
287 minor_t mnum; in trans_build_incore() local
297 mnum = MD_SID(un); in trans_build_incore()
299 if (MD_UNIT(mnum) != NULL) in trans_build_incore()
302 setno = MD_MIN2SET(mnum); in trans_build_incore()
360 un->un_dev = md_makedevice(md_major, mnum); in trans_build_incore()
382 md_nblocks_set(mnum, un->c.un_total_blocks); in trans_build_incore()
383 MD_UNIT(mnum) = un; in trans_build_incore()
[all …]
H A Dtrans_ioctl.c69 trans_getun(minor_t mnum, md_error_t *mde, int flags, IOLOCK *lock) in trans_getun() argument
73 set_t setno = MD_MIN2SET(mnum); in trans_getun()
75 if ((setno >= md_nsets) || (MD_MIN2UNIT(mnum) >= md_nunits)) { in trans_getun()
76 (void) mdmderror(mde, MDE_INVAL_UNIT, mnum); in trans_getun()
82 (void) mdmddberror(mde, MDE_DB_STALE, mnum, setno); in trans_getun()
87 ui = MDI_UNIT(mnum); in trans_getun()
90 (void) mdmderror(mde, MDE_UNIT_ALREADY_SETUP, mnum); in trans_getun()
97 (void) mdmderror(mde, MDE_UNIT_NOT_SETUP, mnum); in trans_getun()
112 un = (mt_unit_t *)MD_UNIT(mnum); in trans_getun()
115 (void) mdmderror(mde, MDE_NOT_MT, mnum); in trans_getun()
[all …]
/titanic_41/usr/src/uts/common/sys/lvm/
H A Dmdio.h173 minor_t mnum; member
201 minor_t mnum; /* Unit to clear */ member
209 minor_t mnum; /* Unit to clear */ member
227 minor_t mnum; /* Unit to update */ member
244 minor_t mnum; member
251 minor_t mnum; member
258 minor_t mnum; member
265 minor_t mnum; member
272 minor_t mnum; /* Unit to grow */ member
296 minor_t mnum; /* minor #, for get/set/rem nm */ member
[all …]
/titanic_41/usr/src/lib/lvm/libmeta/common/
H A Dmeta_namespace.c35 minor_t mnum; /* minor number for the device */ member
52 minor_t *mnum, in meta_getnmentbykey() argument
74 if (mnum != NULL) in meta_getnmentbykey()
75 *mnum = nm.mnum; in meta_getnmentbykey()
78 *dev = meta_expldev(makedevice(nm.major, nm.mnum)); in meta_getnmentbykey()
340 minor_t *mnum, in meta_getnmentbydev() argument
356 nm.mnum = meta_getminor(dev); in meta_getnmentbydev()
384 if (mnum != NULL) in meta_getnmentbydev()
385 *mnum = nm.mnum; in meta_getnmentbydev()
403 minor_t mnum, in add_name() argument
[all …]
H A Dmeta_mn_subr.c323 minor_t mnum, in meta_mn_send_suspend_writes() argument
331 suspwrmsg.msg_suspwr_mnum = mnum; in meta_mn_send_suspend_writes()
340 result = mdmn_send_message(MD_MIN2SET(mnum), in meta_mn_send_suspend_writes()
721 minor_t mnum = meta_getminor(mirnp->dev); in meta_mn_send_resync_starting() local
731 resyncmsg.msg_resync_mnum = mnum; in meta_mn_send_resync_starting()
732 result = mdmn_send_message(MD_MIN2SET(mnum), in meta_mn_send_resync_starting()
767 uint_t mnum, /* Minor number */ in meta_mn_change_owner() argument
785 ownpar->d.mnum = mnum; in meta_mn_change_owner()
822 ownstat->mnum = ownpar->d.mnum; in meta_mn_change_owner()
914 minor_t mnum = meta_getminor(dev); in meta_mn_send_get_tstate() local
[all …]
H A Dmeta_rename.c160 txn.from.mnum = meta_getminor(from_np->dev); in meta_swap()
188 txn.to.mnum = meta_getminor(to_np->dev); in meta_swap()
197 txn.from.mnum, txn.from.key, in meta_swap()
198 txn.to.mnum, txn.to.key); in meta_swap()
208 (void) metaioctl(MD_IOCREM_DEV, &txn.from.mnum, in meta_swap()
217 (void) metaioctl(MD_IOCREM_DEV, &txn.to.mnum, in meta_swap()
/titanic_41/usr/src/cmd/sgs/rtld/common/
H A D_inline_gen.h36 uint_t mnum = MMAPCNT(lmp); in find_segment() local
44 for (mpp += (mnum - 1); mnum; mnum--, mpp--) { in find_segment()
H A Dobject.c159 mmapobj_result_t *hmpp, mmapobj_result_t *mpp, uint_t mnum) in elf_obj_file() argument
178 md.md_mnum = mnum; in elf_obj_file()
241 int mnum; in elf_obj_fini() local
316 for (mnum = 0, phnum = 0; phnum < ehdr->e_phnum; phnum++) { in elf_obj_fini()
320 mpp[mnum].mr_addr = (caddr_t)((uintptr_t)phdr[phnum].p_vaddr + in elf_obj_fini()
322 mpp[mnum].mr_msize = phdr[phnum].p_memsz; in elf_obj_fini()
323 mpp[mnum].mr_fsize = phdr[phnum].p_filesz; in elf_obj_fini()
324 mpp[mnum].mr_prot = (PROT_READ | PROT_WRITE | PROT_EXEC); in elf_obj_fini()
325 mnum++; in elf_obj_fini()
337 MMAPCNT(nlmp) = mnum; in elf_obj_fini()
/titanic_41/usr/src/cmd/truss/
H A Dipc.c122 char mnum[2]; in Ecritical() local
123 mnum[0] = '0' + num; in Ecritical()
124 mnum[1] = '\0'; in Ecritical()
127 errmsg("cannot grab mutex #", mnum); in Ecritical()
149 char mnum[2]; in Xcritical() local
150 mnum[0] = '0' + num; in Xcritical()
151 mnum[1] = '\0'; in Xcritical()
154 errmsg("cannot release mutex #", mnum); in Xcritical()
/titanic_41/usr/src/cmd/lvm/util/
H A Dmetaclust.c256 compose_path(mdsetname_t *sp, int mnum, char *pathname, int pathlen) in compose_path() argument
262 if (MD_MIN2SET(mnum) != sp->setno) { in compose_path()
264 mnum, sp->setno); in compose_path()
268 if ((np = metamnumname(&sp, mnum, 0, &status)) == NULL) { in compose_path()
277 get_mdname(sp, mnum)); in compose_path()
352 mir_state->mnum = meta_getminor(devnp->dev); in reset_state()
355 " for %s: %s"), get_mdname(sp, mir_state->mnum), in reset_state()
362 get_mdname(sp, mir_state->mnum)); in reset_state()
394 ownpar->d.mnum = meta_getminor(devnp->dev); in reset_state()
398 "for %s: %s"), get_mdname(sp, ownpar->d.mnum), in reset_state()
[all …]
/titanic_41/usr/src/lib/libvolmgt/common/
H A Dvolmgt_on_private.c144 int mnum = 0; in _dev_unmount() local
177 media_info_gotten = get_media_info(bn, &mtype, &mnum, &spcl); in _dev_unmount()
180 mnum, spcl, bn); in _dev_unmount()
186 if (get_media_info(bn, &mtype, &mnum, &spcl)) { in _dev_unmount()
212 mtype, mnum, spcl, bn); in _dev_unmount()
227 } while (get_media_info(bn, &mtype, &mnum, &spcl)); in _dev_unmount()
561 call_unmount_prog(int mi_gotten, int use_rmm, char *mtype, int mnum, in call_unmount_prog() argument
575 mtype ? mtype : "<null ptr>", mnum, spcl ? spcl : "<null ptr>", in call_unmount_prog()
608 mtype, mnum); in call_unmount_prog()

123