Searched refs:trsp (Results 1 – 4 of 4) sorted by relevance
93 void (*write_delay)(struct torture_random_state *trsp);96 void (*read_delay)(struct torture_random_state *trsp);123 static void torture_lock_busted_write_delay(struct torture_random_state *trsp) in torture_lock_busted_write_delay() argument128 if (!(torture_random(trsp) % in torture_lock_busted_write_delay()132 if (!(torture_random(trsp) % (cxt.nrealwriters_stress * 20000))) in torture_lock_busted_write_delay()160 static void torture_spin_lock_write_delay(struct torture_random_state *trsp) in torture_spin_lock_write_delay() argument168 if (!(torture_random(trsp) % in torture_spin_lock_write_delay()171 if (!(torture_random(trsp) % in torture_spin_lock_write_delay()175 if (!(torture_random(trsp) % (cxt.nrealwriters_stress * 20000))) in torture_spin_lock_write_delay()229 static void torture_rwlock_write_delay(struct torture_random_state *trsp) in torture_rwlock_write_delay() argument[all …]
250 torture_random(struct torture_random_state *trsp) in torture_random() argument252 if (--trsp->trs_count < 0) { in torture_random()253 trsp->trs_state += (unsigned long)local_clock(); in torture_random()254 trsp->trs_count = TORTURE_RANDOM_REFRESH; in torture_random()256 trsp->trs_state = trsp->trs_state * TORTURE_RANDOM_MULT + in torture_random()258 return swahw32(trsp->trs_state); in torture_random()
63 unsigned long torture_random(struct torture_random_state *trsp);
482 struct fcpio_trsp trsp; member