Home
last modified time | relevance | path

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

/linux-2.6.39/drivers/mtd/tests/
Dmtd_stresstest.c53 static inline unsigned int simple_rand(void) in simple_rand() function
70 eb = simple_rand(); in rand_eb()
72 eb = (simple_rand() << 15) | simple_rand(); in rand_eb()
85 offs = simple_rand(); in rand_offs()
87 offs = (simple_rand() << 15) | simple_rand(); in rand_offs()
97 len = simple_rand(); in rand_len()
99 len = (simple_rand() << 15) | simple_rand(); in rand_len()
214 if (simple_rand() & 1) in do_operation()
295 writebuf[i] = simple_rand(); in mtd_stresstest_init()
Dmtd_speedtest.c52 static inline unsigned int simple_rand(void) in simple_rand() function
68 buf[i] = simple_rand(); in set_random_data()
Dmtd_subpagetest.c48 static inline unsigned int simple_rand(void) in simple_rand() function
64 buf[i] = simple_rand(); in set_random_data()
Dmtd_oobtest.c51 static inline unsigned int simple_rand(void) in simple_rand() function
67 buf[i] = simple_rand(); in set_random_data()
Dmtd_pagetest.c50 static inline unsigned int simple_rand(void) in simple_rand() function
66 buf[i] = simple_rand(); in set_random_data()
/linux-2.6.39/fs/ubifs/
Ddebug.c2452 #define chance(n, d) (simple_rand() <= (n) * 32768LL / (d))
2464 static int simple_rand(void) in simple_rand() function
2538 unsigned int delay = 1 << (simple_rand() >> 11); in do_fail()
2626 flen = (len * (long long)simple_rand()) >> 15; in cut_data()