Home
last modified time | relevance | path

Searched refs:wp (Results 1 – 25 of 161) sorted by relevance

1234567

/titanic_51/usr/src/lib/libadm/common/
H A Dputtext.c50 wchar_t *wstr, *wp; in puttext() local
76 wp = wstr; in puttext()
78 if (*wp == L'!') { in puttext()
79 wp++; in puttext()
84 while (iswspace(*wp)) in puttext()
85 ++wp; /* eat leading white space */ in puttext()
92 lastword = wp; in puttext()
96 if (*wp == L'\n') { in puttext()
100 wp++; in puttext()
103 wlen = wcwidth(*wp); in puttext()
[all...]
/titanic_51/usr/src/lib/libcurses/screen/
H A Dmbaddch.c45 chtype *wcp, *ep, *wp, wc; in _mbclrch() local
50 wp = wcp + x; in _mbclrch()
53 if (ISCBIT(*wp)) { in _mbclrch()
54 for (; wp >= wcp; --wp) in _mbclrch()
55 if (!ISCBIT(*wp)) in _mbclrch()
57 if (wp < wcp) in _mbclrch()
60 wc = RBYTE(*wp); in _mbclrch()
61 ep = wp + _curs_scrwidth[TYPE(wc)]; in _mbclrch()
67 if ((x = (int)(wp in _mbclrch()
93 chtype *wp, *wcp, *ecp, wc; _mbvalid() local
[all...]
H A Dmbinsshift.c46 chtype *wcp, *wp, *ep; in _mbinsshift() local
57 wp = wcp + maxx - 1; in _mbinsshift()
58 if (ISMBIT(*wp)) { in _mbinsshift()
61 for (; wp >= wcp; --wp) in _mbinsshift()
62 if (!ISCBIT(*wp)) in _mbinsshift()
64 if (wp < wcp) in _mbinsshift()
66 rb = RBYTE(*wp); in _mbinsshift()
67 if ((wp + _curs_scrwidth[TYPE(rb)]) > (wcp + maxx)) in _mbinsshift()
69 maxx = (int)(wp in _mbinsshift()
[all...]
H A Dmbmove.c47 chtype *wcp, *wp, *ep; in wmbmove() local
54 wp = wcp + x; in wmbmove()
57 /* make wp points to the start of a character */ in wmbmove()
58 if (ISCBIT(*wp)) { in wmbmove()
59 for (; wp >= wcp; --wp) in wmbmove()
60 if (!ISCBIT(*wp)) in wmbmove()
62 if (wp < wcp) { in wmbmove()
63 wp = wcp+x+1; in wmbmove()
64 for (; wp < e in wmbmove()
[all...]
H A Dmbinch.c47 chtype *wp, *ep, wc; in wmbinch() local
56 wp = win->_y[win->_cury] + win->_curx; in wmbinch()
57 wc = RBYTE(*wp); in wmbinch()
58 ep = wp + _curs_scrwidth[TYPE(wc & 0377)]; in wmbinch()
60 for (; wp < ep; ++wp) { in wmbinch()
61 if ((wc = RBYTE(*wp)) == MBIT) in wmbinch()
65 if ((wc = LBYTE(*wp)|MBIT) == MBIT) in wmbinch()
/titanic_51/usr/src/contrib/ast/src/lib/libcmd/
H A Dwc.c74 static void printout(register Wc_t *wp, register char *name,register int mode) in printout() argument
77 sfprintf(sfstdout," %7I*d",sizeof(wp->lines),wp->lines); in printout()
79 sfprintf(sfstdout," %7I*d",sizeof(wp->words),wp->words); in printout()
81 sfprintf(sfstdout," %7I*d",sizeof(wp->chars),wp->chars); in printout()
83 sfprintf(sfstdout," %7I*d",sizeof(wp->chars),wp->longest); in printout()
94 register Wc_t *wp; in b_wc() local
[all...]
H A Dwclib.c64 Wc_t* wp; in wc_init() local
66 if (!(wp = (Wc_t*)stakalloc(sizeof(Wc_t)))) in wc_init()
69 wp->mb = 0; in wc_init()
72 wp->mb = 1; in wc_init()
75 wp->mb = -1; in wc_init()
78 wp->type[n] = (w && isspace(n)) ? WC_SP : 0; in wc_init()
79 wp->type['\n'] = WC_SP|WC_NL; in wc_init()
80 if ((mode & (WC_MBYTE|WC_WORDS)) && wp->mb > 0) in wc_init()
84 wp->type[0x80+n] |= WC_MB; in wc_init()
86 wp in wc_init()
165 wc_count(Wc_t * wp,Sfio_t * fd,const char * file) wc_count() argument
[all...]
H A Drev.c64 register wchar_t *wp, *xp; in rev_char() local
69 wp = 0; in rev_char()
77 if (!(wp = newof(wp, wchar_t, w, 0))) in rev_char()
83 xp = wp; in rev_char()
87 while (xp > wp) in rev_char()
92 if (wp) in rev_char()
93 free(wp); in rev_char()
97 if (wp) in rev_char()
98 free(wp); in rev_char()
[all...]
/titanic_51/usr/src/lib/libcmd/common/
H A Dwc.c74 static void printout(register Wc_t *wp, register char *name,register int mode) in printout() argument
77 sfprintf(sfstdout," %7I*d",sizeof(wp->lines),wp->lines); in printout()
79 sfprintf(sfstdout," %7I*d",sizeof(wp->words),wp->words); in printout()
81 sfprintf(sfstdout," %7I*d",sizeof(wp->chars),wp->chars); in printout()
83 sfprintf(sfstdout," %7I*d",sizeof(wp->chars),wp->longest); in printout()
94 register Wc_t *wp; in b_wc() local
149 if (!(wp = wc_init(mode))) in b_wc()
168 wp->chars = statb.st_size - lseek(sffileno(fp),0L,1); in b_wc()
172 wc_count(wp, fp, cp); in b_wc()
175 tchars += wp->chars; in b_wc()
[all …]
H A Dwclib.c61 Wc_t* wp; in wc_init() local
63 if (!(wp = (Wc_t*)stakalloc(sizeof(Wc_t)))) in wc_init()
66 wp->mb = 0; in wc_init()
69 wp->mb = 1; in wc_init()
72 wp->mb = -1; in wc_init()
75 wp->type[n] = (w && isspace(n)) ? WC_SP : 0; in wc_init()
76 wp->type['\n'] = WC_SP|WC_NL; in wc_init()
77 if ((mode & (WC_MBYTE|WC_WORDS)) && wp->mb > 0) in wc_init()
81 wp->type[0x80+n] |= WC_MB; in wc_init()
83 wp->type[0xc0+n] |= WC_MB+1; in wc_init()
[all …]
/titanic_51/usr/src/lib/fm/topo/libtopo/common/
H A Dtopo_snap.c500 topo_walk_t *wp; in topo_walk_init() local
512 if ((wp = topo_node_walk_init(thp, NULL, tp->tt_root, in topo_walk_init()
516 return (wp); in topo_walk_init()
525 step_child(tnode_t *cnp, topo_walk_t *wp, int flag, int bottomup) in step_child() argument
533 topo_dprintf(wp->tw_thp, TOPO_DBG_WALK, in step_child()
539 topo_dprintf(wp->tw_thp, TOPO_DBG_WALK, in step_child()
544 wp->tw_node = nnp; in step_child()
546 status = topo_walk_bottomup(wp, flag); in step_child()
548 status = topo_walk_step(wp, flag); in step_child()
554 step_sibling(tnode_t *cnp, topo_walk_t *wp, in argument
583 topo_walk_byid(topo_walk_t * wp,const char * name,topo_instance_t inst) topo_walk_byid() argument
606 topo_walk_bysibling(topo_walk_t * wp,const char * name,topo_instance_t inst) topo_walk_bysibling() argument
625 topo_walk_step(topo_walk_t * wp,int flag) topo_walk_step() argument
682 topo_walk_fini(topo_walk_t * wp) topo_walk_fini() argument
693 topo_walk_bottomup(topo_walk_t * wp,int flag) topo_walk_bottomup() argument
[all...]
/titanic_51/usr/src/uts/intel/io/
H A Ddevfm_machdep.c87 walk_init(fm_cmi_walk_t *wp, uint_t chipid, uint_t coreid, uint_t strandid, in walk_init() argument
90 wp->chipid = chipid; in walk_init()
91 wp->coreid = coreid; in walk_init()
92 wp->strandid = strandid; in walk_init()
97 if ((wp->cbfunc = cbfunc) == NULL) { in walk_init()
98 wp->hdls = kmem_alloc(sizeof (cmi_hdl_t) * INIT_HDLS, KM_SLEEP); in walk_init()
99 wp->nhdl_max = INIT_HDLS; in walk_init()
100 wp->nhdl = 0; in walk_init()
105 walk_fini(fm_cmi_walk_t *wp) in walk_fini() argument
107 if (wp in walk_fini()
114 fm_cmi_walk_t *wp = (fm_cmi_walk_t *)arg1; select_cmi_hdl() local
[all...]
/titanic_51/usr/src/lib/libuutil/common/
H A Duu_avl.c307 _avl_walk_init(uu_avl_walk_t *wp, uu_avl_t *ap, uint32_t flags) in _avl_walk_init() argument
314 (void) memset(wp, 0, sizeof (*wp)); in _avl_walk_init()
315 wp->uaw_avl = ap; in _avl_walk_init()
316 wp->uaw_robust = robust; in _avl_walk_init()
317 wp->uaw_dir = direction; in _avl_walk_init()
320 wp->uaw_next_result = avl_first(&ap->ua_tree); in _avl_walk_init()
322 wp->uaw_next_result = avl_last(&ap->ua_tree); in _avl_walk_init()
325 wp->uaw_next = next = &ap->ua_null_walk; in _avl_walk_init()
326 wp in _avl_walk_init()
333 _avl_walk_advance(uu_avl_walk_t * wp,uu_avl_t * ap) _avl_walk_advance() argument
349 _avl_walk_fini(uu_avl_walk_t * wp) _avl_walk_fini() argument
364 uu_avl_walk_t *wp; uu_avl_walk_start() local
382 uu_avl_walk_next(uu_avl_walk_t * wp) uu_avl_walk_next() argument
388 uu_avl_walk_end(uu_avl_walk_t * wp) uu_avl_walk_end() argument
422 uu_avl_walk_t *wp; uu_avl_remove() local
[all...]
H A Duu_list.c400 list_walk_init(uu_list_walk_t *wp, uu_list_t *lp, uint32_t flags) in list_walk_init() argument
407 (void) memset(wp, 0, sizeof (*wp)); in list_walk_init()
408 wp->ulw_list = lp; in list_walk_init()
409 wp->ulw_robust = robust; in list_walk_init()
410 wp->ulw_dir = direction; in list_walk_init()
412 wp->ulw_next_result = lp->ul_null_node.uln_next; in list_walk_init()
414 wp->ulw_next_result = lp->ul_null_node.uln_prev; in list_walk_init()
422 wp->ulw_next = next = &lp->ul_null_walk; in list_walk_init()
423 wp in list_walk_init()
430 list_walk_advance(uu_list_walk_t * wp,uu_list_t * lp) list_walk_advance() argument
445 list_walk_fini(uu_list_walk_t * wp) list_walk_fini() argument
461 uu_list_walk_t *wp; uu_list_walk_start() local
479 uu_list_walk_next(uu_list_walk_t * wp) uu_list_walk_next() argument
491 uu_list_walk_end(uu_list_walk_t * wp) uu_list_walk_end() argument
546 uu_list_walk_t *wp; uu_list_remove() local
[all...]
/titanic_51/usr/src/lib/libc/port/regex/
H A Dwordexp.c100 wordexp(const char *word, wordexp_t *wp, int flags) in wordexp() argument
132 wordfree(wp); in wordexp()
137 * XPG requires that the struct pointed to by wp not be modified in wordexp()
139 * So we work with wptmp, and only copy wptmp to wp if one of the in wordexp()
142 wptmp = *wp; in wordexp()
365 *wp = wptmp; in wordexp()
393 append(wordexp_t *wp, char *str) in append() argument
402 if ((wp->we_wordp + wp->we_wordc) == in append()
403 (wp in append()
422 wordfree(wordexp_t * wp) wordfree() argument
[all...]
/titanic_51/usr/src/ucblib/libcurses/
H A Ddelwin.c35 WINDOW *wp, *np; in delwin() local
46 wp = win->_nextp; in delwin()
47 while (wp != win) { in delwin()
48 np = wp->_nextp; in delwin()
49 (void) delwin(wp); in delwin()
50 wp = np; in delwin()
59 for (wp = win->_nextp; wp->_nextp != win; wp = wp in delwin()
[all...]
/titanic_51/usr/src/uts/common/io/ib/clients/eoib/
H A Deib_rsrc.c393 eib_wqe_pool_t *wp = ss->ei_tx; in eib_rsrc_txwqes_needed() local
397 mutex_enter(&wp->wp_lock); in eib_rsrc_txwqes_needed()
398 if ((wp->wp_status & EIB_TXWQE_SHORT) == 0) { in eib_rsrc_txwqes_needed()
399 wp->wp_status |= EIB_TXWQE_SHORT; in eib_rsrc_txwqes_needed()
400 cv_broadcast(&wp->wp_cv); in eib_rsrc_txwqes_needed()
402 mutex_exit(&wp->wp_lock); in eib_rsrc_txwqes_needed()
431 eib_wqe_pool_t *wp = wqe->qe_pool; in eib_rsrc_rxpool_low() local
440 mutex_enter(&wp->wp_lock); in eib_rsrc_rxpool_low()
442 if (wp->wp_nfree <= EIB_NFREE_RWQES_LOW) { in eib_rsrc_rxpool_low()
443 wp in eib_rsrc_rxpool_low()
851 eib_wqe_pool_t *wp; eib_rsrc_init_wqe_pool() local
894 eib_wqe_pool_t *wp; eib_rsrc_fini_wqe_pool() local
913 eib_rsrc_ok_to_free_pool(eib_t * ss,eib_wqe_pool_t * wp,boolean_t force) eib_rsrc_ok_to_free_pool() argument
966 eib_rsrc_grab_wqes(eib_t * ss,eib_wqe_pool_t * wp,eib_wqe_t ** wqes,uint_t n_req,uint_t * actual,int pri) eib_rsrc_grab_wqes() argument
1040 eib_rsrc_return_wqes(eib_t * ss,eib_wqe_pool_t * wp,eib_wqe_t ** wqes,uint_t n_wqes) eib_rsrc_return_wqes() argument
1102 eib_wqe_pool_t *wp = ss->ei_tx; eib_rb_rsrc_setup_txbufs() local
[all...]
/titanic_51/usr/src/uts/sun4u/starfire/io/
H A Didn_smr.c965 struct slabwaiter *wp; in smr_slabwaiter_init() local
974 wp = idn.slabwaiter; in smr_slabwaiter_init()
975 for (i = 0; i < MAX_DOMAINS; wp++, i++) { in smr_slabwaiter_init()
976 wp->w_closed = 0; in smr_slabwaiter_init()
977 mutex_init(&wp->w_mutex, NULL, MUTEX_DEFAULT, NULL); in smr_slabwaiter_init()
978 cv_init(&wp->w_cv, NULL, CV_DEFAULT, NULL); in smr_slabwaiter_init()
988 struct slabwaiter *wp; in smr_slabwaiter_deinit() local
990 if ((wp = idn.slabwaiter) == NULL) in smr_slabwaiter_deinit()
993 for (i = 0; i < MAX_DOMAINS; wp++, i++) { in smr_slabwaiter_deinit()
994 ASSERT(wp in smr_slabwaiter_deinit()
1008 struct slabwaiter *wp; smr_slabwaiter_open() local
1028 struct slabwaiter *wp; smr_slabwaiter_close() local
1084 struct slabwaiter *wp; smr_slabwaiter_register() local
1144 struct slabwaiter *wp; smr_slabwaiter_unregister() local
1250 struct slabwaiter *wp; smr_slaballoc_wait() local
1334 struct slabwaiter *wp; smr_slaballoc_put() local
[all...]
/titanic_51/usr/src/cmd/spell/
H A Dhashlook.c45 #define fetch(wp, bp)\ argument
46 (((((long)wp[0]<<B)|wp[1])<<(B-bp))|(wp[2]>>bp))
48 #define fetch(wp, bp) ((wp[0] << (B - bp)) | (wp[1] >> bp)) argument
57 unsigned *wp; in hashlook() local
63 wp = &table[hindex[t]]; in hashlook()
71 * bp -= decode((fetch(wp, b in hashlook()
[all...]
H A Dspellin.c46 unsigned wp; /* word pointer */ variable
54 while (wp < ND - 1) { in append()
55 table[wp] |= w1>>(B-bp); in append()
63 wp++; in append()
117 wp++; in main()
120 hindex[++u] = wp; in main()
147 wp++; in main()
149 hindex[u] = wp; in main()
152 (void) fwrite((char *)table, sizeof (*table), wp, stdout); in main()
155 argv[0], count, ignore, extra, wp); in main()
[all...]
/titanic_51/usr/src/cmd/mdb/common/kmdb/
H A Dkmdb_dpi.c397 kmdb_dpi_wapt_validate(kmdb_wapt_t *wp) in kmdb_dpi_wapt_validate() argument
399 if (mdb.m_dpi->dpo_wapt_validate(wp) < 0) in kmdb_dpi_wapt_validate()
406 kmdb_dpi_wapt_reserve(kmdb_wapt_t *wp) in kmdb_dpi_wapt_reserve() argument
408 if (mdb.m_dpi->dpo_wapt_reserve(wp) < 0) in kmdb_dpi_wapt_reserve()
412 wp->wp_type, (void *)wp->wp_addr, wp->wp_priv); in kmdb_dpi_wapt_reserve()
418 kmdb_dpi_wapt_release(kmdb_wapt_t *wp) in kmdb_dpi_wapt_release() argument
420 mdb.m_dpi->dpo_wapt_release(wp); in kmdb_dpi_wapt_release()
424 kmdb_dpi_wapt_arm(kmdb_wapt_t *wp) in kmdb_dpi_wapt_arm() argument
433 kmdb_dpi_wapt_disarm(kmdb_wapt_t * wp) kmdb_dpi_wapt_disarm() argument
442 kmdb_dpi_wapt_match(kmdb_wapt_t * wp) kmdb_dpi_wapt_match() argument
[all...]
/titanic_51/usr/src/cmd/mdb/intel/kmdb/
H A Dkaif.c86 #define KAIF_WPPRIV2ID(wp) (int)(uintptr_t)((wp)->wp_priv) argument
311 kaif_wapt_validate(kmdb_wapt_t *wp) in kaif_wapt_validate() argument
313 if (wp->wp_type == DPI_WAPT_TYPE_IO) { in kaif_wapt_validate()
314 if (wp->wp_wflags != (MDB_TGT_WA_R | MDB_TGT_WA_W)) { in kaif_wapt_validate()
319 if (wp->wp_size != 1 && wp->wp_size != 2 && wp->wp_size != 4) { in kaif_wapt_validate()
324 } else if (wp->wp_type == DPI_WAPT_TYPE_PHYS) { in kaif_wapt_validate()
330 if (wp in kaif_wapt_validate()
355 kaif_wapt_reserve(kmdb_wapt_t * wp) kaif_wapt_reserve() argument
372 kaif_wapt_release(kmdb_wapt_t * wp) kaif_wapt_release() argument
382 kaif_wapt_arm(kmdb_wapt_t * wp) kaif_wapt_arm() argument
408 kaif_wapt_disarm(kmdb_wapt_t * wp) kaif_wapt_disarm() argument
422 kaif_wapt_match(kmdb_wapt_t * wp) kaif_wapt_match() argument
[all...]
/titanic_51/usr/src/uts/sun4v/os/
H A Dmach_trap.c203 struct rwindow *wp; in ptl1_showtrap() local
210 wp = &rp->ptl1_rwindow[i]; in ptl1_showtrap()
212 if ((sym = kobj_getsymname(wp->rw_in[7], &off)) != NULL) { in ptl1_showtrap()
217 i, wp->rw_in[7]); in ptl1_showtrap()
235 wp->rw_local[0], wp->rw_local[1], wp->rw_local[2], in ptl1_showtrap()
236 wp->rw_local[3], wp->rw_local[4], wp in ptl1_showtrap()
[all...]
/titanic_51/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dnvtree.c696 static void outval(char *name, const char *vname, struct Walk *wp) in outval() argument
698 register Namval_t *np, *nq, *last_table=wp->shp->last_table; in outval()
703 if(!(np=nv_open(vname,wp->root,mode|NV_VARNAME|NV_NOADD|NV_NOASSIGN|NV_NOFAIL|wp->noscope))) in outval()
705 wp->shp->last_table = last_table; in outval()
708 if(!wp->out) in outval()
709 wp->shp->last_table = last_table; in outval()
728 if(!wp->out) in outval()
752 nq = nv_putsub(np,NIL(char*),ARRAY_SCAN|(wp->out?ARRAY_NOCHILD:0)); in outval()
754 if(!wp in outval()
814 genvalue(char ** argv,const char * prefix,int n,struct Walk * wp) genvalue() argument
[all...]
/titanic_51/usr/src/uts/sun4u/os/
H A Dmach_trap.c217 struct rwindow *wp; in ptl1_showtrap() local
224 wp = &rp->ptl1_rwindow[i]; in ptl1_showtrap()
226 if ((sym = kobj_getsymname(wp->rw_in[7], &off)) != NULL) { in ptl1_showtrap()
231 i, wp->rw_in[7]); in ptl1_showtrap()
249 wp->rw_local[0], wp->rw_local[1], wp->rw_local[2], in ptl1_showtrap()
250 wp->rw_local[3], wp->rw_local[4], wp in ptl1_showtrap()
[all...]

1234567