Home
last modified time | relevance | path

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

/titanic_50/usr/src/cmd/fs.d/nfs/lib/
H A Dnfslogtab.c71 struct logtab_ent *lep = NULL; in logtab_getent() local
74 if ((lep = (struct logtab_ent *)malloc(sizeof (*lep))) == NULL) { in logtab_getent()
77 (void) memset((char *)lep, 0, sizeof (*lep)); in logtab_getent()
91 if ((lep->le_buffer = strdup(tmp)) == NULL) { in logtab_getent()
101 if ((lep->le_path = strdup(tmp)) == NULL) { in logtab_getent()
111 if ((lep->le_tag = strdup(tmp)) == NULL) { in logtab_getent()
121 lep->le_state = atoi(tmp); in logtab_getent()
123 *lepp = lep; in logtab_getent()
127 logtab_ent_free(lep); in logtab_getent()
136 logtab_putent(FILE *fd, struct logtab_ent *lep) in logtab_putent() argument
[all …]
H A Dnfslogtab.h62 void logtab_ent_free(struct logtab_ent *lep);
/titanic_50/usr/src/uts/intel/io/dktp/hba/ghd/
H A Dghd_queue.c38 L1_add(L1_t *lp, L1el_t *lep, void *datap) in L1_add() argument
41 lep->le_nextp = NULL; in L1_add()
42 lep->le_datap = datap; in L1_add()
46 lp->l1_headp = lep; in L1_add()
49 lp->l1_tailp->le_nextp = lep; in L1_add()
52 lp->l1_tailp = lep; in L1_add()
64 L1_delete(L1_t *lp, L1el_t *lep) in L1_delete() argument
68 if (lp->l1_headp == lep) { in L1_delete()
70 if ((lp->l1_headp = lep->le_nextp) == NULL) { in L1_delete()
78 if (prevp->le_nextp == lep) { in L1_delete()
[all …]
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);
/titanic_50/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()
/titanic_50/usr/src/cmd/fs.d/nfs/nfslog/
H A Dbuffer_list.c108 struct logtab_ent *lep; in buildbuffer_list() local
131 while ((res = logtab_getent(fd, &lep)) > 0) { in buildbuffer_list()
132 if (bep = findbuffer(*be_head, lep->le_buffer)) { in buildbuffer_list()
137 lep->le_path, &se_tail)) { in buildbuffer_list()
142 sep->se_state = lep->le_state; in buildbuffer_list()
155 sep->se_name = strdup(lep->le_path); in buildbuffer_list()
160 sep->se_state = lep->le_state; in buildbuffer_list()
177 bep->be_name = strdup(lep->le_buffer); in buildbuffer_list()
198 bep->be_sharepnt->se_name = strdup(lep->le_path); in buildbuffer_list()
203 bep->be_sharepnt->se_state = lep->le_state; in buildbuffer_list()
[all …]
/titanic_50/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);
/titanic_50/usr/src/uts/common/os/
H A Dlwp.c110 lwpent_t *lep; in lwp_create() local
284 lep = kmem_zalloc(sizeof (*lep), KM_SLEEP); in lwp_create()
716 lep->le_thread = t; in lwp_create()
717 lep->le_lwpid = t->t_tid; in lwp_create()
718 lep->le_start = t->t_start; in lwp_create()
719 lwp_hash_in(p, lep, p->p_tidhash, p->p_tidhash_sz, 1); in lwp_create()
774 kmem_free(lep, sizeof (*lep)); in lwp_create()
1769 lwpent_t *lep; in exitlwps() local
1773 lep = ldp->ld_entry; in exitlwps()
1774 if (lep != NULL && lep->le_thread != curthread) { in exitlwps()
[all …]
H A Ddriver_lyr.c467 handle_event_add(ldi_event_t *lep) in handle_event_add() argument
469 struct ldi_handle *lhp = lep->le_lhp; in handle_event_add()
475 lhp->lh_events = lep; in handle_event_add()
480 lep->le_next = lhp->lh_events; in handle_event_add()
481 lhp->lh_events->le_prev = lep; in handle_event_add()
482 lhp->lh_events = lep; in handle_event_add()
487 handle_event_remove(ldi_event_t *lep) in handle_event_remove() argument
489 struct ldi_handle *lhp = lep->le_lhp; in handle_event_remove()
494 if (lep->le_prev) in handle_event_remove()
495 lep->le_prev->le_next = lep->le_next; in handle_event_remove()
[all …]
H A Dfork.c145 lwpent_t *lep; in cfork() local
392 if ((lep = ldp->ld_entry) == NULL) in cfork()
395 if ((t = lep->le_thread) != NULL) { in cfork()
420 clep->le_lwpid = lep->le_lwpid; in cfork()
421 clep->le_start = lep->le_start; in cfork()
613 if ((lep = ldp->ld_entry) != NULL) in cfork()
614 kmem_free(lep, sizeof (*lep)); in cfork()
H A Dexec.c137 lwpent_t *lep; in exec_common() local
445 lep = p->p_lwpdir[curthread->t_dslot].ld_entry; in exec_common()
447 lep = kmem_zalloc(sizeof (*lep), KM_SLEEP); in exec_common()
488 lep->le_thread = curthread; in exec_common()
489 lep->le_lwpid = curthread->t_tid; in exec_common()
490 lep->le_start = curthread->t_start; in exec_common()
491 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()
/titanic_50/usr/src/uts/common/syscall/
H A Dlwpsys.c179 lwpent_t *lep; in lwp_wait() local
244 if ((lep = ldp->ld_entry) == NULL || in lwp_wait()
245 lep->le_thread != NULL) in lwp_wait()
258 tid = lep->le_lwpid; in lwp_wait()
259 if (lep->le_waiters != 0) { in lwp_wait()
260 if (lep->le_waiters - lep->le_dwaiters) in lwp_wait()
/titanic_50/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()
893 SBD_SET_ERRSTR(lep, sbp->sb_mempath[d]); in sbd_pre_release_mem()
894 (void) sbd_set_err_in_hdl(hp, lep); in sbd_pre_release_mem()
920 SBD_SET_ERR(lep, ESBD_INTERNAL); in sbd_pre_release_mem()
921 SBD_SET_ERRSTR(lep, sbp->sb_mempath[d]); in sbd_pre_release_mem()
922 (void) sbd_set_err_in_hdl(hp, lep); in sbd_pre_release_mem()
[all …]
/titanic_50/usr/src/uts/common/exec/elf/
H A Delf_notes.c196 lwpent_t *lep; in write_elfnotes() local
452 if ((lep = ldp->ld_entry) == NULL) /* empty slot */ in write_elfnotes()
455 if ((t = lep->le_thread) != NULL) { /* active lwp */ in write_elfnotes()
466 bigwad->lwpsinfo.pr_lwpid = lep->le_lwpid; in write_elfnotes()
469 bigwad->lwpsinfo.pr_start.tv_sec = lep->le_start; in write_elfnotes()
/titanic_50/usr/src/uts/common/fs/proc/
H A Dprvnops.c812 lwpent_t *lep; in pr_read_lpsinfo() local
850 if ((lep = ldp->ld_entry) == NULL) in pr_read_lpsinfo()
852 if ((t = lep->le_thread) != NULL) in pr_read_lpsinfo()
856 sp->pr_lwpid = lep->le_lwpid; in pr_read_lpsinfo()
859 sp->pr_start.tv_sec = lep->le_start; in pr_read_lpsinfo()
1445 lwpent_t *lep; in pr_read_lwpsinfo() local
1472 lep = p->p_lwpdir[pnp->pr_common->prc_tslot].ld_entry; in pr_read_lwpsinfo()
1474 lwpsinfo.pr_lwpid = lep->le_lwpid; in pr_read_lwpsinfo()
1477 lwpsinfo.pr_start.tv_sec = lep->le_start; in pr_read_lwpsinfo()
1925 lwpent_t *lep; in pr_read_lpsinfo_32() local
[all …]
H A Dprsubr.c383 lwpent_t *lep = p->p_lwpdir[t->t_dslot].ld_entry; in prlwpexit() local
404 for (vp = lep->le_trace; vp != NULL; vp = pnp->pr_next) { in prlwpexit()
421 prlwpfree(proc_t *p, lwpent_t *lep) in prlwpfree() argument
436 vp = lep->le_trace; in prlwpfree()
437 lep->le_trace = NULL; in prlwpfree()
/titanic_50/usr/src/uts/common/fs/pcfs/
H A Dpc_dir.c1376 struct pcdir_lfn *lep; in pc_name_to_pcdir() local
1426 lep = (struct pcdir_lfn *)&bpcdir[i]; in pc_name_to_pcdir()
1427 set_long_fn_chunk(lep, nameend, nchars); in pc_name_to_pcdir()
1428 lep->pcdl_attr = PCDL_LFN_BITS; in pc_name_to_pcdir()
1429 lep->pcdl_checksum = cksum; in pc_name_to_pcdir()
1430 lep->pcdl_ordinal = (uchar_t)(ndirentries - i - 1); in pc_name_to_pcdir()
1434 lep = (struct pcdir_lfn *)&bpcdir[0]; in pc_name_to_pcdir()
1435 lep->pcdl_ordinal |= 0x40; in pc_name_to_pcdir()
H A Dpc_vnops.c2170 struct pcdir_lfn *lep = (struct pcdir_lfn *)ep; in pc_extract_long_fn() local
2192 cksum = lep->pcdl_checksum; in pc_extract_long_fn()
2195 for (i = (lep->pcdl_ordinal & ~0xc0); i > 0; i--) { in pc_extract_long_fn()
2209 lep = (struct pcdir_lfn *)ep; in pc_extract_long_fn()
2212 if (!PCDL_IS_LFN((struct pcdir *)lep)) { in pc_extract_long_fn()
2216 if (cksum != lep->pcdl_checksum) in pc_extract_long_fn()
2219 cs = get_long_fn_chunk(lep, buf); in pc_extract_long_fn()
2228 lep++; in pc_extract_long_fn()
2234 ep = (struct pcdir *)lep; in pc_extract_long_fn()
/titanic_50/usr/src/cmd/backup/restore/
H A Dsymtab.c683 struct entry *baseep, *lep; local
811 lep = (struct entry *)entry;
817 for (ep = &baseep[1]; ep < lep; ep++) {
/titanic_50/usr/src/lib/libshare/nfs/
H A Dlibshare_nfs.c1564 struct logtab_ent lep; local
1618 lep.le_buffer = buffer;
1619 lep.le_path = dir;
1620 lep.le_tag = tag;
1621 lep.le_state = LES_ACTIVE;
1626 if (logtab_putent(f, &lep) < 0) {