Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/kernel/locking/
H A 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 …]
/OK3568_Linux_fs/kernel/include/linux/
H A 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()
/OK3568_Linux_fs/kernel/kernel/
H A 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()
H A 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()
296 static void scftorture_invoke_one(struct scf_statistics *scfp, struct torture_random_state *trsp) in scftorture_invoke_one() argument
301 struct scf_selector *scfsp = scf_sel_rand(trsp); in scftorture_invoke_one()
319 cpu = torture_random(trsp) % nr_cpu_ids; in scftorture_invoke_one()
378 if (!(torture_random(trsp) & 0xfff)) in scftorture_invoke_one()
/OK3568_Linux_fs/kernel/kernel/rcu/
H A Drcutorture.c1225 struct torture_random_state *trsp, in rcutorture_one_extend() argument
1270 bool lockit = !statesnew && !(torture_random(trsp) & 0xffff); in rcutorture_one_extend()
1281 cur_ops->read_delay(trsp, rtrsp); in rcutorture_one_extend()
1306 rcutorture_extend_mask(int oldmask, struct torture_random_state *trsp) in rcutorture_extend_mask() argument
1309 unsigned long randmask1 = torture_random(trsp) >> 8; in rcutorture_extend_mask()
1349 rcutorture_loop_extend(int *readstate, struct torture_random_state *trsp, in rcutorture_loop_extend() argument
1360 i = (torture_random(trsp) >> 3); in rcutorture_loop_extend()
1363 mask = rcutorture_extend_mask(*readstate, trsp); in rcutorture_loop_extend()
1364 rcutorture_one_extend(readstate, mask, trsp, &rtrsp[j]); in rcutorture_loop_extend()
1374 static bool rcu_torture_one_read(struct torture_random_state *trsp) in rcu_torture_one_read() argument
[all …]
/OK3568_Linux_fs/kernel/drivers/scsi/fnic/
H A Dfcpio.h482 struct fcpio_trsp trsp; member