Home
last modified time | relevance | path

Searched refs:pp (Results 1 – 25 of 723) sorted by relevance

12345678910>>...29

/titanic_41/usr/src/uts/common/io/
H A Decpp.c271 static int m1553_map_regs(struct ecppunit *pp);
272 static void m1553_unmap_regs(struct ecppunit *pp);
312 static uchar_t nibble_peripheral2host(struct ecppunit *pp, uint8_t *);
592 struct ecppunit *pp; in ecpp_attach() local
602 if (!(pp = ddi_get_soft_state(ecppsoft_statep, instance))) { in ecpp_attach()
606 mutex_enter(&pp->umutex); in ecpp_attach()
608 pp->suspended = FALSE; in ecpp_attach()
613 (void) ECPP_CONFIG_CHIP(pp); in ecpp_attach()
614 (void) ecpp_reset_port_regs(pp); in ecpp_attach()
616 if (pp->oflag == TRUE) { in ecpp_attach()
[all …]
/titanic_41/usr/src/lib/libpp/common/
H A Dppop.c33 #define REFONE (pp.truncate?(Hash_table_t*)0:pp.symtab)
34 #define REFALL (pp.truncate?pp.dirtab:pp.symtab)
48 r = p == &pp.state ? &pp.ro_state : p == &pp.mode ? &pp.ro_mode : &pp.ro_option; in set()
49 if (!(pp.mode & INIT) || !(pp.in->type == IN_FILE) || !(*r & op)) in set()
51 if (!pp.initialized && !(pp.mode & INIT)) in set()
58 …g((-7, "set(%s)=%s", p == &pp.state ? "state" : p == &pp.mode ? "mode" : "option", p == &pp.state … in set()
119 old_state = pp.state; in ppmapinclude()
131 s = t = strcopy(pp.tmpbuf, error_info.file); in ppmapinclude()
135 if (s <= pp.tmpbuf || *s == '/') in ppmapinclude()
145 file = pp.tmpbuf; in ppmapinclude()
[all …]
H A Dppcall.c66 if ((sym->flags & SYM_PREDICATE) && (pp.state & (CONDITIONAL|WARN)) == (CONDITIONAL|WARN)) in ppcall()
70 if ((pp.state & (COMPATIBILITY|TRANSITION)) != COMPATIBILITY || !mac->arity) in ppcall()
73 pp.mode |= MARKMACRO; in ppcall()
75 if ((pp.state & (COMPATIBILITY|STRICT)) == (COMPATIBILITY|STRICT)) in ppcall()
80 if ((sym->flags & SYM_PREDEFINED) && !(pp.mode & (HOSTED|INACTIVE))) in ppcall()
83 if (*sym->name != '_' && !(pp.state & COMPATIBILITY)) in ppcall()
88 if (pp.state & STRICT) in ppcall()
93 …error(1, "%s: obsolete predefined symbol expanded%s", sym->name, (pp.state & DIRECTIVE) ? "" : " o… in ppcall()
95 else if (!(pp.state & DIRECTIVE) && mac->value && (ppisdig(*mac->value) || *mac->value == '#')) in ppcall()
99 if (pp.macref) in ppcall()
[all …]
H A Dppcontrol.c72 if (a = (struct pplist*)hashget(pp.prdtab, pred)) in assert()
94 hashput(pp.prdtab, pred, a); in assert()
95 if (sym = ppsymref(pp.symtab, pred)) in assert()
105 hashput(pp.prdtab, NiL, p); in assert()
107 if ((pp.state & COMPILE) && pp.truncate) return; in assert()
108 if (sym = ppsymset(pp.symtab, pred)) in assert()
136 pp.state &= ~NOSPACE; in tokop()
138 pp.state |= NOSPACE; in tokop()
141 ppop(op, (flags & TOKOP_DUP) ? strdup(pp.token) : pp.token, n); in tokop()
166 error(2, "%s: invalid macro name", pptokstr(pp.token, 0)); in macsym()
[all …]
H A Dppmisc.c39 …if (!(sym = ppsymget(pp.symtab, name)) && (ref <= REF_NORMAL && pp.macref || ref == REF_CREATE || … in pprefmac()
41 if ((pp.state & COMPILE) && pp.truncate && strlen(name) > pp.truncate) in pprefmac()
42 name[pp.truncate] = 0; in pprefmac()
43 sym = ppsymset(pp.symtab, NiL); in pprefmac()
47 …if (pp.macref) (*pp.macref)(sym, error_info.file, error_info.line, ref == REF_NORMAL && (pp.state … in pprefmac()
51 if (!(pp.state & COMPATIBILITY)) in pprefmac()
53 …if (ref == REF_IF && sym && (sym->flags & SYM_PREDEFINED) && *name != '_' && !(pp.mode & (HOSTED|I… in pprefmac()
55 if (pp.state & STRICT) in pprefmac()
86 if (a = (struct pplist*)hashget(pp.prdtab, pred)) in ppassert()
108 hashput(pp.prdtab, pred, a); in ppassert()
[all …]
H A Dppbuiltin.c55 number = pp.state; in ppbuiltin()
56 pp.state |= DISABLE|FILEPOP|NOSPACE; in ppbuiltin()
57 token = pp.token; in ppbuiltin()
58 p = pp.token = pp.tmpbuf; in ppbuiltin()
59 *(a = pp.args) = 0; in ppbuiltin()
65 switch (op = (int)hashget(pp.strtab, p)) in ppbuiltin()
69 p = pp.token = pp.valbuf; in ppbuiltin()
75 pp.state &= ~NOSPACE; in ppbuiltin()
86 if (op) pp.token = pp.toknxt; in ppbuiltin()
89 *pp.token = 0; in ppbuiltin()
[all …]
H A Dppinput.c102 if (pp.option & NATIVE) in pppush()
106 cur->hide = ++pp.hide; in pppush()
109 if ((pp.mode & (DUMP|INIT)) == DUMP) in pppush()
112 if (pp.lastindex) pp.lastindex->next = cur->index; in pppush()
113 else pp.firstindex = cur->index; in pppush()
114 pp.lastindex = cur->index; in pppush()
115 cur->index->file = pp.original; in pppush()
121 if (!(pp.mode & DUMP)) in pppush()
123 if (!cur->prev->prev && !(pp.state & COMPILE) && isatty(0)) in pppush()
126 if (pp.member) in pppush()
[all …]
H A Dppexpr.c51 state = (pp.state & ~DISABLE); in exists()
53 pptoken = pp.token; in exists()
54 pp.token = file; in exists()
55 pp.state |= HEADER|PASSEOF; in exists()
57 pp.state &= ~HEADER; in exists()
58 pp.token = pptoken; in exists()
75 if (pathaccess(pp.path, pp.token, file, NiL, 0)) in exists()
77 pathcanon(pp.path, 0); in exists()
78 message((-2, "%s: %s found", pred, pp.path)); in exists()
85 strcpy(pp.path, file); in exists()
[all …]
H A Dpplex.c51 #define CACHE() do{CACHEINX();CACHEOUTX();st=pp.state;if(!pp.hidden)spliced=0;}while(0)
52 #define CACHEIN() do{CACHEINX();st=pp.state;if(!pp.hidden)spliced=0;}while(0)
53 #define CACHEINX() do{ip=pp.in->nextchr;}while(0)
54 #define CACHEOUT() do{CACHEOUTX();st=pp.state;if(!pp.hidden)spliced=0;}while(0)
55 #define CACHEOUTX() do{tp=op=pp.outp;xp=pp.oute;if(sp)sp=op;}while(0)
58 #define LASTOUT() ((op>pp.outbuf)?*(op-1):pp.lastout)
62 #define SYNC() do{SYNCINX();SYNCOUTX();pp.state=st;}while(0)
63 #define SYNCIN() do{SYNCINX();pp.state=st;}while(0)
64 #define SYNCINX() do{pp.in->nextchr=ip;}while(0)
65 #define SYNCOUT() do{SYNCOUTX();pp.state=st;}while(0)
[all …]
/titanic_41/usr/src/cmd/csh/
H A Dsh.proc.c51 struct process *pp; in pchild() local
77 for (pp = proclist.p_next; pp != PNULL; pp = pp->p_next) in pchild()
78 if (pid == pp->p_pid) in pchild()
84 pp->p_flags &= ~(PRUNNING|PSTOPPED|PREPORTED); in pchild()
86 pp->p_flags |= PSTOPPED; in pchild()
87 pp->p_reason = w.w_stopsig; in pchild()
89 if (pp->p_flags & (PTIME|PPTIME) || adrof(S_time /* "time" */)) in pchild()
90 (void) gettimeofday(&pp->p_etime, (struct timezone *)0); in pchild()
91 pp->p_rusage = ru; in pchild()
94 pp->p_flags |= PINTERRUPTED; in pchild()
[all …]
/titanic_41/usr/src/lib/scsi/libses/common/
H A Dses_snap.c32 ses_snap_page_t *pp; in ses_snap_find_page() local
34 for (pp = sp->ss_pages; pp != NULL; pp = pp->ssp_next) in ses_snap_find_page()
35 if (pp->ssp_num == page && pp->ssp_control == ctl && in ses_snap_find_page()
36 (pp->ssp_len > 0 || pp->ssp_control)) in ses_snap_find_page()
37 return (pp); in ses_snap_find_page()
43 grow_snap_page(ses_snap_page_t *pp, size_t min) in grow_snap_page() argument
47 if (min == 0 || min < pp->ssp_alloc) in grow_snap_page()
48 min = pp->ssp_alloc * 2; in grow_snap_page()
50 if ((newbuf = ses_realloc(pp->ssp_page, min)) == NULL) in grow_snap_page()
53 pp->ssp_page = newbuf; in grow_snap_page()
[all …]
/titanic_41/usr/src/uts/common/vm/
H A Dpage_lock.c90 #define PAGE_IO_MUTEX(pp) \ argument
91 &pio_mutex[(((uintptr_t)pp) >> PIO_SHIFT) & (PIO_TABLE_SIZE - 1)]
100 #define PAGE_SE_MUTEX(pp) &pse_mutex[ \ argument
101 ((((uintptr_t)(pp) >> pse_shift) ^ ((uintptr_t)(pp))) >> 7) & \
243 page_lock(page_t *pp, se_t se, kmutex_t *lock, reclaim_t reclaim) in page_lock() argument
245 return (page_lock_es(pp, se, lock, reclaim, 0)); in page_lock()
294 page_lock_es(page_t *pp, se_t se, kmutex_t *lock, reclaim_t reclaim, int es) in page_lock_es() argument
297 kmutex_t *pse = PAGE_SE_MUTEX(pp); in page_lock_es()
313 if (PP_RETIRED(pp) && !(es & SE_RETIRED)) { in page_lock_es()
319 if (se == SE_SHARED && es == 1 && pp->p_selock == 0) { in page_lock_es()
[all …]
H A Dvm_page.c273 #define PAGE_HASH_SEARCH(index, pp, vp, off) { \ argument
276 for ((pp) = page_hash[(index)]; (pp); (pp) = (pp)->p_hash, mylen++) { \
277 if ((pp)->p_vnode == (vp) && (pp)->p_offset == (off)) \
280 if ((pp) != NULL) \
294 #define PAGE_HASH_SEARCH(index, pp, vp, off) { \ argument
295 for ((pp) = page_hash[(index)]; (pp); (pp) = (pp)->p_hash) { \
296 if ((pp)->p_vnode == (vp) && (pp)->p_offset == (off)) \
565 page_t *pp, in add_physmem() argument
575 "add_physmem:pp %p num %lu", pp, num); in add_physmem()
593 for (; num; pp++, pnum++, num--) { in add_physmem()
[all …]
H A Dpage_retire.c358 #define PR_TYPES(pp) { \ argument
360 if (pp->p_vnode) \
362 if (PP_ISKAS(pp)) \
364 if (PP_ISFREE(pp)) \
366 if (hat_ismod(pp)) \
368 if (pp->p_toxic & PR_UE) \
370 if (pp->p_toxic & PR_MCE) \
462 page_settoxic(page_t *pp, uchar_t bits) in page_settoxic() argument
464 atomic_or_8(&pp->p_toxic, bits); in page_settoxic()
475 page_clrtoxic(page_t *pp, uchar_t bits) in page_clrtoxic() argument
[all …]
H A Dvm_pvn.c103 page_t *pp; in pvn_read_kluster() local
167 if ((pp = page_create_va(vp, off - deltab, in pvn_read_kluster()
174 page_add(&plist, pp); in pvn_read_kluster()
187 if ((pp = page_create_va(vp, off + deltaf, in pvn_read_kluster()
195 page_add(&plist, pp); in pvn_read_kluster()
237 page_t *pp, in pvn_write_kluster() argument
250 off = pp->p_offset; in pvn_write_kluster()
260 return (pp); in pvn_write_kluster()
268 dirty = pp; in pvn_write_kluster()
275 pp = page_lookup_nowait(vp, off - deltab, se); in pvn_write_kluster()
[all …]
H A Dvm_pagelist.c220 #define PP_CTR_LOCK_INDX(pp) \ argument
221 (((pp)->p_pagenum >> \
242 static int page_trylock_cons(page_t *pp, se_t se);
807 page_ctr_add_internal(int mnode, int mtype, page_t *pp, int flags) in page_ctr_add_internal() argument
814 ASSERT(mnode == PP_2_MEM_NODE(pp)); in page_ctr_add_internal()
815 ASSERT(mtype == PP_2_MTYPE(pp)); in page_ctr_add_internal()
817 ASSERT(pp->p_szc < mmu_page_sizes); in page_ctr_add_internal()
819 PLCNT_INCR(pp, mnode, mtype, pp->p_szc, flags); in page_ctr_add_internal()
822 if (pp->p_szc >= mmu_page_sizes - 1) { in page_ctr_add_internal()
826 r = pp->p_szc + 1; in page_ctr_add_internal()
[all …]
/titanic_41/usr/src/cmd/lp/lib/printers/
H A Dfreeprinter.c45 void freeprinter (pp) in freeprinter() argument
46 PRINTER *pp; in freeprinter()
48 if (!pp)
51 syslog(LOG_DEBUG, "freeprinter(%s)", pp->name ? pp->name : "");
52 if (pp->name)
53 Free (pp->name);
54 if (pp->char_sets)
55 freelist (pp->char_sets);
56 if (pp->input_types)
57 freelist (pp->input_types);
[all …]
/titanic_41/usr/src/uts/common/io/usb/clients/usbser/
H A Dusbser.c477 usbser_port_t *pp; in usbser_open() local
510 pp = &usp->us_ports[port_num]; in usbser_open()
513 rval = usbser_open_setup(rq, pp, minor, flag, cr); in usbser_open()
515 USB_DPRINTF_L4(DPRINT_OPEN, pp->port_lh, "usbser_open: rval=%d", rval); in usbser_open()
536 usbser_port_t *pp = (usbser_port_t *)rq->q_ptr; in usbser_close() local
539 if (pp == NULL) { in usbser_close()
544 online = usbser_dev_is_online(pp->port_usp); in usbser_close()
549 mutex_enter(&pp->port_mutex); in usbser_close()
550 pp->port_state = USBSER_PORT_CLOSING; in usbser_close()
554 usbser_close_drain(pp); in usbser_close()
[all …]
/titanic_41/usr/src/cmd/sendmail/aux/
H A Drfc2047.c105 char *p, *q, *pp; in decode_rfc2047() local
151 for (pp = startofmime; *pp && *pp != '?'; pp++) in decode_rfc2047()
154 if (!*pp) in decode_rfc2047()
157 strncpy(charset, startofmime, pp - startofmime); in decode_rfc2047()
158 charset[pp - startofmime] = '\0'; in decode_rfc2047()
160 startofmime = pp + 1; in decode_rfc2047()
184 for (pp = startofmime; *pp && *(pp+1); pp++) { in decode_rfc2047()
185 if (is_lws(*pp)) in decode_rfc2047()
187 else if (*pp == '?' && pp[1] == '=') { in decode_rfc2047()
188 endofmime = pp; in decode_rfc2047()
[all …]
/titanic_41/usr/src/uts/sun4u/vm/
H A Dmach_kpm.c80 hat_kpm_mapin(struct page *pp, struct kpme *kpme) in hat_kpm_mapin() argument
90 if (pp == NULL || PAGE_LOCKED(pp) == 0) { in hat_kpm_mapin()
95 pml = sfmmu_mlist_enter(pp); in hat_kpm_mapin()
96 ASSERT(pp->p_kpmref >= 0); in hat_kpm_mapin()
98 vaddr = (pp->p_kpmref == 0) ? in hat_kpm_mapin()
99 sfmmu_kpm_mapin(pp) : hat_kpm_page2va(pp, 1); in hat_kpm_mapin()
106 if ((sfmmu_kpme_lookup(kpme, pp)) == 0) in hat_kpm_mapin()
107 sfmmu_kpme_add(kpme, pp); in hat_kpm_mapin()
109 ASSERT(pp->p_kpmref > 0); in hat_kpm_mapin()
112 pp->p_kpmref++; in hat_kpm_mapin()
[all …]
/titanic_41/usr/src/uts/common/sys/
H A Decppvar.h54 #define ECPP_MAP_REGS(pp) (pp)->hw->map_regs(pp) argument
55 #define ECPP_UNMAP_REGS(pp) (pp)->hw->unmap_regs(pp) argument
56 #define ECPP_CONFIG_CHIP(pp) (pp)->hw->config_chip(pp) argument
57 #define ECPP_CONFIG_MODE(pp) (pp)->hw->config_mode(pp) argument
58 #define ECPP_MASK_INTR(pp) (pp)->hw->mask_intr(pp) argument
59 #define ECPP_UNMASK_INTR(pp) (pp)->hw->unmask_intr(pp) argument
60 #define ECPP_DMA_START(pp) (pp)->hw->dma_start(pp) argument
61 #define ECPP_DMA_STOP(pp, cnt) (pp)->hw->dma_stop(pp, cnt) argument
62 #define ECPP_DMA_GETCNT(pp) (pp)->hw->dma_getcnt(pp) argument
412 #define DSR_READ(pp) PP_GETB((pp)->i_handle, &(pp)->i_reg->dsr) argument
[all …]
/titanic_41/usr/src/uts/i86pc/vm/
H A Dhment.c111 #define MLIST_MUTEX(pp) \ argument
112 &mlist_lock[((pp)->p_pagenum + ((pp)->p_pagenum >> 9)) & \
282 x86_hm_held(page_t *pp) in x86_hm_held() argument
284 ASSERT(pp != NULL); in x86_hm_held()
287 return (MUTEX_HELD(MLIST_MUTEX(pp))); in x86_hm_held()
291 x86_hm_enter(page_t *pp) in x86_hm_enter() argument
293 ASSERT(pp != NULL); in x86_hm_enter()
295 mutex_enter(MLIST_MUTEX(pp)); in x86_hm_enter()
299 x86_hm_exit(page_t *pp) in x86_hm_exit() argument
301 ASSERT(pp != NULL); in x86_hm_exit()
[all …]
/titanic_41/usr/src/lib/libshell/common/sh/
H A Dpath.c285 register Pathcomp_t *pp= (Pathcomp_t*)data; in free_bltin() local
286 if(pp->flags&PATH_STD_DIR) in free_bltin()
289 if(strcmp(pp->name,"/bin")==0 || memcmp(pp->name,np->nvname,pp->len) || np->nvname[pp->len]!='/') in free_bltin()
292 stakputs(np->nvname+pp->len+1); in free_bltin()
298 if((void*)np->nvenv==pp->bltin_lib) in free_bltin()
307 register Pathcomp_t *pp=first, *old=0, *ppnext; in path_delete() local
308 while(pp) in path_delete()
310 ppnext = pp->next; in path_delete()
311 if(--pp->refcount<=0) in path_delete()
313 if(pp->lib) in path_delete()
[all …]
/titanic_41/usr/src/uts/common/sys/usb/clients/usbser/
H A Dusbser_var.h235 #define USBSER_PORT_ACCESS_OK(pp) ((pp)->port_state == USBSER_PORT_OPEN) argument
240 #define USBSER_PORT_IS_BUSY(pp) ((pp)->port_act != 0) argument
243 #define USBSER_PORT_IS_BUSY_NON_RX(pp) \ argument
244 (((pp)->port_act & (USBSER_ACT_DELAY | USBSER_ACT_CTL | \
250 #define USBSER_IS_OPENING(pp) \ argument
251 (((pp)->port_state == USBSER_PORT_OPENING_TTY) || \
252 ((pp)->port_state == USBSER_PORT_OPENING_OUT))
258 #define USBSER_NO_OTHER_OPEN(pp, minor) \ argument
260 ((pp)->port_state == USBSER_PORT_OPENING_OUT)) || \
261 (!((minor) & OUTLINE) && ((pp)->port_state == USBSER_PORT_OPENING_TTY)))
[all …]
/titanic_41/usr/src/uts/common/os/
H A Dprocset.c281 procinset(proc_t *pp, procset_t *psp) in procinset() argument
289 ASSERT(MUTEX_HELD(&pp->p_lock)); in procinset()
294 if (pp == ttoproc(curthread)) in procinset()
300 if (pp->p_pid == psp->p_lid) in procinset()
305 if (pp->p_ppid == psp->p_lid) in procinset()
310 if (pp->p_pgrp == psp->p_lid) in procinset()
315 mutex_enter(&pp->p_splock); in procinset()
316 if (pp->p_sessp->s_sid == psp->p_lid) in procinset()
318 mutex_exit(&pp->p_splock); in procinset()
322 tp = proctot(pp); in procinset()
[all …]

12345678910>>...29