/titanic_44/usr/src/lib/fm/libldom/sparc/ |
H A D | ldom.c | 174 get_local_core_md(ldom_hdl_t *lhp, uint64_t **buf) in get_local_core_md() argument 188 bufp = (uint64_t *)lhp->allocp(size); in get_local_core_md() 191 lhp->freep(bufp, size); in get_local_core_md() 204 get_local_md_prop_value(ldom_hdl_t *lhp, char *node, char *prop, uint64_t *val) in get_local_md_prop_value() argument 210 if ((bufsiz = get_local_core_md(lhp, &bufp)) > 0) { in get_local_md_prop_value() 213 if (mdp = md_init_intern(bufp, lhp->allocp, lhp->freep)) { in get_local_md_prop_value() 218 listp = lhp->allocp(sizeof (mde_cookie_t) * num_nodes); in get_local_md_prop_value() 228 lhp->freep(listp, sizeof (mde_cookie_t) * num_nodes); in get_local_md_prop_value() 231 lhp->freep(bufp, bufsiz); in get_local_md_prop_value() 243 cpu_phys2virt(ldom_hdl_t *lhp, uint32_t cpuid) in cpu_phys2virt() argument [all …]
|
H A D | ldom.h | 42 extern void ldom_fini(ldom_hdl_t *lhp); 44 extern int ldom_fmri_status(ldom_hdl_t *lhp, nvlist_t *nvl_fmri); 45 extern int ldom_fmri_retire(ldom_hdl_t *lhp, nvlist_t *nvl_fmri); 46 extern int ldom_fmri_unretire(ldom_hdl_t *lhp, nvlist_t *nvl_fmri); 47 extern int ldom_fmri_blacklist(ldom_hdl_t *lhp, nvlist_t *nvl_fmri); 48 extern int ldom_fmri_unblacklist(ldom_hdl_t *lhp, nvlist_t *nvl_fmri); 50 extern ssize_t ldom_get_core_md(ldom_hdl_t *lhp, uint64_t **buf); 51 extern ssize_t ldom_get_local_md(ldom_hdl_t *lhp, uint64_t **buf); 64 extern int ldom_get_type(ldom_hdl_t *lhp, uint32_t *type_mask); 76 ldom_find_id(ldom_hdl_t *lhp, uint64_t addr, ldom_rsrc_t type, [all …]
|
H A D | ldmsvcs_utils.h | 195 extern void ldmsvcs_init(struct ldom_hdl *lhp); 197 extern void ldmsvcs_fini(struct ldom_hdl *lhp); 199 extern ssize_t ldmsvcs_get_core_md(struct ldom_hdl *lhp, uint64_t **buf); 201 extern int ldmsvcs_cpu_req_status(struct ldom_hdl *lhp, uint32_t cpuid); 203 extern int ldmsvcs_mem_req_status(struct ldom_hdl *lhp, uint64_t pa); 205 extern int ldmsvcs_cpu_req_offline(struct ldom_hdl *lhp, uint32_t cpuid); 207 extern int ldmsvcs_mem_req_retire(struct ldom_hdl *lhp, uint64_t pa); 209 extern int ldmsvcs_cpu_req_online(struct ldom_hdl *lhp, uint32_t cpuid); 211 extern int ldmsvcs_mem_req_unretire(struct ldom_hdl *lhp, uint64_t pa); 213 extern int ldmsvcs_io_req_id(struct ldom_hdl *lhp, uint64_t addr, uint_t type,
|
H A D | ldmsvcs_utils.c | 127 static struct ldmsvcs_info *channel_init(struct ldom_hdl *lhp); 271 poller_recv_data(struct ldom_hdl *lhp, uint64_t req_num, int index, in poller_recv_data() argument 278 twait.tv_sec = time(NULL) + lhp->lsinfo->cv_twait; in poller_recv_data() 299 *resp = lhp->allocp(*resplen); in poller_recv_data() 1207 channel_init(struct ldom_hdl *lhp) in channel_init() argument 1222 if (root != NULL || (lhp == NULL && root == NULL)) { in channel_init() 1284 sendrecv(struct ldom_hdl *lhp, uint64_t req_num, in sendrecv() argument 1292 lsp = lhp->lsinfo; in sendrecv() 1320 (ier = poller_recv_data(lhp, req_num, index, resp, in sendrecv() 1347 cpu_request(struct ldom_hdl *lhp, uint32_t msg_type, uint32_t cpuid) in cpu_request() argument [all …]
|
H A D | ldom_xmpp_client.h | 90 ldom_hdl_t *lhp; member 104 extern int xmpp_add_client(ldom_hdl_t *lhp, ldom_reg_cb_t cb, 106 extern int xmpp_remove_client(ldom_hdl_t *lhp);
|
H A D | ldom_xmpp_client.c | 435 find_client(ldom_hdl_t *lhp) in find_client() argument 440 if (p->lhp == lhp) in find_client() 453 xmpp_add_client(ldom_hdl_t *lhp, ldom_reg_cb_t cb, ldom_cb_arg_t data) in xmpp_add_client() argument 458 if (find_client(lhp)) { in xmpp_add_client() 466 clt->lhp = lhp; in xmpp_add_client() 492 xmpp_remove_client(ldom_hdl_t *lhp) in xmpp_remove_client() argument 497 if ((p = find_client(lhp)) == NULL) { in xmpp_remove_client()
|
/titanic_44/usr/src/cmd/fs.d/cachefs/fsck/ |
H A D | res.c | 262 cachefs_rl_listhead_t *lhp; in res_reset() local 312 lhp = RL_HEAD(resp, CACHEFS_RL_FREE); in res_reset() 313 memset(lhp, 0, sizeof (cachefs_rl_listhead_t)); in res_reset() 314 lhp = RL_HEAD(resp, CACHEFS_RL_NONE); in res_reset() 315 memset(lhp, 0, sizeof (cachefs_rl_listhead_t)); in res_reset() 316 lhp = RL_HEAD(resp, CACHEFS_RL_MF); in res_reset() 317 memset(lhp, 0, sizeof (cachefs_rl_listhead_t)); in res_reset() 318 lhp = RL_HEAD(resp, CACHEFS_RL_ACTIVE); in res_reset() 319 memset(lhp, 0, sizeof (cachefs_rl_listhead_t)); in res_reset() 342 cachefs_rl_listhead_t *lhp; in res_listcheck() local [all …]
|
/titanic_44/usr/src/uts/common/fs/cachefs/ |
H A D | cachefs_resource.c | 96 cachefs_rl_listhead_t *lhp; in cachefs_rlent_moveto_nolock() local 121 lhp = RL_HEAD(cachep, otype); in cachefs_rlent_moveto_nolock() 122 if ((lhp->rli_back == 0) || (lhp->rli_front == 0)) in cachefs_rlent_moveto_nolock() 123 ASSERT((lhp->rli_back == 0) && (lhp->rli_front == 0)); in cachefs_rlent_moveto_nolock() 125 if (lhp->rli_back == entno) in cachefs_rlent_moveto_nolock() 126 lhp->rli_back = next; in cachefs_rlent_moveto_nolock() 127 if (lhp->rli_front == entno) in cachefs_rlent_moveto_nolock() 128 lhp->rli_front = prev; in cachefs_rlent_moveto_nolock() 141 lhp->rli_blkcnt -= blks; in cachefs_rlent_moveto_nolock() 142 lhp->rli_itemcnt--; in cachefs_rlent_moveto_nolock() [all …]
|
/titanic_44/usr/src/lib/libumem/common/ |
H A D | umem_fork.c | 66 umem_lockup_log_header(umem_log_header_t *lhp) in umem_lockup_log_header() argument 69 if (lhp == NULL) in umem_lockup_log_header() 72 (void) mutex_lock(&lhp->lh_cpu[idx].clh_lock); in umem_lockup_log_header() 74 (void) mutex_lock(&lhp->lh_lock); in umem_lockup_log_header() 78 umem_release_log_header(umem_log_header_t *lhp) in umem_release_log_header() argument 81 if (lhp == NULL) in umem_release_log_header() 84 (void) mutex_unlock(&lhp->lh_lock); in umem_release_log_header() 87 (void) mutex_unlock(&lhp->lh_cpu[idx].clh_lock); in umem_release_log_header()
|
H A D | umem.c | 1270 umem_log_header_t *lhp; in umem_log_init() local 1283 lhp = vmem_xalloc(umem_log_arena, lhsize, 64, P2NPHASE(lhsize, 64), 0, in umem_log_init() 1285 if (lhp == NULL) in umem_log_init() 1288 bzero(lhp, lhsize); in umem_log_init() 1290 (void) mutex_init(&lhp->lh_lock, USYNC_THREAD, NULL); in umem_log_init() 1291 lhp->lh_nchunks = nchunks; in umem_log_init() 1292 lhp->lh_chunksize = P2ROUNDUP(logsize / nchunks, PAGESIZE); in umem_log_init() 1293 if (lhp->lh_chunksize == 0) in umem_log_init() 1294 lhp->lh_chunksize = PAGESIZE; in umem_log_init() 1296 lhp->lh_base = vmem_alloc(umem_log_arena, in umem_log_init() [all …]
|
/titanic_44/usr/src/uts/common/os/ |
H A D | driver_lyr.c | 357 struct ldi_handle *lhp, **lhpp, *retlhp; in handle_alloc() local 363 lhp = kmem_zalloc(sizeof (*lhp), KM_SLEEP); in handle_alloc() 382 kmem_free(lhp, sizeof (struct ldi_handle)); in handle_alloc() 387 lhp->lh_ref = 1; in handle_alloc() 388 lhp->lh_vp = vp; in handle_alloc() 389 lhp->lh_ident = ident; in handle_alloc() 391 mutex_init(lhp->lh_lock, NULL, MUTEX_DEFAULT, NULL); in handle_alloc() 395 lhp->lh_type = 0; in handle_alloc() 398 lhp->lh_type |= LH_STREAM; in handle_alloc() 400 lhp->lh_type |= LH_CBDEV; in handle_alloc() [all …]
|
H A D | kmem.c | 1429 kmem_log_header_t *lhp; in kmem_log_init() local 1439 lhp = vmem_xalloc(kmem_log_arena, lhsize, 64, P2NPHASE(lhsize, 64), 0, in kmem_log_init() 1441 bzero(lhp, lhsize); in kmem_log_init() 1443 mutex_init(&lhp->lh_lock, NULL, MUTEX_DEFAULT, NULL); in kmem_log_init() 1444 lhp->lh_nchunks = nchunks; in kmem_log_init() 1445 lhp->lh_chunksize = P2ROUNDUP(logsize / nchunks + 1, PAGESIZE); in kmem_log_init() 1446 lhp->lh_base = vmem_alloc(kmem_log_arena, in kmem_log_init() 1447 lhp->lh_chunksize * nchunks, VM_SLEEP); in kmem_log_init() 1448 lhp->lh_free = vmem_alloc(kmem_log_arena, in kmem_log_init() 1450 bzero(lhp->lh_base, lhp->lh_chunksize * nchunks); in kmem_log_init() [all …]
|
/titanic_44/usr/src/lib/fm/topo/modules/sun4v/hostbridge/ |
H A D | hb_mdesc.c | 174 ldom_hdl_t *lhp; in hb_mdesc_init() local 177 if ((lhp = ldom_init(hb_alloc, hb_free)) == NULL) { in hb_mdesc_init() 182 (void) ldom_get_type(lhp, &type); in hb_mdesc_init() 184 bufsiz = ldom_get_core_md(lhp, &bufp); in hb_mdesc_init() 186 bufsiz = ldom_get_local_md(lhp, &bufp); in hb_mdesc_init() 190 ldom_fini(lhp); in hb_mdesc_init() 197 ldom_fini(lhp); in hb_mdesc_init() 205 ldom_fini(lhp); in hb_mdesc_init()
|
/titanic_44/usr/src/lib/fm/topo/modules/sun4v/motherboard/ |
H A D | motherboard.c | 132 ldom_hdl_t *lhp; in mb_get_pri_info() local 134 lhp = ldom_init(mb_topo_alloc, mb_topo_free); in mb_get_pri_info() 135 if (lhp == NULL) { in mb_get_pri_info() 144 ldom_fini(lhp); in mb_get_pri_info() 148 (void) ldom_get_type(lhp, &type); in mb_get_pri_info() 150 bufsize = ldom_get_core_md(lhp, &bufp); in mb_get_pri_info() 152 bufsize = ldom_get_local_md(lhp, &bufp); in mb_get_pri_info() 157 ldom_fini(lhp); in mb_get_pri_info() 166 ldom_fini(lhp); in mb_get_pri_info() 176 ldom_fini(lhp); in mb_get_pri_info() [all …]
|
/titanic_44/usr/src/lib/fm/topo/modules/sun4v/cpuboard/ |
H A D | cpuboard.c | 102 ldom_hdl_t *lhp; in cpuboard_get_pri_info() local 106 lhp = ldom_init(cpuboard_topo_alloc, cpuboard_topo_free); in cpuboard_get_pri_info() 107 if (lhp == NULL) { in cpuboard_get_pri_info() 115 ldom_fini(lhp); in cpuboard_get_pri_info() 119 (void) ldom_get_type(lhp, &type); in cpuboard_get_pri_info() 121 bufsize = ldom_get_core_md(lhp, &bufp); in cpuboard_get_pri_info() 123 bufsize = ldom_get_local_md(lhp, &bufp); in cpuboard_get_pri_info() 128 ldom_fini(lhp); in cpuboard_get_pri_info() 138 ldom_fini(lhp); in cpuboard_get_pri_info() 148 ldom_fini(lhp); in cpuboard_get_pri_info() [all …]
|
/titanic_44/usr/src/lib/fm/topo/modules/sun4v/platform-mem/ |
H A D | mem.c | 381 ldom_hdl_t *lhp; in mem_page_isretired() local 384 if ((lhp = ldom_init(mem_alloc, mem_free)) == NULL) { in mem_page_isretired() 390 rc = ldom_fmri_status(lhp, nvl); in mem_page_isretired() 392 ldom_fini(lhp); in mem_page_isretired() 406 ldom_hdl_t *lhp; in mem_page_retire() local 409 if ((lhp = ldom_init(mem_alloc, mem_free)) == NULL) { in mem_page_retire() 415 rc = ldom_fmri_retire(lhp, nvl); in mem_page_retire() 417 ldom_fini(lhp); in mem_page_retire() 431 ldom_hdl_t *lhp; in mem_page_unretire() local 434 if ((lhp = ldom_init(mem_alloc, mem_free)) == NULL) { in mem_page_unretire() [all …]
|
H A D | mem_mdesc.c | 427 ldom_hdl_t *lhp; in mem_mdesc_init() local 434 if ((lhp = ldom_init(mem_alloc, mem_free)) == NULL) { in mem_mdesc_init() 437 (void) ldom_get_type(lhp, &type); in mem_mdesc_init() 439 bufsiz = ldom_get_core_md(lhp, &bufp); in mem_mdesc_init() 441 bufsiz = ldom_get_local_md(lhp, &bufp); in mem_mdesc_init() 445 ldom_fini(lhp); in mem_mdesc_init() 452 ldom_fini(lhp); in mem_mdesc_init() 473 ldom_fini(lhp); in mem_mdesc_init()
|
/titanic_44/usr/src/lib/fm/topo/modules/sun4v/platform-cpu/ |
H A D | cpu_mdesc.c | 350 ldom_hdl_t *lhp; in cpu_mdesc_init() local 354 if ((lhp = ldom_init(cpu_alloc, cpu_free)) == NULL) { in cpu_mdesc_init() 359 (void) ldom_get_type(lhp, &type); in cpu_mdesc_init() 361 bufsiz = ldom_get_core_md(lhp, &bufp); in cpu_mdesc_init() 363 bufsiz = ldom_get_local_md(lhp, &bufp); in cpu_mdesc_init() 367 ldom_fini(lhp); in cpu_mdesc_init() 374 ldom_fini(lhp); in cpu_mdesc_init() 392 ldom_fini(lhp); in cpu_mdesc_init()
|
H A D | cpu.c | 336 ldom_hdl_t *lhp; in cpu_unusable() local 362 lhp = ldom_init(cpu_alloc, cpu_free); in cpu_unusable() 363 if (lhp == NULL) { in cpu_unusable() 366 (void) ldom_get_type(lhp, &type); in cpu_unusable() 367 status = ldom_fmri_status(lhp, in); in cpu_unusable() 370 ldom_fini(lhp); in cpu_unusable()
|
/titanic_44/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | ldi.c | 48 struct ldi_handle *lhp; /* ldi handle pointer */ member 88 if ((mdb_vread(&lhwp->lhp, sizeof (struct ldi_handle *), in ldi_handle_walk_init() 94 wsp->walk_addr = (uintptr_t)lhwp->lhp; in ldi_handle_walk_init() 114 if ((mdb_vread(&lhwp->lhp, sizeof (struct ldi_handle *), in ldi_handle_walk_step() 121 wsp->walk_addr = (uintptr_t)lhwp->lhp; in ldi_handle_walk_step()
|
/titanic_44/usr/src/lib/libctf/common/ |
H A D | ctf_lib.c | 363 const GElf_Shdr *lhp = &sp[shp->sh_link]; in ctf_fdopen() local 369 lhp->sh_name >= sp[shstrndx].sh_size) in ctf_fdopen() 389 strsect.cts_name = strs + lhp->sh_name; in ctf_fdopen() 390 strsect.cts_type = lhp->sh_type; in ctf_fdopen() 391 strsect.cts_flags = lhp->sh_flags; in ctf_fdopen() 392 strsect.cts_size = lhp->sh_size; in ctf_fdopen() 393 strsect.cts_entsize = lhp->sh_entsize; in ctf_fdopen() 394 strsect.cts_offset = (off64_t)lhp->sh_offset; in ctf_fdopen()
|
/titanic_44/usr/src/lib/fm/libdiskstatus/common/ |
H A D | ds_scsi.c | 478 scsi_log_header_t *lhp; in verify_logpage() local 487 if ((lhp = calloc(buflen, 1)) == NULL) in verify_logpage() 495 free(lhp); in verify_logpage() 503 PC_CUMULATIVE, (caddr_t)lhp, buflen, &kp, &asc, &ascq); in verify_logpage() 506 log_length = BE_16(lhp->lh_length); in verify_logpage() 508 free(lhp); in verify_logpage() 513 (((char *)lhp) + sizeof (scsi_log_header_t)), in verify_logpage() 515 free(lhp); in verify_logpage() 523 free(lhp); in verify_logpage() 959 scsi_log_header_t *lhp; in analyze_one_logpage() local [all …]
|
/titanic_44/usr/src/lib/libproc/common/ |
H A D | Pstack.c | 230 sort_uclist(const void *lhp, const void *rhp) in sort_uclist() argument 232 uintptr_t lhs = *((const uintptr_t *)lhp); in sort_uclist()
|
H A D | Pstack.h | 50 int sort_uclist(const void *lhp, const void *rhp);
|
/titanic_44/usr/src/cmd/sed/ |
H A D | compile.c | 874 struct labhash **lhp, *lh; in enterlabel() local 880 lhp = &labels[h & LHMASK]; in enterlabel() 881 for (lh = *lhp; lh != NULL; lh = lh->lh_next) in enterlabel() 886 lh->lh_next = *lhp; in enterlabel() 890 *lhp = lh; in enterlabel()
|