Home
last modified time | relevance | path

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

/Linux-v5.10/kernel/locking/
Dlocktorture.c78 void (*write_delay)(struct torture_random_state *trsp);
79 void (*task_boost)(struct torture_random_state *trsp);
82 void (*read_delay)(struct torture_random_state *trsp);
110 static void torture_lock_busted_write_delay(struct torture_random_state *trsp) in torture_lock_busted_write_delay() argument
115 if (!(torture_random(trsp) % in torture_lock_busted_write_delay()
118 if (!(torture_random(trsp) % (cxt.nrealwriters_stress * 20000))) in torture_lock_busted_write_delay()
127 static void torture_boost_dummy(struct torture_random_state *trsp) in torture_boost_dummy() argument
151 static void torture_spin_lock_write_delay(struct torture_random_state *trsp) in torture_spin_lock_write_delay() argument
159 if (!(torture_random(trsp) % in torture_spin_lock_write_delay()
162 if (!(torture_random(trsp) % in torture_spin_lock_write_delay()
[all …]
/Linux-v5.10/include/linux/
Dtorture.h57 unsigned long torture_random(struct torture_random_state *trsp);
58 static inline void torture_random_init(struct torture_random_state *trsp) in torture_random_init() argument
60 trsp->trs_state = 0; in torture_random_init()
61 trsp->trs_count = 0; in torture_random_init()
/Linux-v5.10/kernel/
Dtorture.c331 torture_random(struct torture_random_state *trsp) in torture_random() argument
333 if (--trsp->trs_count < 0) { in torture_random()
334 trsp->trs_state += (unsigned long)local_clock(); in torture_random()
335 trsp->trs_count = TORTURE_RANDOM_REFRESH; in torture_random()
337 trsp->trs_state = trsp->trs_state * TORTURE_RANDOM_MULT + in torture_random()
339 return swahw32(trsp->trs_state); in torture_random()
Dscftorture.c227 static struct scf_selector *scf_sel_rand(struct torture_random_state *trsp) in scf_sel_rand() argument
230 unsigned long w = torture_random(trsp) % (scf_sel_totweight + 1); in scf_sel_rand()
295 static void scftorture_invoke_one(struct scf_statistics *scfp, struct torture_random_state *trsp) in scftorture_invoke_one() argument
300 struct scf_selector *scfsp = scf_sel_rand(trsp); in scftorture_invoke_one()
318 cpu = torture_random(trsp) % nr_cpu_ids; in scftorture_invoke_one()
377 if (!(torture_random(trsp) & 0xfff)) in scftorture_invoke_one()
/Linux-v5.10/kernel/rcu/
Drcutorture.c1225 struct torture_random_state *trsp, in rcutorture_one_extend() argument
1264 bool lockit = !statesnew && !(torture_random(trsp) & 0xffff); in rcutorture_one_extend()
1275 cur_ops->read_delay(trsp, rtrsp); in rcutorture_one_extend()
1300 rcutorture_extend_mask(int oldmask, struct torture_random_state *trsp) in rcutorture_extend_mask() argument
1303 unsigned long randmask1 = torture_random(trsp) >> 8; in rcutorture_extend_mask()
1325 rcutorture_loop_extend(int *readstate, struct torture_random_state *trsp, in rcutorture_loop_extend() argument
1336 i = (torture_random(trsp) >> 3); in rcutorture_loop_extend()
1339 mask = rcutorture_extend_mask(*readstate, trsp); in rcutorture_loop_extend()
1340 rcutorture_one_extend(readstate, mask, trsp, &rtrsp[j]); in rcutorture_loop_extend()
1350 static bool rcu_torture_one_read(struct torture_random_state *trsp) in rcu_torture_one_read() argument
[all …]
/Linux-v5.10/drivers/scsi/fnic/
Dfcpio.h482 struct fcpio_trsp trsp; member