Lines Matching refs:wksp
31 struct workspace *wksp = kmalloc(sizeof(*wksp), GFP_KERNEL); in zstd_init() local
33 if (wksp == NULL) in zstd_init()
35 wksp->window_size = max_t(size_t, in zstd_init()
37 wksp->mem_size = zstd_dstream_workspace_bound(wksp->window_size); in zstd_init()
38 wksp->mem = vmalloc(wksp->mem_size); in zstd_init()
39 if (wksp->mem == NULL) in zstd_init()
42 return wksp; in zstd_init()
46 kfree(wksp); in zstd_init()
53 struct workspace *wksp = strm; in zstd_free() local
55 if (wksp) in zstd_free()
56 vfree(wksp->mem); in zstd_free()
57 kfree(wksp); in zstd_free()
65 struct workspace *wksp = strm; in zstd_uncompress() local
74 stream = zstd_init_dstream(wksp->window_size, wksp->mem, wksp->mem_size); in zstd_uncompress()