Home
last modified time | relevance | path

Searched refs:msp (Results 1 – 25 of 40) sorted by relevance

12

/titanic_41/usr/src/uts/common/fs/zfs/
H A Dmetaslab.c601 metaslab_t *msp = vd->vdev_ms[m]; in metaslab_group_histogram_verify() local
603 if (msp->ms_sm == NULL) in metaslab_group_histogram_verify()
608 msp->ms_sm->sm_phys->smp_histogram[i]; in metaslab_group_histogram_verify()
618 metaslab_group_histogram_add(metaslab_group_t *mg, metaslab_t *msp) in metaslab_group_histogram_add() argument
623 ASSERT(MUTEX_HELD(&msp->ms_lock)); in metaslab_group_histogram_add()
624 if (msp->ms_sm == NULL) in metaslab_group_histogram_add()
630 msp->ms_sm->sm_phys->smp_histogram[i]; in metaslab_group_histogram_add()
632 msp->ms_sm->sm_phys->smp_histogram[i]; in metaslab_group_histogram_add()
638 metaslab_group_histogram_remove(metaslab_group_t *mg, metaslab_t *msp) in metaslab_group_histogram_remove() argument
643 ASSERT(MUTEX_HELD(&msp->ms_lock)); in metaslab_group_histogram_remove()
[all …]
H A Dvdev.c682 metaslab_t *msp; in vdev_top_transfer() local
716 while ((msp = txg_list_remove(&svd->vdev_ms_list, t)) != NULL) in vdev_top_transfer()
717 (void) txg_list_add(&tvd->vdev_ms_list, msp, t); in vdev_top_transfer()
914 metaslab_t *msp = vd->vdev_ms[m]; in vdev_metaslab_fini() local
916 if (msp != NULL) in vdev_metaslab_fini()
917 metaslab_fini(msp); in vdev_metaslab_fini()
2173 metaslab_t *msp = vd->vdev_ms[m]; in vdev_remove() local
2175 if (msp == NULL || msp->ms_sm == NULL) in vdev_remove()
2178 mutex_enter(&msp->ms_lock); in vdev_remove()
2186 metaslab_group_histogram_remove(mg, msp); in vdev_remove()
[all …]
/titanic_41/usr/src/cmd/mdb/common/modules/ufs/
H A Dufs_log.c186 mapadd(uintptr_t *addr, ufslogmap_walk_data_t *uw, mapstats_t *msp) in mapadd() argument
188 if (msp->nentries == 0) { in mapadd()
189 msp->transid = uw->me.me_tid; in mapadd()
191 if (msp->transid != uw->me.me_tid) { in mapadd()
192 msp->transdiff = TRUE; in mapadd()
195 msp->nentries++; in mapadd()
196 msp->totalsize += uw->me.me_nb; in mapadd()
200 msp->delta_cnt[uw->me.me_dt]++; in mapadd()
201 msp->delta_sum[uw->me.me_dt] += uw->me.me_nb; in mapadd()
210 mapstats_t *msp; in mapstats_dcmd() local
[all …]
/titanic_41/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; in md_find_string() local
68 CHAIN_ITER(mdp->string_list, msp) { in md_find_string()
69 if (msp->hash == hash && strcmp(msp->strp, strp) == 0) in md_find_string()
70 return (msp); in md_find_string()
79 md_string_t *msp; in md_new_string() local
82 msp = md_find_string(mdp, strp, &hash); in md_new_string()
83 if (msp == NULL) { in md_new_string()
84 msp = calloc(1, sizeof (md_string_t)); in md_new_string()
85 if (msp == NULL) in md_new_string()
[all …]
/titanic_41/usr/src/uts/sun4v/vm/
H A Dmach_kpm.c218 hat_kpm_mseghash_update(pgcnt_t inx, struct memseg *msp) in hat_kpm_mseghash_update() argument
223 hat_kpm_addmem_mseg_update(struct memseg *msp, pgcnt_t nkpmpgs, in hat_kpm_addmem_mseg_update() argument
243 base = memseg_get_start(msp); in hat_kpm_addmem_mseg_update()
244 end = msp->pages_end; in hat_kpm_addmem_mseg_update()
255 hat_kpm_mseg_reuse(struct memseg *msp) in hat_kpm_mseg_reuse() argument
257 return ((caddr_t)msp->epages); in hat_kpm_mseg_reuse()
262 hat_kpm_addmem_mseg_insert(struct memseg *msp) in hat_kpm_addmem_mseg_insert() argument
267 hat_kpm_addmem_memsegs_update(struct memseg *msp) in hat_kpm_addmem_memsegs_update() argument
272 hat_kpm_delmem_mseg_update(struct memseg *msp, struct memseg **mspp) in hat_kpm_delmem_mseg_update() argument
284 base = memseg_get_start(msp); in hat_kpm_delmem_mseg_update()
[all …]
/titanic_41/usr/src/uts/i86pc/io/dr/
H A Ddr_mem_acpi.c284 sbd_mem_stat_t *msp; in dr_mem_status() local
316 msp = &dsp->d_mem; in dr_mem_status()
317 bzero((caddr_t)msp, sizeof (*msp)); in dr_mem_status()
319 (void) strlcpy(msp->ms_cm.c_id.c_name, pstat.type, in dr_mem_status()
320 sizeof (msp->ms_cm.c_id.c_name)); in dr_mem_status()
321 msp->ms_cm.c_id.c_type = mp->sbm_cm.sbdev_type; in dr_mem_status()
322 msp->ms_cm.c_id.c_unit = mp->sbm_cm.sbdev_unum; in dr_mem_status()
323 msp->ms_cm.c_cond = mp->sbm_cm.sbdev_cond; in dr_mem_status()
324 msp->ms_cm.c_busy = mp->sbm_cm.sbdev_busy | pstat.busy; in dr_mem_status()
325 msp->ms_cm.c_time = mp->sbm_cm.sbdev_time; in dr_mem_status()
[all …]
/titanic_41/usr/src/cmd/lvm/util/
H A Dmetaparam.c171 ms_params_t msp; in stripe_params() local
181 (void) memset(&msp, '\0', sizeof (msp)); in stripe_params()
193 msp.hsp_id = MD_HSP_NONE; in stripe_params()
200 msp.hsp_id = hspnp->hsp; in stripe_params()
202 msp.change_hsp_id = 1; in stripe_params()
219 if (meta_stripe_get_params(sp, stripenp, &msp, ep) != 0) in stripe_params()
221 if (msp.hsp_id == MD_HSP_NONE) in stripe_params()
223 else if ((hspnp = metahsphspname(&sp, msp.hsp_id, ep)) == NULL) in stripe_params()
234 if (meta_stripe_set_params(sp, stripenp, &msp, ep) != 0) in stripe_params()
258 mr_params_t msp; in raid_params() local
[all …]
/titanic_41/usr/src/cmd/chmod/
H A Dcommon.c79 static char *msp; variable
143 msp = ms; in newmode_common()
148 if (isdigit(*msp)) in newmode_common()
175 switch (*msp) { in newmode_common()
188 msp++; in newmode_common()
193 switch (*msp++) { in newmode_common()
224 msp--; in newmode_common()
480 } while (*msp++ == ','); in newmode_common()
482 if (*--msp || operand_empty == 0) { in newmode_common()
495 for (i = 0; (c = *msp) >= '0' && c <= '7'; msp++) in abs()
[all …]
/titanic_41/usr/src/uts/sun4u/starcat/io/
H A Ddman.c99 #define SETSTATE(msp, state) \ argument
101 (void *)msp, __LINE__, dss[msp->ms_dlpistate], \
103 msp->ms_dlpistate = (state);
239 #define SETSTATE(msp, state) msp->ms_dlpistate = (state); argument
1199 manstr_t *msp; in man_open() local
1220 msp = man_kzalloc(sizeof (manstr_t), KM_SLEEP); in man_open()
1221 SETSTATE(msp, DL_UNATTACHED); in man_open()
1222 msp->ms_meta_ppa = -1; in man_open()
1223 msp->ms_rq = rq; in man_open()
1224 rq->q_ptr = WR(rq)->q_ptr = msp; in man_open()
[all …]
/titanic_41/usr/src/lib/lvm/libmeta/common/
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 */ in meta_sp_get_by_component() local
561 if ((msp = meta_get_sp_common(sp, curnp, 0, ep)) == NULL) in meta_sp_get_by_component()
569 err = meta_check_samedrive(compnp, msp->compnamep, ep); in meta_sp_get_by_component()
[all …]
/titanic_41/usr/src/uts/sun4u/vm/
H A Dmach_kpm.c372 hat_kpm_mseghash_update(pgcnt_t inx, struct memseg *msp) in hat_kpm_mseghash_update() argument
377 memseg_phash[inx] = (msp) ? va_to_pa(msp) : MSEG_NULLPTR_PA; in hat_kpm_mseghash_update()
384 hat_kpm_addmem_mseg_update(struct memseg *msp, pgcnt_t nkpmpgs, in hat_kpm_addmem_mseg_update() argument
390 msp->kpm_pages = (kpm_page_t *)((caddr_t)msp->pages + kpm_pages_off); in hat_kpm_addmem_mseg_update()
391 msp->kpm_nkpmpgs = nkpmpgs; in hat_kpm_addmem_mseg_update()
392 msp->kpm_pbase = kpmptop(ptokpmp(msp->pages_base)); in hat_kpm_addmem_mseg_update()
393 msp->pagespa = va_to_pa(msp->pages); in hat_kpm_addmem_mseg_update()
394 msp->epagespa = va_to_pa(msp->epages); in hat_kpm_addmem_mseg_update()
395 msp->kpm_pagespa = va_to_pa(msp->kpm_pages); in hat_kpm_addmem_mseg_update()
403 hat_kpm_addmem_mseg_insert(struct memseg *msp) in hat_kpm_addmem_mseg_insert() argument
[all …]
/titanic_41/usr/src/common/devid/
H A Ddevid.c320 char *str, *msp, *dsp, *dp, ta; in devid_str_decode_id() local
349 if ((msp = strchr(&devidstr[4], '/')) != NULL) in devid_str_decode_id()
350 msp++; in devid_str_decode_id()
367 if (msp == NULL) in devid_str_decode_id()
370 id_len = msp - str - 1; in devid_str_decode_id()
455 if (minor_namep && msp) { in devid_str_decode_id()
456 if ((*minor_namep = DEVID_MALLOC(strlen(msp) + 1)) == NULL) in devid_str_decode_id()
458 (void) strcpy(*minor_namep, msp); in devid_str_decode_id()
/titanic_41/usr/src/uts/sun4u/ngdr/io/
H A Ddr_mem.c716 sbd_mem_stat_t *msp; in dr_mem_status() local
748 msp = &dsp->d_mem; in dr_mem_status()
749 bzero((caddr_t)msp, sizeof (*msp)); in dr_mem_status()
751 (void) strncpy(msp->ms_cm.c_id.c_name, pstat.type, in dr_mem_status()
752 sizeof (msp->ms_cm.c_id.c_name)); in dr_mem_status()
753 msp->ms_cm.c_id.c_type = mp->sbm_cm.sbdev_type; in dr_mem_status()
754 msp->ms_cm.c_id.c_unit = SBD_NULL_UNIT; in dr_mem_status()
755 msp->ms_cm.c_cond = mp->sbm_cm.sbdev_cond; in dr_mem_status()
756 msp->ms_cm.c_busy = mp->sbm_cm.sbdev_busy | pstat.busy; in dr_mem_status()
757 msp->ms_cm.c_time = mp->sbm_cm.sbdev_time; in dr_mem_status()
[all …]
/titanic_41/usr/src/uts/common/io/lvm/stripe/
H A Dstripe_ioctl.c147 md_set_params_t *msp = d; in stripe_set() local
149 mnum = msp->mnum; in stripe_set()
152 mdep = &msp->mde; in stripe_set()
173 if (msp->options & MD_CRO_64BIT) { in stripe_set()
177 ms_recid = mddb_createrec((size_t)msp->size, typ1, 0, in stripe_set()
181 ms_recid = mddb_createrec((size_t)msp->size, typ1, 0, in stripe_set()
198 if (err = ddi_copyin((caddr_t)(uintptr_t)msp->mdp, (caddr_t)p, in stripe_set()
199 (size_t)msp->size, mode)) { in stripe_set()
207 if (msp->options & MD_CRO_64BIT) { in stripe_set()
805 md_stripe_params_t *msp, in stripe_change() argument
[all …]
/titanic_41/usr/src/uts/sun4u/opl/io/
H A Ddr_mem.c701 sbd_mem_stat_t *msp; in dr_mem_status() local
733 msp = &dsp->d_mem; in dr_mem_status()
734 bzero((caddr_t)msp, sizeof (*msp)); in dr_mem_status()
736 (void) strncpy(msp->ms_cm.c_id.c_name, pstat.type, in dr_mem_status()
737 sizeof (msp->ms_cm.c_id.c_name)); in dr_mem_status()
738 msp->ms_cm.c_id.c_type = mp->sbm_cm.sbdev_type; in dr_mem_status()
739 msp->ms_cm.c_id.c_unit = SBD_NULL_UNIT; in dr_mem_status()
740 msp->ms_cm.c_cond = mp->sbm_cm.sbdev_cond; in dr_mem_status()
741 msp->ms_cm.c_busy = mp->sbm_cm.sbdev_busy | pstat.busy; in dr_mem_status()
742 msp->ms_cm.c_time = mp->sbm_cm.sbdev_time; in dr_mem_status()
[all …]
/titanic_41/usr/src/lib/libc/port/threads/
H A Dsynch.c60 record_begin_hold(tdb_mutex_stats_t *msp) in record_begin_hold() argument
62 tdb_incr(msp->mutex_lock); in record_begin_hold()
63 msp->mutex_begin_hold = gethrtime(); in record_begin_hold()
67 record_hold_time(tdb_mutex_stats_t *msp) in record_hold_time() argument
71 if (msp->mutex_begin_hold) in record_hold_time()
72 msp->mutex_hold_time += now - msp->mutex_begin_hold; in record_hold_time()
73 msp->mutex_begin_hold = 0; in record_hold_time()
981 mutex_lock_kernel(mutex_t *mp, timespec_t *tsp, tdb_mutex_stats_t *msp) in mutex_lock_kernel() argument
997 if (msp) { in mutex_lock_kernel()
998 tdb_incr(msp->mutex_sleep); in mutex_lock_kernel()
[all …]
/titanic_41/usr/src/uts/common/io/lvm/softpart/
H A Dsp_ioctl.c167 md_sp_statusset_t *msp = (md_sp_statusset_t *)d; in sp_setstatus() local
169 nunits = msp->num_units; in sp_setstatus()
170 sz = msp->size; in sp_setstatus()
171 status = msp->new_status; in sp_setstatus()
172 mdep = &msp->mde; in sp_setstatus()
180 if (err = ddi_copyin((void *)(uintptr_t)msp->minors, minors, sz, mode)) in sp_setstatus()
457 md_set_params_t *msp = (md_set_params_t *)d; in sp_set() local
459 mnum = msp->mnum; in sp_set()
461 mdep = &msp->mde; in sp_set()
483 if (msp->options & MD_CRO_64BIT) { in sp_set()
[all …]
/titanic_41/usr/src/cmd/zdb/
H A Dzdb.c719 dump_metaslab_stats(metaslab_t *msp) in dump_metaslab_stats() argument
722 range_tree_t *rt = msp->ms_tree; in dump_metaslab_stats()
723 avl_tree_t *t = &msp->ms_size_tree; in dump_metaslab_stats()
724 int free_pct = range_tree_space(rt) * 100 / msp->ms_size; in dump_metaslab_stats()
726 zdb_nicenum(metaslab_block_maxsize(msp), maxbuf); in dump_metaslab_stats()
736 dump_metaslab(metaslab_t *msp) in dump_metaslab() argument
738 vdev_t *vd = msp->ms_group->mg_vd; in dump_metaslab()
740 space_map_t *sm = msp->ms_sm; in dump_metaslab()
743 zdb_nicenum(msp->ms_size - space_map_allocated(sm), freebuf); in dump_metaslab()
747 (u_longlong_t)msp->ms_id, (u_longlong_t)msp->ms_start, in dump_metaslab()
[all …]
/titanic_41/usr/src/cmd/sendmail/cf/cf/
H A Dsubmit.mc14 # This is the prototype file for a set-group-ID sm-msp sendmail that
27 FEATURE(`msp', `[127.0.0.1]')dnl
/titanic_41/usr/src/uts/i86pc/vm/
H A Dhat_i86.c4356 hat_kpm_mseghash_update(pgcnt_t inx, struct memseg *msp) in hat_kpm_mseghash_update() argument
4361 hat_kpm_addmem_mseg_update(struct memseg *msp, pgcnt_t nkpmpgs, in hat_kpm_addmem_mseg_update() argument
4382 base = memseg_get_start(msp); in hat_kpm_addmem_mseg_update()
4383 end = msp->pages_end; in hat_kpm_addmem_mseg_update()
4391 hat_kpm_addmem_mseg_insert(struct memseg *msp) in hat_kpm_addmem_mseg_insert() argument
4393 _NOTE(ARGUNUSED(msp)); in hat_kpm_addmem_mseg_insert()
4397 hat_kpm_addmem_memsegs_update(struct memseg *msp) in hat_kpm_addmem_memsegs_update() argument
4399 _NOTE(ARGUNUSED(msp)); in hat_kpm_addmem_memsegs_update()
4407 hat_kpm_mseg_reuse(struct memseg *msp) in hat_kpm_mseg_reuse() argument
4409 return ((caddr_t)msp->epages); in hat_kpm_mseg_reuse()
[all …]
/titanic_41/usr/src/uts/sun4u/io/
H A Dsbd.c4060 sbd_mem_stat_t *msp; in sbd_mem_status() local
4099 msp = &dsp->d_mem; in sbd_mem_status()
4101 bzero((caddr_t)msp, sizeof (*msp)); in sbd_mem_status()
4102 msp->ms_type = SBD_COMP_MEM; in sbd_mem_status()
4107 msp->ms_cm.c_id.c_unit = -1; in sbd_mem_status()
4114 (void) strcpy(msp->ms_name, SBD_DEVNAME(i)); in sbd_mem_status()
4117 msp->ms_cm.c_cond = mp->sbm_cm.sbdev_cond; in sbd_mem_status()
4118 msp->ms_cm.c_busy = mp->sbm_cm.sbdev_busy; in sbd_mem_status()
4119 msp->ms_cm.c_time = mp->sbm_cm.sbdev_time; in sbd_mem_status()
4122 msp->ms_ostate = ostate_cvt(SBD_DEVICE_STATE( in sbd_mem_status()
[all …]
/titanic_41/usr/src/lib/libipmi/common/
H A Dipmi_sdr.c303 ipmi_sdr_management_locator_t *msp = in ipmi_sdr_refresh() local
306 namelen = msp->is_ml_idlen; in ipmi_sdr_refresh()
307 type = msp->is_ml_idtype; in ipmi_sdr_refresh()
308 name = msp->is_ml_idstring; in ipmi_sdr_refresh()
/titanic_41/usr/src/uts/common/fs/zfs/sys/
H A Dmetaslab.h40 uint64_t (*msop_alloc)(metaslab_t *msp, uint64_t size);
/titanic_41/usr/src/uts/sun4/os/
H A Dstartup.c2453 struct memseg *msp; in ndata_alloc_memseg() local
2464 msp = ndata_alloc(ndata, memseg_sz, ecache_alignsize); in ndata_alloc_memseg()
2465 if (msp == NULL) in ndata_alloc_memseg()
2470 msp->next = memseg_free; in ndata_alloc_memseg()
2471 memseg_free = msp; in ndata_alloc_memseg()
2472 msp++; in ndata_alloc_memseg()
2511 struct memseg *msp; in memseg_list_add() local
2512 msp = (struct memseg *)((caddr_t)prev_memsegp - in memseg_list_add()
2514 msp->nextpa = va_to_pa(memsegp); in memseg_list_add()
/titanic_41/usr/src/uts/common/io/lvm/raid/
H A Draid_ioctl.c898 md_set_params_t *msp = d; in raid_set() local
901 mnum = msp->mnum; in raid_set()
904 mdclrerror(&msp->mde); in raid_set()
906 if (raid_getun(mnum, &msp->mde, NO_OLD, NULL) == NULL) in raid_set()
914 if (msp->options & MD_CRO_64BIT) { in raid_set()
916 return (mdmderror(&msp->mde, MDE_UNIT_TOO_LARGE, mnum)); in raid_set()
918 mr_recid = mddb_createrec(msp->size, typ1, 0, in raid_set()
922 mr_recid = mddb_createrec(msp->size, typ1, 0, in raid_set()
927 return (mddbstatus2error(&msp->mde, in raid_set()
941 if (err = ddi_copyin((caddr_t)(uintptr_t)msp->mdp, un, in raid_set()
[all …]

12