Lines Matching defs:state
101 * struct xz_dec - Opaque type to hold the XZ decoder state
106 * xz_dec_init() - Allocate and initialize a XZ decoder state
131 * @s: Decoder state allocated using xz_dec_init()
150 * xz_dec_reset() - Reset an already allocated decoder state
151 * @s: Decoder state allocated using xz_dec_init()
153 * This function can be used to reset the multi-call decoder state without
163 * xz_dec_end() - Free the memory allocated for the decoder state
164 * @s: Decoder state allocated using xz_dec_init(). If s is NULL,
441 /* x86 filter state */
998 * Maximum number of position states. A position state is the lowest pb
1035 /* The lowest 7 states indicate that the previous state was a literal. */
1039 static inline void lzma_state_literal(enum lzma_state *state)
1041 if (*state <= STATE_SHORTREP_LIT_LIT)
1042 *state = STATE_LIT_LIT;
1043 else if (*state <= STATE_LIT_SHORTREP)
1044 *state -= 3;
1046 *state -= 6;
1050 static inline void lzma_state_match(enum lzma_state *state)
1052 *state = *state < LIT_STATES ? STATE_LIT_MATCH : STATE_NONLIT_MATCH;
1055 /* Indicate that the latest state was a long repeated match. */
1056 static inline void lzma_state_long_rep(enum lzma_state *state)
1058 *state = *state < LIT_STATES ? STATE_LIT_LONGREP : STATE_NONLIT_REP;
1062 static inline void lzma_state_short_rep(enum lzma_state *state)
1064 *state = *state < LIT_STATES ? STATE_LIT_SHORTREP : STATE_NONLIT_REP;
1068 static inline int lzma_state_is_literal(enum lzma_state state)
1070 return state < LIT_STATES;
1296 enum lzma_state state;
1438 /* Reset the dictionary state. */
1734 if (lzma_state_is_literal(s->lzma.state)) {
1757 lzma_state_literal(&s->lzma.state);
1794 lzma_state_match(&s->lzma.state);
1834 if (!rc_bit(&s->rc, &s->lzma.is_rep0[s->lzma.state])) {
1836 s->lzma.state][pos_state])) {
1837 lzma_state_short_rep(&s->lzma.state);
1842 if (!rc_bit(&s->rc, &s->lzma.is_rep1[s->lzma.state])) {
1845 if (!rc_bit(&s->rc, &s->lzma.is_rep2[s->lzma.state])) {
1859 lzma_state_long_rep(&s->lzma.state);
1883 s->lzma.state][pos_state])) {
1886 if (rc_bit(&s->rc, &s->lzma.is_rep[s->lzma.state]))
1906 * Reset the LZMA decoder and range decoder state. Dictionary is nore reset
1907 * here, because LZMA state may be reset without resetting the dictionary.
1914 s->lzma.state = STATE_LIT_LIT;
1938 * from the decoded lp and pb values. On success, the LZMA decoder state is
2090 * 0xE0 Dictionary reset, new properties and state
2092 * 0xC0 New properties and state reset, followed
2098 * 0x80 LZMA chunk (no dictionary or state reset)
2106 * properties and reset the LZMA state.
2131 * state reset is done at