Lines Matching refs:flash_block_cache
120 static struct kmem_cache *flash_block_cache = NULL; variable
205 kmem_cache_free(flash_block_cache, f->blocks[i].data); in free_flash_list()
207 kmem_cache_free(flash_block_cache, f); in free_flash_list()
332 uf->flist = kmem_cache_zalloc(flash_block_cache, GFP_KERNEL); in rtas_flash_write()
343 fl->next = kmem_cache_zalloc(flash_block_cache, GFP_KERNEL); in rtas_flash_write()
352 p = kmem_cache_zalloc(flash_block_cache, GFP_KERNEL); in rtas_flash_write()
357 kmem_cache_free(flash_block_cache, p); in rtas_flash_write()
717 flash_block_cache = kmem_cache_create("rtas_flash_cache", in rtas_flash_init()
720 if (!flash_block_cache) { in rtas_flash_init()
753 kmem_cache_destroy(flash_block_cache); in rtas_flash_init()
775 kmem_cache_destroy(flash_block_cache); in rtas_flash_cleanup()