Home
last modified time | relevance | path

Searched refs:bhead (Results 1 – 2 of 2) sorted by relevance

/optee_os/lib/libutils/isoc/
H A Dbget.c507 struct bhead { struct
514 #define BH(p) ((struct bhead *) (p)) argument
521 struct bhead bh; /* Common header */
528 struct bhead bh; /* Common allocated/free header */
593 buf = (unsigned long)bf + bf->bh.bsize - size + sizeof(struct bhead) + in buf_get_pos()
596 pos = buf - (unsigned long)bf - sizeof(struct bhead) - hdr_size; in buf_get_pos()
600 if (pos >= SizeQ + sizeof(struct bhead)) /* room for an empty buffer */ in buf_get_pos()
693 if (ADD_OVERFLOW(size, sizeof(struct bhead), &size))
732 struct bhead *b_alloc = BH((char *)b + pos);
733 struct bhead *b_next = BH((char *)b + b->bh.bsize);
[all …]
H A Dbget_malloc.c195 struct bhead *b; in bget_buf_size()
197 b = BH(((char *)buf) - sizeof(struct bhead)); in bget_buf_size()
208 osize -= sizeof(struct bhead); in bget_buf_size()
396 *buf = (uint8_t *)b + sizeof(struct bhead); in bpool_foreach_pool()
397 *len = bs - sizeof(struct bhead); in bpool_foreach_pool()
810 const size_t min_len = sizeof(struct bhead) + sizeof(struct bfhead); in raw_malloc_add_pool()