Home
last modified time | relevance | path

Searched refs:ws (Results 1 – 25 of 164) sorted by relevance

1234567

/NextBSD/contrib/gcclibs/libgomp/
HDiter.c45 struct gomp_work_share *ws = thr->ts.work_share; in gomp_iter_static_next() local
54 *pstart = ws->next; in gomp_iter_static_next()
55 *pend = ws->end; in gomp_iter_static_next()
57 return ws->next == ws->end; in gomp_iter_static_next()
63 if (ws->chunk_size == 0) in gomp_iter_static_next()
73 s = ws->incr + (ws->incr > 0 ? -1 : 1); in gomp_iter_static_next()
74 n = (ws->end - ws->next + s) / ws->incr; in gomp_iter_static_next()
94 s = (long)s0 * ws->incr + ws->next; in gomp_iter_static_next()
95 e = (long)e0 * ws->incr + ws->next; in gomp_iter_static_next()
110 s = ws->incr + (ws->incr > 0 ? -1 : 1); in gomp_iter_static_next()
[all …]
HDwork.c41 struct gomp_work_share *ws; in gomp_new_work_share() local
44 size = sizeof (*ws); in gomp_new_work_share()
46 size += nthreads * sizeof (ws->ordered_team_ids[0]); in gomp_new_work_share()
48 ws = gomp_malloc_cleared (size); in gomp_new_work_share()
49 gomp_mutex_init (&ws->lock); in gomp_new_work_share()
50 ws->ordered_owner = -1; in gomp_new_work_share()
52 return ws; in gomp_new_work_share()
59 free_work_share (struct gomp_work_share *ws) in free_work_share() argument
61 gomp_mutex_destroy (&ws->lock); in free_work_share()
62 free (ws); in free_work_share()
[all …]
HDordered.c42 struct gomp_work_share *ws = thr->ts.work_share; in gomp_ordered_first() local
49 index = ws->ordered_cur + ws->ordered_num_used; in gomp_ordered_first()
52 ws->ordered_team_ids[index] = thr->ts.team_id; in gomp_ordered_first()
57 if (ws->ordered_num_used++ == 0) in gomp_ordered_first()
73 struct gomp_work_share *ws = thr->ts.work_share; in gomp_ordered_last() local
81 ws->ordered_owner = -1; in gomp_ordered_last()
84 if (--ws->ordered_num_used > 0) in gomp_ordered_last()
86 unsigned next = ws->ordered_cur + 1; in gomp_ordered_last()
89 ws->ordered_cur = next; in gomp_ordered_last()
91 next_id = ws->ordered_team_ids[next]; in gomp_ordered_last()
[all …]
HDsections.c36 gomp_sections_init (struct gomp_work_share *ws, unsigned count) in gomp_sections_init() argument
38 ws->sched = GFS_DYNAMIC; in gomp_sections_init()
39 ws->chunk_size = 1; in gomp_sections_init()
40 ws->end = count + 1; in gomp_sections_init()
41 ws->incr = 1; in gomp_sections_init()
42 ws->next = 1; in gomp_sections_init()
106 struct gomp_work_share *ws; in GOMP_parallel_sections_start() local
112 ws = gomp_new_work_share (false, num_threads); in GOMP_parallel_sections_start()
113 gomp_sections_init (ws, count); in GOMP_parallel_sections_start()
114 gomp_team_start (fn, data, num_threads, ws); in GOMP_parallel_sections_start()
HDloop.c37 gomp_loop_init (struct gomp_work_share *ws, long start, long end, long incr, in gomp_loop_init() argument
40 ws->sched = sched; in gomp_loop_init()
41 ws->chunk_size = chunk_size; in gomp_loop_init()
43 ws->end = ((incr > 0 && start > end) || (incr < 0 && start < end)) in gomp_loop_init()
45 ws->incr = incr; in gomp_loop_init()
46 ws->next = start; in gomp_loop_init()
378 struct gomp_work_share *ws; in gomp_parallel_loop_start() local
381 ws = gomp_new_work_share (false, num_threads); in gomp_parallel_loop_start()
382 gomp_loop_init (ws, start, end, incr, sched, chunk_size); in gomp_parallel_loop_start()
383 gomp_team_start (fn, data, num_threads, ws); in gomp_parallel_loop_start()
/NextBSD/sbin/routed/
HDoutput.c68 } ws; variable
315 naddr_ntoa(ws.to.sin_addr.s_addr)); in supply_write()
320 if (ws.a != 0 && ws.a->type == RIP_AUTH_MD5) in supply_write()
321 end_md5_auth(wb,ws.a); in supply_write()
322 if (output(wb->type, &ws.to, ws.ifp, wb->buf, in supply_write()
324 && ws.ifp != 0) in supply_write()
325 if_sick(ws.ifp); in supply_write()
326 ws.npackets++; in supply_write()
330 clr_ws_buf(wb,ws.a); in supply_write()
348 && (ws.state & WS_ST_FLASH)) in supply_out()
[all …]
/NextBSD/contrib/llvm/lib/Target/Mips/
HDMipsMSAInstrFormats.td41 bits<5> ws;
48 let Inst{15-11} = ws;
54 bits<5> ws;
61 let Inst{15-11} = ws;
67 bits<5> ws;
74 let Inst{15-11} = ws;
80 bits<5> ws;
87 let Inst{15-11} = ws;
115 bits<5> ws;
120 let Inst{15-11} = ws;
[all …]
HDMipsMSAInstrInfo.td391 def vbclr_b : PatFrag<(ops node:$ws, node:$wt),
392 (and node:$ws, (xor (shl vsplat_imm_eq_1, node:$wt),
394 def vbclr_h : PatFrag<(ops node:$ws, node:$wt),
395 (and node:$ws, (xor (shl vsplat_imm_eq_1, node:$wt),
397 def vbclr_w : PatFrag<(ops node:$ws, node:$wt),
398 (and node:$ws, (xor (shl vsplat_imm_eq_1, node:$wt),
400 def vbclr_d : PatFrag<(ops node:$ws, node:$wt),
401 (and node:$ws, (xor (shl (v2i64 vsplati64_imm_eq_1),
405 def vbneg_b : PatFrag<(ops node:$ws, node:$wt),
406 (xor node:$ws, (shl vsplat_imm_eq_1, node:$wt))>;
[all …]
/NextBSD/lib/libc/net/
HDnscache.c332 cached_mp_write_session ws; in __nss_mp_cache_write() local
345 ws = cache_info->get_mp_ws_func(); in __nss_mp_cache_write()
346 if (ws == INVALID_CACHED_MP_WRITE_SESSION) { in __nss_mp_cache_write()
350 ws = __open_cached_mp_write_session(&params, in __nss_mp_cache_write()
352 if (ws == INVALID_CACHED_MP_WRITE_SESSION) in __nss_mp_cache_write()
355 cache_info->set_mp_ws_func(ws); in __nss_mp_cache_write()
386 res = __cached_mp_write(ws, buffer, buffer_size); in __nss_mp_cache_write()
395 cached_mp_write_session ws; in __nss_mp_cache_write_submit() local
403 ws = cache_info->get_mp_ws_func(); in __nss_mp_cache_write_submit()
404 if (ws != INVALID_CACHED_MP_WRITE_SESSION) { in __nss_mp_cache_write_submit()
[all …]
HDnscachedcli.c424 __cached_mp_write(struct cached_connection_ *ws, const char *data, in __cached_mp_write() argument
433 result = safe_write(ws, &request, sizeof(int)); in __cached_mp_write()
437 result = safe_write(ws, &data_size, sizeof(size_t)); in __cached_mp_write()
441 result = safe_write(ws, data, data_size); in __cached_mp_write()
445 result = safe_read(ws, &error_code, sizeof(int)); in __cached_mp_write()
458 __abandon_cached_mp_write_session(struct cached_connection_ *ws) in __abandon_cached_mp_write_session() argument
464 result = safe_write(ws, &notification, sizeof(int)); in __abandon_cached_mp_write_session()
465 __close_cached_connection(ws); in __abandon_cached_mp_write_session()
474 __close_cached_mp_write_session(struct cached_connection_ *ws) in __close_cached_mp_write_session() argument
480 result = safe_write(ws, &notification, sizeof(int)); in __close_cached_mp_write_session()
[all …]
/NextBSD/usr.sbin/nscd/
HDcachelib.c188 destroy_cache_mp_write_session(struct cache_mp_write_session_ *ws) in destroy_cache_mp_write_session() argument
194 assert(ws != NULL); in destroy_cache_mp_write_session()
195 while (!TAILQ_EMPTY(&ws->items)) { in destroy_cache_mp_write_session()
196 data_item = TAILQ_FIRST(&ws->items); in destroy_cache_mp_write_session()
197 TAILQ_REMOVE(&ws->items, data_item, entries); in destroy_cache_mp_write_session()
202 free(ws); in destroy_cache_mp_write_session()
222 struct cache_mp_write_session_ *ws; in destroy_cache_entry() local
260 ws = TAILQ_FIRST(&mp_entry->ws_head); in destroy_cache_entry()
261 TAILQ_REMOVE(&mp_entry->ws_head, ws, entries); in destroy_cache_entry()
262 destroy_cache_mp_write_session(ws); in destroy_cache_entry()
[all …]
/NextBSD/contrib/telnet/telnetd/
HDtermstat.c523 struct winsize ws; in clientstat() local
540 ws.ws_col = parm1; in clientstat()
541 ws.ws_row = parm2; in clientstat()
542 (void) ioctl(pty, TIOCSWINSZ, (char *)&ws); in clientstat()
605 struct winsize ws; in defer_terminit() local
607 memset((char *)&ws, 0, sizeof(ws)); in defer_terminit()
608 ws.ws_col = def_col; in defer_terminit()
609 ws.ws_row = def_row; in defer_terminit()
610 (void) ioctl(pty, TIOCSWINSZ, (char *)&ws); in defer_terminit()
/NextBSD/lib/libc/tests/stdio/
HDprintbasic_test.c73 wchar_t ws[BUF], wfmt[BUF], wresult[BUF]; in _testfmt() local
88 mbstowcs(ws, s, BUF - 1); in _testfmt()
91 vswprintf(ws, sizeof(ws) / sizeof(ws[0]), wfmt, ap2); in _testfmt()
92 if (wcscmp(wresult, ws) != 0) { in _testfmt()
95 wfmt, argstr, ws, wresult); in _testfmt()
HDprintfloat_test.c65 wchar_t ws[BUF], wfmt[BUF], wresult[BUF]; in _testfmt() local
80 mbstowcs(ws, s, BUF - 1); in _testfmt()
83 vswprintf(ws, sizeof(ws) / sizeof(ws[0]), wfmt, ap2); in _testfmt()
84 if (wcscmp(wresult, ws) != 0) { in _testfmt()
87 wfmt, argstr, ws, wresult); in _testfmt()
/NextBSD/lib/libc/stdio/
HDfgetws.c46 fgetws_l(wchar_t * __restrict ws, int n, FILE * __restrict fp, locale_t locale) in fgetws_l() argument
66 wsp = ws; in fgetws_l()
93 if (wsp == ws) in fgetws_l()
102 return (ws); in fgetws_l()
109 fgetws(wchar_t * __restrict ws, int n, FILE * __restrict fp) in fgetws() argument
111 return fgetws_l(ws, n, fp, __get_locale()); in fgetws()
HDfputws.c47 fputws_l(const wchar_t * __restrict ws, FILE * __restrict fp, locale_t locale) in fputws_l() argument
64 wsp = ws; in fputws_l()
83 fputws(const wchar_t * __restrict ws, FILE * __restrict fp) in fputws() argument
85 return fputws_l(ws, fp, __get_locale()); in fputws()
/NextBSD/usr.bin/mail/
HDmain.c326 struct winsize ws; in setscreensize() local
329 if (ioctl(1, TIOCGWINSZ, (char *)&ws) < 0) in setscreensize()
330 ws.ws_col = ws.ws_row = 0; in setscreensize()
339 else if (ws.ws_row != 0) in setscreensize()
340 screenheight = ws.ws_row; in setscreensize()
343 if ((realscreenheight = ws.ws_row) == 0) in setscreensize()
345 if ((screenwidth = ws.ws_col) == 0) in setscreensize()
/NextBSD/usr.bin/rlogin/
HDrlogin.c472 struct winsize ws; in sigwinch() local
474 if (dosigwinch && get_window_size(0, &ws) == 0 && in sigwinch()
475 bcmp(&ws, &winsize, sizeof(ws))) { in sigwinch()
476 winsize = ws; in sigwinch()
487 struct winsize ws; in sendwindow() local
494 ws.ws_row = htons(winsize.ws_row); in sendwindow()
495 ws.ws_col = htons(winsize.ws_col); in sendwindow()
496 ws.ws_xpixel = htons(winsize.ws_xpixel); in sendwindow()
497 ws.ws_ypixel = htons(winsize.ws_ypixel); in sendwindow()
498 bcopy(&ws, obuf + 4, sizeof(ws)); in sendwindow()
/NextBSD/crypto/heimdal/appl/telnet/telnetd/
HDtermstat.c96 struct winsize ws; in clientstat() local
105 ws.ws_col = parm1; in clientstat()
106 ws.ws_row = parm2; in clientstat()
107 ioctl(ourpty, TIOCSWINSZ, (char *)&ws); in clientstat()
/NextBSD/contrib/libarchive/libarchive/
HDarchive_util.c221 wchar_t *ws; in __archive_mktemp() local
228 ws = NULL; in __archive_mktemp()
264 ws = __la_win_permissive_name_w(temp_name.s); in __archive_mktemp()
265 if (ws == NULL) { in __archive_mktemp()
269 attr = GetFileAttributesW(ws); in __archive_mktemp()
308 free(ws); in __archive_mktemp()
309 ws = __la_win_permissive_name_w(temp_name.s); in __archive_mktemp()
310 if (ws == NULL) { in __archive_mktemp()
317 h = CreateFileW(ws, in __archive_mktemp()
343 free(ws); in __archive_mktemp()
/NextBSD/usr.bin/talk/
HDinit_disp.c195 struct winsize ws; in resize_display() local
197 if (ioctl(STDIN_FILENO, TIOCGWINSZ, &ws) < 0 || in resize_display()
198 (ws.ws_row == LINES && ws.ws_col == COLS)) in resize_display()
202 resizeterm(ws.ws_row, ws.ws_col); in resize_display()
/NextBSD/crypto/heimdal/lib/roken/
HDget_window_size.c67 struct winsize ws; in get_window_size() local
69 ret = ioctl(fd, TIOCGWINSZ, &ws); in get_window_size()
72 *lines = ws.ws_row; in get_window_size()
74 *columns = ws.ws_col; in get_window_size()
/NextBSD/contrib/compiler-rt/lib/sanitizer_common/tests/
HDsanitizer_bitvector_test.cc170 uptr ws = SANITIZER_WORDSIZE; in TEST() local
172 TestBitVector<TwoLevelBitVector<> >(ws * ws); in TEST()
173 TestBitVector<TwoLevelBitVector<2> >(ws * ws * 2); in TEST()
174 TestBitVector<TwoLevelBitVector<3> >(ws * ws * 3); in TEST()
/NextBSD/contrib/tcsh/
HDtc.nls.c44 wchar_t ws[2]; in xwcwidth() local
53 ws[0] = 0xd800 | (wchar >> 10); in xwcwidth()
54 ws[1] = 0xdc00 | (wchar & 0x3ff); in xwcwidth()
55 return wcswidth (ws, 2); in xwcwidth()
/NextBSD/contrib/top/
HDscreen.c392 struct winsize ws; in get_screensize() local
394 if (ioctl (1, TIOCGWINSZ, &ws) != -1) in get_screensize()
396 if (ws.ws_row != 0) in get_screensize()
398 screen_length = ws.ws_row; in get_screensize()
400 if (ws.ws_col != 0) in get_screensize()
402 screen_width = ws.ws_col - 1; in get_screensize()

1234567