Lines Matching refs:sop

149 	struct ot_context *sop = context;
152 on->owner = &sop->pool;
287 struct ot_context *sop = NULL;
291 sop = (struct ot_context *)ot_kzalloc(test, sizeof(*sop));
292 if (!sop)
294 sop->test = test;
298 if (objpool_init(&sop->pool, max, test->objsz,
299 gfp, sop, ot_init_node, NULL)) {
300 ot_kfree(test, sop, sizeof(*sop));
303 WARN_ON(max != sop->pool.nr_objs);
305 return sop;
308 static void ot_fini_sync(struct ot_context *sop)
310 objpool_fini(&sop->pool);
311 ot_kfree(sop->test, sop, sizeof(*sop));
316 void (*fini)(struct ot_context *sop);
350 struct ot_context *sop;
357 sop = g_ot_sync_ops[test->mode].init(test);
358 if (!sop)
368 ot_init_cpu_item(item, test, &sop->pool, ot_bulk_sync);
409 g_ot_sync_ops[test->mode].fini(sop);
426 struct ot_context *sop = container_of(rcu, struct ot_context, rcu);
427 struct ot_test *test = sop->test;
432 objpool_fini(&sop->pool);
436 static void ot_fini_async(struct ot_context *sop)
439 call_rcu(&sop->rcu, ot_fini_async_rcu);
444 struct ot_context *sop = context;
446 WARN_ON(!head || !sop || head != &sop->pool);
449 if (sop)
450 ot_kfree(sop->test, sop, sizeof(*sop));
457 struct ot_context *sop = NULL;
461 sop = (struct ot_context *)ot_kzalloc(test, sizeof(*sop));
462 if (!sop)
464 sop->test = test;
468 if (objpool_init(&sop->pool, max, test->objsz, gfp, sop,
470 ot_kfree(test, sop, sizeof(*sop));
473 WARN_ON(max != sop->pool.nr_objs);
475 return sop;
480 void (*fini)(struct ot_context *sop);
488 struct ot_context *sop;
498 sop = container_of(pool, struct ot_context, pool);
499 WARN_ON(sop != pool->context);
541 struct ot_context *sop;
548 sop = g_ot_async_ops[test->mode].init(test);
549 if (!sop)
559 ot_init_cpu_item(item, test, &sop->pool, ot_bulk_async);
594 g_ot_async_ops[test->mode].fini(sop);