Lines Matching refs:cur_ops
97 struct lock_torture_ops *cur_ops; member
196 cxt.cur_ops->flags = flags; in torture_spin_lock_write_lock_irq()
203 spin_unlock_irqrestore(&torture_spinlock, cxt.cur_ops->flags); in torture_lock_spin_write_unlock_irq()
292 cxt.cur_ops->flags = flags; in torture_rwlock_write_lock_irq()
299 write_unlock_irqrestore(&torture_rwlock, cxt.cur_ops->flags); in torture_rwlock_write_unlock_irq()
308 cxt.cur_ops->flags = flags; in torture_rwlock_read_lock_irq()
315 read_unlock_irqrestore(&torture_rwlock, cxt.cur_ops->flags); in torture_rwlock_read_unlock_irq()
680 cxt.cur_ops->task_boost(&rand); in lock_torture_writer()
681 cxt.cur_ops->writelock(tid); in lock_torture_writer()
689 cxt.cur_ops->write_delay(&rand); in lock_torture_writer()
692 cxt.cur_ops->writeunlock(tid); in lock_torture_writer()
697 cxt.cur_ops->task_boost(NULL); /* reset prio */ in lock_torture_writer()
719 cxt.cur_ops->readlock(tid); in lock_torture_reader()
725 cxt.cur_ops->read_delay(&rand); in lock_torture_reader()
727 cxt.cur_ops->readunlock(tid); in lock_torture_reader()
781 if (cxt.cur_ops->readlock) in lock_torture_stats_print()
795 if (cxt.cur_ops->readlock) { in lock_torture_stats_print()
829 lock_torture_print_module_parms(struct lock_torture_ops *cur_ops, in lock_torture_print_module_parms() argument
877 lock_torture_print_module_parms(cxt.cur_ops, in lock_torture_cleanup()
880 lock_torture_print_module_parms(cxt.cur_ops, in lock_torture_cleanup()
883 lock_torture_print_module_parms(cxt.cur_ops, in lock_torture_cleanup()
893 if (cxt.cur_ops->exit) in lock_torture_cleanup()
894 cxt.cur_ops->exit(); in lock_torture_cleanup()
922 cxt.cur_ops = torture_ops[i]; in lock_torture_init()
923 if (strcmp(torture_type, cxt.cur_ops->name) == 0) in lock_torture_init()
938 (!cxt.cur_ops->readlock || nreaders_stress == 0)) { in lock_torture_init()
949 if (cxt.cur_ops->init) { in lock_torture_init()
950 cxt.cur_ops->init(); in lock_torture_init()
986 if (cxt.cur_ops->readlock) { in lock_torture_init()
1019 lock_torture_print_module_parms(cxt.cur_ops, "Start of test"); in lock_torture_init()
1056 if (cxt.cur_ops->readlock) { in lock_torture_init()
1089 if (cxt.cur_ops->readlock == NULL || (j >= cxt.nrealreaders_stress)) in lock_torture_init()