Home
last modified time | relevance | path

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

/linux-4.4.14/kernel/locking/
Dlocktorture.c96 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() argument
133 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() argument
171 static void torture_spin_lock_write_delay(struct torture_random_state *trsp) in torture_spin_lock_write_delay() argument
179 if (!(torture_random(trsp) % in torture_spin_lock_write_delay()
182 if (!(torture_random(trsp) % in torture_spin_lock_write_delay()
[all …]
/linux-4.4.14/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.4.14/include/linux/
Dtorture.h63 unsigned long torture_random(struct torture_random_state *trsp);
/linux-4.4.14/drivers/scsi/fnic/
Dfcpio.h482 struct fcpio_trsp trsp; member