Lines Matching refs:ptr
34 void *ptr; in tIsr_malloc_and_free() local
36 ptr = (char *)z_thread_malloc(BLK_SIZE_MIN); in tIsr_malloc_and_free()
37 zassert_not_null(ptr, "bytes allocation failed from system pool"); in tIsr_malloc_and_free()
38 k_free(ptr); in tIsr_malloc_and_free()
43 void *ptr; in thread_entry() local
47 ptr = (char *)z_thread_malloc(BLK_SIZE_MIN); in thread_entry()
48 zassert_is_null(ptr, "bytes allocation failed from system pool"); in thread_entry()
252 void *ptr; in ZTEST() local
255 ptr = (char *)z_thread_malloc(BLK_SIZE_MIN/2); in ZTEST()
256 zassert_not_null(ptr, "bytes allocation failed from system pool"); in ZTEST()
257 k_free(ptr); in ZTEST()
339 void *ptr = sys_multi_heap_realloc(&multi_heap, (void *)(long)i, in ZTEST() local
342 zassert_equal(ptr, blocks[i], "realloc moved pointer"); in ZTEST()
365 void *ptr = sys_multi_heap_realloc(&multi_heap, (void *)(long)i, in ZTEST() local
367 zassert_equal(ptr, blocks[i], "realloc should return same value"); in ZTEST()
369 ptr = sys_multi_heap_alloc(&multi_heap, (void *)(long)i, in ZTEST()
371 zassert_between_inclusive((uintptr_t)ptr, (uintptr_t)blocks[i] + MHEAP_BYTES / 4, in ZTEST()
377 void *ptr = sys_multi_heap_realloc(&multi_heap, (void *)0L, in ZTEST() local
379 zassert_is_null(ptr); in ZTEST()
381 ptr = sys_multi_heap_realloc(&multi_heap, (void *)0L, in ZTEST()
383 zassert_not_null(ptr); in ZTEST()