Lines Matching refs:tnt_cache

40 	struct pt_tnt_cache tnt_cache;  in init()  local
42 memset(&tnt_cache, 0xcd, sizeof(tnt_cache)); in init()
44 pt_tnt_cache_init(&tnt_cache); in init()
46 ptu_uint_eq(tnt_cache.tnt, 0ull); in init()
47 ptu_uint_eq(tnt_cache.index, 0ull); in init()
61 struct pt_tnt_cache tnt_cache; in is_empty_initial() local
64 pt_tnt_cache_init(&tnt_cache); in is_empty_initial()
66 status = pt_tnt_cache_is_empty(&tnt_cache); in is_empty_initial()
74 struct pt_tnt_cache tnt_cache; in is_empty_no() local
77 tnt_cache.index = 1ull; in is_empty_no()
79 status = pt_tnt_cache_is_empty(&tnt_cache); in is_empty_no()
87 struct pt_tnt_cache tnt_cache; in is_empty_yes() local
90 tnt_cache.index = 0ull; in is_empty_yes()
92 status = pt_tnt_cache_is_empty(&tnt_cache); in is_empty_yes()
110 struct pt_tnt_cache tnt_cache; in query_taken() local
113 tnt_cache.tnt = 1ull; in query_taken()
114 tnt_cache.index = 1ull; in query_taken()
116 status = pt_tnt_cache_query(&tnt_cache); in query_taken()
118 ptu_uint_eq(tnt_cache.index, 0); in query_taken()
125 struct pt_tnt_cache tnt_cache; in query_not_taken() local
128 tnt_cache.tnt = 0ull; in query_not_taken()
129 tnt_cache.index = 1ull; in query_not_taken()
131 status = pt_tnt_cache_query(&tnt_cache); in query_not_taken()
133 ptu_uint_eq(tnt_cache.index, 0); in query_not_taken()
140 struct pt_tnt_cache tnt_cache; in query_empty() local
143 tnt_cache.index = 0ull; in query_empty()
145 status = pt_tnt_cache_query(&tnt_cache); in query_empty()
163 struct pt_tnt_cache tnt_cache; in update_tnt() local
167 pt_tnt_cache_init(&tnt_cache); in update_tnt()
172 errcode = pt_tnt_cache_update_tnt(&tnt_cache, &packet, NULL); in update_tnt()
174 ptu_uint_eq(tnt_cache.tnt, 8ull); in update_tnt()
175 ptu_uint_eq(tnt_cache.index, 1ull << 3); in update_tnt()
182 struct pt_tnt_cache tnt_cache; in update_tnt_not_empty() local
186 tnt_cache.tnt = 42ull; in update_tnt_not_empty()
187 tnt_cache.index = 12ull; in update_tnt_not_empty()
189 errcode = pt_tnt_cache_update_tnt(&tnt_cache, &packet, NULL); in update_tnt_not_empty()
191 ptu_uint_eq(tnt_cache.tnt, 42ull); in update_tnt_not_empty()
192 ptu_uint_eq(tnt_cache.index, 12ull); in update_tnt_not_empty()
210 struct pt_tnt_cache tnt_cache; in update_tnt_null_packet() local
213 tnt_cache.tnt = 42ull; in update_tnt_null_packet()
214 tnt_cache.index = 12ull; in update_tnt_null_packet()
216 errcode = pt_tnt_cache_update_tnt(&tnt_cache, NULL, NULL); in update_tnt_null_packet()
218 ptu_uint_eq(tnt_cache.tnt, 42ull); in update_tnt_null_packet()
219 ptu_uint_eq(tnt_cache.index, 12ull); in update_tnt_null_packet()