Searched refs:lhp (Results 1 - 25 of 28) sorted by relevance

12

/illumos-gate/usr/src/lib/fm/libldom/sparc/
H A Dldom.h42 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_
[all...]
H A Dldom.c174 get_local_core_md(ldom_hdl_t *lhp, uint64_t **buf) argument
188 bufp = (uint64_t *)lhp->allocp(size);
191 lhp->freep(bufp, size);
204 get_local_md_prop_value(ldom_hdl_t *lhp, char *node, char *prop, uint64_t *val) argument
210 if ((bufsiz = get_local_core_md(lhp, &bufp)) > 0) {
213 if (mdp = md_init_intern(bufp, lhp->allocp, lhp->freep)) {
218 listp = lhp->allocp(sizeof (mde_cookie_t) * num_nodes);
228 lhp->freep(listp, sizeof (mde_cookie_t) * num_nodes);
231 lhp
243 cpu_phys2virt(ldom_hdl_t *lhp, uint32_t cpuid) argument
301 get_type(ldom_hdl_t *lhp, uint32_t *type) argument
378 ldom_get_type(ldom_hdl_t *lhp, uint32_t *type) argument
419 ldom_fmri_status(ldom_hdl_t *lhp, nvlist_t *nvl) argument
481 ldom_fmri_retire(ldom_hdl_t *lhp, nvlist_t *nvl) argument
542 ldom_fmri_unretire(ldom_hdl_t *lhp, nvlist_t *nvl) argument
603 fmri_blacklist(ldom_hdl_t *lhp, nvlist_t *nvl, int cmd) argument
656 ldom_fmri_blacklist(ldom_hdl_t *lhp, nvlist_t *nvl) argument
665 ldom_fmri_unblacklist(ldom_hdl_t *lhp, nvlist_t *nvl) argument
672 ldom_get_local_md(ldom_hdl_t *lhp, uint64_t **buf) argument
678 ldom_get_core_md(ldom_hdl_t *lhp, uint64_t **buf) argument
710 ldom_find_id(ldom_hdl_t *lhp, uint64_t addr, ldom_rsrc_t rsrc, uint64_t *virt_addr, char *name, int name_size, uint64_t *did) argument
727 ldom_register_event(ldom_hdl_t *lhp, ldom_reg_cb_t cb, ldom_cb_arg_t data) argument
740 ldom_unregister_event(ldom_hdl_t *lhp) argument
766 struct ldom_hdl *lhp; local
801 ldom_fini(ldom_hdl_t *lhp) argument
[all...]
H A Dldmsvcs_utils.h195 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_
[all...]
H A Dldom_xmpp_client.h90 ldom_hdl_t *lhp; member in struct:client_info
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 Dldmsvcs_utils.c127 static struct ldmsvcs_info *channel_init(struct ldom_hdl *lhp);
271 poller_recv_data(struct ldom_hdl *lhp, uint64_t req_num, int index, argument
278 twait.tv_sec = time(NULL) + lhp->lsinfo->cv_twait;
299 *resp = lhp->allocp(*resplen);
1207 channel_init(struct ldom_hdl *lhp) argument
1222 if (root != NULL || (lhp == NULL && root == NULL)) {
1284 sendrecv(struct ldom_hdl *lhp, uint64_t req_num, argument
1292 lsp = lhp->lsinfo;
1320 (ier = poller_recv_data(lhp, req_num, index, resp,
1347 cpu_request(struct ldom_hdl *lhp, uint32_ argument
1430 mem_request(struct ldom_hdl *lhp, uint32_t msg_type, uint64_t pa, uint64_t pgsize) argument
1538 ldmsvcs_init(struct ldom_hdl *lhp) argument
1550 ldmsvcs_fini(struct ldom_hdl *lhp) argument
1561 ldmsvcs_get_core_md(struct ldom_hdl *lhp, uint64_t **buf) argument
1633 ldmsvcs_cpu_req_status(struct ldom_hdl *lhp, uint32_t cpuid) argument
1640 ldmsvcs_cpu_req_offline(struct ldom_hdl *lhp, uint32_t cpuid) argument
1646 ldmsvcs_cpu_req_online(struct ldom_hdl *lhp, uint32_t cpuid) argument
1655 ldmsvcs_mem_req_status(struct ldom_hdl *lhp, uint64_t pa) argument
1661 ldmsvcs_mem_req_retire(struct ldom_hdl *lhp, uint64_t pa) argument
1667 ldmsvcs_mem_req_unretire(struct ldom_hdl *lhp, uint64_t pa) argument
1673 ldmsvcs_io_req_id(struct ldom_hdl *lhp, uint64_t addr, uint_t type, uint64_t *virt_addr, char *name, int name_len, uint64_t *did) argument
[all...]
H A Dldom_xmpp_client.c435 find_client(ldom_hdl_t *lhp) argument
440 if (p->lhp == lhp)
453 xmpp_add_client(ldom_hdl_t *lhp, ldom_reg_cb_t cb, ldom_cb_arg_t data) argument
458 if (find_client(lhp)) {
466 clt->lhp = lhp;
492 xmpp_remove_client(ldom_hdl_t *lhp) argument
497 if ((p = find_client(lhp)) == NULL) {
/illumos-gate/usr/src/lib/libumem/common/
H A Dumem_fork.c66 umem_lockup_log_header(umem_log_header_t *lhp) argument
69 if (lhp == NULL)
72 (void) mutex_lock(&lhp->lh_cpu[idx].clh_lock);
74 (void) mutex_lock(&lhp->lh_lock);
78 umem_release_log_header(umem_log_header_t *lhp) argument
81 if (lhp == NULL)
84 (void) mutex_unlock(&lhp->lh_lock);
87 (void) mutex_unlock(&lhp->lh_cpu[idx].clh_lock);
H A Dumem.c1274 umem_log_header_t *lhp; local
1283 * Make sure that lhp->lh_cpu[] is nicely aligned
1287 lhp = vmem_xalloc(umem_log_arena, lhsize, 64, P2NPHASE(lhsize, 64), 0,
1289 if (lhp == NULL)
1292 bzero(lhp, lhsize);
1294 (void) mutex_init(&lhp->lh_lock, USYNC_THREAD, NULL);
1295 lhp->lh_nchunks = nchunks;
1296 lhp->lh_chunksize = P2ROUNDUP(logsize / nchunks, PAGESIZE);
1297 if (lhp->lh_chunksize == 0)
1298 lhp
1338 umem_log_enter(umem_log_header_t *lhp, void *data, size_t size) argument
[all...]
/illumos-gate/usr/src/lib/libproc/common/
H A DPstack.h50 int sort_uclist(const void *lhp, const void *rhp);
H A DPstack.c230 sort_uclist(const void *lhp, const void *rhp) argument
232 uintptr_t lhs = *((const uintptr_t *)lhp);
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/hostbridge/
H A Dhb_mdesc.c174 ldom_hdl_t *lhp; local
177 if ((lhp = ldom_init(hb_alloc, hb_free)) == NULL) {
182 (void) ldom_get_type(lhp, &type);
184 bufsiz = ldom_get_core_md(lhp, &bufp);
186 bufsiz = ldom_get_local_md(lhp, &bufp);
190 ldom_fini(lhp);
197 ldom_fini(lhp);
205 ldom_fini(lhp);
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/motherboard/
H A Dmotherboard.c132 ldom_hdl_t *lhp; local
134 lhp = ldom_init(mb_topo_alloc, mb_topo_free);
135 if (lhp == NULL) {
144 ldom_fini(lhp);
148 (void) ldom_get_type(lhp, &type);
150 bufsize = ldom_get_core_md(lhp, &bufp);
152 bufsize = ldom_get_local_md(lhp, &bufp);
157 ldom_fini(lhp);
166 ldom_fini(lhp);
176 ldom_fini(lhp);
[all...]
/illumos-gate/usr/src/uts/common/os/
H A Ddriver_lyr.c357 struct ldi_handle *lhp, **lhpp, *retlhp; local
363 lhp = kmem_zalloc(sizeof (*lhp), KM_SLEEP);
382 kmem_free(lhp, sizeof (struct ldi_handle));
387 lhp->lh_ref = 1;
388 lhp->lh_vp = vp;
389 lhp->lh_ident = ident;
391 mutex_init(lhp->lh_lock, NULL, MUTEX_DEFAULT, NULL);
395 lhp->lh_type = 0;
398 lhp
424 handle_release(struct ldi_handle *lhp) argument
469 struct ldi_handle *lhp = lep->le_lhp; local
489 struct ldi_handle *lhp = lep->le_lhp; local
740 ldi_open_by_vp(vnode_t **vpp, int flag, cred_t *cr, ldi_handle_t *lhp, struct ldi_ident *li) argument
1171 struct ldi_handle *lhp; local
1221 struct ldi_handle *lhp = (struct ldi_handle *)arg; local
1377 struct ldi_handle *lhp; local
1596 ldi_open_by_dev(dev_t *devp, int otyp, int flag, cred_t *cr, ldi_handle_t *lhp, ldi_ident_t li) argument
1623 ldi_open_by_name(char *pathname, int flag, cred_t *cr, ldi_handle_t *lhp, ldi_ident_t li) argument
1648 ldi_open_by_devid(ddi_devid_t devid, char *minor_name, int flag, cred_t *cr, ldi_handle_t *lhp, ldi_ident_t li) argument
3169 struct ldi_handle *lhp = (struct ldi_handle *)lh; local
[all...]
H A Dkmem.c1430 kmem_log_header_t *lhp; local
1436 * Make sure that lhp->lh_cpu[] is nicely aligned
1440 lhp = vmem_xalloc(kmem_log_arena, lhsize, 64, P2NPHASE(lhsize, 64), 0,
1442 bzero(lhp, lhsize);
1444 mutex_init(&lhp->lh_lock, NULL, MUTEX_DEFAULT, NULL);
1445 lhp->lh_nchunks = nchunks;
1446 lhp->lh_chunksize = P2ROUNDUP(logsize / nchunks + 1, PAGESIZE);
1447 lhp->lh_base = vmem_alloc(kmem_log_arena,
1448 lhp->lh_chunksize * nchunks, VM_SLEEP);
1449 lhp
1469 kmem_log_enter(kmem_log_header_t *lhp, void *data, size_t size) argument
[all...]
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dldi.c48 struct ldi_handle *lhp; /* ldi handle pointer */ member in struct:lh_walk
88 if ((mdb_vread(&lhwp->lhp, sizeof (struct ldi_handle *),
94 wsp->walk_addr = (uintptr_t)lhwp->lhp;
114 if ((mdb_vread(&lhwp->lhp, sizeof (struct ldi_handle *),
121 wsp->walk_addr = (uintptr_t)lhwp->lhp;
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/cpuboard/
H A Dcpuboard.c102 ldom_hdl_t *lhp; local
106 lhp = ldom_init(cpuboard_topo_alloc, cpuboard_topo_free);
107 if (lhp == NULL) {
115 ldom_fini(lhp);
119 (void) ldom_get_type(lhp, &type);
121 bufsize = ldom_get_core_md(lhp, &bufp);
123 bufsize = ldom_get_local_md(lhp, &bufp);
128 ldom_fini(lhp);
138 ldom_fini(lhp);
148 ldom_fini(lhp);
[all...]
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/platform-mem/
H A Dmem.c381 ldom_hdl_t *lhp; local
384 if ((lhp = ldom_init(mem_alloc, mem_free)) == NULL) {
390 rc = ldom_fmri_status(lhp, nvl);
392 ldom_fini(lhp);
406 ldom_hdl_t *lhp; local
409 if ((lhp = ldom_init(mem_alloc, mem_free)) == NULL) {
415 rc = ldom_fmri_retire(lhp, nvl);
417 ldom_fini(lhp);
431 ldom_hdl_t *lhp; local
434 if ((lhp
[all...]
H A Dmem_mdesc.c427 ldom_hdl_t *lhp; local
434 if ((lhp = ldom_init(mem_alloc, mem_free)) == NULL) {
437 (void) ldom_get_type(lhp, &type);
439 bufsiz = ldom_get_core_md(lhp, &bufp);
441 bufsiz = ldom_get_local_md(lhp, &bufp);
445 ldom_fini(lhp);
452 ldom_fini(lhp);
473 ldom_fini(lhp);
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/platform-cpu/
H A Dcpu_mdesc.c350 ldom_hdl_t *lhp; local
354 if ((lhp = ldom_init(cpu_alloc, cpu_free)) == NULL) {
359 (void) ldom_get_type(lhp, &type);
361 bufsiz = ldom_get_core_md(lhp, &bufp);
363 bufsiz = ldom_get_local_md(lhp, &bufp);
367 ldom_fini(lhp);
374 ldom_fini(lhp);
392 ldom_fini(lhp);
H A Dcpu.c336 ldom_hdl_t *lhp; local
362 lhp = ldom_init(cpu_alloc, cpu_free);
363 if (lhp == NULL) {
366 (void) ldom_get_type(lhp, &type);
367 status = ldom_fmri_status(lhp, in);
370 ldom_fini(lhp);
/illumos-gate/usr/src/lib/libctf/common/
H A Dctf_lib.c363 const GElf_Shdr *lhp = &sp[shp->sh_link]; local
369 lhp->sh_name >= sp[shstrndx].sh_size)
389 strsect.cts_name = strs + lhp->sh_name;
390 strsect.cts_type = lhp->sh_type;
391 strsect.cts_flags = lhp->sh_flags;
392 strsect.cts_size = lhp->sh_size;
393 strsect.cts_entsize = lhp->sh_entsize;
394 strsect.cts_offset = (off64_t)lhp->sh_offset;
/illumos-gate/usr/src/lib/fm/libdiskstatus/common/
H A Dds_scsi.c478 scsi_log_header_t *lhp; local
487 if ((lhp = calloc(buflen, 1)) == NULL)
495 free(lhp);
503 PC_CUMULATIVE, (caddr_t)lhp, buflen, &kp, &asc, &ascq);
506 log_length = BE_16(lhp->lh_length);
508 free(lhp);
513 (((char *)lhp) + sizeof (scsi_log_header_t)),
515 free(lhp);
523 free(lhp);
959 scsi_log_header_t *lhp; local
[all...]
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/sun4vpi/
H A Dpi_meth.c39 ldom_hdl_t *lhp; /* ldom handle */ member in struct:cpu_walk_data
149 rc = swdp->func(swdp->lhp, asru);
200 swdp->lhp = pi_lhp;
/illumos-gate/usr/src/cmd/fs.d/nfs/nfslog/
H A Dnfslog_elf.c1293 nfslog_record_header *lhp, char *principal_name, char *tag,
1306 nfsl_get_time((time_t)lhp->rh_timestamp.tv_sec));
1308 lhp->rh_reclen);
1316 progname, lhp->rh_version, disp->procname);
1318 NFSL_AUTH_FLAVOR_PRINT(lhp->rh_auth_flavor));
1335 elfbufoffset += sprintf(&elfbuf[elfbufoffset], " 0x%lx", lhp->rh_uid);
1336 if (((pwp = getpwuid(lhp->rh_uid)) != NULL) && (pwp->pw_name != NULL)) {
1343 elfbufoffset += sprintf(&elfbuf[elfbufoffset], " 0x%lx", lhp->rh_gid);
1292 nfsl_elf_record_header_print(struct nfsl_log_file *elfrec, nfslog_record_header *lhp, char *principal_name, char *tag, struct nfsl_proc_disp *disp, char *progname) argument
/illumos-gate/usr/src/cmd/sed/
H A Dcompile.c874 struct labhash **lhp, *lh; local
880 lhp = &labels[h & LHMASK];
881 for (lh = *lhp; lh != NULL; lh = lh->lh_next)
886 lh->lh_next = *lhp;
890 *lhp = lh;

Completed in 144 milliseconds

12