Lines Matching refs:uint64_t

7 static long ktest_kfifo_case0_1(uint64_t arg0, uint64_t arg1)  in ktest_kfifo_case0_1()
33 uint64_t tmp = i; in ktest_kfifo_case0_1()
34 assert(kfifo_in(&fifo, &tmp, sizeof(uint64_t)) == sizeof(uint64_t)); in ktest_kfifo_case0_1()
36 assert(fifo.in_offset == 10 * sizeof(uint64_t)); in ktest_kfifo_case0_1()
38 assert(fifo.size == 10 * sizeof(uint64_t)); in ktest_kfifo_case0_1()
44 uint64_t tmp = 0; in ktest_kfifo_case0_1()
45 assert(kfifo_out(&fifo, &tmp, sizeof(uint64_t)) == sizeof(uint64_t)); in ktest_kfifo_case0_1()
47 assert(fifo.size == (10 - i) * sizeof(uint64_t)); in ktest_kfifo_case0_1()
48 assert(fifo.in_offset == 10 * sizeof(uint64_t)); in ktest_kfifo_case0_1()
49 assert(fifo.out_offset == i * sizeof(uint64_t)); in ktest_kfifo_case0_1()
52 assert(fifo.in_offset == 10 * sizeof(uint64_t)); in ktest_kfifo_case0_1()
53 assert(fifo.out_offset == 10 * sizeof(uint64_t)); in ktest_kfifo_case0_1()
66 uint64_t tmp = i; in ktest_kfifo_case0_1()
67 assert(kfifo_in(&fifo, &tmp, sizeof(uint64_t)) == sizeof(uint64_t)); in ktest_kfifo_case0_1()
70 assert(fifo.size == 31 * sizeof(uint64_t)); in ktest_kfifo_case0_1()
71 assert(fifo.in_offset == 31 * sizeof(uint64_t)); in ktest_kfifo_case0_1()
78 assert(fifo.size == 31 * sizeof(uint64_t)); in ktest_kfifo_case0_1()
79 assert(fifo.in_offset == 31 * sizeof(uint64_t)); in ktest_kfifo_case0_1()
84 uint64_t tmp = 32; in ktest_kfifo_case0_1()
85 assert(kfifo_in(&fifo, &tmp, sizeof(uint64_t)) == sizeof(uint64_t)); in ktest_kfifo_case0_1()
96 uint64_t tmp = 0; in ktest_kfifo_case0_1()
97 assert(kfifo_out(&fifo, &tmp, sizeof(uint64_t)) == sizeof(uint64_t)); in ktest_kfifo_case0_1()
99 assert(fifo.size == (fifo.total_size - 20 * sizeof(uint64_t))); in ktest_kfifo_case0_1()
101 assert(fifo.out_offset == 20 * sizeof(uint64_t)); in ktest_kfifo_case0_1()
105 uint64_t tmp = 99; in ktest_kfifo_case0_1()
107 assert(kfifo_in(&fifo, &tmp, sizeof(uint64_t)) == sizeof(uint64_t)); in ktest_kfifo_case0_1()
108 assert(fifo.in_offset == 1 * sizeof(uint64_t)); in ktest_kfifo_case0_1()
112 assert(kfifo_in(&fifo, &tmp, sizeof(uint64_t)) == sizeof(uint64_t)); in ktest_kfifo_case0_1()
114 assert(fifo.in_offset == 10 * sizeof(uint64_t)); in ktest_kfifo_case0_1()
115 assert(fifo.size == 22 * sizeof(uint64_t)); in ktest_kfifo_case0_1()
120 char tmp[20 * sizeof(uint64_t)]; in ktest_kfifo_case0_1()
121 assert(kfifo_out(&fifo, &tmp, 20 * sizeof(uint64_t)) == 20 * sizeof(uint64_t)); in ktest_kfifo_case0_1()
122 assert(fifo.out_offset == 8 * sizeof(uint64_t)); in ktest_kfifo_case0_1()
123 assert(fifo.size == 2 * (sizeof(uint64_t))); in ktest_kfifo_case0_1()
128 char tmp[25 * sizeof(uint64_t)]; in ktest_kfifo_case0_1()
129 assert(kfifo_in(&fifo, &tmp, 25 * sizeof(uint64_t)) == 25 * sizeof(uint64_t)); in ktest_kfifo_case0_1()
130 assert(fifo.out_offset == 8 * sizeof(uint64_t)); in ktest_kfifo_case0_1()
131 assert(fifo.size == 27 * sizeof(uint64_t)); in ktest_kfifo_case0_1()
132 assert(fifo.in_offset == 3 * sizeof(uint64_t)); in ktest_kfifo_case0_1()