Home
last modified time | relevance | path

Searched refs:w (Results 1 – 25 of 1226) sorted by relevance

12345678910>>...50

/illumos-gate/usr/src/contrib/bhyve/dev/usb/
H A Dusb_endian.h48 #define UGETB(w) \ argument
49 ((w)[0])
51 #define UGETW(w) \ argument
52 ((w)[0] | \
53 (((uint16_t)((w)[1])) << 8))
55 #define UGETDW(w) \ argument
56 ((w)[0] | \
57 (((uint16_t)((w)[1])) << 8) | \
58 (((uint32_t)((w)[2])) << 16) | \
59 (((uint32_t)((w)[3])) << 24))
[all …]
/illumos-gate/usr/src/lib/libxcurses2/src/libc/xcurses/
H A Dnewwin.c70 WINDOW *w; in __m_newwin() local
125 w = (WINDOW *) calloc(1, sizeof (*w)); in __m_newwin()
126 if (w == NULL) in __m_newwin()
129 w->_first = (short *) calloc((size_t) (nlines + nlines), in __m_newwin()
130 sizeof (*w->_first)); in __m_newwin()
131 if (w->_first == NULL) in __m_newwin()
134 w->_last = &w->_first[nlines]; in __m_newwin()
136 w->_line = (cchar_t **) calloc((size_t) nlines, sizeof (*w->_line)); in __m_newwin()
137 if (w->_line == NULL) in __m_newwin()
141 (void) setcchar(&w->_bg, L" ", WA_NORMAL, 0, (void *) 0); in __m_newwin()
[all …]
H A Dwscrl.c55 wscrl(WINDOW *w, int n) in wscrl() argument
59 if (!(w->_flags & W_CAN_SCROLL)) in wscrl()
65 if (w->_parent) { in wscrl()
72 for (row = w->_top; row < w->_bottom; row++) { in wscrl()
73 if (row < w->_bottom - n) { in wscrl()
74 if (!w->_line[row+n][0]._f) { in wscrl()
79 (void) __m_cc_erase(w, row + n, in wscrl()
86 first = __m_cc_first(w, row + n, in wscrl()
87 w->_maxx - 1); in wscrl()
88 save = w->_line[row + n][first]; in wscrl()
[all …]
H A Dwinsdel.c60 winsdelln(WINDOW *w, int n) in winsdelln() argument
65 if (w->_maxy < w->_cury + abs(n)) in winsdelln()
66 n = (w->_maxy - w->_cury + 1) * (n < 0 ? -1 : 1); in winsdelln()
71 (void) __m_ptr_move((void **) w->_line, w->_maxy, in winsdelln()
72 w->_cury, w->_cury - (n + 1), w->_maxy); in winsdelln()
75 row = w->_maxy + n; in winsdelln()
78 (void) __m_ptr_move((void **) w->_line, w->_maxy, in winsdelln()
79 w->_maxy - n, w->_maxy - 1, w->_cury); in winsdelln()
82 row = w->_cury; in winsdelln()
86 (void) __m_cc_erase(w, row, 0, row + abs(n) - 1, w->_maxx - 1); in winsdelln()
[all …]
H A Dgetwin.c52 get_cc(WINDOW *w, char *mbs, FILE *fp) in get_cc() argument
64 if (wattr_set(w, at, co, (void *) 0) == ERR) in get_cc()
67 if (mvwaddstr(w, y, x, mbs) == ERR) in get_cc()
70 (void) wstandend(w); in get_cc()
79 WINDOW *w; in getwin() local
90 if ((w = newwin(my, mx, by, bx)) == NULL) in getwin()
96 &w->_top, &w->_bottom, &w->_vmin, &w->_vtime, &flags, in getwin()
97 &w->_fg._at, &w->_fg._co); in getwin()
101 w->_flags &= ~W_CONFIG_MASK; in getwin()
102 w->_flags |= flags; in getwin()
[all …]
H A Dwbrdr_st.c54 wborder_set(WINDOW *w, const cchar_t *ls, const cchar_t *rs, in wborder_set() argument
62 x = w->_curx; in wborder_set()
63 y = w->_cury; in wborder_set()
65 oflags = w->_flags & (W_FLUSH | W_SYNC_UP); in wborder_set()
66 w->_flags &= ~(W_FLUSH | W_SYNC_UP); in wborder_set()
69 (void) wmove(w, 0, 0); in wborder_set()
70 (void) wvline_set(w, ls, w->_maxy); in wborder_set()
71 (void) wmove(w, 0, w->_maxx-1); in wborder_set()
72 (void) wvline_set(w, rs, w->_maxy); in wborder_set()
75 (void) wmove(w, 0, 1); in wborder_set()
[all …]
H A Dwrefresh.c56 wrefresh(WINDOW *w) in wrefresh() argument
60 if (w == curscr) in wrefresh()
63 value = wnoutrefresh(w); in wrefresh()
78 wnoutrefresh(WINDOW *w) in wnoutrefresh() argument
84 if (w == stdscr) in wnoutrefresh()
87 value = (w->_flags & W_IS_PAD) ? ERR : OK; in wnoutrefresh()
95 for (wy = 0, ny = w->_begy; wy < w->_maxy; ++wy, ++ny) { in wnoutrefresh()
97 if (w->_last[wy] <= w->_first[wy]) in wnoutrefresh()
100 wx = w->_first[wy]; in wnoutrefresh()
101 nx = w->_begx + wx; in wnoutrefresh()
[all …]
H A Dwins_wch.c56 __m_cc_ins(WINDOW *w, int y, int x, const cchar_t *cc) in __m_cc_ins() argument
61 if ((width = __m_cc_width(cc)) <= 0 || w->_maxx < x + width) in __m_cc_ins()
64 x = __m_cc_first(w, y, x); in __m_cc_ins()
70 (void) __m_cc_erase(w, y, w->_maxx - width, y, w->_maxx - 1); in __m_cc_ins()
73 (void) memmove(&w->_line[y][x + width], &w->_line[y][x], in __m_cc_ins()
74 (w->_maxx - x - width) * sizeof (**w->_line)); in __m_cc_ins()
77 if (__m_cc_replace(w, y, x, cc, 0) != width) in __m_cc_ins()
81 if (x < w->_first[y]) in __m_cc_ins()
82 w->_first[y] = (short) x; in __m_cc_ins()
83 w->_last[y] = w->_maxx; in __m_cc_ins()
[all …]
H A Dm_cc.c142 __m_touch_locs(WINDOW *w, int row, int firstCol, int lastCol) in __m_touch_locs() argument
144 if (w) { in __m_touch_locs()
145 if (firstCol < w->_first[row]) in __m_touch_locs()
146 w->_first[row] = (short)firstCol; in __m_touch_locs()
147 if (lastCol > w->_last[row]) in __m_touch_locs()
148 w->_last[row] = (short)lastCol; in __m_touch_locs()
462 __m_cc_first(WINDOW *w, int y, int x) in __m_cc_first() argument
466 for (lp = w->_line[y]; 0 < x; --x) { in __m_cc_first()
478 __m_cc_next(WINDOW *w, int y, int x) in __m_cc_next() argument
482 for (lp = w->_line[y]; ++x < w->_maxx; ) { in __m_cc_next()
[all …]
/illumos-gate/usr/src/lib/libxcurses/src/libc/xcurses/
H A Dnewwin.c64 WINDOW *w; local
116 w = (WINDOW *) calloc(1, sizeof *w);
117 if (w == (WINDOW *) 0)
120 w->_first = (short *) calloc(
121 (size_t) (nlines + nlines), sizeof *w->_first
123 if (w->_first == (short *) 0)
126 w->_last = &w->_first[nlines];
128 w->_line = (cchar_t **) calloc((size_t) nlines, sizeof *w->_line);
129 if (w->_line == (cchar_t **) 0)
134 &w->_bg, M_MB_L(" "), WA_NORMAL, 0, (void *) 0
[all …]
H A Dwinsdel.c55 winsdelln(w, n) in winsdelln() argument
56 WINDOW *w; in winsdelln()
62 __m_trace("winsdelln(%p, %d)", w, n);
66 if (w->_maxy < w->_cury + abs(n))
67 n = (w->_maxy - w->_cury + 1) * (n < 0 ? -1 : 1);
73 (void **) w->_line, w->_maxy,
74 w->_cury, w->_cury - (n+1), w->_maxy
78 row = w->_maxy + n;
82 (void **) w->_line, w->_maxy,
83 w->_maxy - n, w->_maxy-1, w->_cury
[all …]
H A Dgetwin.c46 get_cc(w, mbs, fp) in get_cc() argument
47 WINDOW *w; in get_cc()
61 if (wattr_set(w, at, co, (void *) 0) == ERR)
64 if (mvwaddstr(w, y, x, mbs) == ERR)
67 (void) wstandend(w);
77 WINDOW *w; local
92 if ((w = newwin(my, mx, by, bx)) == (WINDOW *) 0)
98 &w->_top, &w->_bottom, &w->_vmin, &w->_vtime, &flags,
99 &w->_fg._at, &w->_fg._co
104 w->_flags &= ~W_CONFIG_MASK;
[all …]
H A Dwbrdr_st.c51 wborder_set(w, ls, rs, ts, bs, tl, tr, bl, br) in wborder_set() argument
52 WINDOW *w; in wborder_set()
61 w, ls, rs, ts, bs, tl, tr, bl, br
66 x = w->_curx;
67 y = w->_cury;
69 oflags = w->_flags & (W_FLUSH | W_SYNC_UP);
70 w->_flags &= ~(W_FLUSH | W_SYNC_UP);
73 (void) wmove(w, 0, 0);
74 (void) wvline_set(w, ls, w->_maxy);
75 (void) wmove(w, 0, w->_maxx-1);
[all …]
H A Dwrefresh.c51 wrefresh(w) in wrefresh() argument
52 WINDOW *w; in wrefresh()
57 __m_trace("wrefresh(%p)", w);
59 if (w == curscr)
62 value = wnoutrefresh(w);
77 wnoutrefresh(w) in wnoutrefresh() argument
78 WINDOW *w; in wnoutrefresh()
84 __m_trace("wnoutrefresh(%p)", w);
87 value = (w->_flags & W_IS_PAD) ? ERR : OK;
94 for (wy = 0, ny = w->_begy; wy < w->_maxy; ++wy, ++ny) {
[all …]
H A Dwins_wch.c50 __m_cc_ins(w, y, x, cc) in __m_cc_ins() argument
51 WINDOW *w; in __m_cc_ins()
59 if ((width = __m_cc_width(cc)) <= 0 || w->_maxx < x + width)
62 x = __m_cc_first(w, y, x);
66 &w->_line[y][x + width], &w->_line[y][x],
67 (w->_maxx - x - width) * sizeof **w->_line
71 if (__m_cc_replace(w, y, x, cc, 0) != width)
75 if (x < w->_first[y])
76 w->_first[y] = x;
77 w->_last[y] = w->_maxx;
[all …]
H A Dwsyncup.c45 syncok(WINDOW *w, bool bf) in syncok() argument
48 __m_trace("syncok(%p, %d)", w, bf); in syncok()
51 w->_flags &= ~W_SYNC_UP; in syncok()
53 w->_flags |= W_SYNC_UP; in syncok()
59 wsyncup(WINDOW *w) in wsyncup() argument
65 __m_trace("wsyncup(%p)", w); in wsyncup()
68 for (p = w->_parent; p != (WINDOW *) 0; w = p, p = w->_parent) { in wsyncup()
70 for (py = w->_begy - p->_begy, y = 0; y < w->_maxy; ++y, ++py) { in wsyncup()
71 if (0 <= w->_last[y]) { in wsyncup()
72 p->_first[py] = w->_begx + w->_first[y]; in wsyncup()
[all …]
H A Dwdelch.c51 wdelch(w) in wdelch() argument
52 WINDOW *w; in wdelch()
58 __m_trace("wdelch(%p) at (%d,%d)", w, w->_cury, w->_curx);
61 y = w->_cury;
62 x = w->_curx;
64 next = __m_cc_next(w, y, x);
65 x = __m_cc_first(w, y, x);
68 width = __m_cc_width(&w->_line[y][x]);
72 &w->_line[y][x], &w->_line[y][next],
73 (w->_maxx - next) * sizeof **w->_line
[all …]
H A Dwscrl.c50 wscrl(w, n) in wscrl() argument
51 WINDOW *w; in wscrl()
57 __m_trace("wscrl(%p, %d)", w, n);
68 start = w->_top;
69 finish = w->_top + n - 1;
70 to = w->_bottom;
72 start = w->_bottom + n;
73 finish = w->_bottom - 1;
74 to = w->_top;
78 if (__m_cc_erase(w, start, 0, finish, w->_maxx-1) == -1)
[all …]
/illumos-gate/usr/src/test/util-tests/tests/dis/risc-v/
H A Dtst.rv32a.s26 lr.w s0, (s1)
27 lr.w.aq s1, (s2)
28 lr.w.rl s2, (s3)
29 lr.w.aqrl s3, (s4)
30 sc.w s0, s2, (s1)
31 sc.w.aq s1, s3, (s1)
32 sc.w.rl s2, s4, (s1)
33 sc.w.aqrl s3, s5, (s1)
34 amoswap.w t0, t1, (t2)
35 amoswap.w.aq t1, t2, (t3)
[all …]
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dfvwrite.c64 register int w, s; variable
93 w = (*fp->f_write)(fp, p, SM_MIN(len, SM_IO_BUFSIZ));
94 if (w <= 0)
96 if (w == 0 && errno == 0)
98 if (IS_IO_ERROR(fd, w, timeout))
103 w = 0;
107 p += w;
108 len -= w;
110 } while ((uio->uio_resid -= w) != 0);
156 w = fp->f_w;
[all …]
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_whatis.c73 mdb_whatis_search(mdb_whatis_t *w, uintptr_t base, size_t size) in mdb_whatis_search() argument
80 return (bsearch(range, w->w_addrs, w->w_naddrs, sizeof (*w->w_addrs), in mdb_whatis_search()
89 mdb_whatis_overlaps(mdb_whatis_t *w, uintptr_t base, size_t size) in mdb_whatis_overlaps() argument
94 if (whatis_debug && w->w_magic != WHATIS_MAGIC) { in mdb_whatis_overlaps()
100 if (w->w_done || size == 0) in mdb_whatis_overlaps()
109 f = mdb_whatis_search(w, base, size); in mdb_whatis_overlaps()
113 cur = offset = f - w->w_addrs; in mdb_whatis_overlaps()
120 if ((w->w_flags & WHATIS_ALL) || !w->w_addrfound[cur]) in mdb_whatis_overlaps()
127 if (w->w_addrs[cur] < base) in mdb_whatis_overlaps()
130 if (!w->w_addrfound[cur]) in mdb_whatis_overlaps()
[all …]
/illumos-gate/usr/src/cmd/troff/
H A Dn8.c182 tchar *w; in exword() local
191 w = wdstart; in exword()
192 while (*e && w <= hyend && (*e & 0177) == maplow(cbits(*w))) { in exword()
194 w++; in exword()
197 if (w-1 == hyend || (w == wdend && maplow(cbits(*w)) == 's')) { in exword()
198 w = wdstart; in exword()
201 *hyp++ = w; in exword()
204 w++; in exword()
223 tchar *w; in suffix() local
240 w = hyend - 1; in suffix()
[all …]
/illumos-gate/usr/src/common/mpi/
H A Dmp_gf2m-priv.h61 #define gf2m_SQR1(w) \ argument
62 mp_gf2m_sqr_tb[(w) >> 28 & 0xF] << 24 | mp_gf2m_sqr_tb[(w) >> 24 & 0xF] << 16 | \
63 mp_gf2m_sqr_tb[(w) >> 20 & 0xF] << 8 | mp_gf2m_sqr_tb[(w) >> 16 & 0xF]
64 #define gf2m_SQR0(w) \ argument
65 mp_gf2m_sqr_tb[(w) >> 12 & 0xF] << 24 | mp_gf2m_sqr_tb[(w) >> 8 & 0xF] << 16 | \
66 mp_gf2m_sqr_tb[(w) >> 4 & 0xF] << 8 | mp_gf2m_sqr_tb[(w) & 0xF]
68 #define gf2m_SQR1(w) \ argument
69 mp_gf2m_sqr_tb[(w) >> 60 & 0xF] << 56 | mp_gf2m_sqr_tb[(w) >> 56 & 0xF] << 48 | \
70 mp_gf2m_sqr_tb[(w) >> 52 & 0xF] << 40 | mp_gf2m_sqr_tb[(w) >> 48 & 0xF] << 32 | \
71 mp_gf2m_sqr_tb[(w) >> 44 & 0xF] << 24 | mp_gf2m_sqr_tb[(w) >> 40 & 0xF] << 16 | \
[all …]
/illumos-gate/usr/src/lib/libm/common/C/
H A Dcosh.c67 double t, w; in cosh() local
69 w = fabs(x); in cosh()
70 if (!finite(w)) in cosh()
71 return (w * w); in cosh()
72 if (w < 0.3465) { in cosh()
73 t = expm1(w); in cosh()
74 w = 1.0 + t; in cosh()
75 if (w != 1.0) in cosh()
76 w = 1.0 + (t * t) / (w + w); in cosh()
77 return (w); in cosh()
[all …]
/illumos-gate/usr/src/lib/libxcurses/h/
H A Dcurses.h345 #define __m_getpary(w) ((w)->_parent == (WINDOW *) 0 ? -1 \ argument
346 : (w)->_begy - (w)->_parent->_begy)
347 #define __m_getparx(w) ((w)->_parent == (WINDOW *) 0 ? -1 \ argument
348 : (w)->_begx - (w)->_parent->_begx)
353 #define getyx(w,y,x) (y = (w)->_cury, x = (w)->_curx) argument
354 #define getbegyx(w,y,x) (y = (w)->_begy, x = (w)->_begx) argument
355 #define getmaxyx(w,y,x) (y = (w)->_maxy, x = (w)->_maxx) argument
356 #define getparyx(w,y,x) (y = __m_getpary(w), x = __m_getparx(w)) argument
834 #define mvwaddch(w,y,x,ch) (wmove(w,y,x)?ERR:waddch(w,ch)) argument
838 #define mvwadd_wch(w,y,x,cp) (wmove(w,y,x)?ERR:wadd_wch(w,cp)) argument
[all …]

12345678910>>...50