Home
last modified time | relevance | path

Searched refs:lep (Results 1 – 21 of 21) sorted by relevance

/illumos-gate/usr/src/cmd/fs.d/nfs/lib/
H A Dnfslogtab.c72 if ((lep = (struct logtab_ent *)malloc(sizeof (*lep))) == NULL) { in logtab_getent()
75 (void) memset((char *)lep, 0, sizeof (*lep)); in logtab_getent()
121 *lepp = lep; in logtab_getent()
125 logtab_ent_free(lep); in logtab_getent()
142 lep->le_buffer, in logtab_putent()
143 lep->le_path, in logtab_putent()
144 lep->le_tag, in logtab_putent()
145 lep->le_state); in logtab_putent()
391 if (lep->le_path) in logtab_ent_free()
393 if (lep->le_tag) in logtab_ent_free()
[all …]
H A Dnfslogtab.h60 void logtab_ent_free(struct logtab_ent *lep);
/illumos-gate/usr/src/uts/intel/io/dktp/hba/ghd/
H A Dghd_queue.c38 lep->le_nextp = NULL; in L1_add()
39 lep->le_datap = datap; in L1_add()
43 lp->l1_headp = lep; in L1_add()
46 lp->l1_tailp->le_nextp = lep; in L1_add()
49 lp->l1_tailp = lep; in L1_add()
61 L1_delete(L1_t *lp, L1el_t *lep) in L1_delete() argument
65 if (lp->l1_headp == lep) { in L1_delete()
75 if (prevp->le_nextp == lep) { in L1_delete()
95 L1el_t *lep; in L1_remove() local
106 lep->le_nextp = NULL; in L1_remove()
[all …]
H A Dghd_queue.h44 #define L1EL_INIT(lep) ((lep)->le_nextp = NULL, (lep)->le_datap = 0) argument
54 void L1_add(L1_t *lp, L1el_t *lep, void *datap);
55 void L1_delete(L1_t *lp, L1el_t *lep);
/illumos-gate/usr/src/lib/libipmi/common/
H A Dipmi_lancfg.c137 ipmi_lan_entry_t *lep; in ipmi_lan_get_config() local
149 lep = &ipmi_lan_table[i]; in ipmi_lan_get_config()
150 if (ipmi_lan_get_param(ihp, channel, lep->ile_param, in ipmi_lan_get_config()
151 lep->ile_set, lep->ile_block, in ipmi_lan_get_config()
152 (char *)cfgp + lep->ile_offset, lep->ile_len) != 0) in ipmi_lan_get_config()
206 ipmi_lan_entry_t *lep; in ipmi_lan_set_config() local
224 lep = &ipmi_lan_table[i]; in ipmi_lan_set_config()
225 if (!(lep->ile_mask & mask)) in ipmi_lan_set_config()
228 if (ipmi_lan_set_param(ihp, channel, lep->ile_param, in ipmi_lan_set_config()
229 (char *)cfgp + lep->ile_offset, lep->ile_len) != 0) { in ipmi_lan_set_config()
/illumos-gate/usr/src/cmd/fs.d/nfs/nfslog/
H A Dbuffer_list.c106 struct logtab_ent *lep; in buildbuffer_list() local
129 while ((res = logtab_getent(fd, &lep)) > 0) { in buildbuffer_list()
130 if (bep = findbuffer(*be_head, lep->le_buffer)) { in buildbuffer_list()
135 lep->le_path, &se_tail)) { in buildbuffer_list()
140 sep->se_state = lep->le_state; in buildbuffer_list()
153 sep->se_name = strdup(lep->le_path); in buildbuffer_list()
158 sep->se_state = lep->le_state; in buildbuffer_list()
175 bep->be_name = strdup(lep->le_buffer); in buildbuffer_list()
201 bep->be_sharepnt->se_state = lep->le_state; in buildbuffer_list()
226 if (lep) in buildbuffer_list()
[all …]
/illumos-gate/usr/src/uts/sun/sys/dada/adapters/ghd/
H A Dghd_queue.h46 #define L1EL_INIT(lep) ((lep)->le_nextp = NULL, (lep)->le_datap = 0) argument
56 void L1_add(L1_t *lp, L1el_t *lep, void *datap);
57 void L1_delete(L1_t *lp, L1el_t *lep);
/illumos-gate/usr/src/uts/common/os/
H A Dlwp.c109 lwpent_t *lep; in lwp_create() local
283 lep = kmem_zalloc(sizeof (*lep), KM_SLEEP); in lwp_create()
715 lep->le_thread = t; in lwp_create()
775 kmem_free(lep, sizeof (*lep)); in lwp_create()
1764 lwpent_t *lep; in exitlwps() local
1768 lep = ldp->ld_entry; in exitlwps()
1769 if (lep != NULL && lep->le_thread != curthread) { in exitlwps()
1939 ldp->ld_entry = lep; in lwp_hash_in()
1975 lwpent_t *lep; in lwp_hash_out() local
1980 lep = ldp->ld_entry; in lwp_hash_out()
[all …]
H A Ddriver_lyr.c475 lhp->lh_events = lep; in handle_event_add()
482 lhp->lh_events = lep; in handle_event_add()
494 if (lep->le_prev) in handle_event_remove()
495 lep->le_prev->le_next = lep->le_next; in handle_event_remove()
496 if (lep->le_next) in handle_event_remove()
497 lep->le_next->le_prev = lep->le_prev; in handle_event_remove()
510 ASSERT(lep != NULL); in i_ldi_callback()
516 lep->le_handler(lep->le_lhp, event_cookie, lep->le_arg, bus_impldata); in i_ldi_callback()
1692 struct ldi_event *lep; in ldi_close() local
2861 lep->le_arg = arg; in ldi_add_event_handler()
[all …]
H A Dfork.c168 lwpent_t *lep; in cfork() local
407 if ((lep = ldp->ld_entry) == NULL) in cfork()
410 if ((t = lep->le_thread) != NULL) { in cfork()
435 clep->le_lwpid = lep->le_lwpid; in cfork()
436 clep->le_start = lep->le_start; in cfork()
628 if ((lep = ldp->ld_entry) != NULL) in cfork()
629 kmem_free(lep, sizeof (*lep)); in cfork()
H A Dexec.c220 lwpent_t *lep; in exec_common() local
545 lep = p->p_lwpdir[curthread->t_dslot].ld_entry; in exec_common()
547 lep = kmem_zalloc(sizeof (*lep), KM_SLEEP); in exec_common()
588 lep->le_thread = curthread; in exec_common()
589 lep->le_lwpid = curthread->t_tid; in exec_common()
590 lep->le_start = curthread->t_start; in exec_common()
591 lwp_hash_in(p, lep, tidhash, 2, 0); in exec_common()
H A Dsig.c854 lwpent_t *lep; in stop() local
1007 lep = p->p_lwpdir[tx->t_dslot].ld_entry; in stop()
1008 if (notify && lep->le_trace) in stop()
1009 prnotify(lep->le_trace); in stop()
1126 lep = p->p_lwpdir[t->t_dslot].ld_entry; in stop()
1127 if (lep->le_trace) /* /proc */ in stop()
1128 prnotify(lep->le_trace); in stop()
/illumos-gate/usr/src/uts/common/syscall/
H A Dlwpsys.c180 lwpent_t *lep; in lwp_wait() local
246 if ((lep = ldp->ld_entry) == NULL || in lwp_wait()
247 lep->le_thread != NULL) in lwp_wait()
260 tid = lep->le_lwpid; in lwp_wait()
261 if (lep->le_waiters != 0) { in lwp_wait()
262 if (lep->le_waiters - lep->le_dwaiters) in lwp_wait()
/illumos-gate/usr/src/uts/sun4u/io/
H A Dsbd_mem.c826 sbderror_t *lep; in sbd_pre_release_mem() local
874 lep = &devlist[d].dv_error; in sbd_pre_release_mem()
875 if (SBD_GET_ERR(lep) != 0) { in sbd_pre_release_mem()
877 (void) sbd_set_err_in_hdl(hp, lep); in sbd_pre_release_mem()
892 SBD_SET_ERR(lep, ESBD_INVAL); in sbd_pre_release_mem()
920 SBD_SET_ERR(lep, ESBD_INTERNAL); in sbd_pre_release_mem()
948 ml = sbd_get_memlist(mp, lep); in sbd_pre_release_mem()
949 (void) sbd_set_err_in_hdl(hp, lep); in sbd_pre_release_mem()
966 SBD_SET_ERR(lep, ESBD_INTERNAL); in sbd_pre_release_mem()
1019 SBD_SET_ERR(lep, ESBD_NO_TARGET); in sbd_pre_release_mem()
[all …]
/illumos-gate/usr/src/uts/common/exec/elf/
H A Delf_notes.c209 lwpent_t *lep; in write_elfnotes() local
473 if ((lep = ldp->ld_entry) == NULL) /* empty slot */ in write_elfnotes()
476 if ((t = lep->le_thread) != NULL) { /* active lwp */ in write_elfnotes()
491 bigwad->lwpsinfo.pr_lwpid = lep->le_lwpid; in write_elfnotes()
494 bigwad->lwpsinfo.pr_start.tv_sec = lep->le_start; in write_elfnotes()
/illumos-gate/usr/src/uts/common/fs/proc/
H A Dprvnops.c907 lwpent_t *lep; in pr_read_lpsinfo() local
1540 lwpent_t *lep; in pr_read_lwpsinfo() local
2107 lwpent_t *lep; in pr_read_lpsinfo_32() local
2680 lwpent_t *lep; in pr_read_lwpsinfo_32() local
4087 lwpent_t *lep; in pr_lookup_lwpdir() local
4121 lep = NULL; in pr_lookup_lwpdir()
4129 lep = NULL; in pr_lookup_lwpdir()
4132 lep = ldp->ld_entry; in pr_lookup_lwpdir()
4136 if (lep == NULL) { in pr_lookup_lwpdir()
5484 lwpent_t *lep; in pr_readdir_lwpdir() local
[all …]
H A Dprsubr.c404 lwpent_t *lep = p->p_lwpdir[t->t_dslot].ld_entry; in prlwpexit() local
425 for (vp = lep->le_trace; vp != NULL; vp = pnp->pr_next) { in prlwpexit()
442 prlwpfree(proc_t *p, lwpent_t *lep) in prlwpfree() argument
457 vp = lep->le_trace; in prlwpfree()
458 lep->le_trace = NULL; in prlwpfree()
/illumos-gate/usr/src/uts/common/fs/pcfs/
H A Dpc_dir.c1381 struct pcdir_lfn *lep; in pc_name_to_pcdir() local
1431 lep = (struct pcdir_lfn *)&bpcdir[i]; in pc_name_to_pcdir()
1432 set_long_fn_chunk(lep, nameend, nchars); in pc_name_to_pcdir()
1433 lep->pcdl_attr = PCDL_LFN_BITS; in pc_name_to_pcdir()
1434 lep->pcdl_checksum = cksum; in pc_name_to_pcdir()
1435 lep->pcdl_ordinal = (uchar_t)(ndirentries - i - 1); in pc_name_to_pcdir()
1439 lep = (struct pcdir_lfn *)&bpcdir[0]; in pc_name_to_pcdir()
1440 lep->pcdl_ordinal |= 0x40; in pc_name_to_pcdir()
H A Dpc_vnops.c2171 struct pcdir_lfn *lep = (struct pcdir_lfn *)ep; in pc_extract_long_fn() local
2193 cksum = lep->pcdl_checksum; in pc_extract_long_fn()
2196 for (i = (lep->pcdl_ordinal & ~0xc0); i > 0; i--) { in pc_extract_long_fn()
2210 lep = (struct pcdir_lfn *)ep; in pc_extract_long_fn()
2213 if (!PCDL_IS_LFN((struct pcdir *)lep)) { in pc_extract_long_fn()
2217 if (cksum != lep->pcdl_checksum) in pc_extract_long_fn()
2220 cs = get_long_fn_chunk(lep, buf); in pc_extract_long_fn()
2229 lep++; in pc_extract_long_fn()
2235 ep = (struct pcdir *)lep; in pc_extract_long_fn()
/illumos-gate/usr/src/cmd/backup/restore/
H A Dsymtab.c656 struct entry *baseep, *lep; in initsymtable() local
792 lep = (struct entry *)entry; in initsymtable()
798 for (ep = &baseep[1]; ep < lep; ep++) { in initsymtable()
/illumos-gate/usr/src/lib/libshare/nfs/
H A Dlibshare_nfs.c1586 struct logtab_ent lep; in nfslogtab_add() local
1640 lep.le_buffer = buffer; in nfslogtab_add()
1641 lep.le_path = dir; in nfslogtab_add()
1642 lep.le_tag = tag; in nfslogtab_add()
1643 lep.le_state = LES_ACTIVE; in nfslogtab_add()
1648 if (logtab_putent(f, &lep) < 0) { in nfslogtab_add()