Home
last modified time | relevance | path

Searched refs:state (Results 1 – 25 of 2826) sorted by relevance

12345678910>>...114

/freebsd/sys/contrib/zstd/zlibWrapper/
H A Dgzread.c73 if (state.state->err != Z_OK && state.state->err != Z_BUF_ERROR)
112 if (state.state->in == NULL || state.state->out == NULL) {
118 state.state->size = state.state->want;
171 state.state->x.next = state.state->out;
225 state.state->x.next = strm->next_out - state.state->x.have;
255 if (gz_load(state, state.state->out, state.state->size << 1, &(state.state->x.have))
258 state.state->x.next = state.state->out;
537 state.state->x.next = state.state->out + (state.state->size << 1) - 1;
545 if (state.state->x.have == (state.state->size << 1)) {
551 if (state.state->x.next == state.state->out) {
[all …]
H A Dgzwrite.c29 state.state->in = (unsigned char*)malloc(state.state->want << 1);
38 state.state->out = (unsigned char*)malloc(state.state->want);
61 state.state->size = state.state->want;
125 state.state->x.next = state.state->out;
212 state.state->strm.next_in = state.state->in;
264 if (state.state->mode != GZ_WRITE || state.state->err != Z_OK)
295 if (state.state->mode != GZ_WRITE || state.state->err != Z_OK)
326 if (state.state->mode != GZ_WRITE || state.state->err != Z_OK)
372 if (state.state->mode != GZ_WRITE || state.state->err != Z_OK)
450 memcpy(state.state->in, state.state->in + state.state->size, left); in gzvprintf()
[all …]
H A Dgzlib.c261 state.state->start = LSEEK(state.state->fd, 0, SEEK_CUR);
262 if (state.state->start == -1) state.state->start = 0;
329 if (state.state->mode != GZ_READ && state.state->mode != GZ_WRITE)
362 if (LSEEK(state.state->fd, state.state->start, SEEK_SET) == -1)
382 if (state.state->mode != GZ_READ && state.state->mode != GZ_WRITE)
386 if (state.state->err != Z_OK && state.state->err != Z_BUF_ERROR)
401 if (state.state->mode == GZ_READ && state.state->how == COPY &&
467 if (state.state->mode != GZ_READ && state.state->mode != GZ_WRITE)
471 return state.state->x.pos + (state.state->seek ? state.state->skip : 0);
531 return state.state->mode == GZ_READ ? state.state->past : 0;
[all …]
/freebsd/contrib/lutok/
H A Dstate_test.cpp192 lutok::state state; in ATF_TEST_CASE_BODY() local
202 lutok::state state; in ATF_TEST_CASE_BODY() local
213 lutok::state state; in ATF_TEST_CASE_BODY() local
223 lutok::state state; in ATF_TEST_CASE_BODY() local
237 lutok::state state; in ATF_TEST_CASE_BODY() local
252 lutok::state state; in ATF_TEST_CASE_BODY() local
265 lutok::state state; in ATF_TEST_CASE_BODY() local
284 lutok::state state; in ATF_TEST_CASE_BODY() local
295 lutok::state state; in ATF_TEST_CASE_BODY() local
309 lutok::state state; in ATF_TEST_CASE_BODY() local
[all …]
H A Doperations_test.cpp83 lutok::state state; in ATF_TEST_CASE_BODY() local
97 lutok::state state; in ATF_TEST_CASE_BODY() local
111 lutok::state state; in ATF_TEST_CASE_BODY() local
135 lutok::state state; in ATF_TEST_CASE_BODY() local
156 lutok::state state; in ATF_TEST_CASE_BODY() local
173 lutok::state state; in ATF_TEST_CASE_BODY() local
186 lutok::state state; in ATF_TEST_CASE_BODY() local
198 lutok::state state; in ATF_TEST_CASE_BODY() local
212 lutok::state state; in ATF_TEST_CASE_BODY() local
226 lutok::state state; in ATF_TEST_CASE_BODY() local
[all …]
/freebsd/sys/contrib/zlib/
H A Dgzread.c91 state->size = state->want; in gz_look()
143 state->x.next = state->out; in gz_look()
221 if (gz_load(state, state->out, state->size << 1, &(state->x.have)) in gz_fetch()
224 state->x.next = state->out; in gz_fetch()
280 if (gz_skip(state, state->skip) == -1) in gz_read()
448 if (state->mode == GZ_READ && state->how == LOOK && state->x.have == 0) in gzungetc()
459 if (gz_skip(state, state->skip) == -1) in gzungetc()
470 state->x.next = state->out + (state->size << 1) - 1; in gzungetc()
478 if (state->x.have == (state->size << 1)) { in gzungetc()
484 if (state->x.next == state->out) { in gzungetc()
[all …]
H A Dinflate.c123 state->lencode = state->distcode = state->next = state->codes; in inflateResetKeep()
391 zmemcpy(state->window, end - state->wsize, state->wsize); in updatewindow()
393 state->whave = state->wsize; in updatewindow()
403 state->whave = state->wsize; in updatewindow()
407 if (state->wnext == state->wsize) state->wnext = 0; in updatewindow()
408 if (state->whave < state->wsize) state->whave += dist; in updatewindow()
925 state->next = state->codes; in inflate()
940 while (state->have < state->nlen + state->ndist) { in inflate()
1000 state->next = state->codes; in inflate()
1084 state->was = state->length; in inflate()
[all …]
H A Dgzwrite.c17 state->in = (unsigned char *)malloc(state->want << 1); in gz_init()
49 state->size = state->want; in gz_init()
72 if (state->size == 0 && gz_init(state) == -1) in gz_comp()
119 state->x.next = state->out; in gz_comp()
188 if (gz_zero(state, state->skip) == -1) in gz_write()
199 state->strm.next_in = state->in; in gz_write()
307 if (gz_zero(state, state->skip) == -1) in gzputc()
384 if (gz_zero(state, state->skip) == -1) in gzvprintf()
424 memmove(state->in, state->in + state->size, left); in gzvprintf()
519 memmove(state->in, state->in + state->size, left); in gzprintf()
[all …]
H A Dgzlib.c250 state->start = LSEEK(state->fd, 0, SEEK_CUR); in gz_open()
251 if (state->start == -1) state->start = 0; in gz_open()
303 if (state->mode != GZ_READ && state->mode != GZ_WRITE) in gzbuffer()
334 if (LSEEK(state->fd, state->start, SEEK_SET) == -1) in gzrewind()
350 if (state->mode != GZ_READ && state->mode != GZ_WRITE) in gzseek64()
354 if (state->err != Z_OK && state->err != Z_BUF_ERROR) in gzseek64()
369 if (state->mode == GZ_READ && state->how == COPY && in gzseek64()
429 if (state->mode != GZ_READ && state->mode != GZ_WRITE) in gztell64()
433 return state->x.pos + (state->seek ? state->skip : 0); in gztell64()
485 return state->mode == GZ_READ ? state->past : 0; in gzeof()
[all …]
H A Dinfback.c55 strm->state = (struct internal_state FAR *)state; in inflateBackInit_()
365 while (state->have < state->ncode) { in inflateBack()
372 state->next = state->codes; in inflateBack()
386 while (state->have < state->nlen + state->ndist) { in inflateBack()
423 if (state->have + copy > state->nlen + state->ndist) { in inflateBack()
446 state->next = state->codes; in inflateBack()
449 ret = inflate_table(LENS, state->lens, state->nlen, &(state->next), in inflateBack()
458 ret = inflate_table(DISTS, state->lens + state->nlen, state->ndist, in inflateBack()
459 &(state->next), &(state->distbits), state->work); in inflateBack()
473 if (state->whave < state->wsize) in inflateBack()
[all …]
/freebsd/contrib/kyua/utils/config/
H A Dlua_module.cpp54 get_global_tree(lutok::state& state) in get_global_tree() argument
65 state.pop(1); in get_global_tree()
113 new_table_for_key(lutok::state& state, const std::string& tree_key) in new_table_for_key() argument
153 redirect_newindex(lutok::state& state) in redirect_newindex() argument
173 state.push_string("_" + state.to_string(-2)); in redirect_newindex()
194 redirect_index(lutok::state& state) in redirect_index() argument
203 state.push_string("_" + state.to_string(-1)); in redirect_index()
207 state.pop(1); in redirect_index()
227 state.push_string("_" + state.to_string(-1)); in redirect_index()
260 config::redirect(lutok::state& state, tree& out_tree) in redirect() argument
[all …]
/freebsd/contrib/kyua/utils/fs/
H A Dlua_module_test.cpp46 lutok::state state; in ATF_TEST_CASE_BODY() local
62 lutok::state state; in ATF_TEST_CASE_BODY() local
75 lutok::state state; in ATF_TEST_CASE_BODY() local
90 lutok::state state; in ATF_TEST_CASE_BODY() local
103 lutok::state state; in ATF_TEST_CASE_BODY() local
118 lutok::state state; in ATF_TEST_CASE_BODY() local
141 lutok::state state; in ATF_TEST_CASE_BODY() local
156 lutok::state state; in ATF_TEST_CASE_BODY() local
190 lutok::state state; in ATF_TEST_CASE_BODY() local
212 lutok::state state; in ATF_TEST_CASE_BODY() local
[all …]
H A Dlua_module.cpp65 qualify_path(lutok::state& state, const fs::path& path) in qualify_path() argument
92 to_path(lutok::state& state, const int index) in to_path() argument
109 lua_fs_basename(lutok::state& state) in lua_fs_basename() argument
129 lua_fs_dirname(lutok::state& state) in lua_fs_dirname() argument
149 lua_fs_exists(lutok::state& state) in lua_fs_exists() argument
153 const fs::path path = qualify_path(state, to_path(state, -1)); in lua_fs_exists()
173 files_iterator(lutok::state& state) in files_iterator() argument
201 files_gc(lutok::state& state) in files_gc() argument
228 lua_fs_files(lutok::state& state) in lua_fs_files() argument
266 lua_fs_is_absolute(lutok::state& state) in lua_fs_is_absolute() argument
[all …]
/freebsd/sys/dev/bhnd/nvram/
H A Dbhnd_nvram_data_sprom_subr.c160 memset(&state->var, 0, sizeof(state->var)); in bhnd_sprom_opcode_reset()
162 state->input = state->layout->bindings; in bhnd_sprom_opcode_reset()
166 bit_set(state->revs, state->layout->rev); in bhnd_sprom_opcode_reset()
246 return (bsearch(&vid, state->idx, state->num_idx, sizeof(state->idx[0]), in bhnd_sprom_opcode_index_find()
323 opcodes = (state->input - state->layout->bindings); in bhnd_sprom_opcode_init_entry()
354 state->input = state->layout->bindings + entry->opcodes; in bhnd_sprom_opcode_seek()
399 memset(state->revs, 0x0, sizeof(state->revs)); in bhnd_sprom_opcode_set_revs()
575 memset(&state->var.bind, 0, sizeof(state->var.bind)); in bhnd_sprom_opcode_flush_bind()
662 memset(&state->var, 0, sizeof(state->var)); in bhnd_sprom_opcode_clear_var()
757 memset(&state->var, 0x0, sizeof(state->var)); in bhnd_sprom_opcode_set_var()
[all …]
/freebsd/usr.sbin/daemon/
H A Ddaemon.c297 state.output_fd = open_log(state.output_filename); in main()
318 if (daemon(state.keep_cur_workdir, state.keep_fds_open) == -1) { in main()
351 execvp(state->argv[0], state->argv); in daemon_exec()
431 setproctitle("%s[%d]", state->title, (int)state->pid); in daemon_eventloop()
482 if (state->log_reopen && state->output_fd >= 0) { in daemon_eventloop()
603 rv = read(state->pipe_rd, state->buf + state->pos, in listen_child()
618 cp = memrchr(state->buf, '\n', state->pos); in listen_child()
622 do_output(state->buf, bytes_line, state); in listen_child()
624 memmove(state->buf, cp + 1, state->pos); in listen_child()
630 do_output(state->buf, state->pos, state); in listen_child()
[all …]
/freebsd/contrib/libarchive/libarchive/
H A Darchive_write_add_filter_compress.c191 state->cur_maxcode = MAXCODE(state->code_len); in archive_compressor_compress_open()
268 state->bit_offset += state->code_len; in output_code()
270 if (state->bit_offset == state->code_len * 8) in output_code()
300 state->cur_maxcode = state->max_maxcode; in output_code()
356 if (state->hashtab[i] == state->cur_fcode) { in archive_compressor_compress_write()
357 state->cur_code = state->codetab[i]; in archive_compressor_compress_write()
371 if (state->hashtab[i] == state->cur_fcode) { in archive_compressor_compress_write()
372 state->cur_code = state->codetab[i]; in archive_compressor_compress_write()
382 if (state->first_free < state->max_maxcode) { in archive_compressor_compress_write()
384 state->hashtab[i] = state->cur_fcode; in archive_compressor_compress_write()
[all …]
H A Darchive_read_support_filter_compress.c249 state->maxcode = (1 << state->maxcode_bits); in compress_bidder_init()
254 state->stackp = state->stack; in compress_bidder_init()
289 if (state->stackp > state->stack) { in compress_filter_read()
376 *state->stackp++ = state->finbyte; in next_code()
382 *state->stackp++ = state->suffix[code]; in next_code()
385 *state->stackp++ = state->finbyte = code; in next_code()
390 state->prefix[code] = state->oldcode; in next_code()
391 state->suffix[code] = state->finbyte; in next_code()
397 if (state->bits == state->maxcode_bits) in next_code()
398 state->section_end_code = state->maxcode; in next_code()
[all …]
H A Darchive_read_support_filter_program.c142 state = (struct program_bidder *)calloc(1, sizeof (*state)); in archive_read_support_filter_program_signature()
143 if (state == NULL) in archive_read_support_filter_program_signature()
180 if (state) { in free_state()
183 free(state); in free_state()
207 if (memcmp(p, state->signature, state->signature_len) != 0) in program_bidder_bid()
243 = waitpid(state->child, &state->exit_status, 0); in child_stop()
401 state = (struct program_filter *)calloc(1, sizeof(*state)); in __archive_read_program()
409 free(state); in __archive_read_program()
424 &state->child_stdout, &state->child); in __archive_read_program()
428 free(state); in __archive_read_program()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Support/BLAKE3/
H A Dblake3_portable.c10 state[a] = state[a] + state[b] + x; in g()
11 state[d] = rotr32(state[d] ^ state[a], 16); in g()
12 state[c] = state[c] + state[d]; in g()
13 state[b] = rotr32(state[b] ^ state[c], 12); in g()
14 state[a] = state[a] + state[b] + y; in g()
15 state[d] = rotr32(state[d] ^ state[a], 8); in g()
16 state[c] = state[c] + state[d]; in g()
17 state[b] = rotr32(state[b] ^ state[c], 7); in g()
90 cv[0] = state[0] ^ state[8]; in blake3_compress_in_place_portable()
91 cv[1] = state[1] ^ state[9]; in blake3_compress_in_place_portable()
[all …]
/freebsd/sys/contrib/openzfs/module/icp/algs/blake3/
H A Dblake3_generic.c36 state[a] = state[a] + state[b] + x; in g()
37 state[d] = rotr32(state[d] ^ state[a], 16); in g()
38 state[c] = state[c] + state[d]; in g()
39 state[b] = rotr32(state[b] ^ state[c], 12); in g()
40 state[a] = state[a] + state[b] + y; in g()
41 state[d] = rotr32(state[d] ^ state[a], 8); in g()
42 state[c] = state[c] + state[d]; in g()
43 state[b] = rotr32(state[b] ^ state[c], 7); in g()
119 cv[0] = state[0] ^ state[8]; in blake3_compress_in_place_generic()
120 cv[1] = state[1] ^ state[9]; in blake3_compress_in_place_generic()
[all …]
/freebsd/contrib/tcpdump/missing/
H A Dsnprintf.c78 if (state->max_sz && state->sz >= state->max_sz)
81 state->sz = max(state->sz * 2, state->sz + n);
83 state->sz = min(state->sz, state->max_sz);
88 state->s = state->str + off;
89 state->theend = state->str + state->sz - 1;
107 append_number(struct state *state, in append_number() argument
415 *arg = state->s - state->str; in xyzprintf()
475 struct state state;
484 state.s = state.str;
485 state.theend = state.s + state.sz - 1;
[all …]
/freebsd/sys/dev/evdev/
H A Duinput.c57 #define UINPUT_LOCK(state) sx_xlock(&(state)->ucs_lock) argument
58 #define UINPUT_UNLOCK(state) sx_unlock(&(state)->ucs_lock) argument
59 #define UINPUT_LOCK_ASSERT(state) sx_assert(&(state)->ucs_lock, SA_LOCKED) argument
61 ((state)->ucs_buffer_head == (state)->ucs_buffer_tail)
164 UINPUT_LOCK(state); in uinput_ev_event()
191 debugf(state, "state %p: buffer overflow", state); in uinput_enqueue_event()
260 ret = sx_sleep(state, &state->ucs_lock, in uinput_read()
267 event = &state->ucs_buffer[state->ucs_buffer_head]; in uinput_read()
268 state->ucs_buffer_head = (state->ucs_buffer_head + 1) % in uinput_read()
456 wakeup(state); in uinput_notify()
[all …]
/freebsd/contrib/bearssl/src/symcipher/
H A Daes_small_enc.c51 state[i] = S[state[i]]; in sub_bytes()
60 tmp = state[1]; in shift_rows()
61 state[1] = state[5]; in shift_rows()
62 state[5] = state[9]; in shift_rows()
63 state[9] = state[13]; in shift_rows()
66 tmp = state[2]; in shift_rows()
67 state[2] = state[10]; in shift_rows()
70 state[6] = state[14]; in shift_rows()
74 state[15] = state[11]; in shift_rows()
75 state[11] = state[7]; in shift_rows()
[all …]
H A Daes_small_dec.c77 state[i] = iS[state[i]]; in inv_sub_bytes()
87 state[13] = state[9]; in inv_shift_rows()
88 state[9] = state[5]; in inv_shift_rows()
89 state[5] = state[1]; in inv_shift_rows()
90 state[1] = tmp; in inv_shift_rows()
92 tmp = state[2]; in inv_shift_rows()
93 state[2] = state[10]; in inv_shift_rows()
96 state[6] = state[14]; in inv_shift_rows()
100 state[3] = state[7]; in inv_shift_rows()
101 state[7] = state[11]; in inv_shift_rows()
[all …]
/freebsd/contrib/expat/lib/
H A Dxmlrole.c119 # define setTopLevel(state) ((state)->handler = internalSubset) argument
513 setTopLevel(state); in entity5()
608 setTopLevel(state); in entity10()
942 state->level = 1; in element1()
962 state->level = 2; in element2()
1053 state->level += 1; in element6()
1082 state->level -= 1; in element7()
1089 state->level -= 1; in element7()
1096 state->level -= 1; in element7()
1103 state->level -= 1; in element7()
[all …]

12345678910>>...114