| /optee_os/lib/libutils/isoc/ |
| H A D | bget.h | 31 typedef long bufsize; typedef 34 void bpool _((void *buffer, bufsize len, struct bpoolset *poolset)); 35 void *bget _((bufsize align, bufsize hdr_size, bufsize size, struct bpoolset *poolset)); 36 void *bgetz _((bufsize align, bufsize hdr_size, bufsize size, struct bpoolset *poolset)); 37 void *bgetr _((void *buffer, bufsize align, bufsize hdr_size, bufsize newsize, 40 void bectl _((int (*compact)(bufsize sizereq, int sequence), 41 void *(*acquire)(bufsize size), 42 void (*release)(void *buf), bufsize pool_incr, 44 void bstats _((bufsize *curalloc, bufsize *totfree, bufsize *maxfree, 46 void bstatse _((bufsize *pool_incr, long *npool, long *npget,
|
| H A D | bget.c | 508 bufsize prevfree; /* Relative link back to previous 511 bufsize bsize; /* Buffer size: positive if free, 519 bufsize tsize; /* Total size, including overhead */ 520 bufsize offs; /* Offset from allocated buffer */ 537 bufsize totalloc; /* Total space currently allocated */ 553 int (*compfcn) _((bufsize sizereq, int sequence)); 554 void *(*acqfcn) _((bufsize size)); 557 bufsize exp_incr; /* Expansion block size */ 558 bufsize pool_len; /* 0: no bpool calls have been made 578 #define ESent ((bufsize) (-(((1L << (sizeof(bufsize) * 8 - 2)) - 1) * 2) - 2)) [all …]
|
| H A D | bget.doc | 168 void bpool(void *buffer, bufsize len); 174 void *bget(bufsize size); 180 void *bgetz(bufsize size); 186 void *bgetr(void *buffer, bufsize newsize); 198 void bectl(int (*compact)(bufsize sizereq, int sequence), 199 void *(*acquire)(bufsize size), 201 bufsize pool_incr); 247 void bstats(bufsize *curalloc, bufsize *totfree, 248 bufsize *maxfree, long *nget, long *nrel); 259 void bstatse(bufsize *pool_incr, long *npool,
|
| H A D | bget_malloc.c | 192 static __maybe_unused bufsize bget_buf_size(void *buf) in bget_buf_size() 194 bufsize osize; /* Old size of buffer */ in bget_buf_size() 377 bufsize bs = b->bh.bsize; in bpool_foreach_pool() 434 bufsize s = 0; in raw_malloc_flags() 458 bufsize old_sz = bget_buf_size(old_ptr); in raw_malloc_flags() 459 bufsize new_sz = s + hdr_size; in raw_malloc_flags()
|
| /optee_os/core/lib/libfdt/ |
| H 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()
|
| H A D | fdt_sw.c | 105 int fdt_create_with_flags(void *buf, int bufsize, uint32_t flags) in fdt_create_with_flags() argument 111 if (bufsize < hdrsize) in fdt_create_with_flags() 117 memset(buf, 0, bufsize); in fdt_create_with_flags() 130 fdt_set_totalsize(fdt, bufsize); in fdt_create_with_flags() 139 int fdt_create(void *buf, int bufsize) in fdt_create() argument 141 return fdt_create_with_flags(buf, bufsize, 0); in fdt_create() 144 int fdt_resize(void *fdt, void *buf, int bufsize) in fdt_resize() argument 157 if ((headsize + tailsize) > bufsize) in fdt_resize() 161 newtail = (char *)buf + bufsize - tailsize; in fdt_resize() 173 fdt_set_totalsize(buf, bufsize); in fdt_resize() [all …]
|
| H A D | fdt_rw.c | 400 int fdt_open_into(const void *fdt, void *buf, int bufsize) in fdt_open_into() argument 426 err = fdt_move(fdt, buf, bufsize); in fdt_open_into() 431 fdt_set_totalsize(buf, bufsize); in fdt_open_into() 439 if (bufsize < newsize) in fdt_open_into() 448 if ((tmp + newsize) > ((char *)buf + bufsize)) in fdt_open_into() 456 fdt_set_totalsize(buf, bufsize); in fdt_open_into()
|
| H A D | fdt.c | 282 int fdt_move(const void *fdt, void *buf, int bufsize) in fdt_move() argument 286 if (fdt_totalsize(fdt) > bufsize) in fdt_move()
|
| H A D | fdt_ro.c | 847 int fdt_check_full(const void *fdt, size_t bufsize) in fdt_check_full() argument 857 if (bufsize < FDT_V1_SIZE) in fdt_check_full() 862 if (bufsize < fdt_totalsize(fdt)) in fdt_check_full()
|
| /optee_os/core/lib/libtomcrypt/src/misc/ssh/ |
| H A D | ssh_decode_sequence_multi.c | 30 unsigned long *bufsize; in ssh_decode_sequence_multi() local 122 bufsize = va_arg(args, unsigned long*); in ssh_decode_sequence_multi() 123 if (bufsize == NULL) { in ssh_decode_sequence_multi() 127 if (size + 1 >= *bufsize) { in ssh_decode_sequence_multi() 135 *bufsize = size; in ssh_decode_sequence_multi()
|
| /optee_os/core/lib/libfdt/include/ |
| H A D | libfdt.h | 313 int fdt_move(const void *fdt, void *buf, int bufsize); 319 int fdt_check_full(const void *fdt, size_t bufsize); 1415 int fdt_create_with_flags(void *buf, int bufsize, uint32_t flags); 1428 int fdt_create(void *buf, int bufsize); 1430 int fdt_resize(void *fdt, void *buf, int bufsize); 1477 int fdt_create_empty_tree(void *buf, int bufsize); 1478 int fdt_open_into(const void *fdt, void *buf, int bufsize);
|
| /optee_os/lib/libutee/arch/arm/gprof/ |
| H A D | gprof.c | 131 size_t bufsize; in __utee_gprof_init() local 171 bufsize = p->kcountsize + p->fromssize + p->tossize; in __utee_gprof_init() 175 __text_end - __text_start, bufsize); in __utee_gprof_init() 177 cp = gprof_alloc(bufsize); in __utee_gprof_init()
|
| /optee_os/core/pta/ |
| H A D | attestation.c | 105 static size_t bufsize(size_t e_sz, size_t d_sz, size_t n_sz) in bufsize() function 132 needed_sz = bufsize(e_sz, d_sz, n_sz); in serialize_key() 340 size = bufsize(3, MAX_KEY_SIZE / 8, MAX_KEY_SIZE / 8); in init_key()
|
| /optee_os/scripts/ |
| H A D | symbolize.py | 145 bufsize=1)
|