/titanic_50/usr/src/uts/common/fs/zfs/ |
H A D | metaslab.c | 602 metaslab_t *msp = vd->vdev_ms[m]; in metaslab_group_histogram_verify() local 604 if (msp->ms_sm == NULL) in metaslab_group_histogram_verify() 609 msp->ms_sm->sm_phys->smp_histogram[i]; in metaslab_group_histogram_verify() 619 metaslab_group_histogram_add(metaslab_group_t *mg, metaslab_t *msp) in metaslab_group_histogram_add() argument 624 ASSERT(MUTEX_HELD(&msp->ms_lock)); in metaslab_group_histogram_add() 625 if (msp->ms_sm == NULL) in metaslab_group_histogram_add() 631 msp->ms_sm->sm_phys->smp_histogram[i]; in metaslab_group_histogram_add() 633 msp->ms_sm->sm_phys->smp_histogram[i]; in metaslab_group_histogram_add() 639 metaslab_group_histogram_remove(metaslab_group_t *mg, metaslab_t *msp) in metaslab_group_histogram_remove() argument 644 ASSERT(MUTEX_HELD(&msp->ms_lock)); in metaslab_group_histogram_remove() [all …]
|
H A D | vdev.c | 683 metaslab_t *msp; in vdev_top_transfer() local 717 while ((msp = txg_list_remove(&svd->vdev_ms_list, t)) != NULL) in vdev_top_transfer() 718 (void) txg_list_add(&tvd->vdev_ms_list, msp, t); in vdev_top_transfer() 915 metaslab_t *msp = vd->vdev_ms[m]; in vdev_metaslab_fini() local 917 if (msp != NULL) in vdev_metaslab_fini() 918 metaslab_fini(msp); in vdev_metaslab_fini() 2174 metaslab_t *msp = vd->vdev_ms[m]; in vdev_remove() local 2176 if (msp == NULL || msp->ms_sm == NULL) in vdev_remove() 2179 mutex_enter(&msp->ms_lock); in vdev_remove() 2187 metaslab_group_histogram_remove(mg, msp); in vdev_remove() [all …]
|
/titanic_50/usr/src/cmd/mdb/common/modules/ufs/ |
H A D | ufs_log.c | 186 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_50/usr/src/cmd/ldmad/ |
H A D | mdesc_lib.c | 40 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_50/usr/src/uts/sun4v/vm/ |
H A D | mach_kpm.c | 218 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_50/usr/src/uts/i86pc/io/dr/ |
H A D | dr_mem_acpi.c | 284 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_50/usr/src/cmd/chmod/ |
H A D | common.c | 79 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_50/usr/src/uts/sun4u/starcat/io/ |
H A D | dman.c | 99 #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_50/usr/src/uts/sun4u/vm/ |
H A D | mach_kpm.c | 372 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_50/usr/src/common/devid/ |
H A D | devid.c | 320 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_50/usr/src/uts/sun4u/ngdr/io/ |
H A D | dr_mem.c | 716 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_50/usr/src/uts/sun4u/opl/io/ |
H A D | dr_mem.c | 701 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_50/usr/src/lib/libc/port/threads/ |
H A D | synch.c | 61 record_begin_hold(tdb_mutex_stats_t *msp) in record_begin_hold() argument 63 tdb_incr(msp->mutex_lock); in record_begin_hold() 64 msp->mutex_begin_hold = gethrtime(); in record_begin_hold() 68 record_hold_time(tdb_mutex_stats_t *msp) in record_hold_time() argument 72 if (msp->mutex_begin_hold) in record_hold_time() 73 msp->mutex_hold_time += now - msp->mutex_begin_hold; in record_hold_time() 74 msp->mutex_begin_hold = 0; in record_hold_time() 982 mutex_lock_kernel(mutex_t *mp, timespec_t *tsp, tdb_mutex_stats_t *msp) in mutex_lock_kernel() argument 998 if (msp) { in mutex_lock_kernel() 999 tdb_incr(msp->mutex_sleep); in mutex_lock_kernel() [all …]
|
/titanic_50/usr/src/cmd/zdb/ |
H A D | zdb.c | 726 dump_metaslab_stats(metaslab_t *msp) in dump_metaslab_stats() argument 729 range_tree_t *rt = msp->ms_tree; in dump_metaslab_stats() 730 avl_tree_t *t = &msp->ms_size_tree; in dump_metaslab_stats() 731 int free_pct = range_tree_space(rt) * 100 / msp->ms_size; in dump_metaslab_stats() 736 zdb_nicenum(metaslab_block_maxsize(msp), maxbuf, sizeof (maxbuf)); in dump_metaslab_stats() 746 dump_metaslab(metaslab_t *msp) in dump_metaslab() argument 748 vdev_t *vd = msp->ms_group->mg_vd; in dump_metaslab() 750 space_map_t *sm = msp->ms_sm; in dump_metaslab() 753 zdb_nicenum(msp->ms_size - space_map_allocated(sm), freebuf, in dump_metaslab() 758 (u_longlong_t)msp->ms_id, (u_longlong_t)msp->ms_start, in dump_metaslab() [all …]
|
/titanic_50/usr/src/cmd/sendmail/cf/cf/ |
H A D | submit.mc | 14 # This is the prototype file for a set-group-ID sm-msp sendmail that 27 FEATURE(`msp', `[127.0.0.1]')dnl
|
H A D | Makefile | 93 ${CFDIR}/feature/msp.m4 \
|
/titanic_50/usr/src/uts/i86pc/vm/ |
H A D | hat_i86.c | 4356 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_50/usr/src/uts/sun4u/io/ |
H A D | sbd.c | 4060 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_50/usr/src/lib/libipmi/common/ |
H A D | ipmi_sdr.c | 303 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_50/usr/src/uts/common/fs/zfs/sys/ |
H A D | metaslab.h | 40 uint64_t (*msop_alloc)(metaslab_t *msp, uint64_t size);
|
/titanic_50/usr/src/uts/sun4/os/ |
H A D | startup.c | 2453 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_50/usr/src/cmd/mdb/common/modules/mdb_ks/ |
H A D | mdb_ks.c | 748 pfn2page_cb(uintptr_t addr, const struct memseg *msp, void *data) in pfn2page_cb() argument 752 if (p->pfn >= msp->pages_base && p->pfn < msp->pages_end) { in pfn2page_cb() 753 p->pp = msp->pages + (p->pfn - msp->pages_base); in pfn2page_cb()
|
/titanic_50/usr/src/cmd/sendmail/cf/feature/ |
H A D | msp.m4 | 14 VERSIONID(`$Id: msp.m4,v 1.33 2004/02/09 22:32:38 ca Exp $')
|
/titanic_50/usr/src/lib/libc_db/common/ |
H A D | thread_db.c | 2779 td_mutex_stats_t *msp = &ss_p->ss_un.mutex; in __td_sync_get_stats() local 2783 msp->mutex_lock = in __td_sync_get_stats() 2785 msp->mutex_sleep = in __td_sync_get_stats() 2787 msp->mutex_sleep_time = in __td_sync_get_stats() 2789 msp->mutex_hold_time = in __td_sync_get_stats() 2791 msp->mutex_try = in __td_sync_get_stats() 2793 msp->mutex_try_fail = in __td_sync_get_stats() 2798 msp->mutex_internal = in __td_sync_get_stats()
|
/titanic_50/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | memory.c | 257 const struct memseg *msp = wsp->walk_layer; in allpages_walk_step() local 260 size_t pg_num = msp->pages_end - msp->pages_base; in allpages_walk_step() 261 const page_t *pg_addr = msp->pages; in allpages_walk_step()
|