Lines Matching full:phase
149 ZSTD_cwksp_alloc_phase_e phase; member
195 ZSTD_cwksp* ws, ZSTD_cwksp_alloc_phase_e phase) { in ZSTD_cwksp_internal_advance_phase() argument
196 assert(phase >= ws->phase); in ZSTD_cwksp_internal_advance_phase()
197 if (phase > ws->phase) { in ZSTD_cwksp_internal_advance_phase()
198 if (ws->phase < ZSTD_cwksp_alloc_buffers && in ZSTD_cwksp_internal_advance_phase()
199 phase >= ZSTD_cwksp_alloc_buffers) { in ZSTD_cwksp_internal_advance_phase()
202 if (ws->phase < ZSTD_cwksp_alloc_aligned && in ZSTD_cwksp_internal_advance_phase()
203 phase >= ZSTD_cwksp_alloc_aligned) { in ZSTD_cwksp_internal_advance_phase()
216 ws->phase = phase; in ZSTD_cwksp_internal_advance_phase()
231 ZSTD_cwksp* ws, size_t bytes, ZSTD_cwksp_alloc_phase_e phase) { in ZSTD_cwksp_reserve_internal() argument
234 ZSTD_cwksp_internal_advance_phase(ws, phase); in ZSTD_cwksp_reserve_internal()
280 const ZSTD_cwksp_alloc_phase_e phase = ZSTD_cwksp_alloc_aligned; in ZSTD_cwksp_reserve_table() local
288 ZSTD_cwksp_internal_advance_phase(ws, phase); in ZSTD_cwksp_reserve_table()
317 /* we must be in the first phase, no advance is possible */ in ZSTD_cwksp_reserve_object()
318 if (ws->phase != ZSTD_cwksp_alloc_objects || end > ws->workspaceEnd) { in ZSTD_cwksp_reserve_object()
388 if (ws->phase > ZSTD_cwksp_alloc_buffers) { in ZSTD_cwksp_clear()
389 ws->phase = ZSTD_cwksp_alloc_buffers; in ZSTD_cwksp_clear()
406 ws->phase = ZSTD_cwksp_alloc_objects; in ZSTD_cwksp_init()