Lines Matching refs:bcache
93 struct pt_block_cache *bcache; in pt_bcache_alloc() local
103 bcache = malloc(sizeof(*bcache)); in pt_bcache_alloc()
104 if (bcache) in pt_bcache_alloc()
105 bcache->nentries = (uint32_t) nentries; in pt_bcache_alloc()
107 return bcache; in pt_bcache_alloc()
110 void pt_bcache_free(struct pt_block_cache *bcache) in pt_bcache_free() argument
112 free(bcache); in pt_bcache_free()
356 struct pt_block_cache *bcache; in cache_null() local
358 bcache = pt_section_bcache(NULL); in cache_null()
359 ptu_null(bcache); in cache_null()
1069 struct pt_block_cache *bcache; in worker_bcache() local
1079 bcache = pt_section_bcache(sfix->section); in worker_bcache()
1080 if (!bcache) { in worker_bcache()
1130 struct pt_block_cache *bcache; in init_no_bcache() local
1142 bcache = pt_section_bcache(sfix->section); in init_no_bcache()
1143 ptu_null(bcache); in init_no_bcache()
1154 struct pt_block_cache *bcache; in bcache_alloc_free() local
1169 bcache = pt_section_bcache(sfix->section); in bcache_alloc_free()
1170 ptu_ptr(bcache); in bcache_alloc_free()
1171 ptu_uint_eq(bcache->nentries, sfix->section->size); in bcache_alloc_free()
1176 bcache = pt_section_bcache(sfix->section); in bcache_alloc_free()
1177 ptu_null(bcache); in bcache_alloc_free()