Lines Matching refs:cur_ops

159 	struct lock_torture_ops *cur_ops;  member
291 cxt.cur_ops->flags = flags; in torture_spin_lock_write_lock_irq()
298 spin_unlock_irqrestore(&torture_spinlock, cxt.cur_ops->flags); in torture_lock_spin_write_unlock_irq()
344 cxt.cur_ops->flags = flags; in torture_raw_spin_lock_write_lock_irq()
351 raw_spin_unlock_irqrestore(&torture_raw_spinlock, cxt.cur_ops->flags); in torture_raw_spin_lock_write_unlock_irq()
436 cxt.cur_ops->flags = flags; in torture_rwlock_write_lock_irq()
443 write_unlock_irqrestore(&torture_rwlock, cxt.cur_ops->flags); in torture_rwlock_write_unlock_irq()
452 cxt.cur_ops->flags = flags; in torture_rwlock_read_lock_irq()
459 read_unlock_irqrestore(&torture_rwlock, cxt.cur_ops->flags); in torture_rwlock_read_unlock_irq()
873 cxt.cur_ops->task_boost(&rand); in lock_torture_writer()
874 if (cxt.cur_ops->nested_lock) in lock_torture_writer()
875 cxt.cur_ops->nested_lock(tid, lockset_mask); in lock_torture_writer()
880 cxt.cur_ops->writelock(tid); in lock_torture_writer()
894 cxt.cur_ops->write_delay(&rand); in lock_torture_writer()
898 cxt.cur_ops->writeunlock(tid); in lock_torture_writer()
900 if (cxt.cur_ops->nested_unlock) in lock_torture_writer()
901 cxt.cur_ops->nested_unlock(tid, lockset_mask); in lock_torture_writer()
906 cxt.cur_ops->task_boost(NULL); /* reset prio */ in lock_torture_writer()
928 cxt.cur_ops->readlock(tid); in lock_torture_reader()
934 cxt.cur_ops->read_delay(&rand); in lock_torture_reader()
936 cxt.cur_ops->readunlock(tid); in lock_torture_reader()
990 if (cxt.cur_ops->readlock) in lock_torture_stats_print()
1004 if (cxt.cur_ops->readlock) { in lock_torture_stats_print()
1039 lock_torture_print_module_parms(struct lock_torture_ops *cur_ops, in lock_torture_print_module_parms() argument
1138 lock_torture_print_module_parms(cxt.cur_ops, in lock_torture_cleanup()
1141 lock_torture_print_module_parms(cxt.cur_ops, in lock_torture_cleanup()
1144 lock_torture_print_module_parms(cxt.cur_ops, in lock_torture_cleanup()
1156 if (cxt.cur_ops->exit) in lock_torture_cleanup()
1157 cxt.cur_ops->exit(); in lock_torture_cleanup()
1186 cxt.cur_ops = torture_ops[i]; in lock_torture_init()
1187 if (strcmp(torture_type, cxt.cur_ops->name) == 0) in lock_torture_init()
1202 (!cxt.cur_ops->readlock || nreaders_stress == 0)) { in lock_torture_init()
1213 if (cxt.cur_ops->init) { in lock_torture_init()
1214 cxt.cur_ops->init(); in lock_torture_init()
1250 if (cxt.cur_ops->readlock) { in lock_torture_init()
1287 lock_torture_print_module_parms(cxt.cur_ops, "Start of test"); in lock_torture_init()
1328 if (cxt.cur_ops->readlock) { in lock_torture_init()
1364 if (cxt.cur_ops->readlock == NULL || (j >= cxt.nrealreaders_stress)) in lock_torture_init()