Lines Matching refs:lzo_blocks
133 struct regcache_lzo_ctx **lzo_blocks; in regcache_lzo_init() local
142 map->cache = kzalloc(blkcount * sizeof *lzo_blocks, in regcache_lzo_init()
146 lzo_blocks = map->cache; in regcache_lzo_init()
165 lzo_blocks[i] = kzalloc(sizeof **lzo_blocks, in regcache_lzo_init()
167 if (!lzo_blocks[i]) { in regcache_lzo_init()
172 lzo_blocks[i]->sync_bmp = sync_bmp; in regcache_lzo_init()
173 lzo_blocks[i]->sync_bmp_nbits = bmp_size; in regcache_lzo_init()
175 ret = regcache_lzo_prepare(lzo_blocks[i]); in regcache_lzo_init()
185 lzo_blocks[i]->src = p; in regcache_lzo_init()
187 lzo_blocks[i]->src_len = end - p; in regcache_lzo_init()
189 lzo_blocks[i]->src_len = blksize; in regcache_lzo_init()
191 lzo_blocks[i]); in regcache_lzo_init()
194 lzo_blocks[i]->decompressed_size = in regcache_lzo_init()
195 lzo_blocks[i]->src_len; in regcache_lzo_init()
206 struct regcache_lzo_ctx **lzo_blocks; in regcache_lzo_exit() local
209 lzo_blocks = map->cache; in regcache_lzo_exit()
210 if (!lzo_blocks) in regcache_lzo_exit()
219 if (lzo_blocks[0]) in regcache_lzo_exit()
220 kfree(lzo_blocks[0]->sync_bmp); in regcache_lzo_exit()
222 if (lzo_blocks[i]) { in regcache_lzo_exit()
223 kfree(lzo_blocks[i]->wmem); in regcache_lzo_exit()
224 kfree(lzo_blocks[i]->dst); in regcache_lzo_exit()
227 kfree(lzo_blocks[i]); in regcache_lzo_exit()
229 kfree(lzo_blocks); in regcache_lzo_exit()
237 struct regcache_lzo_ctx *lzo_block, **lzo_blocks; in regcache_lzo_read() local
248 lzo_blocks = map->cache; in regcache_lzo_read()
249 lzo_block = lzo_blocks[blkindex]; in regcache_lzo_read()
276 struct regcache_lzo_ctx *lzo_block, **lzo_blocks; in regcache_lzo_write() local
287 lzo_blocks = map->cache; in regcache_lzo_write()
288 lzo_block = lzo_blocks[blkindex]; in regcache_lzo_write()
337 struct regcache_lzo_ctx **lzo_blocks; in regcache_lzo_sync() local
342 lzo_blocks = map->cache; in regcache_lzo_sync()
344 for_each_set_bit_from(i, lzo_blocks[0]->sync_bmp, in regcache_lzo_sync()
345 lzo_blocks[0]->sync_bmp_nbits) { in regcache_lzo_sync()