Lines Matching refs:trsp
86 int torture_hrtimeout_ns(ktime_t baset_ns, u32 fuzzt_ns, struct torture_random_state *trsp) in torture_hrtimeout_ns() argument
90 if (trsp) in torture_hrtimeout_ns()
91 hto += (torture_random(trsp) >> 3) % fuzzt_ns; in torture_hrtimeout_ns()
101 int torture_hrtimeout_us(u32 baset_us, u32 fuzzt_ns, struct torture_random_state *trsp) in torture_hrtimeout_us() argument
105 return torture_hrtimeout_ns(baset_ns, fuzzt_ns, trsp); in torture_hrtimeout_us()
113 int torture_hrtimeout_ms(u32 baset_ms, u32 fuzzt_us, struct torture_random_state *trsp) in torture_hrtimeout_ms() argument
122 return torture_hrtimeout_ns(baset_ns, fuzzt_ns, trsp); in torture_hrtimeout_ms()
131 int torture_hrtimeout_jiffies(u32 baset_j, struct torture_random_state *trsp) in torture_hrtimeout_jiffies() argument
135 return torture_hrtimeout_ns(baset_ns, jiffies_to_nsecs(1), trsp); in torture_hrtimeout_jiffies()
143 int torture_hrtimeout_s(u32 baset_s, u32 fuzzt_ms, struct torture_random_state *trsp) in torture_hrtimeout_s() argument
152 return torture_hrtimeout_ns(baset_ns, fuzzt_ns, trsp); in torture_hrtimeout_s()
450 torture_random(struct torture_random_state *trsp) in torture_random() argument
452 if (--trsp->trs_count < 0) { in torture_random()
453 trsp->trs_state += (unsigned long)local_clock(); in torture_random()
454 trsp->trs_count = TORTURE_RANDOM_REFRESH; in torture_random()
456 trsp->trs_state = trsp->trs_state * TORTURE_RANDOM_MULT + in torture_random()
458 return swahw32(trsp->trs_state); in torture_random()