Lines Matching refs:blocks
119 void *blocks[NUM_BLOCKS][1]; in alloc_free() local
138 ret = sys_mem_blocks_alloc(mem_block, 1, blocks[i]); in alloc_free()
142 zassert_true(check_buffer_bound(mem_block, blocks[i][0]), in alloc_free()
156 zassert_equal(listener_mem[i], blocks[i][0], in alloc_free()
158 listener_mem[i], blocks[i][0]); in alloc_free()
168 ret = sys_mem_blocks_alloc(mem_block, 1, blocks[i]); in alloc_free()
178 ret = sys_mem_blocks_free(mem_block, 1, blocks[i]); in alloc_free()
193 zassert_equal(listener_mem[i], blocks[i][0], in alloc_free()
195 listener_mem[i], blocks[i][0]); in alloc_free()
599 void *blocks[2][1] = {0}; in ZTEST() local
603 1, blocks[0], &blk_size); in ZTEST()
608 1, blocks[0], &blk_size); in ZTEST()
611 zassert_true(check_buffer_bound(&mem_block_01, blocks[0][0]), in ZTEST()
617 1, blocks[1], &blk_size); in ZTEST()
620 zassert_true(check_buffer_bound(&mem_block_02, blocks[1][0]), in ZTEST()
625 ret = sys_multi_mem_blocks_free(&alloc_group, 1, blocks[0]); in ZTEST()
629 ret = sys_multi_mem_blocks_free(&alloc_group, 1, blocks[1]); in ZTEST()
636 void *blocks[2] = {0}; in ZTEST() local
639 sys_mem_blocks_alloc(NULL, 1, blocks); in ZTEST()
656 void *blocks[2] = {0}; in ZTEST() local
659 sys_mem_blocks_free(NULL, 1, blocks); in ZTEST()
677 void *blocks[2] = {0}; in ZTEST() local
679 ret = sys_mem_blocks_alloc(&mem_block_01, 0, blocks); in ZTEST()
683 ret = sys_mem_blocks_alloc(&mem_block_01, NUM_BLOCKS + 1, blocks); in ZTEST()
687 ret = sys_mem_blocks_alloc(&mem_block_01, 1, blocks); in ZTEST()
691 ret = sys_mem_blocks_free(&mem_block_01, 0, blocks); in ZTEST()
695 ret = sys_mem_blocks_free(&mem_block_01, NUM_BLOCKS + 1, blocks); in ZTEST()
699 ret = sys_mem_blocks_free(&mem_block_01, 1, blocks); in ZTEST()
703 ret = sys_mem_blocks_free(&mem_block_01, 1, blocks); in ZTEST()
708 blocks[0] = mem_block_01.buffer + in ZTEST()
711 ret = sys_mem_blocks_free(&mem_block_01, 1, blocks); in ZTEST()
718 void *blocks[2] = {0}; in ZTEST() local
722 1, blocks, NULL); in ZTEST()
742 void *blocks[2] = {0}; in ZTEST() local
745 sys_multi_mem_blocks_free(NULL, 1, blocks); in ZTEST()
765 void *blocks[2] = {0}; in ZTEST() local
768 0, blocks, NULL); in ZTEST()
773 NUM_BLOCKS + 1, blocks, NULL); in ZTEST()
778 1, blocks, NULL); in ZTEST()
782 ret = sys_multi_mem_blocks_free(&alloc_group, 0, blocks); in ZTEST()
786 ret = sys_multi_mem_blocks_free(&alloc_group, NUM_BLOCKS + 1, blocks); in ZTEST()
790 ret = sys_multi_mem_blocks_free(&alloc_group, 1, blocks); in ZTEST()
794 ret = sys_multi_mem_blocks_free(&alloc_group, 1, blocks); in ZTEST()
799 blocks[0] = mem_block_01.buffer + in ZTEST()
802 ret = sys_multi_mem_blocks_free(&alloc_group, 1, blocks); in ZTEST()