Searched refs:trsp (Results 1 – 4 of 4) sorted by relevance
96 void (*write_delay)(struct torture_random_state *trsp);97 void (*task_boost)(struct torture_random_state *trsp);100 void (*read_delay)(struct torture_random_state *trsp);128 static void torture_lock_busted_write_delay(struct torture_random_state *trsp) in torture_lock_busted_write_delay() argument133 if (!(torture_random(trsp) % in torture_lock_busted_write_delay()137 if (!(torture_random(trsp) % (cxt.nrealwriters_stress * 20000))) in torture_lock_busted_write_delay()147 static void torture_boost_dummy(struct torture_random_state *trsp) in torture_boost_dummy() argument171 static void torture_spin_lock_write_delay(struct torture_random_state *trsp) in torture_spin_lock_write_delay() argument179 if (!(torture_random(trsp) % in torture_spin_lock_write_delay()182 if (!(torture_random(trsp) % in torture_spin_lock_write_delay()[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