/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 | 125 w = (WINDOW *) calloc(1, sizeof (*w)); in __m_newwin() 134 w->_last = &w->_first[nlines]; in __m_newwin() 149 w->_line[0] = w->_base; in __m_newwin() 152 w->_line[y] = &w->_line[y-1][ncols]; in __m_newwin() 154 w->_line[y][x] = w->_bg; in __m_newwin() 175 w->_cury = w->_curx = 0; in __m_newwin() 197 w->_begy = w->_begx = 0; in __m_newwin() 202 w->_sminy = w->_sminx = 0; in __m_newwin() 203 w->_smaxx = w->_maxx; in __m_newwin() 204 w->_smaxy = w->_maxy; in __m_newwin() [all …]
|
H A D | wscrl.c | 65 if (w->_parent) { in wscrl() 72 for (row = w->_top; row < w->_bottom; row++) { in wscrl() 97 w->_bottom -1, w->_maxx - 1); in wscrl() 117 to = w->_top; in wscrl() 121 (void) __m_cc_erase(w, start, 0, finish, w->_maxx - 1); in wscrl() 124 (void) __m_ptr_move((void **) w->_line, w->_maxy, in wscrl() 129 w->_top == 0 && w->_bottom == w->_maxy) in wscrl() 132 w->_scroll = 0; in wscrl() 134 (void) wtouchln(w, 0, w->_maxy, 1); in wscrl() 135 wtouchln_hard(w, 0, w->_maxy); in wscrl() [all …]
|
H A D | winsdel.c | 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() 78 (void) __m_ptr_move((void **) w->_line, w->_maxy, in winsdelln() 79 w->_maxy - n, w->_maxy - 1, w->_cury); in winsdelln() 89 (void) wtouchln(w, w->_cury, w->_maxy - w->_cury, 1); in winsdelln() 95 if (w->_scroll && w->_cury == 0 && n != 0 && in winsdelln() 96 (w->_flags & W_FULL_WINDOW) && w->_top == 0 && in winsdelln() 97 w->_bottom == w->_maxy) in winsdelln() [all …]
|
H A D | getwin.c | 79 WINDOW *w; in getwin() local 96 &w->_top, &w->_bottom, &w->_vmin, &w->_vtime, &flags, in getwin() 97 &w->_fg._at, &w->_fg._co); in getwin() 111 if (fscanf(fp, "CUR=%hd,%hd", &w->_cury, &w->_curx) < 2) in getwin() 116 return (w); in getwin() 118 (void) delwin(w); in getwin() 146 if (w->_line[y][i]._at != at || w->_line[y][i]._co != co) in put_cc() 173 w->_maxy, w->_maxx, w->_begy, w->_begx, w->_top, w->_bottom); in putwin() 176 w->_vmin, w->_vtime, w->_flags & W_CONFIG_MASK, in putwin() 177 w->_fg._at, w->_fg._co); in putwin() [all …]
|
H A D | wbrdr_st.c | 62 x = w->_curx; 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() 76 (void) whline_set(w, ts, w->_maxx-2); in wborder_set() 77 (void) wmove(w, w->_maxy-1, 1); in wborder_set() 78 (void) whline_set(w, bs, w->_maxx-2); in wborder_set() 94 if (__m_cc_replace(w, 0, w->_maxx-1, tr, 0) == -1) in wborder_set() 96 if (__m_cc_replace(w, w->_maxy-1, 0, bl, 0) == -1) in wborder_set() 98 if (__m_cc_replace(w, w->_maxy-1, w->_maxx-1, br, 0) == -1) in wborder_set() [all …]
|
H A D | wrefresh.c | 56 wrefresh(WINDOW *w) in wrefresh() argument 60 if (w == curscr) in wrefresh() 84 if (w == stdscr) 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() 156 w->_first[wy] = w->_maxx; in wnoutrefresh() 160 w->_refy = w->_begy; in wnoutrefresh() 161 w->_refx = w->_begx; in wnoutrefresh() 162 w->_sminy = w->_sminx = 0; in wnoutrefresh() 172 ns->_cury = w->_cury + w->_begy; in wnoutrefresh() [all …]
|
H A D | wins_wch.c | 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() 83 w->_last[y] = w->_maxx; in __m_cc_ins() 89 x = __m_cc_first(w, y, w->_maxx-1); in __m_cc_ins() 90 if (w->_maxx < x + __m_cc_width(&w->_line[y][x])) in __m_cc_ins() 91 (void) __m_cc_erase(w, y, x, y, w->_maxx-1); in __m_cc_ins() 121 if ((width = __m_cc_ins(w, y, x, &w->_bg)) <= 0) in __m_wins_wch() 126 if (__m_cc_erase(w, y, x, y, w->_maxx - 1) == -1) in __m_wins_wch() 160 WSYNC(w); in __m_wins_wch() [all …]
|
H A D | m_cc.c | 144 if (w) { in __m_touch_locs() 482 for (lp = w->_line[y]; ++x < w->_maxx; ) { in __m_cc_next() 531 (void) __m_cc_erase(w, y, x, y, w->_maxx-1); in __m_cc_replace() 547 *cp = w->_bg; in __m_cc_replace() 600 w->_cury = y; in __m_do_scroll() 642 nx = w->_maxx; in __m_cc_add() 654 if (__m_cc_erase(w, y, x, y, w->_maxx-1) == -1) in __m_cc_add() 709 if (__m_cc_erase(w, y, x, y, w->_maxx-1) == -1) in __m_cc_add_k() 805 if (wlx >= dx + w->_maxx) wlx = dx + w->_maxx - 1; in __m_cc_erase_in_line_sub() 891 __m_cc_erase_in_line_sub(w, y, x, w->_maxx-1, in __m_cc_erase() [all …]
|
H A D | wsyncup.c | 50 w->_flags &= ~W_SYNC_UP; in syncok() 52 w->_flags |= W_SYNC_UP; in syncok() 58 wsyncup(WINDOW *w) in wsyncup() argument 63 for (p = w->_parent; p != NULL; w = p, p = w->_parent) { in wsyncup() 65 for (py = w->_begy - p->_begy, y = 0; y < w->_maxy; ++y, ++py) { in wsyncup() 67 p->_first[py] = w->_begx + w->_first[y]; in wsyncup() 68 p->_last[py] = w->_begx + w->_last[y]; in wsyncup() 75 wcursyncup(WINDOW *w) in wcursyncup() argument 79 for (p = w->_parent; p != NULL; w = p, p = w->_parent) { in wcursyncup() 80 p->_cury = w->_begy + w->_cury; in wcursyncup() [all …]
|
/illumos-gate/usr/src/lib/libxcurses/src/libc/xcurses/ |
H A D | newwin.c | 64 WINDOW *w; local 116 w = (WINDOW *) calloc(1, sizeof *w); 126 w->_last = &w->_first[nlines]; 147 w->_line[y = 0] = w->_base; 150 w->_line[y][x] = w->_bg; 151 w->_line[y+1] = &w->_line[y][x]; 170 w->_cury = w->_curx = 0; 189 w->_begy = w->_begx = 0; 211 (void) wtouchln(w, 0, w->_maxy, 0); 221 delwin(w) in delwin() argument [all …]
|
H A D | winsdel.c | 56 WINDOW *w; in winsdelln() 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 82 (void **) w->_line, w->_maxy, 83 w->_maxy - n, w->_maxy-1, w->_cury 94 (void) wtouchln(w, w->_cury, w->_maxy - w->_cury, 1); 99 if (w->_scroll && w->_cury == 0 && n != 0 && (w->_flags & W_FULL_WINDOW) 100 && w->_top == 0 && w->_bottom == w->_maxy) [all …]
|
H A D | getwin.c | 47 WINDOW *w; in get_cc() 77 WINDOW *w; local 98 &w->_top, &w->_bottom, &w->_vmin, &w->_vtime, &flags, 99 &w->_fg._at, &w->_fg._co 114 if (fscanf(fp, "CUR=%hd,%hd", &w->_cury, &w->_curx) < 2) 132 WINDOW *w; in put_cc() 169 WINDOW *w; in putwin() 185 w->_maxy, w->_maxx, w->_begy, w->_begx, w->_top, w->_bottom 189 w->_vmin, w->_vtime, w->_flags & W_CONFIG_MASK, 190 w->_fg._at, w->_fg._co [all …]
|
H A D | wbrdr_st.c | 52 WINDOW *w; in wborder_set() 74 (void) wvline_set(w, ls, w->_maxy); 75 (void) wmove(w, 0, w->_maxx-1); 76 (void) wvline_set(w, rs, w->_maxy); 80 (void) whline_set(w, ts, w->_maxx-2); 81 (void) wmove(w, w->_maxy-1, 1); 82 (void) whline_set(w, bs, w->_maxx-2); 98 if (__m_cc_replace(w, 0, w->_maxx-1, tr, 0) == -1) 100 if (__m_cc_replace(w, w->_maxy-1, 0, bl, 0) == -1) 102 if (__m_cc_replace(w, w->_maxy-1, w->_maxx-1, br, 0) == -1) [all …]
|
H A D | wrefresh.c | 51 wrefresh(w) in wrefresh() argument 52 WINDOW *w; in wrefresh() 78 WINDOW *w; in wnoutrefresh() 94 for (wy = 0, ny = w->_begy; wy < w->_maxy; ++wy, ++ny) { 96 if (w->_last[wy] <= w->_first[wy]) 150 w->_first[wy] = w->_maxx; 154 w->_refy = w->_begy; 155 w->_refx = w->_begx; 156 w->_sminy = w->_sminx = 0; 166 ns->_cury = w->_cury + w->_begy; [all …]
|
H A D | wins_wch.c | 51 WINDOW *w; in __m_cc_ins() 66 &w->_line[y][x + width], &w->_line[y][x], 67 (w->_maxx - x - width) * sizeof **w->_line 77 w->_last[y] = w->_maxx; 82 x = __m_cc_first(w, y, w->_maxx-1); 83 if (w->_maxx < x + __m_cc_width(&w->_line[y][x])) 84 (void) __m_cc_erase(w, y, x, y, w->_maxx-1); 96 WINDOW *w; in __m_wins_wch() 126 if (__m_cc_erase(w, y, x, y, w->_maxx-1) == -1) 181 __m_trace("wins_wch(%p, %p) at (%d, %d)", w, cc, w->_cury, w->_curx); [all …]
|
H A D | wsyncup.c | 51 w->_flags &= ~W_SYNC_UP; in syncok() 53 w->_flags |= W_SYNC_UP; in syncok() 59 wsyncup(WINDOW *w) in wsyncup() argument 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() 72 p->_first[py] = w->_begx + w->_first[y]; in wsyncup() 73 p->_last[py] = w->_begx + w->_last[y]; in wsyncup() 82 wcursyncup(WINDOW *w) in wcursyncup() argument 91 for (p = w->_parent; p != (WINDOW *) 0; w = p, p = w->_parent) { in wcursyncup() 92 p->_cury = w->_begy + w->_cury; in wcursyncup() [all …]
|
H A D | wdelch.c | 51 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; 72 &w->_line[y][x], &w->_line[y][next], 73 (w->_maxx - next) * sizeof **w->_line 79 (void) __m_cc_erase(w, y, w->_maxx - width, y, w->_maxx - 1); 83 w->_first[y] = x; 84 w->_last[y] = w->_maxx; [all …]
|
H A D | wscrl.c | 50 wscrl(w, n) in wscrl() argument 51 WINDOW *w; in wscrl() 68 start = w->_top; 70 to = w->_bottom; 74 to = w->_top; 78 if (__m_cc_erase(w, start, 0, finish, w->_maxx-1) == -1) 85 && w->_top == 0 && w->_bottom == w->_maxy) 86 w->_scroll += n; 88 w->_scroll = 0; 90 (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 | 103 w = 0; 107 p += w; 108 len -= w; 171 COPY(w); 179 w = (*fp->f_write)(fp, p, w); 189 w = 0; 200 p += w; 241 w = (*fp->f_write)(fp, p, w); 251 w = 0; 256 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 | 61 #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 | \ 72 mp_gf2m_sqr_tb[(w) >> 36 & 0xF] << 8 | mp_gf2m_sqr_tb[(w) >> 32 & 0xF] 73 #define gf2m_SQR0(w) \ argument [all …]
|
/illumos-gate/usr/src/cmd/troff/ |
H A D | n8.c | 182 tchar *w; in exword() local 194 w++; in exword() 197 if (w-1 == hyend || (w == wdend && maplow(cbits(*w)) == 's')) { in exword() 204 w++; in exword() 243 w--; in suffix() 254 w--; in suffix() 302 tchar *w; in chkvow() 328 w--; in digram() 329 while ((++w < hyend) && (w < (wdend - 1))) { in digram() 336 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 …]
|