Searched refs:bcache (Results 1 – 10 of 10) sorted by relevance
/freebsd/contrib/processor-trace/libipt/src/ |
H A D | pt_block_cache.c | 37 struct pt_block_cache *bcache; in pt_bcache_alloc() local 43 size = sizeof(*bcache) + (nentries * sizeof(struct pt_bcache_entry)); in pt_bcache_alloc() 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() 52 bcache->nentries = (uint32_t) nentries; in pt_bcache_alloc() 54 return bcache; in pt_bcache_alloc() 57 void pt_bcache_free(struct pt_block_cache *bcache) in pt_bcache_free() argument 59 free(bcache); in pt_bcache_free() 62 int pt_bcache_add(struct pt_block_cache *bcache, uint64_t index, in pt_bcache_add() argument [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() 381 (bcache->nentries * sizeof(struct pt_bcache_entry)); in pt_section_bcache_memsize() 446 struct pt_block_cache *bcache; in pt_section_alloc_bcache() local 481 bcache = pt_section_bcache(section); in pt_section_alloc_bcache() 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() [all …]
|
H A D | pt_block_decoder.c | 1706 static inline int pt_blk_add_trampoline(struct pt_block_cache *bcache, in pt_blk_add_trampoline() argument 1733 return pt_bcache_add(bcache, ip, bce); in pt_blk_add_trampoline() 1742 static inline int pt_blk_add_decode(struct pt_block_cache *bcache, in pt_blk_add_decode() argument 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() 1935 return pt_blk_add_decode(bcache, ioff, insn.mode); in pt_blk_proceed_no_event_fill_cache() 1946 return pt_blk_add_decode(bcache, ioff, insn.mode); in pt_blk_proceed_no_event_fill_cache() 1951 return pt_blk_add_decode(bcache, ioff, insn.mode); in pt_blk_proceed_no_event_fill_cache() 1959 status = pt_bcache_lookup(&bce, bcache, noff); in pt_blk_proceed_no_event_fill_cache() [all …]
|
/freebsd/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() 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() [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() 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() [all …]
|
/freebsd/stand/common/ |
H A D | bcache.c | 61 struct bcache { struct 90 static void bcache_invalidate(struct bcache *bc, daddr_t blkno); argument 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() [all …]
|
/freebsd/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/stand/userboot/userboot/ |
H A D | Makefile | 18 SRCS+= bcache.c
|
/freebsd/stand/ |
H A D | loader.mk | 69 SRCS+= bcache.c
|