Lines Matching refs:bcache

44 	struct pt_block_cache *bcache;  member
70 bfix->bcache = NULL; in cfix_init()
79 bfix->bcache = pt_bcache_alloc(bfix_nentries); in bfix_init()
80 ptu_ptr(bfix->bcache); in bfix_init()
94 pt_bcache_free(bfix->bcache); in bfix_fini()
137 struct pt_block_cache bcache; in lookup_null() local
143 errcode = pt_bcache_lookup(NULL, &bcache, 0ull); in lookup_null()
151 bfix->bcache = pt_bcache_alloc(0x10000ull); in alloc()
152 ptu_ptr(bfix->bcache); in alloc()
159 bfix->bcache = pt_bcache_alloc(1ull); in alloc_min()
160 ptu_ptr(bfix->bcache); in alloc_min()
167 bfix->bcache = pt_bcache_alloc(UINT32_MAX + 1ull); in alloc_too_big()
168 ptu_null(bfix->bcache); in alloc_too_big()
175 bfix->bcache = pt_bcache_alloc(0ull); in alloc_zero()
176 ptu_null(bfix->bcache); in alloc_zero()
191 status = pt_bcache_lookup(&bce, bfix->bcache, index); in initially_empty()
208 errcode = pt_bcache_add(bfix->bcache, bfix_nentries, bce); in add_bad_index()
219 errcode = pt_bcache_lookup(&bce, bfix->bcache, bfix_nentries); in lookup_bad_index()
239 errcode = pt_bcache_add(bfix->bcache, index, exp); in add()
242 errcode = pt_bcache_lookup(&bce, bfix->bcache, index); in add()
257 struct pt_block_cache *bcache; in worker() local
260 bcache = arg; in worker()
261 if (!bcache) in worker()
278 errcode = pt_bcache_lookup(&bce, bcache, index); in worker()
283 errcode = pt_bcache_add(bcache, index, exp); in worker()
288 errcode = pt_bcache_lookup(&bce, bcache, index); in worker()
325 bfix->bcache); in stress()
329 errcode = worker(bfix->bcache); in stress()