Lines Matching defs:counter
9 struct noise_replay_counter *counter;
13 counter = kmalloc(sizeof(*counter), GFP_KERNEL);
14 if (unlikely(!counter)) {
15 pr_err("nonce counter self-test malloc: FAIL\n");
20 memset(counter, 0, sizeof(*counter)); \
21 spin_lock_init(&counter->lock); \
26 if (counter_validate(counter, n) != (v)) { \
27 pr_err("nonce counter self-test %u: FAIL\n", \
107 pr_info("nonce counter self-tests: pass\n");
108 kfree(counter);