Lines Matching refs:lzo_blocks

129 	struct regcache_lzo_ctx **lzo_blocks;  in regcache_lzo_init()  local
138 map->cache = kcalloc(blkcount, sizeof(*lzo_blocks), in regcache_lzo_init()
142 lzo_blocks = map->cache; in regcache_lzo_init()
159 lzo_blocks[i] = kzalloc(sizeof **lzo_blocks, in regcache_lzo_init()
161 if (!lzo_blocks[i]) { in regcache_lzo_init()
166 lzo_blocks[i]->sync_bmp = sync_bmp; in regcache_lzo_init()
167 lzo_blocks[i]->sync_bmp_nbits = bmp_size; in regcache_lzo_init()
169 ret = regcache_lzo_prepare(lzo_blocks[i]); in regcache_lzo_init()
179 lzo_blocks[i]->src = p; in regcache_lzo_init()
181 lzo_blocks[i]->src_len = end - p; in regcache_lzo_init()
183 lzo_blocks[i]->src_len = blksize; in regcache_lzo_init()
185 lzo_blocks[i]); in regcache_lzo_init()
188 lzo_blocks[i]->decompressed_size = in regcache_lzo_init()
189 lzo_blocks[i]->src_len; in regcache_lzo_init()
200 struct regcache_lzo_ctx **lzo_blocks; in regcache_lzo_exit() local
203 lzo_blocks = map->cache; in regcache_lzo_exit()
204 if (!lzo_blocks) in regcache_lzo_exit()
213 if (lzo_blocks[0]) in regcache_lzo_exit()
214 bitmap_free(lzo_blocks[0]->sync_bmp); in regcache_lzo_exit()
216 if (lzo_blocks[i]) { in regcache_lzo_exit()
217 kfree(lzo_blocks[i]->wmem); in regcache_lzo_exit()
218 kfree(lzo_blocks[i]->dst); in regcache_lzo_exit()
221 kfree(lzo_blocks[i]); in regcache_lzo_exit()
223 kfree(lzo_blocks); in regcache_lzo_exit()
231 struct regcache_lzo_ctx *lzo_block, **lzo_blocks; in regcache_lzo_read() local
240 lzo_blocks = map->cache; in regcache_lzo_read()
241 lzo_block = lzo_blocks[blkindex]; in regcache_lzo_read()
268 struct regcache_lzo_ctx *lzo_block, **lzo_blocks; in regcache_lzo_write() local
277 lzo_blocks = map->cache; in regcache_lzo_write()
278 lzo_block = lzo_blocks[blkindex]; in regcache_lzo_write()
327 struct regcache_lzo_ctx **lzo_blocks; in regcache_lzo_sync() local
332 lzo_blocks = map->cache; in regcache_lzo_sync()
334 for_each_set_bit_from(i, lzo_blocks[0]->sync_bmp, in regcache_lzo_sync()
335 lzo_blocks[0]->sync_bmp_nbits) { in regcache_lzo_sync()