Searched defs:msp (Results 1 - 25 of 33) sorted by relevance

12

/illumos-gate/usr/src/cmd/lvm/util/
H A Dmetaparam.c171 ms_params_t msp; local
181 (void) memset(&msp, '\0', sizeof (msp));
193 msp.hsp_id = MD_HSP_NONE;
200 msp.hsp_id = hspnp->hsp;
202 msp.change_hsp_id = 1;
219 if (meta_stripe_get_params(sp, stripenp, &msp, ep) != 0)
221 if (msp.hsp_id == MD_HSP_NONE)
223 else if ((hspnp = metahsphspname(&sp, msp.hsp_id, ep)) == NULL)
234 if (meta_stripe_set_params(sp, stripenp, &msp, e
258 mr_params_t msp; local
[all...]
/illumos-gate/usr/src/cmd/mdb/common/modules/ufs/
H A Dufs_log.c186 mapadd(uintptr_t *addr, ufslogmap_walk_data_t *uw, mapstats_t *msp) argument
188 if (msp->nentries == 0) {
189 msp->transid = uw->me.me_tid;
191 if (msp->transid != uw->me.me_tid) {
192 msp->transdiff = TRUE;
195 msp->nentries++;
196 msp->totalsize += uw->me.me_nb;
200 msp->delta_cnt[uw->me.me_dt]++;
201 msp->delta_sum[uw->me.me_dt] += uw->me.me_nb;
210 mapstats_t *msp; local
[all...]
/illumos-gate/usr/src/common/devid/
H A Ddevid.c320 char *str, *msp, *dsp, *dp, ta; local
349 if ((msp = strchr(&devidstr[4], '/')) != NULL)
350 msp++;
367 if (msp == NULL)
370 id_len = msp - str - 1;
455 if (minor_namep && msp) {
456 if ((*minor_namep = DEVID_MALLOC(strlen(msp) + 1)) == NULL)
458 (void) strcpy(*minor_namep, msp);
/illumos-gate/usr/src/cmd/chmod/
H A Dcommon.c79 static char *msp; variable
143 msp = ms;
148 if (isdigit(*msp))
175 switch (*msp) {
188 msp++;
193 switch (*msp++) {
224 msp--;
480 } while (*msp++ == ',');
482 if (*--msp || operand_empty == 0) {
495 for (i = 0; (c = *msp) >
[all...]
/illumos-gate/usr/src/cmd/ldmad/
H A Dmdesc_lib.c40 static void md_free_string(mmd_t *mdp, md_string_t *msp);
60 md_string_t *msp; local
68 CHAIN_ITER(mdp->string_list, msp) {
69 if (msp->hash == hash && strcmp(msp->strp, strp) == 0)
70 return (msp);
79 md_string_t *msp; local
82 msp = md_find_string(mdp, strp, &hash);
83 if (msp == NULL) {
84 msp
345 md_free_string(mmd_t *mdp, md_string_t *msp) argument
432 md_string_t *msp; local
[all...]
/illumos-gate/usr/src/uts/i86pc/io/dr/
H A Ddr_mem_acpi.c284 sbd_mem_stat_t *msp; local
316 msp = &dsp->d_mem;
317 bzero((caddr_t)msp, sizeof (*msp));
319 (void) strlcpy(msp->ms_cm.c_id.c_name, pstat.type,
320 sizeof (msp->ms_cm.c_id.c_name));
321 msp->ms_cm.c_id.c_type = mp->sbm_cm.sbdev_type;
322 msp->ms_cm.c_id.c_unit = mp->sbm_cm.sbdev_unum;
323 msp->ms_cm.c_cond = mp->sbm_cm.sbdev_cond;
324 msp
[all...]
/illumos-gate/usr/src/uts/sun4v/vm/
H A Dmach_kpm.c218 hat_kpm_mseghash_update(pgcnt_t inx, struct memseg *msp) argument
223 hat_kpm_addmem_mseg_update(struct memseg *msp, pgcnt_t nkpmpgs, argument
243 base = memseg_get_start(msp);
244 end = msp->pages_end;
255 hat_kpm_mseg_reuse(struct memseg *msp) argument
257 return ((caddr_t)msp->epages);
262 hat_kpm_addmem_mseg_insert(struct memseg *msp) argument
267 hat_kpm_addmem_memsegs_update(struct memseg *msp) argument
272 hat_kpm_delmem_mseg_update(struct memseg *msp, struct memseg **mspp) argument
284 base = memseg_get_start(msp);
293 hat_kpm_split_mseg_update(struct memseg *msp, struct memseg **mspp, struct memseg *lo, struct memseg *mid, struct memseg *hi) argument
306 struct memseg *msp; local
[all...]
/illumos-gate/usr/src/uts/common/io/lvm/softpart/
H A Dsp_ioctl.c167 md_sp_statusset_t *msp = (md_sp_statusset_t *)d; local
169 nunits = msp->num_units;
170 sz = msp->size;
171 status = msp->new_status;
172 mdep = &msp->mde;
180 if (err = ddi_copyin((void *)(uintptr_t)msp->minors, minors, sz, mode))
457 md_set_params_t *msp = (md_set_params_t *)d; local
459 mnum = msp->mnum;
461 mdep = &msp->mde;
483 if (msp
[all...]
/illumos-gate/usr/src/lib/libipmi/common/
H A Dipmi_sdr.c303 ipmi_sdr_management_locator_t *msp = local
306 namelen = msp->is_ml_idlen;
307 type = msp->is_ml_idtype;
308 name = msp->is_ml_idstring;
/illumos-gate/usr/src/uts/common/io/lvm/stripe/
H A Dstripe_ioctl.c147 md_set_params_t *msp = d; local
149 mnum = msp->mnum;
152 mdep = &msp->mde;
173 if (msp->options & MD_CRO_64BIT) {
177 ms_recid = mddb_createrec((size_t)msp->size, typ1, 0,
181 ms_recid = mddb_createrec((size_t)msp->size, typ1, 0,
198 if (err = ddi_copyin((caddr_t)(uintptr_t)msp->mdp, (caddr_t)p,
199 (size_t)msp->size, mode)) {
207 if (msp->options & MD_CRO_64BIT) {
805 md_stripe_params_t *msp,
804 stripe_change( md_stripe_params_t *msp, IOLOCK *lock ) argument
[all...]
/illumos-gate/usr/src/lib/lvm/libmeta/common/
H A Dmeta_stripe.c1601 md_stripe_params_t msp; local
1612 (void) memset(&msp, 0, sizeof (msp));
1613 MD_SETDRIVERNAME(&msp, MD_STRIPE, sp->setno);
1614 msp.mnum = meta_getminor(stripenp->dev);
1615 msp.params = *paramsp;
1616 if (metaioctl(MD_IOCCHANGE, &msp, &msp.mde, stripenp->cname) != 0)
1617 return (mdstealerror(ep, &msp.mde));
H A Dmeta_raid.c1481 md_raid_params_t msp; local
1492 (void) memset(&msp, 0, sizeof (msp));
1493 MD_SETDRIVERNAME(&msp, MD_RAID, sp->setno);
1494 msp.mnum = meta_getminor(raidnp->dev);
1495 msp.params = *paramsp;
1496 if (metaioctl(MD_IOCCHANGE, &msp, &msp.mde, raidnp->cname) != 0)
1497 return (mdstealerror(ep, &msp.mde));
H A Dmeta_sp.c178 static int meta_sp_short_print(md_sp_t *msp, char *fname, FILE *fp,
181 static int meta_sp_report(mdsetname_t *sp, md_sp_t *msp, mdnamelist_t **nlpp,
185 static int meta_sp_update_wm(mdsetname_t *sp, md_sp_t *msp,
187 static int meta_sp_clear_wm(mdsetname_t *sp, md_sp_t *msp, md_error_t *ep);
201 static int meta_create_sp(mdsetname_t *sp, md_sp_t *msp, sp_ext_node_t *oblist,
203 static int meta_check_sp(mdsetname_t *sp, md_sp_t *msp, mdcmdopts_t options,
207 static int meta_sp_reset_common(mdsetname_t *sp, mdname_t *np, md_sp_t *msp,
529 md_sp_t *msp; /* unit structure */ local
561 if ((msp = meta_get_sp_common(sp, curnp, 0, ep)) == NULL)
569 err = meta_check_samedrive(compnp, msp
1789 md_sp_t *msp; /* unit structure of the sp's */ local
1973 meta_sp_short_print( md_sp_t *msp, char *fname, FILE *fp, mdprtopts_t options, md_error_t *ep ) argument
2086 meta_sp_report( mdsetname_t *sp, md_sp_t *msp, mdnamelist_t **nlpp, char *fname, FILE *fp, mdprtopts_t options, md_error_t *ep ) argument
2278 md_sp_t *msp; local
2414 meta_sp_update_wm_common( mdsetname_t *sp, md_sp_t *msp, sp_ext_node_t *extlist, int iocval, md_error_t *ep ) argument
2522 meta_sp_update_wm( mdsetname_t *sp, md_sp_t *msp, sp_ext_node_t *extlist, md_error_t *ep ) argument
2534 meta_mn_sp_update_wm( mdsetname_t *sp, md_sp_t *msp, sp_ext_node_t *extlist, md_error_t *ep ) argument
2558 meta_sp_clear_wm( mdsetname_t *sp, md_sp_t *msp, md_error_t *ep ) argument
3641 md_sp_t *msp; local
3748 md_sp_t *msp = NULL; local
4002 meta_free_sp(md_sp_t *msp) argument
4051 meta_check_sp( mdsetname_t *sp, md_sp_t *msp, mdcmdopts_t options, int *repart_options, md_error_t *ep ) argument
4242 meta_create_sp( mdsetname_t *sp, md_sp_t *msp, sp_ext_node_t *oblist, mdcmdopts_t options, sp_ext_length_t alignment, md_error_t *ep ) argument
4536 meta_sp_reset_common( mdsetname_t *sp, mdname_t *np, md_sp_t *msp, md_sp_reset_t reset_params, mdcmdopts_t options, md_error_t *ep ) argument
4653 md_sp_t *msp; local
4781 md_sp_t *msp; local
4878 md_sp_t *msp; local
5475 md_sp_t *msp; local
6211 md_sp_t *msp; local
6387 md_sp_t *msp; local
6716 md_sp_t *msp; local
[all...]
/illumos-gate/usr/src/uts/common/io/lvm/mirror/
H A Dmirror_ioctl.c172 md_set_params_t *msp = d; local
175 mnum = msp->mnum;
177 mdclrerror(&msp->mde);
179 if (mirror_getun(mnum, &msp->mde, NO_OLD, NULL) == NULL)
192 if (msp->options & MD_CRO_64BIT) {
194 return (mdmderror(&msp->mde, MDE_UNIT_TOO_LARGE, mnum));
196 recid = mddb_createrec((size_t)msp->size, typ1, MIRROR_REC,
203 msp->size = sizeof (mm_unit32_od_t);
204 recid = mddb_createrec((size_t)msp->size, typ1, MIRROR_REC,
208 return (mddbstatus2error(&msp
[all...]
/illumos-gate/usr/src/uts/common/io/lvm/raid/
H A Draid_ioctl.c709 * PARAMETERS: md_set_params_t *msp - ioctl packet
898 md_set_params_t *msp = d; local
901 mnum = msp->mnum;
904 mdclrerror(&msp->mde);
906 if (raid_getun(mnum, &msp->mde, NO_OLD, NULL) == NULL)
914 if (msp->options & MD_CRO_64BIT) {
916 return (mdmderror(&msp->mde, MDE_UNIT_TOO_LARGE, mnum));
918 mr_recid = mddb_createrec(msp->size, typ1, 0,
922 mr_recid = mddb_createrec(msp->size, typ1, 0,
927 return (mddbstatus2error(&msp
[all...]
/illumos-gate/usr/src/uts/sun4u/vm/
H A Dmach_kpm.c372 hat_kpm_mseghash_update(pgcnt_t inx, struct memseg *msp) argument
377 memseg_phash[inx] = (msp) ? va_to_pa(msp) : MSEG_NULLPTR_PA;
384 hat_kpm_addmem_mseg_update(struct memseg *msp, pgcnt_t nkpmpgs, argument
390 msp->kpm_pages = (kpm_page_t *)((caddr_t)msp->pages + kpm_pages_off);
391 msp->kpm_nkpmpgs = nkpmpgs;
392 msp->kpm_pbase = kpmptop(ptokpmp(msp->pages_base));
393 msp
403 hat_kpm_addmem_mseg_insert(struct memseg *msp) argument
419 hat_kpm_addmem_memsegs_update(struct memseg *msp) argument
438 hat_kpm_mseg_reuse(struct memseg *msp) argument
456 hat_kpm_delmem_mseg_update(struct memseg *msp, struct memseg **mspp) argument
490 hat_kpm_split_mseg_update(struct memseg *msp, struct memseg **mspp, struct memseg *lo, struct memseg *mid, struct memseg *hi) argument
577 struct memseg *msp; local
[all...]
/illumos-gate/usr/src/uts/sun4u/ngdr/io/
H A Ddr_mem.c716 sbd_mem_stat_t *msp; local
748 msp = &dsp->d_mem;
749 bzero((caddr_t)msp, sizeof (*msp));
751 (void) strncpy(msp->ms_cm.c_id.c_name, pstat.type,
752 sizeof (msp->ms_cm.c_id.c_name));
753 msp->ms_cm.c_id.c_type = mp->sbm_cm.sbdev_type;
754 msp->ms_cm.c_id.c_unit = SBD_NULL_UNIT;
755 msp->ms_cm.c_cond = mp->sbm_cm.sbdev_cond;
756 msp
[all...]
/illumos-gate/usr/src/uts/sun4u/opl/io/
H A Ddr_mem.c701 sbd_mem_stat_t *msp; local
733 msp = &dsp->d_mem;
734 bzero((caddr_t)msp, sizeof (*msp));
736 (void) strncpy(msp->ms_cm.c_id.c_name, pstat.type,
737 sizeof (msp->ms_cm.c_id.c_name));
738 msp->ms_cm.c_id.c_type = mp->sbm_cm.sbdev_type;
739 msp->ms_cm.c_id.c_unit = SBD_NULL_UNIT;
740 msp->ms_cm.c_cond = mp->sbm_cm.sbdev_cond;
741 msp
[all...]
/illumos-gate/usr/src/lib/libc/port/threads/
H A Dsynch.c60 record_begin_hold(tdb_mutex_stats_t *msp) argument
62 tdb_incr(msp->mutex_lock);
63 msp->mutex_begin_hold = gethrtime();
67 record_hold_time(tdb_mutex_stats_t *msp) argument
71 if (msp->mutex_begin_hold)
72 msp->mutex_hold_time += now - msp->mutex_begin_hold;
73 msp->mutex_begin_hold = 0;
981 mutex_lock_kernel(mutex_t *mp, timespec_t *tsp, tdb_mutex_stats_t *msp) argument
997 if (msp) {
1781 mutex_lock_queue(ulwp_t *self, tdb_mutex_stats_t *msp, mutex_t *mp, timespec_t *tsp) argument
2048 tdb_mutex_stats_t *msp = MUTEX_STATS(mp, udp); local
2421 tdb_mutex_stats_t *msp; local
2606 tdb_mutex_stats_t *msp = MUTEX_STATS(mp, udp); local
2643 tdb_mutex_stats_t *msp = MUTEX_STATS(mp, udp); local
3395 tdb_mutex_stats_t *msp = MUTEX_STATS(mp, udp); local
[all...]
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dmemory.c257 const struct memseg *msp = wsp->walk_layer; local
260 size_t pg_num = msp->pages_end - msp->pages_base;
261 const page_t *pg_addr = msp->pages;
/illumos-gate/usr/src/cmd/mdb/common/modules/mdb_ks/
H A Dmdb_ks.c748 pfn2page_cb(uintptr_t addr, const struct memseg *msp, void *data) argument
752 if (p->pfn >= msp->pages_base && p->pfn < msp->pages_end) {
753 p->pp = msp->pages + (p->pfn - msp->pages_base);
/illumos-gate/usr/src/cmd/fm/fmd/common/
H A Dfmd_case.c2205 fmd_modstat_t *msp; local
2214 msp = cip->ci_mod->mod_stats;
2216 ASSERT(msp->ms_caseopen.fmds_value.ui64 != 0);
2217 msp->ms_caseopen.fmds_value.ui64--;
2219 ASSERT(msp->ms_buftotal.fmds_value.ui64 >= buftotal);
2220 msp->ms_buftotal.fmds_value.ui64 -= buftotal;
/illumos-gate/usr/src/uts/sun4u/io/
H A Dsbd.c4060 sbd_mem_stat_t *msp; local
4099 msp = &dsp->d_mem;
4101 bzero((caddr_t)msp, sizeof (*msp));
4102 msp->ms_type = SBD_COMP_MEM;
4107 msp->ms_cm.c_id.c_unit = -1;
4114 (void) strcpy(msp->ms_name, SBD_DEVNAME(i));
4117 msp->ms_cm.c_cond = mp->sbm_cm.sbdev_cond;
4118 msp->ms_cm.c_busy = mp->sbm_cm.sbdev_busy;
4119 msp
[all...]
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dmetaslab.c601 metaslab_t *msp = vd->vdev_ms[m]; local
603 if (msp->ms_sm == NULL)
608 msp->ms_sm->sm_phys->smp_histogram[i];
618 metaslab_group_histogram_add(metaslab_group_t *mg, metaslab_t *msp) argument
623 ASSERT(MUTEX_HELD(&msp->ms_lock));
624 if (msp->ms_sm == NULL)
630 msp->ms_sm->sm_phys->smp_histogram[i];
632 msp->ms_sm->sm_phys->smp_histogram[i];
638 metaslab_group_histogram_remove(metaslab_group_t *mg, metaslab_t *msp) argument
643 ASSERT(MUTEX_HELD(&msp
663 metaslab_group_add(metaslab_group_t *mg, metaslab_t *msp) argument
678 metaslab_group_remove(metaslab_group_t *mg, metaslab_t *msp) argument
692 metaslab_group_sort(metaslab_group_t *mg, metaslab_t *msp, uint64_t weight) argument
724 metaslab_t *msp = vd->vdev_ms[m]; local
811 metaslab_t *msp = arg; local
826 metaslab_t *msp = arg; local
838 metaslab_t *msp = arg; local
849 metaslab_t *msp = arg; local
860 metaslab_t *msp = arg; local
893 metaslab_block_maxsize(metaslab_t *msp) argument
905 metaslab_block_alloc(metaslab_t *msp, uint64_t size) argument
976 metaslab_ff_alloc(metaslab_t *msp, uint64_t size) argument
1005 metaslab_df_alloc(metaslab_t *msp, uint64_t size) argument
1054 metaslab_cf_alloc(metaslab_t *msp, uint64_t size) argument
1104 metaslab_ndf_alloc(metaslab_t *msp, uint64_t size) argument
1158 metaslab_load_wait(metaslab_t *msp) argument
1169 metaslab_load(metaslab_t *msp) argument
1203 metaslab_unload(metaslab_t *msp) argument
1216 metaslab_t *msp; local
1277 metaslab_fini(metaslab_t *msp) argument
1358 metaslab_fragmentation(metaslab_t *msp) argument
1421 metaslab_weight(metaslab_t *msp) argument
1497 metaslab_activate(metaslab_t *msp, uint64_t activation_weight) argument
1521 metaslab_passivate(metaslab_t *msp, uint64_t size) argument
1536 metaslab_t *msp = arg; local
1557 metaslab_t *msp; local
1638 metaslab_should_condense(metaslab_t *msp) argument
1686 metaslab_condense(metaslab_t *msp, uint64_t txg, dmu_tx_t *tx) argument
1770 metaslab_sync(metaslab_t *msp, uint64_t txg) argument
1904 metaslab_sync_done(metaslab_t *msp, uint64_t txg) argument
2010 metaslab_distance(metaslab_t *msp, dva_t *dva) argument
2031 metaslab_t *msp = NULL; local
2360 metaslab_t *msp; local
2417 metaslab_t *msp; local
2565 metaslab_t *msp = vd->vdev_ms[offset >> vd->vdev_ms_shift]; local
[all...]
H A Dvdev.c661 metaslab_t *msp; local
695 while ((msp = txg_list_remove(&svd->vdev_ms_list, t)) != NULL)
696 (void) txg_list_add(&tvd->vdev_ms_list, msp, t);
889 metaslab_t *msp = vd->vdev_ms[m]; local
891 if (msp != NULL)
892 metaslab_fini(msp);
2131 metaslab_t *msp = vd->vdev_ms[m]; local
2133 if (msp == NULL || msp->ms_sm == NULL)
2136 mutex_enter(&msp
2170 metaslab_t *msp; local
2187 metaslab_t *msp; local
[all...]

Completed in 274 milliseconds

12