Searched refs:lp (Results 1 - 25 of 480) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/uts/common/io/1394/targets/av1394/
H A Dav1394_list.c47 av1394_list_init(av1394_list_t *lp) argument
49 lp->l_head = lp->l_tail = NULL;
50 lp->l_cnt = 0;
58 av1394_list_head(av1394_list_t *lp) argument
60 return (lp->l_head);
69 av1394_list_put_tail(av1394_list_t *lp, void *item) argument
72 ITEM(item)->i_prev = lp->l_tail;
73 if (lp->l_tail == NULL) {
74 ASSERT(lp
89 av1394_list_put_head(av1394_list_t *lp, void *item) argument
109 av1394_list_get_head(av1394_list_t *lp) argument
[all...]
/illumos-gate/usr/src/cmd/sgs/common/
H A Dalist.c99 Alist *lp = *lpp; local
106 if (lp == NULL) {
117 if ((lp = malloc((size_t)bsize)) == NULL)
119 lp->al_arritems = init_arritems;
120 lp->al_nitems = 0;
121 lp->al_next = ALIST_OFF_DATA;
122 lp->al_size = size;
123 *lpp = lp;
126 ASSERT(size == lp->al_size);
128 if (lp
190 APlist *lp = *lpp; local
300 alist_delete(Alist *lp, Aliste *idxp) argument
326 alist_delete_by_offset(Alist *lp, Aliste *offp) argument
338 aplist_delete(APlist *lp, Aliste *idxp) argument
375 aplist_delete_value(APlist *lp, const void *ptr) argument
423 APlist *lp = *lpp; local
452 alist_reset(Alist *lp) argument
461 aplist_reset(APlist *lp) argument
[all...]
/illumos-gate/usr/src/uts/sparc/sys/
H A Dmachlock.h39 extern void lock_set(lock_t *lp);
40 extern int lock_try(lock_t *lp);
41 extern int lock_spin_try(lock_t *lp);
42 extern int ulock_try(lock_t *lp);
43 extern void ulock_clear(lock_t *lp);
44 extern void lock_clear(lock_t *lp);
45 extern void lock_set_spl(lock_t *lp, int new_pil, ushort_t *old_pil);
46 extern void lock_clear_splx(lock_t *lp, int s);
51 #define LOCK_INIT_CLEAR(lp) (*(lp)
[all...]
/illumos-gate/usr/src/cmd/mail/
H A Disit.c33 * isit(lp, type) -- match "name" portion of
35 * lp -> pointer to line to check
38 * TRUE -> lp matches header type (case independent)
44 isit(char *lp, int type) argument
50 for (p = header[type].tag; *lp && *p; lp++, p++) {
51 if (*p != *lp) {
57 for (p = header[type].tag; *lp && *p; lp++, p++) {
58 if (toupper(*p) != toupper(*lp)) {
[all...]
/illumos-gate/usr/src/lib/libast/common/tm/
H A Dtmxleap.c40 register Tm_leap_t* lp; local
47 for (lp = &tm_data.leap[0]; sec < (lp->time - lp->total); lp++);
48 t = tmxsns(sec + lp->total, tmxnsec(t));
/illumos-gate/usr/src/psm/stand/boot/sparc/common/
H A Dget.c55 char *lp; local
59 lp = buf;
66 *lp = '\0';
69 if (lp > buf)
70 lp--;
73 lp = buf;
78 if (lp < limit)
79 *lp++ = (char)c;
/illumos-gate/usr/src/uts/sparc/v7/sys/
H A Dmutex_impl.h90 #define MUTEX_OWNER(lp) ((kthread_id_t)((lp)->m_owner << PTR24_LSB))
93 #define MUTEX_SET_WAITERS(lp) ((lp)->m_waiters = 1)
94 #define MUTEX_HAS_WAITERS(lp) ((lp)->m_waiters != 0)
95 #define MUTEX_CLEAR_LOCK_AND_WAITERS(lp) \
96 (lp)->m_waiters = 0, (lp)->m_owner = 0
98 #define MUTEX_SET_TYPE(lp, typ
[all...]
/illumos-gate/usr/src/uts/common/os/
H A Dmutex.c242 mutex_panic(char *msg, mutex_impl_t *lp) argument
247 if (atomic_cas_ptr(&panic_mutex_addr, NULL, lp) == NULL)
248 panic_mutex = *lp;
250 panic("%s, lp=%p owner=%p thread=%p",
251 msg, (void *)lp, (void *)MUTEX_OWNER(&panic_mutex),
343 mutex_vector_enter(mutex_impl_t *lp) argument
351 volatile mutex_impl_t *vlp = (volatile mutex_impl_t *)lp;
357 if (MUTEX_TYPE_SPIN(lp)) {
358 lock_set_spl(&lp->m_spin.m_spinlock, lp
482 mutex_vector_tryenter(mutex_impl_t *lp) argument
508 mutex_vector_exit(mutex_impl_t *lp) argument
534 const mutex_impl_t *lp = (const mutex_impl_t *)mp; local
547 const mutex_impl_t *lp = (const mutex_impl_t *)mp; local
569 mutex_impl_t *lp = (mutex_impl_t *)mp; local
621 mutex_impl_t *lp = (mutex_impl_t *)mp; local
648 lock_set_spin(lock_t *lp) argument
682 lock_set_spl_spin(lock_t *lp, int new_pil, ushort_t *old_pil_addr, int old_pil) argument
[all...]
/illumos-gate/usr/src/lib/libuutil/common/
H A Duu_list.c36 #define ELEM_TO_NODE(lp, e) \
37 ((uu_list_node_impl_t *)((uintptr_t)(e) + (lp)->ul_offset))
39 #define NODE_TO_ELEM(lp, n) \
40 ((void *)((uintptr_t)(n) - (lp)->ul_offset))
183 uu_list_t *lp, *next, *prev; local
199 lp = uu_zalloc(sizeof (*lp));
200 if (lp == NULL) {
205 lp->ul_pool = pp;
206 lp
232 uu_list_destroy(uu_list_t *lp) argument
264 list_insert(uu_list_t *lp, uu_list_node_impl_t *np, uu_list_node_impl_t *prev, uu_list_node_impl_t *next) argument
293 uu_list_insert(uu_list_t *lp, void *elem, uu_list_index_t idx) argument
316 uu_list_find(uu_list_t *lp, void *elem, void *private, uu_list_index_t *out) argument
351 uu_list_nearest_next(uu_list_t *lp, uu_list_index_t idx) argument
376 uu_list_nearest_prev(uu_list_t *lp, uu_list_index_t idx) argument
400 list_walk_init(uu_list_walk_t *wp, uu_list_t *lp, uint32_t flags) argument
430 list_walk_advance(uu_list_walk_t *wp, uu_list_t *lp) argument
459 uu_list_walk_start(uu_list_t *lp, uint32_t flags) argument
481 uu_list_t *lp = wp->ulw_list; local
498 uu_list_walk(uu_list_t *lp, uu_walk_fn_t *func, void *private, uint32_t flags) argument
543 uu_list_remove(uu_list_t *lp, void *elem) argument
583 uu_list_teardown(uu_list_t *lp, void **cookie) argument
601 uu_list_insert_before(uu_list_t *lp, void *target, void *elem) argument
627 uu_list_insert_after(uu_list_t *lp, void *target, void *elem) argument
653 uu_list_numnodes(uu_list_t *lp) argument
659 uu_list_first(uu_list_t *lp) argument
668 uu_list_last(uu_list_t *lp) argument
677 uu_list_next(uu_list_t *lp, void *elem) argument
688 uu_list_prev(uu_list_t *lp, void *elem) argument
[all...]
/illumos-gate/usr/src/cmd/filesync/
H A Dignore.c109 { struct list *lp; local
128 for (lp = expr_list; lp; lp = lp->l_next) {
129 if (gmatch(name, lp->l_value) == 0)
134 lp->l_value, name);
174 { struct list *lp; local
179 lp = malloc(sizeof (*lp));
258 struct list *lp; local
339 struct list *lp; local
[all...]
/illumos-gate/usr/src/cmd/print/scripts/
H A Dgetmakes32 [[ -f /var/lp/ppd/ppdcache ]] || exit 1
33 /bin/cat /var/lp/ppd/ppdcache |
/illumos-gate/usr/src/uts/intel/sys/
H A Dmutex_impl.h81 #define MUTEX_OWNER(lp) ((kthread_id_t)((lp)->m_owner & MUTEX_THREAD))
84 #define MUTEX_SET_WAITERS(lp) \
87 while ((old = (lp)->m_owner) != 0 && \
88 casip(&(lp)->m_owner, old, old | MUTEX_WAITERS) != old) \
92 #define MUTEX_HAS_WAITERS(lp) ((lp)->m_owner & MUTEX_WAITERS)
93 #define MUTEX_CLEAR_LOCK_AND_WAITERS(lp) (lp)->m_owner = 0
95 #define MUTEX_SET_TYPE(lp, typ
[all...]
H A Dmachlock.h43 extern void lock_set(lock_t *lp);
44 extern int lock_try(lock_t *lp);
45 extern int lock_spin_try(lock_t *lp);
46 extern int ulock_try(lock_t *lp);
47 extern void lock_clear(lock_t *lp);
48 extern void ulock_clear(lock_t *lp);
49 extern void lock_set_spl(lock_t *lp, int new_pil, ushort_t *old_pil);
50 extern void lock_clear_splx(lock_t *lp, int s);
55 #define LOCK_INIT_CLEAR(lp) (*(lp)
[all...]
/illumos-gate/usr/src/uts/sparc/v9/sys/
H A Dmutex_impl.h78 #define MUTEX_OWNER(lp) ((kthread_id_t)((lp)->m_owner & MUTEX_THREAD))
81 #define MUTEX_SET_WAITERS(lp) \
84 while ((old = (lp)->m_owner) != 0 && \
85 casip(&(lp)->m_owner, old, old | MUTEX_WAITERS) != old) \
89 #define MUTEX_HAS_WAITERS(lp) ((lp)->m_owner & MUTEX_WAITERS)
90 #define MUTEX_CLEAR_LOCK_AND_WAITERS(lp) (lp)->m_owner = 0
92 #define MUTEX_SET_TYPE(lp, typ
[all...]
/illumos-gate/usr/src/lib/libshell/common/sh/
H A Dlex.c116 #define pushlevel(lp,c,s) ((lp->lexd.level>=lp->lexd.lex_max?stack_grow(lp):1) &&\
117 ((lp->lexd.lex_match[lp->lexd.level++]=lp->lexd.lastc),\
118 lp->lexd.lastc=(((s)<<CHAR_BIT)|(c))))
119 #define oldmode(lp) (lp
139 refvar(Lex_t *lp, int type) argument
183 register Lex_t *lp = (Lex_t*)context; local
227 lexfill(Lex_t *lp) argument
259 sh_lexopen(Lex_t *lp, Shell_t *sp, int mode) argument
284 sh_lex(Lex_t *lp) argument
313 sh_lex(Lex_t* lp) argument
1490 comsub(register Lex_t *lp, int endtok) argument
1610 nested_here(register Lex_t *lp) argument
1649 sh_lexskip(Lex_t *lp,int close, register int copy, int state) argument
1703 here_copy(Lex_t *lp,register struct ionod *iop) argument
1931 fmttoken(Lex_t *lp, register int sym, char *tok) argument
1991 sh_syntax(Lex_t *lp) argument
2315 Lex_t *lp; member in struct:alias
2336 register Lex_t *lp; local
2371 setupalias(Lex_t *lp, const char *string,Namval_t *np) argument
2407 stack_grow(Lex_t *lp) argument
[all...]
/illumos-gate/usr/src/cmd/fm/fmd/common/
H A Dfmd_log.c111 fmd_log_write(fmd_log_t *lp, const void *buf, size_t n) argument
116 ASSERT(MUTEX_HELD(&lp->log_lock));
119 if ((len = write(lp->log_fd, buf, resid)) <= 0)
133 fmd_log_write_hdr(fmd_log_t *lp, const char *tag) argument
144 (void) fmd_conf_getprop(fmd.d_conf, "uuidlen", &lp->log_uuidlen);
146 lp->log_uuid = fmd_zalloc(lp->log_uuidlen + 1, FMD_SLEEP);
148 uuid_unparse(uuid, lp->log_uuid);
158 err |= ea_set_item(&i5, CAT_FMA_UUID, lp->log_uuid, 0);
179 if ((lp
208 fmd_log_check_err(fmd_log_t *lp, int err, const char *msg) argument
222 fmd_log_check_hdr(fmd_log_t *lp, const char *tag) argument
333 fmd_log_open_exacct(fmd_log_t *lp, int aflags, int oflags) argument
354 fmd_log_t *lp = fmd_zalloc(sizeof (fmd_log_t), FMD_SLEEP); local
450 fmd_log_close(fmd_log_t *lp) argument
474 fmd_log_hold_pending(fmd_log_t *lp) argument
490 fmd_log_hold(fmd_log_t *lp) argument
499 fmd_log_rele(fmd_log_t *lp) argument
511 fmd_log_append(fmd_log_t *lp, fmd_event_t *e, fmd_case_t *cp) argument
725 fmd_log_commit(fmd_log_t *lp, fmd_event_t *e) argument
773 fmd_log_decommit(fmd_log_t *lp, fmd_event_t *e) argument
796 fmd_log_unpack(fmd_log_t *lp, ea_object_t *grp, off64_t off) argument
852 fmd_log_replay(fmd_log_t *lp, fmd_log_f *func, void *data) argument
965 fmd_log_update(fmd_log_t *lp) argument
1017 fmd_log_rotate(fmd_log_t *lp) argument
[all...]
/illumos-gate/usr/src/lib/fm/libfmd_log/common/
H A Dfmd_log.c67 * sets both lp->log_errno and errno to the specified value. If the current
72 fmd_log_set_errno(fmd_log_t *lp, int err) argument
75 lp->log_errno = EFDL_EXACCT + ea_error();
77 lp->log_errno = EFDL_BADTAG;
79 lp->log_errno = err;
81 errno = lp->log_errno;
87 fmd_log_dprintf(fmd_log_t *lp, const char *format, ...) argument
91 if (lp->log_flags & FMD_LF_DEBUG) {
105 fmd_log_load_record(fmd_log_t *lp, uint_t iflags, fmd_log_record_t *rp) argument
112 ea_clear(&lp
196 fmd_log_load_xref(fmd_log_t *lp, uint_t iflags, fmd_log_record_t *rp, ea_object_t *grp) argument
280 fmd_log_load_xrdir(fmd_log_t *lp) argument
321 fmd_log_load_xrefs(fmd_log_t *lp, uint_t iflags, fmd_log_record_t *rp) argument
366 fmd_log_open_err(fmd_log_t *lp, int *errp, int err) argument
381 fmd_log_t *lp; local
499 fmd_log_close(fmd_log_t *lp) argument
529 fmd_log_label(fmd_log_t *lp) argument
535 fmd_log_header(fmd_log_t *lp, fmd_log_header_t *hp) argument
557 fmd_log_rewind(fmd_log_t *lp) argument
582 fmd_log_xiter_filter(fmd_log_t *lp, const fmd_log_record_t *rp, uint_t fac, const fmd_log_filtvec_t *fav) argument
602 fmd_log_xiter_filtcmp(const void *lp, const void *rp) argument
609 fmd_log_filter(fmd_log_t *lp, uint_t fc, fmd_log_filter_t *fv, const fmd_log_record_t *rp) argument
632 fmd_log_xiter(fmd_log_t *lp, uint_t flag, uint_t fc, fmd_log_filter_t *fv, fmd_log_rec_f *rfunc, fmd_log_err_f *efunc, void *private, ulong_t *rcntp) argument
693 fmd_log_iter(fmd_log_t *lp, fmd_log_rec_f *rfunc, void *private) argument
699 fmd_log_seek(fmd_log_t *lp, off64_t off) argument
733 fmd_log_errmsg(fmd_log_t *lp, int err) argument
746 fmd_log_errno(fmd_log_t *lp) argument
[all...]
/illumos-gate/usr/src/lib/libdwarf/common/
H A Dpro_alloc.c86 memory_list_t *lp = NULL; local
91 lp = (memory_list_t *) malloc(size + sizeof(memory_list_t));
92 if (lp == NULL) {
97 /* point to 'size' bytes just beyond lp struct */
98 sp = LIST_TO_BLOCK(lp);
102 lp->next = lp->prev = lp;
110 dbglp->next = lp;
111 lp
150 memory_list_t *lp; local
[all...]
/illumos-gate/usr/src/uts/common/disp/
H A Ddisp_lock.c58 disp_lock_init(disp_lock_t *lp, char *name) argument
60 DISP_LOCK_INIT(lp);
65 disp_lock_destroy(disp_lock_t *lp) argument
67 DISP_LOCK_DESTROY(lp);
71 disp_lock_enter_high(disp_lock_t *lp) argument
73 lock_set(lp);
77 disp_lock_exit_high(disp_lock_t *lp) argument
81 ASSERT(DISP_LOCK_HELD(lp));
82 lock_clear(lp);
86 disp_lock_enter(disp_lock_t *lp) argument
92 disp_lock_exit(disp_lock_t *lp) argument
106 disp_lock_exit_nopreempt(disp_lock_t *lp) argument
127 lock_t *lp = *tlpp; local
170 lock_t *lp = *tlpp; local
196 disp_lock_t *lp; local
215 disp_lock_t *lp; local
[all...]
/illumos-gate/usr/src/boot/lib/libstand/
H A Dgets.c44 char *lp; local
46 for (lp = buf; ; ) {
53 *lp = '\0';
58 if (lp > buf) {
59 lp--;
69 for (p = buf; p < lp; ++p)
75 lp = buf;
79 if ((n < 1) || ((lp - buf) < n - 1)) {
80 *lp++ = c;
/illumos-gate/usr/src/uts/common/io/
H A Dwinlockio.c306 struct seglock *lp; /* associated lock context */ member in struct:segproc
334 #define LOCK(lp) (*((lp)->lockptr))
375 * All fields in list of SegProc (lp->clients)
385 * But before this pointer is used to access any fields (other than the 'lp')
386 * lp->mutex must be held.
405 #define seglock_findclient(lp) seglock_find_specific((lp), CURPROC_ID)
406 #define seglock_allocclient(lp) seglock_alloc_specific((lp), CURPROC_I
587 SegLock *lp; local
660 SegLock *lp = seglock_findlock((uint_t)off); /* returns w/ mutex held */ local
708 SegLock *lp = sdp->lp; local
751 SegLock *lp = sdp->lp; local
788 SegLock *lp = sdp->lp; local
833 SegLock *lp; local
855 SegLock *lp; local
878 SegLock *lp; local
928 seglock_destroylock(SegLock *lp) argument
998 seglock_find_specific(SegLock *lp, void *tag) argument
1014 seglock_alloc_specific(SegLock *lp, void *tag) argument
1043 seglock_deleteclient(SegLock *lp, SegProc *sdp) argument
1074 garbage_collect_lock(SegLock *lp, SegProc *sdp) argument
1106 struct seglock *lp; local
1180 struct seglock *lp; local
1216 SegLock *lp; local
1256 SegLock *lp; local
1293 seglock_lockfault(devmap_cookie_t dhp, SegProc *sdp, SegLock *lp, uint_t rw) argument
1443 give_mapping(SegLock *lp, SegProc *sdp, uint_t rw) argument
1506 lock_giveup(SegLock *lp, int trash) argument
1581 SegLock *lp, *lpnext; local
1606 SegLock *lp; local
[all...]
/illumos-gate/usr/src/lib/libgen/common/
H A Dreg_step.c216 advance(char *lp, char *ep) argument
222 start = lp;
223 ret = _advance(lp, ++ep);
229 _advance(char *lp, char *ep) argument
245 if (*ep++ == *lp++)
252 if ((n = Popwchar(lp, cl)) <= 0 || c != cl)
254 lp += n;
261 if ((n = Popwchar(lp, cl)) > 0) {
262 lp += n;
265 lp
608 char *lp; local
[all...]
/illumos-gate/usr/src/cmd/sendmail/db/log/
H A Dlog_put.c79 LOG *lp; local
83 lp = dblp->lp;
91 lsn->file = lp->lsn.file;
92 lsn->offset = lp->lsn.offset;
97 if (lp->lsn.offset + sizeof(HDR) + dbt->size > lp->persist.lg_max) {
99 sizeof(LOGP) + dbt->size > lp->persist.lg_max) {
113 lastoff = lp->lsn.offset;
116 ++lp
208 LOG *lp; local
264 LOG *lp; local
361 LOG *lp; local
420 LOG *lp; local
[all...]
/illumos-gate/usr/src/cmd/lp/
H A DMakefile29 include ./Makefile.lp
50 $(ROOTVAR)/lp \
51 $(ROOTVAR)/lp/logs \
52 $(ROOTVARSP)/lp \
53 $(ROOTVARSP)/lp/admins \
54 $(ROOTVARSP)/lp/requests \
55 $(ROOTVARSP)/lp/system
57 SYMDIR1 = $(ROOTVARSP)/lp/admins/lp
58 SYMDIR2 = $(ROOTVARSP)/lp/bi
[all...]
/illumos-gate/usr/src/cmd/ypcmd/mknetid/
H A Dgetname.c47 static char *lp; local
68 lp = line;
69 return (&lp);
94 register char *lp; local
97 lp = *linep;
99 c = *lp++;
102 *linep = lp - 1;
108 c = *lp++;
110 lp--;
114 *lp
[all...]

Completed in 91 milliseconds

1234567891011>>