Lines Matching refs:strm

22 	struct z_erofs_zstd *strm;  in z_erofs_isolate_strms()  local
26 strm = z_erofs_zstd_head; in z_erofs_isolate_strms()
27 if (!strm) { in z_erofs_isolate_strms()
32 z_erofs_zstd_head = all ? NULL : strm->next; in z_erofs_isolate_strms()
34 return strm; in z_erofs_isolate_strms()
40 struct z_erofs_zstd *strm, *n; in z_erofs_zstd_exit() local
42 for (strm = z_erofs_isolate_strms(true); strm; strm = n) { in z_erofs_zstd_exit()
43 n = strm->next; in z_erofs_zstd_exit()
45 kvfree(strm->wksp); in z_erofs_zstd_exit()
46 kfree(strm); in z_erofs_zstd_exit()
60 struct z_erofs_zstd *strm; in z_erofs_zstd_init() local
62 strm = kzalloc(sizeof(*strm), GFP_KERNEL); in z_erofs_zstd_init()
63 if (!strm) { in z_erofs_zstd_init()
68 strm->next = z_erofs_zstd_head; in z_erofs_zstd_init()
69 z_erofs_zstd_head = strm; in z_erofs_zstd_init()
81 struct z_erofs_zstd *strm, *head = NULL; in z_erofs_load_zstd_config() local
106 for (strm = z_erofs_isolate_strms(true); strm; strm = n) { in z_erofs_load_zstd_config()
107 n = strm->next; in z_erofs_load_zstd_config()
108 strm->next = head; in z_erofs_load_zstd_config()
109 head = strm; in z_erofs_load_zstd_config()
116 for (strm = head; strm; strm = strm->next) { in z_erofs_load_zstd_config()
120 kvfree(strm->wksp); in z_erofs_load_zstd_config()
121 strm->wksp = wksp; in z_erofs_load_zstd_config()
122 strm->wkspsz = wkspsz; in z_erofs_load_zstd_config()
132 if (!strm) in z_erofs_load_zstd_config()
135 return strm ? -ENOMEM : 0; in z_erofs_load_zstd_config()
145 struct z_erofs_zstd *strm; in z_erofs_zstd_decompress() local
159 strm = z_erofs_isolate_strms(false); in z_erofs_zstd_decompress()
162 stream = zstd_init_dstream(z_erofs_zstd_max_dictsize, strm->wksp, strm->wkspsz); in z_erofs_zstd_decompress()
172 dctx.bounce = strm->bounce; in z_erofs_zstd_decompress()
206 strm->next = z_erofs_zstd_head; in z_erofs_zstd_decompress()
207 z_erofs_zstd_head = strm; in z_erofs_zstd_decompress()