| /f-stack/freebsd/contrib/zstd/zlibWrapper/ |
| H A D | gzread.c | 73 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 D | gzwrite.c | 29 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 D | gzlib.c | 261 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 …]
|
| /f-stack/freebsd/contrib/zlib/ |
| H A D | gzread.c | 110 state->size = state->want; 162 state->x.next = state->out; 246 if (gz_load(state, state->out, state->size << 1, &(state->x.have)) 249 state->x.next = state->out; 312 if (gz_skip(state, state->skip) == -1) 505 if (gz_skip(state, state->skip) == -1) 516 state->x.next = state->out + (state->size << 1) - 1; 524 if (state->x.have == (state->size << 1)) { 530 if (state->x.next == state->out) { 569 if (gz_skip(state, state->skip) == -1) [all …]
|
| H A D | inflate.c | 137 state->lencode = state->distcode = state->next = state->codes; 423 zmemcpy(state->window, end - state->wsize, state->wsize); 425 state->whave = state->wsize; 435 state->whave = state->wsize; 439 if (state->wnext == state->wsize) state->wnext = 0; 440 if (state->whave < state->wsize) state->whave += dist; 946 state->next = state->codes; 960 while (state->have < state->nlen + state->ndist) { 1020 state->next = state->codes; 1101 state->was = state->length; [all …]
|
| H A D | gzwrite.c | 59 state->size = state->want; 85 if (state->size == 0 && gz_init(state) == -1) 123 state->x.next = state->out; 199 if (gz_zero(state, state->skip) == -1) 210 state->strm.next_in = state->in; 329 if (gz_zero(state, state->skip) == -1) 407 if (gz_zero(state, state->skip) == -1) in gzvprintf() 447 memcpy(state->in, state->in + state->size, left); in gzvprintf() 501 if (gz_zero(state, state->skip) == -1) 546 memcpy(state->in, state->in + state->size, left); [all …]
|
| H A D | infback.c | 62 strm->state = (struct internal_state FAR *)state; 378 while (state->have < state->ncode) { 385 state->next = state->codes; 399 while (state->have < state->nlen + state->ndist) { 436 if (state->have + copy > state->nlen + state->ndist) { 459 state->next = state->codes; 462 ret = inflate_table(LENS, state->lens, state->nlen, &(state->next), 471 ret = inflate_table(DISTS, state->lens + state->nlen, state->ndist, 472 &(state->next), &(state->distbits), state->work); 485 if (state->whave < state->wsize) [all …]
|
| H A D | gzlib.c | 261 state->start = LSEEK(state->fd, 0, SEEK_CUR); 262 if (state->start == -1) state->start = 0; 329 if (state->mode != GZ_READ && state->mode != GZ_WRITE) 362 if (LSEEK(state->fd, state->start, SEEK_SET) == -1) 382 if (state->mode != GZ_READ && state->mode != GZ_WRITE) 386 if (state->err != Z_OK && state->err != Z_BUF_ERROR) 401 if (state->mode == GZ_READ && state->how == COPY && 467 if (state->mode != GZ_READ && state->mode != GZ_WRITE) 471 return state->x.pos + (state->seek ? state->skip : 0); 531 return state->mode == GZ_READ ? state->past : 0; [all …]
|
| /f-stack/freebsd/contrib/openzfs/module/zfs/ |
| H A D | zcp.c | 138 zcp_cleanup(state); in zcp_error_handler() 142 luaL_traceback(state, state, msg, 1); in zcp_error_handler() 244 lua_pushnil(state); in zcp_table_to_nvlist() 292 lua_typename(state, lua_type(state, -2))); in zcp_table_to_nvlist() 330 lua_pop(state, 1); in zcp_table_to_nvlist() 408 lua_typename(state, lua_type(state, index)), key); in zcp_lua_to_nvlist_impl() 1042 lua_State *state; in zcp_eval() local 1068 lua_pop(state, 1); in zcp_eval() 1165 lua_close(state); in zcp_eval() 1370 if (lua_isnumber(state, -2) && lua_tointeger(state, -2) > 0) { in zcp_parse_table_args() [all …]
|
| H A D | zcp_iter.c | 64 return (luaL_error(state, in zcp_clones_iter() 82 return (luaL_error(state, in zcp_clones_iter() 94 return (luaL_error(state, in zcp_clones_iter() 167 return (luaL_error(state, in zcp_snapshots_iter() 185 return (luaL_error(state, in zcp_snapshots_iter() 231 lua_pushnumber(state, 0); in zcp_snapshots_list() 251 return (luaL_error(state, in zcp_children_iter() 271 return (luaL_error(state, in zcp_children_iter() 319 lua_pushnumber(state, 0); in zcp_children_list() 726 lua_newtable(state); in zcp_load_list_lib() [all …]
|
| /f-stack/dpdk/app/test-crypto-perf/ |
| H A D | cperf_test_pmd_cyclecount.c | 182 state->ctx->sess, state->opts, in pmd_cyclecount_bench_ops() 233 state->ctx->sess, state->opts, in pmd_cyclecount_build_ops() 309 state->ops_enqd = 0; in pmd_cyclecount_bench_burst_sz() 363 if (state->delay) in pmd_cyclecount_bench_burst_sz() 386 state->cycles_per_build = (double)tsc_op / state->opts->total_ops; in pmd_cyclecount_bench_burst_sz() 387 state->cycles_per_enq = (double)tsc_enq / state->ops_enqd; in pmd_cyclecount_bench_burst_sz() 388 state->cycles_per_deq = (double)tsc_deq / state->ops_deqd; in pmd_cyclecount_bench_burst_sz() 403 state.opts = opts; in cperf_pmd_cyclecount_test_runner() 431 state.ctx->lcore_id = state.lcore; in cperf_pmd_cyclecount_test_runner() 462 state.ops_enqd, state.ops_deqd, in cperf_pmd_cyclecount_test_runner() [all …]
|
| /f-stack/freebsd/contrib/vchiq/interface/vchiq_arm/ |
| H A D | vchiq_core.c | 307 VCHIQ_STATE_T *state = service->state; in unlock_service() local 362 VCHIQ_STATE_T *state = service->state; in mark_service_closing_internal() local 1341 VCHIQ_STATE_T *state = service->state; in resolve_bulks() local 2548 vchiq_states[state->id] = state; in vchiq_init_state() 2586 service->state = state; in vchiq_add_service_internal() 2738 VCHIQ_STATE_T *state = service->state; in release_service_messages() local 2883 VCHIQ_STATE_T *state = service->state; in vchiq_close_service_internal() local 3020 VCHIQ_STATE_T *state = service->state; in vchiq_terminate_service_internal() local 3035 VCHIQ_STATE_T *state = service->state; in vchiq_free_service_internal() local 3320 state = service->state; in vchiq_bulk_transfer() [all …]
|
| /f-stack/freebsd/arm/arm/ |
| H A D | unwind.c | 356 insn = (*state->insn) >> (state->byte * 8); in unwind_exec_read_byte() 360 state->byte = 3; in unwind_exec_read_byte() 361 state->insn++; in unwind_exec_read_byte() 364 state->byte--; in unwind_exec_read_byte() 487 state->registers[FP], state->registers[SP], state->registers[LR], in unwind_exec_insn() 507 state->byte = 2; in unwind_tab() 510 state->byte = 1; in unwind_tab() 511 state->entries = ((*state->insn >> 16) & 0xFF) + 1; in unwind_tab() 528 state->registers[PC] = state->registers[LR]; in unwind_tab() 533 if (state->start_pc != state->registers[PC]) in unwind_tab() [all …]
|
| /f-stack/freebsd/contrib/libsodium/src/libsodium/crypto_pwhash/argon2/ |
| H A D | argon2-fill-block-ssse3.c | 50 BLAKE2_ROUND(state[8 * i + 0], state[8 * i + 1], state[8 * i + 2], in fill_block() 51 state[8 * i + 3], state[8 * i + 4], state[8 * i + 5], in fill_block() 52 state[8 * i + 6], state[8 * i + 7]); in fill_block() 56 BLAKE2_ROUND(state[8 * 0 + i], state[8 * 1 + i], state[8 * 2 + i], in fill_block() 57 state[8 * 3 + i], state[8 * 4 + i], state[8 * 5 + i], in fill_block() 58 state[8 * 6 + i], state[8 * 7 + i]); in fill_block() 62 state[i] = _mm_xor_si128(state[i], block_XY[i]); in fill_block() 82 BLAKE2_ROUND(state[8 * i + 0], state[8 * i + 1], state[8 * i + 2], in fill_block_with_xor() 83 state[8 * i + 3], state[8 * i + 4], state[8 * i + 5], in fill_block_with_xor() 88 BLAKE2_ROUND(state[8 * 0 + i], state[8 * 1 + i], state[8 * 2 + i], in fill_block_with_xor() [all …]
|
| H A D | argon2-fill-block-avx512f.c | 57 state[8 * i + 0], state[8 * i + 1], state[8 * i + 2], state[8 * i + 3], in fill_block() 58 state[8 * i + 4], state[8 * i + 5], state[8 * i + 6], state[8 * i + 7]); in fill_block() 63 state[2 * 0 + i], state[2 * 1 + i], state[2 * 2 + i], state[2 * 3 + i], in fill_block() 64 state[2 * 4 + i], state[2 * 5 + i], state[2 * 6 + i], state[2 * 7 + i]); in fill_block() 68 state[i] = _mm512_xor_si512(state[i], block_XY[i]); in fill_block() 81 state[i] = _mm512_xor_si512( in fill_block_with_xor() 89 state[8 * i + 0], state[8 * i + 1], state[8 * i + 2], state[8 * i + 3], in fill_block_with_xor() 90 state[8 * i + 4], state[8 * i + 5], state[8 * i + 6], state[8 * i + 7]); in fill_block_with_xor() 95 state[2 * 0 + i], state[2 * 1 + i], state[2 * 2 + i], state[2 * 3 + i], in fill_block_with_xor() 96 state[2 * 4 + i], state[2 * 5 + i], state[2 * 6 + i], state[2 * 7 + i]); in fill_block_with_xor() [all …]
|
| H A D | argon2-fill-block-avx2.c | 55 BLAKE2_ROUND_1(state[8 * i + 0], state[8 * i + 4], state[8 * i + 1], state[8 * i + 5], in fill_block() 56 state[8 * i + 2], state[8 * i + 6], state[8 * i + 3], state[8 * i + 7]); in fill_block() 60 BLAKE2_ROUND_2(state[ 0 + i], state[ 4 + i], state[ 8 + i], state[12 + i], in fill_block() 61 state[16 + i], state[20 + i], state[24 + i], state[28 + i]); in fill_block() 65 state[i] = _mm256_xor_si256(state[i], block_XY[i]); in fill_block() 78 state[i] = _mm256_xor_si256( in fill_block_with_xor() 85 BLAKE2_ROUND_1(state[8 * i + 0], state[8 * i + 4], state[8 * i + 1], state[8 * i + 5], in fill_block_with_xor() 86 state[8 * i + 2], state[8 * i + 6], state[8 * i + 3], state[8 * i + 7]); in fill_block_with_xor() 90 BLAKE2_ROUND_2(state[ 0 + i], state[ 4 + i], state[ 8 + i], state[12 + i], in fill_block_with_xor() 91 state[16 + i], state[20 + i], state[24 + i], state[28 + i]); in fill_block_with_xor() [all …]
|
| /f-stack/freebsd/contrib/octeon-sdk/ |
| H A D | cvmx-mgmt-port.c | 220 memset(state, 0, sizeof(*state)); in cvmx_mgmt_port_initialize() 281 state->mac += 0xffffff & CAST64(state); in cvmx_mgmt_port_initialize() 560 memcpy(state->tx_buffers[state->tx_write_index] + 6, ((char*)&state->mac) + 2, 6); in cvmx_mgmt_port_send() 562 state->tx_ring[state->tx_write_index].s.len = packet_len; in cvmx_mgmt_port_send() 564 state->tx_ring[state->tx_write_index].s.tstamp = 0; in cvmx_mgmt_port_send() 619 state->tx_ring[state->tx_write_index].s.tstamp = 0; in cvmx_mgmt_port_sendm() 680 while (state->rx_ring[state->rx_read_index].s.code == 16) in cvmx_mgmt_port_receive() 694 state->rx_ring[state->rx_read_index].s.code = 0; in cvmx_mgmt_port_receive() 707 if (state->rx_ring[state->rx_read_index].s.code == 15) in cvmx_mgmt_port_receive() 725 … state->rx_ring[state->rx_read_index].s.code, state->rx_ring[state->rx_read_index].s.len + result); in cvmx_mgmt_port_receive() [all …]
|
| /f-stack/dpdk/drivers/net/nfp/nfpcore/ |
| H A D | nfp_nsp.c | 38 return state->idx; in nfp_nsp_config_idx() 45 state->idx = idx; in nfp_nsp_config_set_state() 52 state->idx = 0; in nfp_nsp_config_clear_state() 91 if (state->ver.major != NSP_MAJOR || state->ver.minor < NSP_MINOR) { in nfp_nsp_check() 120 state = malloc(sizeof(*state)); in nfp_nsp_open() 121 if (!state) { in nfp_nsp_open() 125 memset(state, 0, sizeof(*state)); in nfp_nsp_open() 126 state->cpp = cpp; in nfp_nsp_open() 127 state->res = res; in nfp_nsp_open() 135 return state; in nfp_nsp_open() [all …]
|
| /f-stack/freebsd/kern/ |
| H A D | kern_clocksource.c | 145 now = state->now; in hardclockintr() 210 state->nextprof = state->nextstat; in handleevents() 211 if (now >= state->nextcallopt || now >= state->nextcall) { in handleevents() 212 state->nextcall = state->nextcallopt = SBT_MAX; in handleevents() 217 ET_HW_LOCK(state); in handleevents() 219 state->idle = 0; in handleevents() 325 state->now = now; 367 state->ipi = 0; 689 ET_HW_LOCK(state); 690 state->now = now; [all …]
|
| /f-stack/freebsd/contrib/pcg-c/include/ |
| H A D | pcg_variants.h | 117 return (uint8_t)(((state >> 7u) ^ state) >> ((state >> 14u) + 3u)); in pcg_output_xsh_rs_16_8() 142 return pcg_rotr_8(((state >> 5u) ^ state) >> 5u, state >> 13u); in pcg_output_xsh_rr_16_8() 147 return pcg_rotr_16(((state >> 10u) ^ state) >> 12u, state >> 28u); in pcg_output_xsh_rr_32_16() 152 return pcg_rotr_32(((state >> 18u) ^ state) >> 27u, state >> 59u); in pcg_output_xsh_rr_64_32() 158 return pcg_rotr_64(((state >> 35u) ^ state) >> 58u, state >> 122u); in pcg_output_xsh_rr_128_64() 166 uint8_t word = ((state >> ((state >> 6u) + 2u)) ^ state) * 217u; in pcg_output_rxs_m_xs_8_8() 184 uint64_t word = ((state >> ((state >> 59u) + 5u)) ^ state) in pcg_output_rxs_m_xs_64_64() 192 pcg128_t word = ((state >> ((state >> 122u) + 6u)) ^ state) in pcg_output_rxs_m_xs_128_128() 204 return (((state >> ((state >> 13u) + 3u)) ^ state) * 62169u) >> 8u; in pcg_output_rxs_m_16_8() 214 return (((state >> ((state >> 59u) + 5u)) ^ state) in pcg_output_rxs_m_64_32() [all …]
|
| /f-stack/app/redis-5.0.5/src/ |
| H A D | ae_evport.c | 78 if (!state) return -1; in aeApiCreate() 80 state->portfd = port_create(); in aeApiCreate() 81 if (state->portfd == -1) { in aeApiCreate() 82 zfree(state); in aeApiCreate() 86 state->npending = 0; in aeApiCreate() 93 eventLoop->apidata = state; in aeApiCreate() 105 close(state->portfd); in aeApiFree() 106 zfree(state); in aeApiFree() 261 state->pending_fds[i], state->pending_masks[i]) != 0) { in aeApiPoll() 270 state->npending = 0; in aeApiPoll() [all …]
|
| H A D | ae_ff_kqueue.c | 46 if (!state) return -1; in aeApiCreate() 48 if (!state->events) { in aeApiCreate() 49 zfree(state); in aeApiCreate() 53 if (state->kqfd == -1) { in aeApiCreate() 55 zfree(state); in aeApiCreate() 65 state->events = zrealloc(state->events, sizeof(struct kevent)*setsize); in aeApiResize() 72 close(state->kqfd); in aeApiFree() 73 zfree(state->events); in aeApiFree() 74 zfree(state); in aeApiFree() 114 retval = ff_kevent(state->kqfd, NULL, 0, state->events, eventLoop->setsize, in aeApiPoll() [all …]
|
| H A D | ae_kqueue.c | 44 if (!state) return -1; in aeApiCreate() 46 if (!state->events) { in aeApiCreate() 47 zfree(state); in aeApiCreate() 50 state->kqfd = kqueue(); in aeApiCreate() 53 zfree(state); in aeApiCreate() 63 state->events = zrealloc(state->events, sizeof(struct kevent)*setsize); in aeApiResize() 70 close(state->kqfd); in aeApiFree() 71 zfree(state->events); in aeApiFree() 72 zfree(state); in aeApiFree() 112 retval = kevent(state->kqfd, NULL, 0, state->events, eventLoop->setsize, in aeApiPoll() [all …]
|
| /f-stack/freebsd/contrib/libsodium/src/libsodium/crypto_secretstream/xchacha20poly1305/ |
| H A D | secretstream_xchacha20poly1305.c | 30 memset(STATE_COUNTER(state), 0, in _crypto_secretstream_xchacha20poly1305_counter_reset() 32 STATE_COUNTER(state)[0] = 1; in _crypto_secretstream_xchacha20poly1305_counter_reset() local 62 memset(state->_pad, 0, sizeof state->_pad); in crypto_secretstream_xchacha20poly1305_init_push() 77 memset(state->_pad, 0, sizeof state->_pad); in crypto_secretstream_xchacha20poly1305_init_pull() 99 state->nonce, state->k); in crypto_secretstream_xchacha20poly1305_rekey() 129 crypto_stream_chacha20_ietf(block, sizeof block, state->nonce, state->k); in crypto_secretstream_xchacha20poly1305_push() 140 state->nonce, 1U, state->k); in crypto_secretstream_xchacha20poly1305_push() 145 crypto_stream_chacha20_ietf_xor_ic(c, m, mlen, state->nonce, 2U, state->k); in crypto_secretstream_xchacha20poly1305_push() 205 crypto_stream_chacha20_ietf(block, sizeof block, state->nonce, state->k); in crypto_secretstream_xchacha20poly1305_pull() 216 state->nonce, 1U, state->k); in crypto_secretstream_xchacha20poly1305_pull() [all …]
|
| /f-stack/app/nginx-1.16.1/src/http/ |
| H A D | ngx_http_parse.c | 135 } state; in ngx_http_parse_request_line() local 137 state = r->state; in ngx_http_parse_request_line() 822 r->state = state; in ngx_http_parse_request_line() 860 } state; in ngx_http_parse_header_line() local 874 state = r->state; in ngx_http_parse_header_line() 1090 r->state = state; in ngx_http_parse_header_line() 1123 } state; in ngx_http_parse_uri() local 1626 state = r->state; in ngx_http_parse_status_line() 1803 r->state = state; in ngx_http_parse_status_line() 2153 state = ctx->state; in ngx_http_parse_chunked() [all …]
|