Home
last modified time | relevance | path

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

1234567

/freebsd/sys/contrib/openzfs/module/zstd/lib/compress/
H A Dzstd_cwksp.h149 MEM_STATIC size_t ZSTD_cwksp_available_space(ZSTD_cwksp* ws);
151 MEM_STATIC void ZSTD_cwksp_assert_internal_consistency(ZSTD_cwksp* ws) { in ZSTD_cwksp_assert_internal_consistency() argument
152 (void)ws; in ZSTD_cwksp_assert_internal_consistency()
153 assert(ws->workspace <= ws->objectEnd); in ZSTD_cwksp_assert_internal_consistency()
154 assert(ws->objectEnd <= ws->tableEnd); in ZSTD_cwksp_assert_internal_consistency()
155 assert(ws->objectEnd <= ws->tableValidEnd); in ZSTD_cwksp_assert_internal_consistency()
156 assert(ws->tableEnd <= ws->allocStart); in ZSTD_cwksp_assert_internal_consistency()
157 assert(ws->tableValidEnd <= ws->allocStart); in ZSTD_cwksp_assert_internal_consistency()
158 assert(ws->allocStart <= ws->workspaceEnd); in ZSTD_cwksp_assert_internal_consistency()
189 ZSTD_cwksp* ws, ZSTD_cwksp_alloc_phase_e phase) { in ZSTD_cwksp_internal_advance_phase() argument
[all …]
/freebsd/sys/contrib/zstd/lib/compress/
H A Dzstd_cwksp.h164 MEM_STATIC size_t ZSTD_cwksp_available_space(ZSTD_cwksp* ws);
166 MEM_STATIC void ZSTD_cwksp_assert_internal_consistency(ZSTD_cwksp* ws) { in ZSTD_cwksp_assert_internal_consistency() argument
167 (void)ws; in ZSTD_cwksp_assert_internal_consistency()
168 assert(ws->workspace <= ws->objectEnd); in ZSTD_cwksp_assert_internal_consistency()
169 assert(ws->objectEnd <= ws->tableEnd); in ZSTD_cwksp_assert_internal_consistency()
170 assert(ws->objectEnd <= ws->tableValidEnd); in ZSTD_cwksp_assert_internal_consistency()
171 assert(ws->tableEnd <= ws->allocStart); in ZSTD_cwksp_assert_internal_consistency()
172 assert(ws->tableValidEnd <= ws->allocStart); in ZSTD_cwksp_assert_internal_consistency()
173 assert(ws->allocStart <= ws->workspaceEnd); in ZSTD_cwksp_assert_internal_consistency()
252 ZSTD_cwksp_reserve_internal_buffer_space(ZSTD_cwksp* ws, size_t const bytes) in ZSTD_cwksp_reserve_internal_buffer_space() argument
[all …]
/freebsd/sbin/routed/
H A Doutput.c58 } ws; variable
305 naddr_ntoa(ws.to.sin_addr.s_addr)); in supply_write()
310 if (ws.a != NULL && ws.a->type == RIP_AUTH_MD5) in supply_write()
311 end_md5_auth(wb,ws.a); in supply_write()
312 if (output(wb->type, &ws.to, ws.ifp, wb->buf, in supply_write()
314 && ws.ifp != NULL) in supply_write()
315 if_sick(ws.ifp); in supply_write()
316 ws.npackets++; in supply_write()
320 clr_ws_buf(wb,ws.a); in supply_write()
338 && (ws.state & WS_ST_FLASH)) in supply_out()
[all …]
/freebsd/contrib/libarchive/libarchive/test/
H A Dtest_acl_text.c237 wchar_t *ws = NULL; in convert_s_to_ws()
241 ws = malloc(len * sizeof(wchar_t)); in convert_s_to_ws()
242 assert(mbstowcs(ws, s, len) != (size_t)-1); in convert_s_to_ws()
245 return (ws); in convert_s_to_ws()
253 wchar_t *ws; in compare_acl_text()
256 ws = convert_s_to_ws(s); in compare_acl_text()
263 assertEqualWString(wtext, ws); in compare_acl_text()
269 free(ws); in compare_acl_text()
275 wchar_t *ws = NULL; in DEFINE_TEST()
300 ws in DEFINE_TEST()
238 wchar_t *ws = NULL; convert_s_to_ws() local
254 wchar_t *ws; compare_acl_text() local
276 wchar_t *ws = NULL; DEFINE_TEST() local
[all...]
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsMSAInstrFormats.td31 bits<5> ws;
38 let Inst{15-11} = ws;
44 bits<5> ws;
51 let Inst{15-11} = ws;
57 bits<5> ws;
64 let Inst{15-11} = ws;
70 bits<5> ws;
77 let Inst{15-11} = ws;
105 bits<5> ws;
110 let Inst{15-11} = ws;
[all …]
H A DMipsMSAInstrInfo.td350 def vbclr_b : PatFrag<(ops node:$ws, node:$wt),
351 (and node:$ws, (vnot (shl (vsplat_imm_eq_1), node:$wt)))>;
352 def vbclr_h : PatFrag<(ops node:$ws, node:$wt),
353 (and node:$ws, (vnot (shl (vsplat_imm_eq_1), node:$wt)))>;
354 def vbclr_w : PatFrag<(ops node:$ws, node:$wt),
355 (and node:$ws, (vnot (shl (vsplat_imm_eq_1), node:$wt)))>;
356 def vbclr_d : PatFrag<(ops node:$ws, node:$wt),
357 (and node:$ws, (vnot (shl (v2i64 (vsplat_imm_eq_1)),
360 def vbneg_b : PatFrag<(ops node:$ws, node:$wt),
361 (xor node:$ws, (shl (vsplat_imm_eq_1), node:$wt))>;
[all …]
/freebsd/sys/contrib/openzfs/include/os/freebsd/spl/sys/
H A Dwmsum.h40 wmsum_init(wmsum_t *ws, uint64_t value) in wmsum_init() argument
43 *ws = counter_u64_alloc(M_WAITOK); in wmsum_init()
44 counter_u64_add(*ws, value); in wmsum_init()
48 wmsum_fini(wmsum_t *ws) in wmsum_fini() argument
51 counter_u64_free(*ws); in wmsum_fini()
55 wmsum_value(wmsum_t *ws) in wmsum_value() argument
58 return (counter_u64_fetch(*ws)); in wmsum_value()
62 wmsum_add(wmsum_t *ws, int64_t delta) in wmsum_add() argument
65 counter_u64_add(*ws, delta); in wmsum_add()
/freebsd/sys/contrib/openzfs/lib/libspl/include/sys/
H A Dwmsum.h37 wmsum_init(wmsum_t *ws, uint64_t value) in wmsum_init() argument
40 aggsum_init(ws, value); in wmsum_init()
44 wmsum_fini(wmsum_t *ws) in wmsum_fini() argument
47 aggsum_fini(ws); in wmsum_fini()
51 wmsum_value(wmsum_t *ws) in wmsum_value() argument
54 return (aggsum_value(ws)); in wmsum_value()
58 wmsum_add(wmsum_t *ws, int64_t delta) in wmsum_add() argument
61 aggsum_add(ws, delta); in wmsum_add()
/freebsd/sys/contrib/openzfs/include/os/linux/spl/sys/
H A Dwmsum.h37 wmsum_init(wmsum_t *ws, uint64_t value) in wmsum_init() argument
39 percpu_counter_init(ws, value, GFP_KERNEL); in wmsum_init()
43 wmsum_fini(wmsum_t *ws) in wmsum_fini() argument
46 percpu_counter_destroy(ws); in wmsum_fini()
50 wmsum_value(wmsum_t *ws) in wmsum_value() argument
53 return (percpu_counter_sum(ws)); in wmsum_value()
57 wmsum_add(wmsum_t *ws, int64_t delta) in wmsum_add() argument
60 percpu_counter_add_batch(ws, delta, INT_MAX / 2); in wmsum_add()
/freebsd/lib/libc/net/
H A Dnscache.c331 cached_mp_write_session ws; in __nss_mp_cache_write() local
344 ws = cache_info->get_mp_ws_func(); in __nss_mp_cache_write()
345 if (ws == INVALID_CACHED_MP_WRITE_SESSION) { in __nss_mp_cache_write()
349 ws = __open_cached_mp_write_session(&params, in __nss_mp_cache_write()
351 if (ws == INVALID_CACHED_MP_WRITE_SESSION) in __nss_mp_cache_write()
354 cache_info->set_mp_ws_func(ws); in __nss_mp_cache_write()
385 res = __cached_mp_write(ws, buffer, buffer_size); in __nss_mp_cache_write()
394 cached_mp_write_session ws; in __nss_mp_cache_write_submit() local
402 ws = cache_info->get_mp_ws_func(); in __nss_mp_cache_write_submit()
403 if (ws != INVALID_CACHED_MP_WRITE_SESSION) { in __nss_mp_cache_write_submit()
[all …]
H A Dnscachedcli.c420 __cached_mp_write(struct cached_connection_ *ws, const char *data, in __cached_mp_write() argument
429 result = safe_write(ws, &request, sizeof(int)); in __cached_mp_write()
433 result = safe_write(ws, &data_size, sizeof(size_t)); in __cached_mp_write()
437 result = safe_write(ws, data, data_size); in __cached_mp_write()
441 result = safe_read(ws, &error_code, sizeof(int)); in __cached_mp_write()
454 __abandon_cached_mp_write_session(struct cached_connection_ *ws) in __abandon_cached_mp_write_session() argument
460 result = safe_write(ws, &notification, sizeof(int)); in __abandon_cached_mp_write_session()
461 __close_cached_connection(ws); in __abandon_cached_mp_write_session()
470 __close_cached_mp_write_session(struct cached_connection_ *ws) in __close_cached_mp_write_session() argument
475 (void)safe_write(ws, &notification, sizeof(int)); in __close_cached_mp_write_session()
[all …]
/freebsd/usr.sbin/nscd/
H A Dcachelib.c186 destroy_cache_mp_write_session(struct cache_mp_write_session_ *ws) in destroy_cache_mp_write_session() argument
192 assert(ws != NULL); in destroy_cache_mp_write_session()
193 while (!TAILQ_EMPTY(&ws->items)) { in destroy_cache_mp_write_session()
194 data_item = TAILQ_FIRST(&ws->items); in destroy_cache_mp_write_session()
195 TAILQ_REMOVE(&ws->items, data_item, entries); in destroy_cache_mp_write_session()
200 free(ws); in destroy_cache_mp_write_session()
220 struct cache_mp_write_session_ *ws; in destroy_cache_entry() local
258 ws = TAILQ_FIRST(&mp_entry->ws_head); in destroy_cache_entry()
259 TAILQ_REMOVE(&mp_entry->ws_head, ws, entries); in destroy_cache_entry()
260 destroy_cache_mp_write_session(ws); in destroy_cache_entry()
[all …]
/freebsd/lib/libc/stdio/
H A Dfgetws.c45 fgetws_l(wchar_t * __restrict ws, int n, FILE * __restrict fp, locale_t locale) in fgetws_l() argument
64 wsp = ws; in fgetws_l()
99 } while ((wsp == ws || wsp[-1] != L'\n') && n > 1 && (fp->_r > 0 || in fgetws_l()
110 if (wsp == ws) in fgetws_l()
115 ret = ws; in fgetws_l()
126 fgetws(wchar_t * __restrict ws, int n, FILE * __restrict fp) in fgetws() argument
128 return fgetws_l(ws, n, fp, __get_locale()); in fgetws()
H A Dfputws.c46 fputws_l(const wchar_t * __restrict ws, FILE * __restrict fp, locale_t locale) in fputws_l() argument
65 wsp = ws; in fputws_l()
82 fputws(const wchar_t * __restrict ws, FILE * __restrict fp) in fputws() argument
84 return fputws_l(ws, fp, __get_locale()); in fputws()
/freebsd/lib/libc/tests/stdio/
H A Dprintbasic_test.c70 wchar_t ws[BUF], wfmt[BUF], wresult[BUF]; in _testfmt() local
83 mbstowcs(ws, s, BUF - 1); in _testfmt()
86 vswprintf(ws, sizeof(ws) / sizeof(ws[0]), wfmt, ap2); in _testfmt()
87 ATF_CHECK_MSG(wcscmp(wresult, ws) == 0, in _testfmt()
89 wfmt, argstr, ws, wresult); in _testfmt()
H A Dprintfloat_test.c62 wchar_t ws[BUF], wfmt[BUF], wresult[BUF]; in _testfmt() local
75 mbstowcs(ws, s, BUF - 1); in _testfmt()
78 vswprintf(ws, sizeof(ws) / sizeof(ws[0]), wfmt, ap2); in _testfmt()
79 ATF_CHECK_MSG(wcscmp(wresult, ws) == 0, in _testfmt()
81 wfmt, argstr, ws, wresult); in _testfmt()
/freebsd/usr.bin/mail/
H A Dmain.c357 struct winsize ws; in setscreensize() local
360 if (ioctl(1, TIOCGWINSZ, (char *)&ws) < 0) in setscreensize()
361 ws.ws_col = ws.ws_row = 0; in setscreensize()
370 else if (ws.ws_row != 0) in setscreensize()
371 screenheight = ws.ws_row; in setscreensize()
374 if ((realscreenheight = ws.ws_row) == 0) in setscreensize()
376 if ((screenwidth = ws.ws_col) == 0) in setscreensize()
/freebsd/usr.bin/top/
H A Dscreen.c252 struct winsize ws; in get_screensize() local
254 if (ioctl (1, TIOCGWINSZ, &ws) != -1) in get_screensize()
256 if (ws.ws_row != 0) in get_screensize()
258 screen_length = ws.ws_row; in get_screensize()
260 if (ws.ws_col != 0) in get_screensize()
262 screen_width = ws.ws_col - 1; in get_screensize()
/freebsd/crypto/heimdal/appl/telnet/telnetd/
H A Dtermstat.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()
/freebsd/contrib/mandoc/
H A Dmdoc.c169 char *c, *ws, *end; in mdoc_ptext() local
196 ws = NULL; in mdoc_ptext()
200 if (NULL == ws) in mdoc_ptext()
201 ws = c; in mdoc_ptext()
209 if (NULL == ws) in mdoc_ptext()
210 ws = c; in mdoc_ptext()
224 ws = NULL; in mdoc_ptext()
231 if (ws) in mdoc_ptext()
232 mandoc_msg(MANDOCERR_SPACE_EOL, line, (int)(ws - buf), NULL); in mdoc_ptext()
/freebsd/usr.bin/talk/
H A Dinit_disp.c191 struct winsize ws; in resize_display() local
193 if (ioctl(STDIN_FILENO, TIOCGWINSZ, &ws) < 0 || in resize_display()
194 (ws.ws_row == LINES && ws.ws_col == COLS)) in resize_display()
198 resizeterm(ws.ws_row, ws.ws_col); in resize_display()
/freebsd/crypto/heimdal/lib/roken/
H A Dget_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()
/freebsd/crypto/openssh/openbsd-compat/
H A Dbsd-cygwin_util.c192 wchar_t *ws; in _match_pattern() local
199 ws = (wchar_t *) xcalloc(len + 1, sizeof (wchar_t)); in _match_pattern()
200 mbstowcs(ws, s, len + 1); in _match_pattern()
205 ret = __match_pattern (ws, wpattern); in _match_pattern()
206 free(ws); in _match_pattern()
/freebsd/contrib/tcsh/
H A Dtc.nls.c40 wchar_t ws[2]; in xwcwidth() local
49 ws[0] = 0xd800 | (wchar >> 10); in xwcwidth()
50 ws[1] = 0xdc00 | (wchar & 0x3ff); in xwcwidth()
51 return wcswidth (ws, 2); in xwcwidth()
/freebsd/contrib/libarchive/libarchive/
H A Darchive_util.c247 wchar_t *ws; in __archive_mktempx() local
257 ws = NULL; in __archive_mktempx()
295 ws = __la_win_permissive_name_w(temp_name.s); in __archive_mktempx()
296 if (ws == NULL) { in __archive_mktempx()
300 attr = GetFileAttributesW(ws); in __archive_mktempx()
368 free(ws); in __archive_mktempx()
369 ws = __la_win_permissive_name_w(template); in __archive_mktempx()
370 if (ws == NULL) { in __archive_mktempx()
386 h = CreateFile2(ws, in __archive_mktempx()
392 h = CreateFileW(ws, in __archive_mktempx()
[all …]

1234567