Lines Matching refs:chunk
621 char *chunk = NULL; in sh_find_my_buddy() local
627 chunk = sh.arena + ((bit & ((ONE << list) - 1)) * (sh.arena_size >> list)); in sh_find_my_buddy()
629 return chunk; in sh_find_my_buddy()
636 char *chunk; in sh_malloc() local
684 chunk = sh.freelist[list]; in sh_malloc()
685 OPENSSL_assert(sh_testbit(chunk, list, sh.bittable)); in sh_malloc()
686 sh_setbit(chunk, list, sh.bitmalloc); in sh_malloc()
687 sh_remove_from_list(chunk); in sh_malloc()
689 OPENSSL_assert(WITHIN_ARENA(chunk)); in sh_malloc()
692 memset(chunk, 0, sizeof(SH_LIST)); in sh_malloc()
694 return chunk; in sh_malloc()