Lines Matching refs:mem
395 static void heap_alloc_cb(uintptr_t heap_id, void *mem, size_t bytes) in heap_alloc_cb() argument
398 listener_mem = mem; in heap_alloc_cb()
401 heap_id, mem, (uint32_t)bytes); in heap_alloc_cb()
404 static void heap_free_cb(uintptr_t heap_id, void *mem, size_t bytes) in heap_free_cb() argument
407 listener_mem = mem; in heap_free_cb()
410 heap_id, mem, (uint32_t)bytes); in heap_free_cb()
417 void *mem; in ZTEST() local
440 mem = sys_heap_alloc(&listener_heap, 32U); in ZTEST()
446 zassert_equal(listener_mem, mem, in ZTEST()
448 listener_mem, mem); in ZTEST()
450 sys_heap_free(&listener_heap, mem); in ZTEST()
455 zassert_equal(listener_mem, mem, in ZTEST()
457 listener_mem, mem); in ZTEST()
460 mem = sys_heap_aligned_alloc(&listener_heap, 128U, 32U); in ZTEST()
466 zassert_equal(listener_mem, mem, in ZTEST()
468 listener_mem, mem); in ZTEST()
470 sys_heap_free(&listener_heap, mem); in ZTEST()
475 zassert_equal(listener_mem, mem, in ZTEST()
477 listener_mem, mem); in ZTEST()