Lines Matching defs:state
17 struct inflate_state *state = (struct inflate_state *)strm->state;
18 struct dfltcc_state *dfltcc_state = GET_DFLTCC_STATE(state);
26 if (state->wbits != HB_BITS)
39 struct inflate_state *state = (struct inflate_state *)strm->state;
40 struct dfltcc_param_v0 *param = &GET_DFLTCC_STATE(state)->param;
49 struct inflate_state *state = (struct inflate_state *)strm->state;
50 struct dfltcc_state *dfltcc_state = GET_DFLTCC_STATE(state);
69 struct inflate_state *state = (struct inflate_state *)strm->state;
70 struct dfltcc_param_v0 *param = &GET_DFLTCC_STATE(state)->param;
77 &strm->next_in, &avail_in, state->window);
89 struct inflate_state *state = (struct inflate_state *)strm->state;
90 struct dfltcc_state *dfltcc_state = GET_DFLTCC_STATE(state);
103 if (state->last) {
104 if (state->bits != 0) {
107 state->bits = 0;
109 state->mode = CHECK;
116 if (!state->window || state->wsize == 0) {
117 state->mode = MEM;
123 param->sbb = state->bits;
124 param->hl = state->whave; /* Software and hardware history formats match */
125 param->ho = (state->write - state->whave) & ((1 << HB_BITS) - 1);
128 param->cv = state->check;
137 state->last = cc == DFLTCC_CC_OK;
138 state->bits = param->sbb;
139 state->whave = param->hl;
140 state->write = (param->ho + param->hl) & ((1 << HB_BITS) - 1);
141 state->check = param->cv;
144 state->mode = BAD;
147 state->mode = TYPEDO;