/illumos-gate/usr/src/contrib/bhyve/dev/usb/ |
H A D | usb_endian.h | 48 #define UGETB(w) \ argument 49 ((w)[0]) 51 #define UGETW(w) \ argument 52 ((w)[0] | \ 55 #define UGETDW(w) \ argument 56 ((w)[0] | \ 61 #define UGETQW(w) \ argument 62 ((w)[0] | \ 71 #define USETB(w,v) do { \ argument 72 (w)[0] = (uint8_t)(v); \ [all …]
|
/illumos-gate/usr/src/lib/libxcurses2/src/libc/xcurses/ |
H A D | newwin.c | 127 w = (WINDOW *) calloc(1, sizeof (*w)); in __m_newwin() 136 w->_last = &w->_first[nlines]; in __m_newwin() 151 w->_line[0] = w->_base; in __m_newwin() 154 w->_line[y] = &w->_line[y-1][ncols]; in __m_newwin() 156 w->_line[y][x] = w->_bg; in __m_newwin() 177 w->_cury = w->_curx = 0; in __m_newwin() 199 w->_begy = w->_begx = 0; in __m_newwin() 204 w->_sminy = w->_sminx = 0; in __m_newwin() 205 w->_smaxx = w->_maxx; in __m_newwin() 206 w->_smaxy = w->_maxy; in __m_newwin() [all …]
|
H A D | wscrl.c | 67 if (w->_parent) { in wscrl() 74 for (row = w->_top; row < w->_bottom; row++) { in wscrl() 99 w->_bottom -1, w->_maxx - 1); in wscrl() 119 to = w->_top; in wscrl() 123 (void) __m_cc_erase(w, start, 0, finish, w->_maxx - 1); in wscrl() 126 (void) __m_ptr_move((void **) w->_line, w->_maxy, in wscrl() 131 w->_top == 0 && w->_bottom == w->_maxy) in wscrl() 134 w->_scroll = 0; in wscrl() 136 (void) wtouchln(w, 0, w->_maxy, 1); in wscrl() 137 wtouchln_hard(w, 0, w->_maxy); in wscrl() [all …]
|
H A D | winsdel.c | 67 if (w->_maxy < w->_cury + abs(n)) in winsdelln() 68 n = (w->_maxy - w->_cury + 1) * (n < 0 ? -1 : 1); in winsdelln() 73 (void) __m_ptr_move((void **) w->_line, w->_maxy, in winsdelln() 74 w->_cury, w->_cury - (n + 1), w->_maxy); in winsdelln() 80 (void) __m_ptr_move((void **) w->_line, w->_maxy, in winsdelln() 81 w->_maxy - n, w->_maxy - 1, w->_cury); in winsdelln() 91 (void) wtouchln(w, w->_cury, w->_maxy - w->_cury, 1); in winsdelln() 97 if (w->_scroll && w->_cury == 0 && n != 0 && in winsdelln() 98 (w->_flags & W_FULL_WINDOW) && w->_top == 0 && in winsdelln() 99 w->_bottom == w->_maxy) in winsdelln() [all …]
|
H A D | getwin.c | 81 WINDOW *w; in getwin() local 98 &w->_top, &w->_bottom, &w->_vmin, &w->_vtime, &flags, in getwin() 99 &w->_fg._at, &w->_fg._co); in getwin() 113 if (fscanf(fp, "CUR=%hd,%hd", &w->_cury, &w->_curx) < 2) in getwin() 118 return (w); in getwin() 120 (void) delwin(w); in getwin() 148 if (w->_line[y][i]._at != at || w->_line[y][i]._co != co) in put_cc() 175 w->_maxy, w->_maxx, w->_begy, w->_begx, w->_top, w->_bottom); in putwin() 178 w->_vmin, w->_vtime, w->_flags & W_CONFIG_MASK, in putwin() 179 w->_fg._at, w->_fg._co); in putwin() [all …]
|
H A D | wbrdr_st.c | 64 x = w->_curx; in wborder_set() 72 (void) wvline_set(w, ls, w->_maxy); in wborder_set() 73 (void) wmove(w, 0, w->_maxx-1); in wborder_set() 74 (void) wvline_set(w, rs, w->_maxy); in wborder_set() 78 (void) whline_set(w, ts, w->_maxx-2); in wborder_set() 79 (void) wmove(w, w->_maxy-1, 1); in wborder_set() 80 (void) whline_set(w, bs, w->_maxx-2); in wborder_set() 96 if (__m_cc_replace(w, 0, w->_maxx-1, tr, 0) == -1) in wborder_set() 98 if (__m_cc_replace(w, w->_maxy-1, 0, bl, 0) == -1) in wborder_set() 100 if (__m_cc_replace(w, w->_maxy-1, w->_maxx-1, br, 0) == -1) in wborder_set() [all …]
|
H A D | wrefresh.c | 62 if (w == curscr) in wrefresh() 86 if (w == stdscr) in wnoutrefresh() 97 for (wy = 0, ny = w->_begy; wy < w->_maxy; ++wy, ++ny) { in wnoutrefresh() 99 if (w->_last[wy] <= w->_first[wy]) in wnoutrefresh() 158 w->_first[wy] = w->_maxx; in wnoutrefresh() 162 w->_refy = w->_begy; in wnoutrefresh() 163 w->_refx = w->_begx; in wnoutrefresh() 164 w->_sminy = w->_sminx = 0; in wnoutrefresh() 170 w->_scroll = 0; in wnoutrefresh() 174 ns->_cury = w->_cury + w->_begy; in wnoutrefresh() [all …]
|
H A D | wins_wch.c | 72 (void) __m_cc_erase(w, y, w->_maxx - width, y, w->_maxx - 1); in __m_cc_ins() 75 (void) memmove(&w->_line[y][x + width], &w->_line[y][x], in __m_cc_ins() 76 (w->_maxx - x - width) * sizeof (**w->_line)); in __m_cc_ins() 85 w->_last[y] = w->_maxx; in __m_cc_ins() 91 x = __m_cc_first(w, y, w->_maxx-1); in __m_cc_ins() 92 if (w->_maxx < x + __m_cc_width(&w->_line[y][x])) in __m_cc_ins() 93 (void) __m_cc_erase(w, y, x, y, w->_maxx-1); in __m_cc_ins() 123 if ((width = __m_cc_ins(w, y, x, &w->_bg)) <= 0) in __m_wins_wch() 128 if (__m_cc_erase(w, y, x, y, w->_maxx - 1) == -1) in __m_wins_wch() 162 WSYNC(w); in __m_wins_wch() [all …]
|
H A D | m_cc.c | 146 if (w) { in __m_touch_locs() 484 for (lp = w->_line[y]; ++x < w->_maxx; ) { in __m_cc_next() 533 (void) __m_cc_erase(w, y, x, y, w->_maxx-1); in __m_cc_replace() 549 *cp = w->_bg; in __m_cc_replace() 602 w->_cury = y; in __m_do_scroll() 644 nx = w->_maxx; in __m_cc_add() 656 if (__m_cc_erase(w, y, x, y, w->_maxx-1) == -1) in __m_cc_add() 711 if (__m_cc_erase(w, y, x, y, w->_maxx-1) == -1) in __m_cc_add_k() 807 if (wlx >= dx + w->_maxx) wlx = dx + w->_maxx - 1; in __m_cc_erase_in_line_sub() 893 __m_cc_erase_in_line_sub(w, y, x, w->_maxx-1, in __m_cc_erase() [all …]
|
H A D | wsyncup.c | 52 w->_flags &= ~W_SYNC_UP; in syncok() 54 w->_flags |= W_SYNC_UP; in syncok() 60 wsyncup(WINDOW *w) in wsyncup() argument 65 for (p = w->_parent; p != NULL; w = p, p = w->_parent) { in wsyncup() 67 for (py = w->_begy - p->_begy, y = 0; y < w->_maxy; ++y, ++py) { in wsyncup() 69 p->_first[py] = w->_begx + w->_first[y]; in wsyncup() 70 p->_last[py] = w->_begx + w->_last[y]; in wsyncup() 77 wcursyncup(WINDOW *w) in wcursyncup() argument 81 for (p = w->_parent; p != NULL; w = p, p = w->_parent) { in wcursyncup() 82 p->_cury = w->_begy + w->_cury; in wcursyncup() [all …]
|
/illumos-gate/usr/src/lib/libxcurses/src/libc/xcurses/ |
H A D | newwin.c | 66 WINDOW *w; local 118 w = (WINDOW *) calloc(1, sizeof *w); 128 w->_last = &w->_first[nlines]; 149 w->_line[y = 0] = w->_base; 152 w->_line[y][x] = w->_bg; 153 w->_line[y+1] = &w->_line[y][x]; 172 w->_cury = w->_curx = 0; 191 w->_begy = w->_begx = 0; 213 (void) wtouchln(w, 0, w->_maxy, 0); 223 delwin(w) in delwin() argument [all …]
|
H A D | winsdel.c | 58 WINDOW *w; in winsdelln() 68 if (w->_maxy < w->_cury + abs(n)) 69 n = (w->_maxy - w->_cury + 1) * (n < 0 ? -1 : 1); 75 (void **) w->_line, w->_maxy, 76 w->_cury, w->_cury - (n+1), w->_maxy 84 (void **) w->_line, w->_maxy, 85 w->_maxy - n, w->_maxy-1, w->_cury 96 (void) wtouchln(w, w->_cury, w->_maxy - w->_cury, 1); 101 if (w->_scroll && w->_cury == 0 && n != 0 && (w->_flags & W_FULL_WINDOW) 102 && w->_top == 0 && w->_bottom == w->_maxy) [all …]
|
H A D | getwin.c | 49 WINDOW *w; in get_cc() 79 WINDOW *w; local 100 &w->_top, &w->_bottom, &w->_vmin, &w->_vtime, &flags, 101 &w->_fg._at, &w->_fg._co 116 if (fscanf(fp, "CUR=%hd,%hd", &w->_cury, &w->_curx) < 2) 134 WINDOW *w; in put_cc() 171 WINDOW *w; in putwin() 187 w->_maxy, w->_maxx, w->_begy, w->_begx, w->_top, w->_bottom 191 w->_vmin, w->_vtime, w->_flags & W_CONFIG_MASK, 192 w->_fg._at, w->_fg._co [all …]
|
H A D | wbrdr_st.c | 54 WINDOW *w; in wborder_set() 76 (void) wvline_set(w, ls, w->_maxy); 77 (void) wmove(w, 0, w->_maxx-1); 78 (void) wvline_set(w, rs, w->_maxy); 82 (void) whline_set(w, ts, w->_maxx-2); 83 (void) wmove(w, w->_maxy-1, 1); 84 (void) whline_set(w, bs, w->_maxx-2); 100 if (__m_cc_replace(w, 0, w->_maxx-1, tr, 0) == -1) 102 if (__m_cc_replace(w, w->_maxy-1, 0, bl, 0) == -1) 104 if (__m_cc_replace(w, w->_maxy-1, w->_maxx-1, br, 0) == -1) [all …]
|
H A D | wrefresh.c | 53 wrefresh(w) in wrefresh() argument 54 WINDOW *w; in wrefresh() 80 WINDOW *w; in wnoutrefresh() 96 for (wy = 0, ny = w->_begy; wy < w->_maxy; ++wy, ++ny) { 98 if (w->_last[wy] <= w->_first[wy]) 152 w->_first[wy] = w->_maxx; 156 w->_refy = w->_begy; 157 w->_refx = w->_begx; 158 w->_sminy = w->_sminx = 0; 168 ns->_cury = w->_cury + w->_begy; [all …]
|
H A D | wins_wch.c | 53 WINDOW *w; in __m_cc_ins() 68 &w->_line[y][x + width], &w->_line[y][x], 69 (w->_maxx - x - width) * sizeof **w->_line 79 w->_last[y] = w->_maxx; 84 x = __m_cc_first(w, y, w->_maxx-1); 85 if (w->_maxx < x + __m_cc_width(&w->_line[y][x])) 86 (void) __m_cc_erase(w, y, x, y, w->_maxx-1); 98 WINDOW *w; in __m_wins_wch() 128 if (__m_cc_erase(w, y, x, y, w->_maxx-1) == -1) 183 __m_trace("wins_wch(%p, %p) at (%d, %d)", w, cc, w->_cury, w->_curx); [all …]
|
H A D | wsyncup.c | 53 w->_flags &= ~W_SYNC_UP; in syncok() 55 w->_flags |= W_SYNC_UP; in syncok() 61 wsyncup(WINDOW *w) in wsyncup() argument 70 for (p = w->_parent; p != (WINDOW *) 0; w = p, p = w->_parent) { in wsyncup() 72 for (py = w->_begy - p->_begy, y = 0; y < w->_maxy; ++y, ++py) { in wsyncup() 74 p->_first[py] = w->_begx + w->_first[y]; in wsyncup() 75 p->_last[py] = w->_begx + w->_last[y]; in wsyncup() 84 wcursyncup(WINDOW *w) in wcursyncup() argument 93 for (p = w->_parent; p != (WINDOW *) 0; w = p, p = w->_parent) { in wcursyncup() 94 p->_cury = w->_begy + w->_cury; in wcursyncup() [all …]
|
H A D | wdelch.c | 53 wdelch(w) in wdelch() argument 54 WINDOW *w; in wdelch() 60 __m_trace("wdelch(%p) at (%d,%d)", w, w->_cury, w->_curx); 63 y = w->_cury; 64 x = w->_curx; 74 &w->_line[y][x], &w->_line[y][next], 75 (w->_maxx - next) * sizeof **w->_line 81 (void) __m_cc_erase(w, y, w->_maxx - width, y, w->_maxx - 1); 85 w->_first[y] = x; 86 w->_last[y] = w->_maxx; [all …]
|
H A D | wscrl.c | 52 wscrl(w, n) in wscrl() argument 53 WINDOW *w; in wscrl() 70 start = w->_top; 72 to = w->_bottom; 76 to = w->_top; 80 if (__m_cc_erase(w, start, 0, finish, w->_maxx-1) == -1) 87 && w->_top == 0 && w->_bottom == w->_maxy) 88 w->_scroll += n; 90 w->_scroll = 0; 92 (void) wtouchln(w, 0, w->_maxy, 1); [all …]
|
/illumos-gate/usr/src/test/util-tests/tests/dis/risc-v/ |
H A D | tst.rv32a.s | 26 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) 38 amoadd.w t0, t1, (t2) 42 amoxor.w t0, t1, (t2) [all …]
|
/illumos-gate/usr/src/cmd/sendmail/libsm/ |
H A D | fvwrite.c | 105 w = 0; 109 p += w; 110 len -= w; 173 COPY(w); 181 w = (*fp->f_write)(fp, p, w); 191 w = 0; 202 p += w; 243 w = (*fp->f_write)(fp, p, w); 253 w = 0; 258 w = s; [all …]
|
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_whatis.c | 80 return (bsearch(range, w->w_addrs, w->w_naddrs, sizeof (*w->w_addrs), in mdb_whatis_search() 120 if ((w->w_flags & WHATIS_ALL) || !w->w_addrfound[cur]) in mdb_whatis_overlaps() 171 (base != w->w_match_base || size != w->w_match_size)) { in mdb_whatis_match() 175 w->w_match_base, w->w_match_base, w->w_match_size); in mdb_whatis_match() 210 w->w_found++; in mdb_whatis_match() 214 if (w->w_found == w->w_naddrs && !(w->w_flags & WHATIS_ALL)) in mdb_whatis_match() 215 w->w_done = 1; in mdb_whatis_match() 510 bzero(&w, sizeof (w)); in cmd_whatis() 562 qsort(w.w_addrs, w.w_naddrs, sizeof (*w.w_addrs), in cmd_whatis() 566 w.w_addrfound = mdb_zalloc(w.w_naddrs * sizeof (*w.w_addrfound), in cmd_whatis() [all …]
|
/illumos-gate/usr/src/common/mpi/ |
H A D | mp_gf2m-priv.h | 63 #define gf2m_SQR1(w) \ argument 64 mp_gf2m_sqr_tb[(w) >> 28 & 0xF] << 24 | mp_gf2m_sqr_tb[(w) >> 24 & 0xF] << 16 | \ 65 mp_gf2m_sqr_tb[(w) >> 20 & 0xF] << 8 | mp_gf2m_sqr_tb[(w) >> 16 & 0xF] 66 #define gf2m_SQR0(w) \ argument 67 mp_gf2m_sqr_tb[(w) >> 12 & 0xF] << 24 | mp_gf2m_sqr_tb[(w) >> 8 & 0xF] << 16 | \ 68 mp_gf2m_sqr_tb[(w) >> 4 & 0xF] << 8 | mp_gf2m_sqr_tb[(w) & 0xF] 70 #define gf2m_SQR1(w) \ argument 71 mp_gf2m_sqr_tb[(w) >> 60 & 0xF] << 56 | mp_gf2m_sqr_tb[(w) >> 56 & 0xF] << 48 | \ 74 mp_gf2m_sqr_tb[(w) >> 36 & 0xF] << 8 | mp_gf2m_sqr_tb[(w) >> 32 & 0xF] 75 #define gf2m_SQR0(w) \ argument [all …]
|
/illumos-gate/usr/src/cmd/troff/ |
H A D | n8.c | 184 tchar *w; in exword() local 196 w++; in exword() 199 if (w-1 == hyend || (w == wdend && maplow(cbits(*w)) == 's')) { in exword() 206 w++; in exword() 245 w--; in suffix() 256 w--; in suffix() 304 tchar *w; in chkvow() 330 w--; in digram() 331 while ((++w < hyend) && (w < (wdend - 1))) { in digram() 338 val *= dilook(cbits(*(w-1)), cbits(*w), xxh); in digram() [all …]
|
/illumos-gate/usr/src/lib/libm/common/C/ |
H A D | cosh.c | 67 double t, w; in cosh() local 69 w = fabs(x); in cosh() 71 return (w * w); 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() 79 t = exp(w); in cosh() 84 w = (w - 1024 * ln2hi) - 1024 * ln2lo; in cosh() [all …]
|