Home
last modified time | relevance | path

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

123456

/illumos-gate/usr/src/lib/libadm/common/
H A Dputtext.c76 wp = wstr; in puttext()
79 wp++; in puttext()
100 wp++; in puttext()
115 wp++; in puttext()
119 wp++; in puttext()
134 while ((*++wp == L'\t') || (*wp == '\n')); in puttext()
144 wp += 2; in puttext()
161 if (iswprint(*wp) && iswprint(*(wp + 1))) { in puttext()
217 if (iswprint(*wp) && iswprint(*(wp + 1))) { in puttext()
233 bdg = wdbindf(*wp, *(wp + 1), 1); in puttext()
[all …]
/illumos-gate/usr/src/lib/libcurses/screen/
H A Dmbaddch.c50 wp = wcp + x; in _mbclrch()
54 for (; wp >= wcp; --wp) in _mbclrch()
57 if (wp < wcp) in _mbclrch()
60 wc = RBYTE(*wp); in _mbclrch()
76 for (; wp < ep; ++wp) in _mbclrch()
101 wp = wcp + x; in _mbvalid()
110 for (; wp >= wcp; --wp) in _mbvalid()
113 if (wp < wcp) { in _mbvalid()
114 for (wp = wcp + x + 1; wp < ecp; ++wp) in _mbvalid()
126 for (wp -= 1; wp >= wcp; --wp) in _mbvalid()
[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()
69 maxx = (int)(wp - wcp); in _mbinsshift()
83 for (wp = wcp + maxx - 1; wp >= ep; --wp) in _mbinsshift()
84 *wp = *(wp - len); in _mbinsshift()
[all …]
H A Dmbmove.c47 chtype *wcp, *wp, *ep; in wmbmove() local
54 wp = wcp + x; 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 < ep; ++wp) in wmbmove()
65 if (!ISCBIT(*wp)) in wmbmove()
71 if (wp + _curs_scrwidth[TYPE(*wp)] > ep) 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()
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/
H A Dwclib.c64 Wc_t* wp; in wc_init() local
69 wp->mb = 0; in wc_init()
72 wp->mb = 1; in wc_init()
75 wp->mb = -1; in wc_init()
101 wp->mode = mode; in wc_init()
102 return wp; in wc_init()
187 wp->longest = 0; in wc_count()
188 if (wp->mb < 0 && (wp->mode & (WC_MBYTE|WC_WORDS))) in wc_count()
258 …else if (!wp->mb && !(wp->mode & WC_LONGEST) || wp->mb > 0 && !(wp->mode & (WC_MBYTE|WC_WORDS|WC_L… in wc_count()
518 wp->chars = nchars; in wc_count()
[all …]
H A Dwc.c77 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
175 tchars += wp->chars; in b_wc()
176 twords += wp->words; in b_wc()
177 tlines += wp->lines; in b_wc()
182 wp->lines = tlines; in b_wc()
183 wp->chars = tchars; in b_wc()
[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()
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/
H A Dtopo_snap.c535 topo_walk_t *wp; in topo_walk_init() local
551 return (wp); in topo_walk_init()
579 wp->tw_node = nnp; in step_child()
631 status = wp->tw_cb(wp->tw_mod, nnp, wp->tw_pdata); in topo_walk_byid()
633 status = wp->tw_cb(wp->tw_thp, nnp, wp->tw_pdata); in topo_walk_byid()
682 status = wp->tw_cb(wp->tw_mod, cnp, wp->tw_pdata); in topo_walk_step()
684 status = wp->tw_cb(wp->tw_thp, cnp, wp->tw_pdata); in topo_walk_step()
719 if (wp == NULL) in topo_walk_fini()
724 topo_hdl_free(wp->tw_thp, wp, sizeof (topo_walk_t)); in topo_walk_fini()
733 if (wp == NULL) in topo_walk_bottomup()
[all …]
/illumos-gate/usr/src/uts/intel/io/
H A Ddevfm_machdep.c91 wp->chipid = chipid; in walk_init()
92 wp->coreid = coreid; in walk_init()
101 wp->nhdl = 0; in walk_init()
109 kmem_free(wp->hdls, sizeof (cmi_hdl_t) * wp->nhdl_max); in walk_fini()
117 if (wp->chipid != ANY_ID && wp->chipid != cmi_hdl_chipid(hdl)) in select_cmi_hdl()
119 if (wp->coreid != ANY_ID && wp->coreid != cmi_hdl_coreid(hdl)) in select_cmi_hdl()
121 if (wp->strandid != ANY_ID && wp->strandid != cmi_hdl_strandid(hdl)) in select_cmi_hdl()
133 if (wp->nhdl == wp->nhdl_max) { in select_cmi_hdl()
139 wp->hdls = newarray; in select_cmi_hdl()
140 wp->nhdl_max <<= 1; in select_cmi_hdl()
[all …]
/illumos-gate/usr/src/lib/libuutil/common/
H A Duu_avl.c314 (void) memset(wp, 0, sizeof (*wp)); in _avl_walk_init()
315 wp->uaw_avl = ap; in _avl_walk_init()
342 wp->uaw_next_result = (wp->uaw_dir > 0)? AVL_NEXT(t, np) : in _avl_walk_advance()
352 wp->uaw_next->uaw_prev = wp->uaw_prev; in _avl_walk_fini()
353 wp->uaw_prev->uaw_next = wp->uaw_next; in _avl_walk_fini()
371 wp = uu_zalloc(sizeof (*wp)); in uu_avl_walk_start()
378 return (wp); in uu_avl_walk_start()
384 return (_avl_walk_advance(wp, wp->uaw_avl)); in uu_avl_walk_next()
391 uu_free(wp); in uu_avl_walk_end()
438 for (wp = ap->ua_null_walk.uaw_next; wp != &ap->ua_null_walk; in uu_avl_remove()
[all …]
H A Duu_list.c407 (void) memset(wp, 0, sizeof (*wp)); in list_walk_init()
408 wp->ulw_list = lp; in list_walk_init()
449 wp->ulw_next->ulw_prev = wp->ulw_prev; in list_walk_fini()
450 wp->ulw_prev->ulw_next = wp->ulw_next; in list_walk_fini()
461 uu_list_walk_t *wp; in uu_list_walk_start() local
468 wp = uu_zalloc(sizeof (*wp)); in uu_list_walk_start()
469 if (wp == NULL) { in uu_list_walk_start()
475 return (wp); in uu_list_walk_start()
494 uu_free(wp); in uu_list_walk_end()
562 for (wp = lp->ul_null_walk.ulw_next; wp != &lp->ul_null_walk; in uu_list_remove()
[all …]
/illumos-gate/usr/src/lib/libc/port/regex/
H A Dwordexp.c132 wordfree(wp); in wordexp()
142 wptmp = *wp; in wordexp()
365 *wp = wptmp; in wordexp()
402 if ((wp->we_wordp + wp->we_wordc) == in append()
403 (wp->we_wordv + wp->we_wordn - 1)) { in append()
409 wp->we_wordv = nwp; in append()
410 wp->we_wordp = wp->we_wordv + wp->we_offs; in append()
414 wp->we_wordp[wp->we_wordc++] = cp; in append()
428 for (i = wp->we_offs; i < wp->we_offs + wp->we_wordc; i++) in wordfree()
431 wp->we_wordc = 0; in wordfree()
[all …]
/illumos-gate/usr/src/uts/common/io/ib/clients/eoib/
H A Deib_rsrc.c851 eib_wqe_pool_t *wp; in eib_rsrc_init_wqe_pool() local
865 wp->wp_vaddr = (ib_vaddr_t)(uintptr_t)kmem_zalloc(wp->wp_memsz, in eib_rsrc_init_wqe_pool()
867 wp->wp_ss = ss; in eib_rsrc_init_wqe_pool()
887 *wpp = wp; in eib_rsrc_init_wqe_pool()
898 wp = *wpp; in eib_rsrc_fini_wqe_pool()
904 kmem_free((void *)(uintptr_t)(wp->wp_vaddr), wp->wp_memsz); in eib_rsrc_fini_wqe_pool()
984 if (wp->wp_nfree <= wp->wp_nfree_lwm) in eib_rsrc_grab_wqes()
986 else if ((wp->wp_nfree - n_req) < wp->wp_nfree_lwm) in eib_rsrc_grab_wqes()
987 n_req = wp->wp_nfree - wp->wp_nfree_lwm; in eib_rsrc_grab_wqes()
1109 if (wp == NULL) in eib_rb_rsrc_setup_txbufs()
[all …]
/illumos-gate/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->_nextp) in delwin()
61 wp->_nextp = win->_nextp; in delwin()
/illumos-gate/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()
83 y = wp[0] << (B - bp); in hashlook()
85 y |= (wp[1] >> bp); in hashlook()
99 wp++; in hashlook()
101 if (wp >= tp && (wp > tp||bp < B)) in hashlook()
H A Dspellin.c44 unsigned wp; /* word pointer */ variable
52 while (wp < ND - 1) { in append()
53 table[wp] |= w1>>(B-bp); in append()
61 wp++; in append()
115 wp++; in main()
118 hindex[++u] = wp; in main()
145 wp++; in main()
147 hindex[u] = wp; in main()
150 (void) fwrite((char *)table, sizeof (*table), wp, stdout); in main()
153 argv[0], count, ignore, extra, wp); in main()
[all …]
/illumos-gate/usr/src/cmd/mdb/common/kmdb/
H A Dkmdb_dpi.c406 kmdb_dpi_wapt_reserve(kmdb_wapt_t *wp) in kmdb_dpi_wapt_reserve() argument
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
426 mdb.m_dpi->dpo_wapt_arm(wp); in kmdb_dpi_wapt_arm()
429 (void *)wp->wp_addr, wp->wp_type, wp->wp_priv); in kmdb_dpi_wapt_arm()
433 kmdb_dpi_wapt_disarm(kmdb_wapt_t *wp) in kmdb_dpi_wapt_disarm() argument
435 mdb.m_dpi->dpo_wapt_disarm(wp); in kmdb_dpi_wapt_disarm()
438 (void *)wp->wp_addr, wp->wp_type, wp->wp_priv); in kmdb_dpi_wapt_disarm()
[all …]
/illumos-gate/usr/src/cmd/mdb/intel/kmdb/
H A Dkaif.c87 #define KAIF_WPPRIV2ID(wp) (int)(uintptr_t)((wp)->wp_priv) argument
354 if (wp->wp_size != 1 && wp->wp_size != 2 && wp->wp_size != 4) { in kaif_wapt_validate()
371 if ((wp->wp_size & -(wp->wp_size)) != wp->wp_size || in kaif_wapt_validate()
380 if (wp->wp_addr & (wp->wp_size - 1)) { in kaif_wapt_validate()
382 (ulong_t)wp->wp_size, (ulong_t)wp->wp_size); in kaif_wapt_validate()
409 int id = KAIF_WPPRIV2ID(wp); in kaif_wapt_release()
417 kaif_wapt_arm(kmdb_wapt_t *wp) in kaif_wapt_arm() argument
420 int hwid = KAIF_WPPRIV2ID(wp); in kaif_wapt_arm()
445 int hwid = KAIF_WPPRIV2ID(wp); in kaif_wapt_disarm()
457 kaif_wapt_match(kmdb_wapt_t *wp) in kaif_wapt_match() argument
[all …]
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dnvtree.c708 if(!wp->out) in outval()
728 if(!wp->out) in outval()
754 if(!wp->out) in outval()
758 wp->root = 0; in outval()
772 if(!wp->array && wp->indent>0) in outval()
773 sfnputc(wp->out,'\t',wp->indent); in outval()
789 sfputc(wp->out,(isarray==2?(wp->indent>=0?'\n':';'):'=')); in outval()
796 nv_outnode(np, wp->out, wp->indent, special); in outval()
803 sfnputc(wp->out,'\t',wp->indent); in outval()
831 wp->indent++; in genvalue()
[all …]
/illumos-gate/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->rw_local[5], in ptl1_showtrap()
237 wp->rw_local[6], wp->rw_local[7]); in ptl1_showtrap()
241 wp->rw_in[0], wp->rw_in[1], wp->rw_in[2], wp->rw_in[3], in ptl1_showtrap()
242 wp->rw_in[4], wp->rw_in[5], wp->rw_in[6], wp->rw_in[7]); in ptl1_showtrap()
/illumos-gate/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->rw_local[5], in ptl1_showtrap()
251 wp->rw_local[6], wp->rw_local[7]); in ptl1_showtrap()
255 wp->rw_in[0], wp->rw_in[1], wp->rw_in[2], wp->rw_in[3], in ptl1_showtrap()
256 wp->rw_in[4], wp->rw_in[5], wp->rw_in[6], wp->rw_in[7]); in ptl1_showtrap()
/illumos-gate/usr/src/cmd/mdb/sparc/kmdb/
H A Dkaif.c173 int wp, i; in kaif_get_gregs() local
185 wp = gregs->kregs[KREG_CWP]; in kaif_get_gregs()
193 if (++wp == kaif_get_nwin(cpuid)) in kaif_get_gregs()
194 wp = 0; in kaif_get_gregs()
362 if (wp->wp_size % 0xff != 0 && wp->wp_size != 8) { in kaif_wapt_validate()
367 if (wp->wp_addr & (wp->wp_size - 1)) { in kaif_wapt_validate()
369 wp->wp_size, wp->wp_size); in kaif_wapt_validate()
388 ASSERT(wp == (kmdb_wapt_t *)wp); in kaif_wapt_reserve()
403 *addrp = wp->wp_addr; in kaif_wapt_reserve()
421 kaif_wapt_arm(kmdb_wapt_t *wp) in kaif_wapt_arm() argument
[all …]
/illumos-gate/usr/src/cmd/sort/common/
H A Dstreams_wide.c74 (void) memcpy(str->s_buffer, str->s_current.l_data.wp, in stream_wide_prime()
76 str->s_current.l_data.wp = str->s_buffer; in stream_wide_prime()
80 *(str->s_current.l_data.wp + in stream_wide_prime()
106 str->s_current.l_data.wp = current_position; in stream_wide_prime()
118 str->s_current.l_collate.wp = NULL; in stream_wide_prime()
139 str->s_current.l_data.wp = graft_pt; in stream_wide_fetch()
165 str->s_current.l_data.wp; in stream_wide_fetch()
202 str->s_current.l_data.wp = str->s_buffer; in stream_wide_fetch_overwrite()
205 if (fgetws(str->s_current.l_data.wp, dist_to_buf_end, in stream_wide_fetch_overwrite()
260 safe_free(line->l_raw_collate.wp); in stream_wide_put_line()
[all …]
/illumos-gate/usr/src/cmd/csh/
H A Dsh.lex.c200 tchar *wp; in word() local
208 wp = wbuf; in word()
219 *wp++ = c; in word()
243 *wp++ = c; in word()
304 *wp++ = c; in word()
313 *wp = 0; in word()
783 wp = wbuf; in subword()
808 wp = strend(wp); in subword()
818 *wp = 0; in subword()
862 for (wp--; wp >= cp && *wp != '/'; wp--) in domod()
[all …]

123456