Searched refs:bufsize (Results 1 – 8 of 8) sorted by relevance
/lk-master/app/tests/ |
A D | cache_tests.c | 19 static void bench_cache(size_t bufsize, uint8_t *buf) { in bench_cache() argument 24 buf = memalign(PAGE_SIZE, bufsize); in bench_cache() 30 printf("buf %p, size %zu\n", buf, bufsize); in bench_cache() 36 arch_clean_cache_range((addr_t)buf, bufsize); in bench_cache() 39 printf("took %llu usecs to clean %d bytes (cold)\n", t, bufsize); in bench_cache() 41 memset(buf, 0x99, bufsize); in bench_cache() 44 arch_clean_cache_range((addr_t)buf, bufsize); in bench_cache() 50 printf("took %llu usecs to clean %d bytes (hot)\n", t, bufsize); in bench_cache()
|
/lk-master/external/lib/fdt/ |
A D | fdt_sw.c | 109 int fdt_create_with_flags(void *buf, int bufsize, uint32_t flags) in fdt_create_with_flags() argument 115 if (bufsize < hdrsize) in fdt_create_with_flags() 121 memset(buf, 0, bufsize); in fdt_create_with_flags() 134 fdt_set_totalsize(fdt, bufsize); in fdt_create_with_flags() 143 int fdt_create(void *buf, int bufsize) in fdt_create() argument 145 return fdt_create_with_flags(buf, bufsize, 0); in fdt_create() 148 int fdt_resize(void *fdt, void *buf, int bufsize) in fdt_resize() argument 162 if ((headsize + tailsize) > bufsize) in fdt_resize() 166 newtail = (char *)buf + bufsize - tailsize; in fdt_resize() 178 fdt_set_totalsize(buf, bufsize); in fdt_resize() [all …]
|
A D | fdt_empty_tree.c | 13 int fdt_create_empty_tree(void *buf, int bufsize) in fdt_create_empty_tree() argument 17 err = fdt_create(buf, bufsize); in fdt_create_empty_tree() 37 return fdt_open_into(buf, buf, bufsize); in fdt_create_empty_tree()
|
A D | fdt_check.c | 13 int fdt_check_full(const void *fdt, size_t bufsize) in fdt_check_full() argument 23 if (bufsize < FDT_V1_SIZE) in fdt_check_full() 28 if (bufsize < fdt_totalsize(fdt)) in fdt_check_full()
|
A D | fdt_rw.c | 414 int fdt_open_into(const void *fdt, void *buf, int bufsize) in fdt_open_into() argument 441 err = fdt_move(fdt, buf, bufsize); in fdt_open_into() 446 fdt_set_totalsize(buf, bufsize); in fdt_open_into() 454 if (bufsize < newsize) in fdt_open_into() 463 if ((tmp + newsize) > ((char *)buf + bufsize)) in fdt_open_into() 471 fdt_set_totalsize(buf, bufsize); in fdt_open_into()
|
A D | fdt.c | 307 int fdt_move(const void *fdt, void *buf, int bufsize) in fdt_move() argument 311 if (fdt_totalsize(fdt) > bufsize) in fdt_move()
|
/lk-master/external/lib/fdt/include/ |
A D | libfdt.h | 314 int fdt_move(const void *fdt, void *buf, int bufsize); 320 int fdt_check_full(const void *fdt, size_t bufsize); 1416 int fdt_create_with_flags(void *buf, int bufsize, uint32_t flags); 1429 int fdt_create(void *buf, int bufsize); 1431 int fdt_resize(void *fdt, void *buf, int bufsize); 1478 int fdt_create_empty_tree(void *buf, int bufsize); 1479 int fdt_open_into(const void *fdt, void *buf, int bufsize);
|
/lk-master/lib/klog/ |
A D | klog.c | 133 uint bufsize = len - sizeof(struct klog_buffer_header) - sizeof(struct klog_header) * count; in klog_create() local 134 bufsize /= count; in klog_create() 135 bufsize = ROUNDDOWN(bufsize, 4); in klog_create() 139 klog->size = bufsize; in klog_create() 143 memset(klog + 1, 0, bufsize); in klog_create() 145 ptr += sizeof(struct klog_header) + bufsize; in klog_create()
|
Completed in 15 milliseconds