• Home
  • Raw
  • Download

Lines Matching refs:cur_ops

95 	struct lock_torture_ops *cur_ops;  member
192 cxt.cur_ops->flags = flags; in torture_spin_lock_write_lock_irq()
199 spin_unlock_irqrestore(&torture_spinlock, cxt.cur_ops->flags); in torture_lock_spin_write_unlock_irq()
283 cxt.cur_ops->flags = flags; in torture_rwlock_write_lock_irq()
290 write_unlock_irqrestore(&torture_rwlock, cxt.cur_ops->flags); in torture_rwlock_write_unlock_irq()
298 cxt.cur_ops->flags = flags; in torture_rwlock_read_lock_irq()
305 read_unlock_irqrestore(&torture_rwlock, cxt.cur_ops->flags); in torture_rwlock_read_unlock_irq()
631 cxt.cur_ops->task_boost(&rand); in lock_torture_writer()
632 cxt.cur_ops->writelock(); in lock_torture_writer()
640 cxt.cur_ops->write_delay(&rand); in lock_torture_writer()
642 cxt.cur_ops->writeunlock(); in lock_torture_writer()
647 cxt.cur_ops->task_boost(NULL); /* reset prio */ in lock_torture_writer()
668 cxt.cur_ops->readlock(); in lock_torture_reader()
674 cxt.cur_ops->read_delay(&rand); in lock_torture_reader()
676 cxt.cur_ops->readunlock(); in lock_torture_reader()
727 if (cxt.cur_ops->readlock) in lock_torture_stats_print()
741 if (cxt.cur_ops->readlock) { in lock_torture_stats_print()
775 lock_torture_print_module_parms(struct lock_torture_ops *cur_ops, in lock_torture_print_module_parms() argument
822 lock_torture_print_module_parms(cxt.cur_ops, in lock_torture_cleanup()
825 lock_torture_print_module_parms(cxt.cur_ops, in lock_torture_cleanup()
828 lock_torture_print_module_parms(cxt.cur_ops, in lock_torture_cleanup()
862 cxt.cur_ops = torture_ops[i]; in lock_torture_init()
863 if (strcmp(torture_type, cxt.cur_ops->name) == 0) in lock_torture_init()
883 if (cxt.cur_ops->init) in lock_torture_init()
884 cxt.cur_ops->init(); in lock_torture_init()
923 if (cxt.cur_ops->readlock) { in lock_torture_init()
957 lock_torture_print_module_parms(cxt.cur_ops, "Start of test"); in lock_torture_init()
994 if (cxt.cur_ops->readlock) { in lock_torture_init()
1027 if (cxt.cur_ops->readlock == NULL || (j >= cxt.nrealreaders_stress)) in lock_torture_init()