Searched refs:bcache (Results 1 – 10 of 10) sorted by relevance
| /freebsd-14.2/contrib/processor-trace/libipt/src/ |
| H A D | pt_block_cache.c | 37 struct pt_block_cache *bcache; in pt_bcache_alloc() local 47 bcache = malloc((size_t) size); in pt_bcache_alloc() 48 if (!bcache) in pt_bcache_alloc() 51 memset(bcache, 0, (size_t) size); in pt_bcache_alloc() 54 return bcache; in pt_bcache_alloc() 59 free(bcache); in pt_bcache_free() 65 if (!bcache) in pt_bcache_add() 68 if (bcache->nentries <= index) in pt_bcache_add() 75 bcache->entry[(uint32_t) index] = bce; in pt_bcache_add() 83 if (!bce || !bcache) in pt_bcache_lookup() [all …]
|
| H A D | pt_section.c | 369 struct pt_block_cache *bcache; in pt_section_bcache_memsize() local 374 bcache = section->bcache; in pt_section_bcache_memsize() 375 if (!bcache) { in pt_section_bcache_memsize() 380 *psize = sizeof(*bcache) + in pt_section_bcache_memsize() 446 struct pt_block_cache *bcache; in pt_section_alloc_bcache() local 482 if (bcache) { in pt_section_alloc_bcache() 487 bcache = pt_bcache_alloc(csize); in pt_section_alloc_bcache() 488 if (!bcache) { in pt_section_alloc_bcache() 499 section->bcache = bcache; in pt_section_alloc_bcache() 619 pt_bcache_free(section->bcache); in pt_section_unmap() [all …]
|
| H A D | pt_block_decoder.c | 1733 return pt_bcache_add(bcache, ip, bce); in pt_blk_add_trampoline() 1752 return pt_bcache_add(bcache, ioff, bce); in pt_blk_add_decode() 1777 struct pt_block_cache *bcache, in pt_blk_proceed_no_event_fill_cache() argument 1867 status = pt_bcache_add(bcache, ioff, bce); in pt_blk_proceed_no_event_fill_cache() 1982 bcache, msec, in pt_blk_proceed_no_event_fill_cache() 2047 return pt_bcache_add(bcache, ioff, bce); in pt_blk_proceed_no_event_fill_cache() 2130 struct pt_block_cache *bcache, in pt_blk_proceed_no_event_cached() argument 2149 bcache, msec, in pt_blk_proceed_no_event_cached() 2533 struct pt_block_cache *bcache; in pt_blk_proceed_no_event() local 2563 bcache = pt_section_bcache(section); in pt_blk_proceed_no_event() [all …]
|
| /freebsd-14.2/contrib/processor-trace/libipt/test/src/ |
| H A D | ptunit-block_cache.c | 44 struct pt_block_cache *bcache; member 70 bfix->bcache = NULL; in cfix_init() 80 ptu_ptr(bfix->bcache); in bfix_init() 94 pt_bcache_free(bfix->bcache); in bfix_fini() 152 ptu_ptr(bfix->bcache); in alloc() 160 ptu_ptr(bfix->bcache); in alloc_min() 168 ptu_null(bfix->bcache); in alloc_too_big() 176 ptu_null(bfix->bcache); in alloc_zero() 260 bcache = arg; in worker() 261 if (!bcache) in worker() [all …]
|
| H A D | ptunit-section.c | 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() 107 return bcache; in pt_bcache_alloc() 112 free(bcache); in pt_bcache_free() 356 struct pt_block_cache *bcache; in cache_null() local 359 ptu_null(bcache); in cache_null() 1080 if (!bcache) { in worker_bcache() 1143 ptu_null(bcache); in init_no_bcache() 1170 ptu_ptr(bcache); in bcache_alloc_free() [all …]
|
| /freebsd-14.2/stand/common/ |
| H A D | bcache.c | 61 struct bcache { struct 91 static void bcache_insert(struct bcache *bc, daddr_t blkno); 92 static void bcache_free_instance(struct bcache *bc); 123 struct bcache *bc = malloc(sizeof (struct bcache)); in bcache_allocate() 173 struct bcache *bc = cache; in bcache_free() 191 struct bcache *bc = dd->dv_cache; in write_strategy() 215 struct bcache *bc = dd->dv_cache; in read_strategy() 395 struct bcache *bc = dd->dv_cache; in bcache_strategy() 462 bcache_free_instance(struct bcache *bc) in bcache_free_instance() 475 bcache_insert(struct bcache *bc, daddr_t blkno) in bcache_insert() [all …]
|
| /freebsd-14.2/contrib/processor-trace/libipt/internal/include/ |
| H A D | pt_block_cache.h | 199 extern void pt_bcache_free(struct pt_block_cache *bcache); 209 extern int pt_bcache_add(struct pt_block_cache *bcache, uint64_t index, 222 const struct pt_block_cache *bcache,
|
| H A D | pt_section.h | 85 struct pt_block_cache *bcache; member 282 if (section->bcache) in pt_section_request_bcache() 301 return section->bcache; in pt_section_bcache()
|
| /freebsd-14.2/stand/userboot/userboot/ |
| H A D | Makefile | 19 SRCS+= bcache.c
|
| /freebsd-14.2/stand/ |
| H A D | loader.mk | 43 SRCS+= bcache.c
|