Lines Matching defs:ctx
13 struct count_global_ctx *ctx = &count_global_ctx;
16 atomic_inc(&ctx->hits.value);
23 struct count_global_ctx *ctx = &count_global_ctx;
25 res->hits = atomic_swap(&ctx->hits.value, 0);
36 struct count_local_ctx *ctx = &count_local_ctx;
38 ctx->hits = calloc(env.producer_cnt, sizeof(*ctx->hits));
39 if (!ctx->hits)
45 struct count_local_ctx *ctx = &count_local_ctx;
49 atomic_inc(&ctx->hits[idx].value);
56 struct count_local_ctx *ctx = &count_local_ctx;
60 res->hits += atomic_swap(&ctx->hits[i].value, 0);