/dragonfly/contrib/zlib-1.2/ |
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 | gzread.c | 107 state->size = state->want; 159 state->x.next = state->out; 243 if (gz_load(state, state->out, state->size << 1, &(state->x.have)) 246 state->x.next = state->out; 309 if (gz_skip(state, state->skip) == -1) 502 if (gz_skip(state, state->skip) == -1) 513 state->x.next = state->out + (state->size << 1) - 1; 521 if (state->x.have == (state->size << 1)) { 527 if (state->x.next == state->out) { 566 if (gz_skip(state, state->skip) == -1) [all …]
|
H A D | gzwrite.c | 56 state->size = state->want; 82 if (state->size == 0 && gz_init(state) == -1) 120 state->x.next = state->out; 196 if (gz_zero(state, state->skip) == -1) 207 state->strm.next_in = state->in; 326 if (gz_zero(state, state->skip) == -1) 404 if (gz_zero(state, state->skip) == -1) in gzvprintf() 444 memcpy(state->in, state->in + state->size, left); in gzvprintf() 498 if (gz_zero(state, state->skip) == -1) 543 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 | 258 state->start = LSEEK(state->fd, 0, SEEK_CUR); 259 if (state->start == -1) state->start = 0; 326 if (state->mode != GZ_READ && state->mode != GZ_WRITE) 359 if (LSEEK(state->fd, state->start, SEEK_SET) == -1) 379 if (state->mode != GZ_READ && state->mode != GZ_WRITE) 383 if (state->err != Z_OK && state->err != Z_BUF_ERROR) 398 if (state->mode == GZ_READ && state->how == COPY && 464 if (state->mode != GZ_READ && state->mode != GZ_WRITE) 468 return state->x.pos + (state->seek ? state->skip : 0); 528 return state->mode == GZ_READ ? state->past : 0; [all …]
|
/dragonfly/sys/vfs/hammer2/zlib/ |
H A D | hammer2_zlib_inflate.c | 131 state->lencode = state->distcode = state->next = state->codes; in inflateResetKeep() 229 state->hold += value << state->bits; in inflatePrime() 382 zmemcpy(state->window, end - state->wsize, state->wsize); in updatewindow() 384 state->whave = state->wsize; in updatewindow() 394 state->whave = state->wsize; in updatewindow() 398 if (state->wnext == state->wsize) state->wnext = 0; in updatewindow() 399 if (state->whave < state->wsize) state->whave += dist; in updatewindow() 727 state->next = state->codes; in inflate() 741 while (state->have < state->nlen + state->ndist) { in inflate() 801 state->next = state->codes; in inflate() [all …]
|
/dragonfly/usr.sbin/makefs/hammer2/zlib/ |
H A D | hammer2_zlib_inflate.c | 131 state->lencode = state->distcode = state->next = state->codes; in inflateResetKeep() 229 state->hold += value << state->bits; in inflatePrime() 382 zmemcpy(state->window, end - state->wsize, state->wsize); in updatewindow() 384 state->whave = state->wsize; in updatewindow() 394 state->whave = state->wsize; in updatewindow() 398 if (state->wnext == state->wsize) state->wnext = 0; in updatewindow() 399 if (state->whave < state->wsize) state->whave += dist; in updatewindow() 727 state->next = state->codes; in inflate() 741 while (state->have < state->nlen + state->ndist) { in inflate() 801 state->next = state->codes; in inflate() [all …]
|
/dragonfly/sbin/hammer2/zlib/ |
H A D | hammer2_zlib_inflate.c | 126 state->lencode = state->distcode = state->next = state->codes; in inflateResetKeep() 224 state->hold += value << state->bits; in inflatePrime() 377 zmemcpy(state->window, end - state->wsize, state->wsize); in updatewindow() 379 state->whave = state->wsize; in updatewindow() 389 state->whave = state->wsize; in updatewindow() 393 if (state->wnext == state->wsize) state->wnext = 0; in updatewindow() 394 if (state->whave < state->wsize) state->whave += dist; in updatewindow() 728 state->next = state->codes; in inflate() 743 while (state->have < state->nlen + state->ndist) { in inflate() 803 state->next = state->codes; in inflate() [all …]
|
/dragonfly/contrib/libarchive/libarchive/ |
H A D | archive_write_add_filter_compress.c | 193 state->cur_maxcode = MAXCODE(state->code_len); in archive_compressor_compress_open() 270 state->bit_offset += state->code_len; in output_code() 272 if (state->bit_offset == state->code_len * 8) in output_code() 302 state->cur_maxcode = state->max_maxcode; in output_code() 358 if (state->hashtab[i] == state->cur_fcode) { in archive_compressor_compress_write() 359 state->cur_code = state->codetab[i]; in archive_compressor_compress_write() 373 if (state->hashtab[i] == state->cur_fcode) { in archive_compressor_compress_write() 374 state->cur_code = state->codetab[i]; in archive_compressor_compress_write() 384 if (state->first_free < state->max_maxcode) { in archive_compressor_compress_write() 386 state->hashtab[i] = state->cur_fcode; in archive_compressor_compress_write() [all …]
|
H A D | archive_read_support_filter_compress.c | 250 state->maxcode = (1 << state->maxcode_bits); in compress_bidder_init() 255 state->stackp = state->stack; in compress_bidder_init() 290 if (state->stackp > state->stack) { in compress_filter_read() 377 *state->stackp++ = state->finbyte; in next_code() 383 *state->stackp++ = state->suffix[code]; in next_code() 386 *state->stackp++ = state->finbyte = code; in next_code() 391 state->prefix[code] = state->oldcode; in next_code() 392 state->suffix[code] = state->finbyte; in next_code() 398 if (state->bits == state->maxcode_bits) in next_code() 399 state->section_end_code = state->maxcode; in next_code() [all …]
|
H A D | archive_read_support_filter_program.c | 143 state = (struct program_bidder *)calloc(1, sizeof (*state)); in archive_read_support_filter_program_signature() 144 if (state == NULL) in archive_read_support_filter_program_signature() 181 if (state) { in free_state() 184 free(state); in free_state() 208 if (memcmp(p, state->signature, state->signature_len) != 0) in program_bidder_bid() 244 = waitpid(state->child, &state->exit_status, 0); in child_stop() 402 state = (struct program_filter *)calloc(1, sizeof(*state)); in __archive_read_program() 410 free(state); in __archive_read_program() 425 &state->child_stdout, &state->child); in __archive_read_program() 429 free(state); in __archive_read_program() [all …]
|
H A D | archive_read_support_filter_lz4.c | 228 state = (struct private_data *)calloc(sizeof(*state), 1); in lz4_reader_init() 229 if (state == NULL) { in lz4_reader_init() 235 self->data = state; in lz4_reader_init() 297 if (state->eof) { in lz4_filter_read() 303 state->unconsumed = 0; in lz4_filter_read() 305 switch (state->stage) { in lz4_filter_read() 338 state->eof = 1; in lz4_filter_read() 363 state->eof = 1; in lz4_filter_read() 368 state->eof = 1; in lz4_filter_read() 573 state->out_block + state->decoded_size, in lz4_filter_read_data_block() [all …]
|
/dragonfly/sys/dev/drm/ |
H A D | drm_atomic.c | 153 state->connectors[i].state = NULL; in drm_atomic_state_default_clear() 164 state->crtcs[i].state); in drm_atomic_state_default_clear() 167 state->crtcs[i].state = NULL; in drm_atomic_state_default_clear() 177 state->planes[i].state); in drm_atomic_state_default_clear() 179 state->planes[i].state = NULL; in drm_atomic_state_default_clear() 290 crtc_state->state = state; in drm_atomic_get_crtc_state() 397 state->mode.name, state); in drm_atomic_set_mode_prop_for_crtc() 606 if (state->event && !state->active && !crtc->state->active) { in drm_atomic_crtc_check() 677 plane_state->state = state; in drm_atomic_get_plane_state() 918 if (plane_switching_crtc(state->state, plane, state)) { in drm_atomic_plane_check() [all …]
|
H A D | drm_atomic_helper.c | 2052 return state->crtc && state->crtc->state->active; in plane_crtc_active() 2421 old_conn_state->state = state; in drm_atomic_helper_swap_state() 2431 old_crtc_state->state = state; in drm_atomic_helper_swap_state() 2434 state->crtcs[i].state = old_crtc_state; in drm_atomic_helper_swap_state() 2450 old_plane_state->state = state; in drm_atomic_helper_swap_state() 2460 old_obj_state->state = state; in drm_atomic_helper_swap_state() 3014 state->crtcs[i].old_state = crtc->state; in drm_atomic_helper_commit_duplicated_state() 3276 memcpy(state, crtc->state, sizeof(*state)); in __drm_atomic_helper_crtc_duplicate_state() 3406 memcpy(state, plane->state, sizeof(*state)); in __drm_atomic_helper_plane_duplicate_state() 3532 memcpy(state, connector->state, sizeof(*state)); in __drm_atomic_helper_connector_duplicate_state() [all …]
|
/dragonfly/sys/kern/ |
H A D | kern_dmsg.c | 677 msg->state, msg->state->rxcmd, in kdmsg_msg_receive_handling() 832 msg->state = state; in kdmsg_state_msgrx() 834 state = msg->state; in kdmsg_state_msgrx() 1238 kdmsg_state_t *state = msg->state; in kdmsg_state_cleanuprx() local 1373 state, state->rxcmd, in kdmsg_state_abort() 1374 state->txcmd, state->flags); in kdmsg_state_abort() 1390 state, state->rxcmd, state->txcmd); in kdmsg_state_abort() 1410 state, state->rxcmd, state->txcmd); in kdmsg_state_abort() 1472 state = msg->state; in kdmsg_state_msgtx() 1835 msg->state = state; in kdmsg_msg_alloc() [all …]
|
H A D | subr_csprng.c | 84 bzero(state->key, sizeof(state->key)); in csprng_init() 85 bzero(&state->cipher_ctx, sizeof(state->cipher_ctx)); in csprng_init() 86 bzero(state->src_pool_idx, sizeof(state->src_pool_idx)); in csprng_init() 87 bzero(&state->last_reseed, sizeof(state->last_reseed)); in csprng_init() 147 ssleep(state, &state->spin, 0, "csprngrsd", 0); in csprng_get_random() 158 chacha_encrypt_bytes(&state->cipher_ctx, NULL, state->key, in csprng_get_random() 160 chacha_keysetup(&state->cipher_ctx, state->key, in csprng_get_random() 199 SHA256_Update(&hash_ctx, state->key, sizeof(state->key)); in csprng_reseed() 201 state->reseed_cnt++; in csprng_reseed() 231 chacha_keysetup(&state->cipher_ctx, state->key, 8*sizeof(state->key)); in csprng_reseed() [all …]
|
/dragonfly/contrib/expat/lib/ |
H A D | xmlrole.c | 119 # 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 …]
|
/dragonfly/crypto/openssh/ |
H A D | packet.c | 257 ssh->state = state; in ssh_alloc_session_state() 309 state = ssh->state; in ssh_packet_set_connection() 332 struct session_state *state = ssh->state; in ssh_packet_set_timeout() local 381 struct session_state *state = ssh->state; in ssh_packet_stop_discard() local 409 struct session_state *state = ssh->state; in ssh_packet_start_discard() local 443 state = ssh->state; in ssh_packet_connection_is_on_socket() 584 struct session_state *state = ssh->state; in ssh_packet_close_internal() local 863 struct session_state *state = ssh->state; in ssh_set_newkeys() local 961 struct session_state *state = ssh->state; in ssh_packet_need_rekeying() local 1022 struct session_state *state = ssh->state; in ssh_packet_enable_delayed_compress() local [all …]
|
/dragonfly/usr.sbin/ppp/ |
H A D | deflate.c | 61 state->seqno = 0; in DeflateResetOutput() 102 state->seqno++; in DeflateOutput() 117 res, state->cx.msg ? state->cx.msg : ""); in DeflateOutput() 262 res, state->cx.msg ? state->cx.msg : ""); in DeflateInput() 387 res, state->cx.msg ? state->cx.msg : ""); in DeflateDictSetup() 389 state->cx.avail_in, state->cx.avail_out); in DeflateDictSetup() 501 if (inflateInit2(&state->cx, -state->winsize) == Z_OK) in DeflateInitInput() 509 return state; in DeflateInitInput() 533 return state; in DeflateInitOutput() 542 free(state); in DeflateTermInput() [all …]
|
/dragonfly/usr.bin/window/ |
H A D | scanner.c | 110 state = -1; in s_gettok() 113 state = 1; in s_gettok() 117 state = -1; in s_gettok() 133 state = 2; in s_gettok() 136 state = 3; in s_gettok() 139 state = 4; in s_gettok() 146 state = 0; in s_gettok() 150 state = 2; in s_gettok() 249 state = 0; in s_gettok() 273 state = 3; in s_gettok() [all …]
|
/dragonfly/contrib/dhcpcd/src/ |
H A D | dhcp6.c | 667 switch(state->state) { in dhcp6_makemessage() 728 if (state->state != DH6S_RELEASE && state->state != DH6S_DECLINE) { in dhcp6_makemessage() 801 switch(state->state) { in dhcp6_makemessage() 873 switch(state->state) { in dhcp6_makemessage() 1410 if (state->MRC == 0 || state->RTC < state->MRC) in dhcp6_sendmessage() 1554 if (state->state != DH6S_BOUND && state->state != DH6S_DELEGATED) in dhcp6_dadcallback() 2584 state->renew = state->rebind = state->expire = 0; in dhcp6_validatelease() 3021 if (state == NULL || state->state != DH6S_BOUND) in dhcp6_find_delegates() 3107 switch(state->state) { in dhcp6_bind() 3266 state->renew, state->rebind, state->expire); in dhcp6_bind() [all …]
|
H A D | ipv4ll.c | 107 in.s_addr = state->addr->addr.s_addr & state->addr->mask.s_addr; in ipv4ll_subnetroute() 153 if ((state = IPV4LL_CSTATE(ifp)) == NULL || state->addr == NULL) in ipv4ll_env() 169 netnum.s_addr = state->addr->addr.s_addr & state->addr->mask.s_addr; in ipv4ll_env() 195 if (state != NULL && state->arp == astate) in ipv4ll_free_arp() 206 if (state == NULL || state->arp == NULL) in ipv4ll_freearp() 211 state->arp = NULL; in ipv4ll_freearp() 249 state->addr = ia; in ipv4ll_not_found() 358 state->randomstate, sizeof(state->randomstate)); in ipv4ll_start() 390 state->addr = ia; in ipv4ll_start() 414 state->arp = astate = arp_new(ifp, &state->pickedaddr); in ipv4ll_start() [all …]
|
/dragonfly/contrib/gdb-7/gdb/ |
H A D | ser-unix.c | 182 state = (struct hardwire_ttystate *) xmalloc (sizeof *state); in hardwire_get_tty_state() 186 xfree (state); in hardwire_get_tty_state() 198 state = (struct hardwire_ttystate *) xmalloc (sizeof *state); in hardwire_copy_tty_state() 275 state->termio.c_iflag, state->termio.c_oflag); in hardwire_print_tty_state() 277 state->termio.c_cflag, state->termio.c_lflag, in hardwire_print_tty_state() 278 state->termio.c_line); in hardwire_print_tty_state() 409 state.termios.c_iflag = 0; in hardwire_raw() 410 state.termios.c_oflag = 0; in hardwire_raw() 432 state.termio.c_iflag = 0; in hardwire_raw() 433 state.termio.c_oflag = 0; in hardwire_raw() [all …]
|
/dragonfly/sys/dev/drm/amd/display/modules/freesync/ |
H A D | freesync.c | 613 state = &core_freesync->map[map_index].state; in set_freesync_on_streams() 791 state = &core_freesync->map[index].state; in mod_freesync_handle_v_update() 808 if (state->btr.frames_to_insert == state->btr.frame_counter) { in mod_freesync_handle_v_update() 844 if (state->fullscreen == true || state->video == true) { in mod_freesync_handle_v_update() 905 state = &core_freesync->map[map_index].state; in mod_freesync_update_state() 1106 state = &core_freesync->map[index].state; in mod_freesync_override_min_max() 1119 state, in mod_freesync_override_min_max() 1233 state = &core_freesync->map[map_index].state; in mod_freesync_notify_mode_change() 1279 struct freesync_state *state = &core_freesync->map[map_index].state; in update_timestamps() local 1281 state->time.render_times[state->time.render_times_index] = in update_timestamps() [all …]
|
/dragonfly/sys/dev/misc/kbdmux/ |
H A D | kbdmux.c | 132 p = (state->ks_inq_start + state->ks_inq_length) % KBDMUX_Q_SIZE; in kbdmux_kbd_putc() 133 state->ks_inq[p] = c; in kbdmux_kbd_putc() 145 c = state->ks_inq[state->ks_inq_start]; in kbdmux_kbd_getc() 146 state->ks_inq_start = (state->ks_inq_start + 1) % KBDMUX_Q_SIZE; in kbdmux_kbd_getc() 326 state = kmalloc(sizeof(*state), M_KBDMUX, M_NOWAIT | M_ZERO); in kbdmux_init() 419 if (state != NULL) in kbdmux_init() 467 bzero(state, sizeof(*state)); in kbdmux_term() 587 if (!(state->ks_flags & COMPOSE) && (state->ks_composed_char > 0)) { in kbdmux_read_char() 845 &state->ks_state, &state->ks_accents); in kbdmux_read_char() 864 if (!(state->ks_flags & COMPOSE) && (state->ks_composed_char != 0)) in kbdmux_check_char() [all …]
|