Lines Matching refs:p
26 void *p, *q, *r, *s; in check_heap_align() local
28 p = sys_heap_alloc(h, prefix); in check_heap_align()
29 zassert_true(prefix == 0 || p != NULL, "prefix allocation failed"); in check_heap_align()
46 sys_heap_free(h, p); in check_heap_align()
53 p = sys_heap_alloc(h, heap_end - heap_start); in check_heap_align()
54 zassert_true(p != NULL, "heap not empty"); in check_heap_align()
57 sys_heap_free(h, p); in check_heap_align()
63 void *p, *q; in ZTEST() local
67 p = sys_heap_alloc(&heap, 1); in ZTEST()
68 zassert_true(p != NULL, "initial alloc failed"); in ZTEST()
69 sys_heap_free(&heap, p); in ZTEST()
74 heap_start = p; in ZTEST()
86 p = sys_heap_aligned_alloc(&heap, 8, 12); in ZTEST()
87 memset(p, 0, 12); in ZTEST()
89 sys_heap_free(&heap, p); in ZTEST()
92 p = sys_heap_aligned_alloc(&heap, 16, 16); in ZTEST()
94 memset(p, 0, 16); in ZTEST()
97 sys_heap_free(&heap, p); in ZTEST()