Lines Matching refs:srcu_ctl
467 static struct srcu_struct srcu_ctl; variable
471 init_srcu_struct(&srcu_ctl); in srcu_torture_init()
477 synchronize_srcu(&srcu_ctl); in srcu_torture_cleanup()
478 cleanup_srcu_struct(&srcu_ctl); in srcu_torture_cleanup()
481 static int srcu_torture_read_lock(void) __acquires(&srcu_ctl) in srcu_torture_read_lock()
483 return srcu_read_lock(&srcu_ctl); in srcu_torture_read_lock()
499 static void srcu_torture_read_unlock(int idx) __releases(&srcu_ctl) in srcu_torture_read_unlock()
501 srcu_read_unlock(&srcu_ctl, idx); in srcu_torture_read_unlock()
506 return srcu_batches_completed(&srcu_ctl); in srcu_torture_completed()
511 synchronize_srcu(&srcu_ctl); in srcu_torture_synchronize()
518 int idx = srcu_ctl.completed & 0x1; in srcu_torture_stats()
524 per_cpu_ptr(srcu_ctl.per_cpu_ref, cpu)->c[!idx], in srcu_torture_stats()
525 per_cpu_ptr(srcu_ctl.per_cpu_ref, cpu)->c[idx]); in srcu_torture_stats()