Lines Matching defs:ctx
319 static bool ralloc_walk_cb(const ralloc_region_t* r, void* ctx) {
320 ralloc_walk_test_ctx_t* ctx_ = (ralloc_walk_test_ctx_t*)ctx;
367 ralloc_walk_test_ctx_t ctx = { 0, -1, test_regions };
368 ralloc_walk_allocated_regions(alloc, ralloc_walk_cb, (void*)&ctx);
369 EXPECT_EQ(r_cnt, (size_t)ctx.i, "");
376 ctx.i = 0;
377 ctx.end = (int)(rand() % r_cnt) + 1;
378 ralloc_walk_allocated_regions(alloc, ralloc_walk_cb, (void*)&ctx);
379 ASSERT_EQ(ctx.i, ctx.end, "");