Home
last modified time | relevance | path

Searched refs:trsp (Results 1 – 4 of 4) sorted by relevance

/linux-4.1.27/kernel/locking/
Dlocktorture.c93 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() argument
128 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() argument
168 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 …]
/linux-4.1.27/kernel/
Dtorture.c250 torture_random(struct torture_random_state *trsp) in torture_random() argument
252 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()
/linux-4.1.27/include/linux/
Dtorture.h63 unsigned long torture_random(struct torture_random_state *trsp);
/linux-4.1.27/drivers/scsi/fnic/
Dfcpio.h482 struct fcpio_trsp trsp; member