Home
last modified time | relevance | path

Searched refs:lp (Results 1 – 25 of 561) sorted by relevance

12345678910>>...23

/titanic_50/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) &&\ argument
117 ((lp->lexd.lex_match[lp->lexd.level++]=lp->lexd.lastc),\
118 lp->lexd.lastc=(((s)<<CHAR_BIT)|(c))))
119 #define oldmode(lp) (lp->lexd.lastc>>CHAR_BIT) argument
120 #define endchar(lp) (lp->lexd.lastc&0xff) argument
121 #define setchar(lp,c) (lp->lexd.lastc = ((lp->lexd.lastc&~0xff)|(c))) argument
122 #define poplevel(lp) (lp->lexd.lastc=lp->lexd.lex_match[--lp->lexd.level]) argument
139 static void refvar(Lex_t *lp, int type) in refvar() argument
141 register Shell_t *shp = lp->sh; in refvar()
143 off_t off = (fcseek(0)-(type+1))-(lp->lexd.first?lp->lexd.first:fcfirst()); in refvar()
[all …]
/titanic_50/usr/src/cmd/sgs/tools/common/
H A Dalist.c99 Alist *lp = *lpp; in alist_insert() local
106 if (lp == NULL) { in alist_insert()
117 if ((lp = malloc((size_t)bsize)) == NULL) in alist_insert()
119 lp->al_arritems = init_arritems; in alist_insert()
120 lp->al_nitems = 0; in alist_insert()
121 lp->al_next = ALIST_OFF_DATA; in alist_insert()
122 lp->al_size = size; in alist_insert()
123 *lpp = lp; in alist_insert()
126 ASSERT(size == lp->al_size); in alist_insert()
128 if (lp->al_nitems >= lp->al_arritems) { in alist_insert()
[all …]
/titanic_50/usr/src/uts/common/io/
H A Dwinlockio.c306 struct seglock *lp; /* associated lock context */ member
334 #define LOCK(lp) (*((lp)->lockptr)) argument
405 #define seglock_findclient(lp) seglock_find_specific((lp), CURPROC_ID) argument
406 #define seglock_allocclient(lp) seglock_alloc_specific((lp), CURPROC_ID) argument
587 SegLock *lp; in winlock_devmap() local
597 if ((lp = seglock_findlock((uint_t)off)) == NULL) { in winlock_devmap()
606 ((off ^ (uintptr_t)(lp->lockptr)) & (offset_t)PAGEOFFSET) != 0) { in winlock_devmap()
609 off, (void *)lp->lockptr)); in winlock_devmap()
610 mutex_exit(&lp->mutex); /* mutex held by seglock_findlock */ in winlock_devmap()
616 mutex_exit(&lp->mutex); /* mutex held by seglock_findlock */ in winlock_devmap()
[all …]
H A Diwscons.c136 srinterrupt(iwscn_list_t *lp, boolean_t wait) in srinterrupt() argument
140 while (lp->wl_ref_cnt != 0) { in srinterrupt()
141 strsetrerror(lp->wl_vp, EINTR, 0, NULL); in srinterrupt()
142 strsetwerror(lp->wl_vp, EINTR, 0, NULL); in srinterrupt()
156 iwscn_list_t *lp, **lpp; in srrm() local
165 for (lpp = &iwscn_list; (lp = *lpp) != NULL; lpp = &lp->wl_next) { in srrm()
166 if (lp->wl_vp == vp) in srrm()
169 if (lp != NULL) in srrm()
171 *lpp = lp->wl_next; in srrm()
173 return (lp); in srrm()
[all …]
/titanic_50/usr/src/lib/libuutil/common/
H A Duu_list.c36 #define ELEM_TO_NODE(lp, e) \ argument
37 ((uu_list_node_impl_t *)((uintptr_t)(e) + (lp)->ul_offset))
39 #define NODE_TO_ELEM(lp, n) \ argument
40 ((void *)((uintptr_t)(n) - (lp)->ul_offset))
183 uu_list_t *lp, *next, *prev; in uu_list_create() local
199 lp = uu_zalloc(sizeof (*lp)); in uu_list_create()
200 if (lp == NULL) { in uu_list_create()
205 lp->ul_pool = pp; in uu_list_create()
206 lp->ul_parent_enc = UU_PTR_ENCODE(parent); in uu_list_create()
207 lp->ul_offset = pp->ulp_nodeoffset; in uu_list_create()
[all …]
/titanic_50/usr/src/cmd/fm/fmd/common/
H A Dfmd_log.c111 fmd_log_write(fmd_log_t *lp, const void *buf, size_t n) in fmd_log_write() argument
116 ASSERT(MUTEX_HELD(&lp->log_lock)); in fmd_log_write()
119 if ((len = write(lp->log_fd, buf, resid)) <= 0) in fmd_log_write()
133 fmd_log_write_hdr(fmd_log_t *lp, const char *tag) in fmd_log_write_hdr() argument
144 (void) fmd_conf_getprop(fmd.d_conf, "uuidlen", &lp->log_uuidlen); in fmd_log_write_hdr()
146 lp->log_uuid = fmd_zalloc(lp->log_uuidlen + 1, FMD_SLEEP); in fmd_log_write_hdr()
148 uuid_unparse(uuid, lp->log_uuid); in fmd_log_write_hdr()
158 err |= ea_set_item(&i5, CAT_FMA_UUID, lp->log_uuid, 0); in fmd_log_write_hdr()
179 if ((lp->log_off = lseek64(lp->log_fd, 0, SEEK_END)) == -1L) in fmd_log_write_hdr()
180 fmd_panic("failed to seek log %s", lp->log_name); in fmd_log_write_hdr()
[all …]
/titanic_50/usr/src/uts/common/os/
H A Dmutex.c241 mutex_panic(char *msg, mutex_impl_t *lp) in mutex_panic() argument
246 if (atomic_cas_ptr(&panic_mutex_addr, NULL, lp) == NULL) in mutex_panic()
247 panic_mutex = *lp; in mutex_panic()
250 msg, (void *)lp, (void *)MUTEX_OWNER(&panic_mutex), in mutex_panic()
342 mutex_vector_enter(mutex_impl_t *lp) in mutex_vector_enter() argument
350 volatile mutex_impl_t *vlp = (volatile mutex_impl_t *)lp; in mutex_vector_enter()
356 if (MUTEX_TYPE_SPIN(lp)) { in mutex_vector_enter()
357 lock_set_spl(&lp->m_spin.m_spinlock, lp->m_spin.m_minspl, in mutex_vector_enter()
358 &lp->m_spin.m_oldspl); in mutex_vector_enter()
362 if (!MUTEX_TYPE_ADAPTIVE(lp)) { in mutex_vector_enter()
[all …]
H A Drwlock.c215 rw_panic(char *msg, rwlock_impl_t *lp) in rw_panic() argument
220 if (atomic_cas_ptr(&panic_rwlock_addr, NULL, lp) == NULL) in rw_panic()
221 panic_rwlock = *lp; in rw_panic()
224 msg, (void *)lp, panic_rwlock.rw_wwwh, (void *)curthread); in rw_panic()
237 rwlock_impl_t *lp = (rwlock_impl_t *)rwlp; in rw_destroy() local
239 if (lp->rw_wwwh != 0) { in rw_destroy()
240 if ((lp->rw_wwwh & RW_DOUBLE_LOCK) == RW_DOUBLE_LOCK) in rw_destroy()
241 rw_panic("rw_destroy: lock already destroyed", lp); in rw_destroy()
243 rw_panic("rw_destroy: lock still active", lp); in rw_destroy()
246 lp->rw_wwwh = RW_DOUBLE_LOCK; in rw_destroy()
[all …]
H A Dmem_cage.c291 struct kcage_glist *lp = kcage_current_glist; in kcage_current_pfn() local
295 ASSERT(lp != NULL); in kcage_current_pfn()
297 *pfncur = lp->curr; in kcage_current_pfn()
299 return (lp->decr); in kcage_current_pfn()
320 struct kcage_glist *lp; in kcage_next_range() local
334 for (lp = incage ? kcage_glist : kcage_current_glist; in kcage_next_range()
335 lp != NULL; lp = lp->next) { in kcage_next_range()
340 if ((incage && lp->decr) || (!incage && !lp->decr)) { in kcage_next_range()
341 klo = lp->curr; in kcage_next_range()
342 khi = lp->lim; in kcage_next_range()
[all …]
/titanic_50/usr/src/lib/fm/libfmd_log/common/
H A Dfmd_log.c72 fmd_log_set_errno(fmd_log_t *lp, int err) in fmd_log_set_errno() argument
75 lp->log_errno = EFDL_EXACCT + ea_error(); in fmd_log_set_errno()
77 lp->log_errno = EFDL_BADTAG; in fmd_log_set_errno()
79 lp->log_errno = err; in fmd_log_set_errno()
81 errno = lp->log_errno; in fmd_log_set_errno()
87 fmd_log_dprintf(fmd_log_t *lp, const char *format, ...) in fmd_log_dprintf() argument
91 if (lp->log_flags & FMD_LF_DEBUG) { in fmd_log_dprintf()
105 fmd_log_load_record(fmd_log_t *lp, uint_t iflags, fmd_log_record_t *rp) in fmd_log_load_record() argument
112 ea_clear(&lp->log_ea); in fmd_log_load_record()
113 off = lseek64(lp->log_fd, 0, SEEK_CUR); in fmd_log_load_record()
[all …]
/titanic_50/usr/src/cmd/krb5/kadmin/ktutil/
H A Dktutil_funcs.c54 krb5_kt_list lp, prev; local
57 for (lp = list; lp;) {
58 retval = krb5_kt_free_entry(context, lp->entry);
59 free((char *)lp->entry);
62 prev = lp;
63 lp = lp->next;
78 krb5_kt_list lp, prev; local
81 for (lp = *list, i = 1; lp; prev = lp, lp = lp->next, i++) {
84 *list = lp->next;
86 prev->next = lp->next;
[all …]
/titanic_50/usr/src/lib/libgen/common/
H A Dreg_step.c216 advance(char *lp, char *ep) in advance() argument
222 start = lp; in advance()
223 ret = _advance(lp, ++ep); in advance()
229 _advance(char *lp, char *ep) in _advance() argument
245 if (*ep++ == *lp++) in _advance()
252 if ((n = Popwchar(lp, cl)) <= 0 || c != cl) in _advance()
254 lp += n; in _advance()
261 if ((n = Popwchar(lp, cl)) > 0) { in _advance()
262 lp += n; in _advance()
265 lp++; in _advance()
[all …]
/titanic_50/usr/src/uts/common/io/1394/targets/av1394/
H A Dav1394_list.c47 av1394_list_init(av1394_list_t *lp) in av1394_list_init() argument
49 lp->l_head = lp->l_tail = NULL; in av1394_list_init()
50 lp->l_cnt = 0; in av1394_list_init()
58 av1394_list_head(av1394_list_t *lp) in av1394_list_head() argument
60 return (lp->l_head); in av1394_list_head()
69 av1394_list_put_tail(av1394_list_t *lp, void *item) in av1394_list_put_tail() argument
72 ITEM(item)->i_prev = lp->l_tail; in av1394_list_put_tail()
73 if (lp->l_tail == NULL) { in av1394_list_put_tail()
74 ASSERT(lp->l_head == 0); in av1394_list_put_tail()
75 ASSERT(lp->l_cnt == 0); in av1394_list_put_tail()
[all …]
/titanic_50/usr/src/pkg/manifests/
H A Dprint-lp.mf27 set name=pkg.fmri value=pkg:/print/lp@$(PKGVERS).6
35 dir path=etc/lp group=lp mode=0775 owner=lp
36 dir path=etc/lp/classes group=lp mode=0775 owner=lp
37 dir path=etc/lp/fd group=lp
38 dir path=etc/lp/forms group=lp mode=0775 owner=lp
39 dir path=etc/lp/interfaces group=lp mode=0775 owner=lp
40 dir path=etc/lp/ppd group=lp mode=0775 owner=lp
41 dir path=etc/lp/printers group=lp mode=0775 owner=lp
42 dir path=etc/lp/pwheels group=lp mode=0775 owner=lp
52 dir path=usr/lib/lp group=lp
[all …]
/titanic_50/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->lsn.file;
117 lp->lsn.offset = 0;
120 lp->w_off = 0;
[all …]
/titanic_50/usr/src/uts/common/disp/
H A Ddisp_lock.c58 disp_lock_init(disp_lock_t *lp, char *name) in disp_lock_init() argument
60 DISP_LOCK_INIT(lp); in disp_lock_init()
65 disp_lock_destroy(disp_lock_t *lp) in disp_lock_destroy() argument
67 DISP_LOCK_DESTROY(lp); in disp_lock_destroy()
71 disp_lock_enter_high(disp_lock_t *lp) in disp_lock_enter_high() argument
73 lock_set(lp); in disp_lock_enter_high()
77 disp_lock_exit_high(disp_lock_t *lp) in disp_lock_exit_high() argument
81 ASSERT(DISP_LOCK_HELD(lp)); in disp_lock_exit_high()
82 lock_clear(lp); in disp_lock_exit_high()
86 disp_lock_enter(disp_lock_t *lp) in disp_lock_enter() argument
[all …]
/titanic_50/usr/src/cmd/filesync/
H A Dignore.c109 { struct list *lp; in ignore_check() local
128 for (lp = expr_list; lp; lp = lp->l_next) { in ignore_check()
129 if (gmatch(name, lp->l_value) == 0) in ignore_check()
134 lp->l_value, name); in ignore_check()
174 { struct list *lp; in ignore_expr() local
179 lp = malloc(sizeof (*lp)); in ignore_expr()
180 if (lp == 0) in ignore_expr()
182 lp->l_value = strdup(expr); in ignore_expr()
183 lp->l_next = expr_list; in ignore_expr()
184 expr_list = lp; in ignore_expr()
[all …]
/titanic_50/usr/src/uts/common/io/scsi/adapters/mpt_sas/
H A Dmptsas_hash.c84 refhash_link_t *lp = obj_to_link(hp, op); in refhash_insert() local
87 list_link_init(&lp->rhl_chain_link); in refhash_insert()
88 list_link_init(&lp->rhl_global_link); in refhash_insert()
89 lp->rhl_flags = 0; in refhash_insert()
90 lp->rhl_refcnt = 0; in refhash_insert()
91 list_insert_tail(&hp->rh_buckets[bucket], lp); in refhash_insert()
92 list_insert_tail(&hp->rh_objs, lp); in refhash_insert()
98 refhash_link_t *lp = obj_to_link(hp, op); in refhash_delete() local
102 list_remove(&hp->rh_buckets[bucket], lp); in refhash_delete()
103 list_remove(&hp->rh_objs, lp); in refhash_delete()
[all …]
/titanic_50/usr/src/uts/common/io/1394/targets/scsa1394/
H A Dsbp2_driver.c83 scsa1394_lun_t *lp; in scsa1394_sbp2_attach() local
103 lp = &sp->s_lun[i]; in scsa1394_sbp2_attach()
105 mutex_init(&lp->l_mutex, NULL, MUTEX_DRIVER, in scsa1394_sbp2_attach()
108 lp->l_rmb_orig = -1; in scsa1394_sbp2_attach()
109 lp->l_lun = &tp->t_lun[i]; in scsa1394_sbp2_attach()
110 lp->l_sp = sp; in scsa1394_sbp2_attach()
111 lp->l_lba_size = DEV_BSIZE; in scsa1394_sbp2_attach()
123 scsa1394_lun_t *lp; in scsa1394_sbp2_detach() local
126 lp = &sp->s_lun[i]; in scsa1394_sbp2_detach()
127 if (lp->l_sp != NULL) { in scsa1394_sbp2_detach()
[all …]
/titanic_50/usr/src/lib/libgrubmgmt/common/
H A Dlibgrub_menu.c48 append_line(grub_menu_t *mp, grub_line_t *lp) in append_line() argument
51 mp->gm_start = lp; in append_line()
53 mp->gm_end->gl_next = lp; in append_line()
54 lp->gl_prev = mp->gm_end; in append_line()
56 mp->gm_end = lp; in append_line()
57 lp->gl_line_num = ++mp->gm_line_num; in append_line()
58 lp->gl_entry_num = GRUB_ENTRY_DEFAULT; in append_line()
65 grub_line_t *lp; in process_line() local
67 lp = mp->gm_end; in process_line()
71 while (n-- != 0 && strcmp(lp->gl_cmd, grub_cmd_descs[n].gcd_cmd) != 0) in process_line()
[all …]
/titanic_50/usr/src/grub/grub-0.97/netboot/
H A Dpcnet32.c278 static struct pcnet32_private *lp; variable
408 lp->tx_full = 0; in pcnet32_init_ring()
409 lp->cur_rx = lp->cur_tx = 0; in pcnet32_init_ring()
425 lp->init_block.tlen_rlen = in pcnet32_init_ring()
428 lp->init_block.phys_addr[i] = nic->node_addr[i]; in pcnet32_init_ring()
429 lp->init_block.rx_ring = (u32) virt_to_le32desc(&rx_ring[0]); in pcnet32_init_ring()
430 lp->init_block.tx_ring = (u32) virt_to_le32desc(&tx_ring[0]); in pcnet32_init_ring()
444 lp->a.reset(ioaddr); in pcnet32_reset()
447 lp->a.write_bcr(ioaddr, 20, 2); in pcnet32_reset()
450 val = lp->a.read_bcr(ioaddr, 2) & ~2; in pcnet32_reset()
[all …]
/titanic_50/usr/src/lib/libeti/form/common/
H A Dregex.c152 char *lp, *ep, *curlp; in __advance() local
156 lp = alp; in __advance()
163 if (*ep++ == *lp++) in __advance()
168 return ((intptr_t)lp); in __advance()
178 return ((intptr_t)lp); in __advance()
181 if (*lp++) in __advance()
186 if (*lp == 0) in __advance()
188 lp++; in __advance()
193 return ((intptr_t)lp); in __advance()
207 if (!(lp = (char *)__advance(lp, ep))) in __advance()
[all …]
/titanic_50/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/bin
59 SYMDIR3 = $(ROOTVARSP)/lp/logs
[all …]
/titanic_50/usr/src/head/
H A Dregexp.h72 int advance(const char *lp, const char *ep);
339 advance(const char *lp, const char *ep) in advance() argument
352 if (*ep++ == *lp++) in advance()
358 if (*lp++) in advance()
364 if (*lp == 0) in advance()
370 loc2 = (char *)lp; in advance()
375 c = (unsigned char)*lp++; in advance()
388 c = *lp++; in advance()
397 braslist[*ep++] = (char *)lp; in advance()
402 braelist[*ep++] = (char *)lp; in advance()
[all …]
/titanic_50/usr/src/uts/sparc/v7/sys/
H A Dmutex_impl.h90 #define MUTEX_OWNER(lp) ((kthread_id_t)((lp)->m_owner << PTR24_LSB)) argument
93 #define MUTEX_SET_WAITERS(lp) ((lp)->m_waiters = 1) argument
94 #define MUTEX_HAS_WAITERS(lp) ((lp)->m_waiters != 0) argument
95 #define MUTEX_CLEAR_LOCK_AND_WAITERS(lp) \ argument
96 (lp)->m_waiters = 0, (lp)->m_owner = 0
98 #define MUTEX_SET_TYPE(lp, type) (lp)->m_type = (type) argument
99 #define MUTEX_TYPE_ADAPTIVE(lp) ((lp)->m_type == MUTEX_ADAPTIVE) argument
100 #define MUTEX_TYPE_SPIN(lp) ((lp)->m_type == MUTEX_SPIN) argument
102 #define MUTEX_DESTROY(lp) \ argument
103 (lp)->m_type = 0xdd, LOCK_INIT_HELD(&lp->m_spin.m_dummylock)

12345678910>>...23