Home
last modified time | relevance | path

Searched refs:dfltcc_state (Results 1 – 5 of 5) sorted by relevance

/linux-6.6.21/lib/zlib_dfltcc/
Ddfltcc.c26 void dfltcc_reset_state(struct dfltcc_state *dfltcc_state) { in dfltcc_reset_state() argument
29 dfltcc(DFLTCC_QAF, &dfltcc_state->param, NULL, NULL, NULL, NULL, NULL); in dfltcc_reset_state()
30 memmove(&dfltcc_state->af, &dfltcc_state->param, sizeof(dfltcc_state->af)); in dfltcc_reset_state()
32 memset(&dfltcc_state->af, 0, sizeof(dfltcc_state->af)); in dfltcc_reset_state()
35 memset(&dfltcc_state->param, 0, sizeof(dfltcc_state->param)); in dfltcc_reset_state()
36 dfltcc_state->param.nt = 1; in dfltcc_reset_state()
37 dfltcc_state->param.ribm = DFLTCC_RIBM; in dfltcc_reset_state()
Ddfltcc_deflate.c20 struct dfltcc_deflate_state *dfltcc_state = GET_DFLTCC_DEFLATE_STATE(state); in dfltcc_can_deflate() local
29 dfltcc_state->level_mask)) in dfltcc_can_deflate()
33 if (!is_bit_set(dfltcc_state->common.af.fns, DFLTCC_GDHT) || in dfltcc_can_deflate()
34 !is_bit_set(dfltcc_state->common.af.fns, DFLTCC_CMPR) || in dfltcc_can_deflate()
35 !is_bit_set(dfltcc_state->common.af.fmts, DFLTCC_FMT0)) in dfltcc_can_deflate()
44 struct dfltcc_deflate_state *dfltcc_state = GET_DFLTCC_DEFLATE_STATE(state); in dfltcc_reset_deflate_state() local
46 dfltcc_reset_state(&dfltcc_state->common); in dfltcc_reset_deflate_state()
50 dfltcc_state->level_mask = DFLTCC_LEVEL_MASK_DEBUG; in dfltcc_reset_deflate_state()
52 dfltcc_state->level_mask = DFLTCC_LEVEL_MASK; in dfltcc_reset_deflate_state()
53 dfltcc_state->block_size = DFLTCC_BLOCK_SIZE; in dfltcc_reset_deflate_state()
[all …]
Ddfltcc_inflate.c18 struct dfltcc_state *dfltcc_state = GET_DFLTCC_STATE(state); in dfltcc_can_inflate() local
26 return is_bit_set(dfltcc_state->af.fns, DFLTCC_XPND) && in dfltcc_can_inflate()
27 is_bit_set(dfltcc_state->af.fmts, DFLTCC_FMT0); in dfltcc_can_inflate()
33 struct dfltcc_state *dfltcc_state = GET_DFLTCC_STATE(state); in dfltcc_reset_inflate_state() local
35 dfltcc_reset_state(dfltcc_state); in dfltcc_reset_inflate_state()
54 struct dfltcc_state *dfltcc_state = GET_DFLTCC_STATE(state); in dfltcc_inflate_disable() local
65 memset(&dfltcc_state->af, 0, sizeof(dfltcc_state->af)); in dfltcc_inflate_disable()
94 struct dfltcc_state *dfltcc_state = GET_DFLTCC_STATE(state); in dfltcc_inflate() local
95 struct dfltcc_param_v0 *param = &dfltcc_state->param; in dfltcc_inflate()
140 strm->msg = oesc_msg(dfltcc_state->msg, param->oesc); in dfltcc_inflate()
Ddfltcc.h93 struct dfltcc_state { struct
103 struct dfltcc_state common; /* Parameter block */ argument
112 #define GET_DFLTCC_STATE(state) ((struct dfltcc_state *)((char *)(state) + ALIGN_UP(sizeof(*state),…
114 void dfltcc_reset_state(struct dfltcc_state *dfltcc_state);
/linux-6.6.21/lib/zlib_inflate/
Dinfutil.h25 struct dfltcc_state dfltcc_state; member
34 static_assert(offsetof(struct inflate_workspace, dfltcc_state) % 8 == 0);