Lines Matching +full:reset +full:- +full:assert +full:- +full:ms
4 * SPDX-License-Identifier: GPL-2.0+
183 assert(disable == 1 && deactivated == 1); in test_fast_enable()
189 assert(disable == 0 && deactivated == 0); in test_fast_enable()
216 assert(result == TPM_AREA_LOCKED); in test_global_lock()
218 assert(x == 0); in test_global_lock()
223 assert(x == 2); in test_global_lock()
229 assert(result == TPM_BAD_PRESENCE); in test_global_lock()
231 assert(x == 2); in test_global_lock()
281 * Checks if initialisation has completed by trying to read-lock a in test_readonly()
328 assert(!tpm_is_owned()); in test_redefine_unowned()
347 assert(result == TPM_AREA_LOCKED); in test_redefine_unowned()
358 assert(result == TPM_BAD_PRESENCE); in test_redefine_unowned()
360 assert(result == TPM_BAD_PRESENCE); in test_redefine_unowned()
379 assert((perm & PERMPPGL) == PERMPPGL); in test_space_perm()
381 assert((perm & PERMPP) == PERMPP); in test_space_perm()
419 return -1; \
422 printf("\t" #op ": %lu ms\n", time); \
424 printf("\t" #op " exceeded " #time_limit " ms\n"); \
472 assert(i >= TPM_MAX_NV_WRITES_NOOWNER); in test_write_limit()
479 /* Reset write count */ in test_write_limit()
542 printf("\n------\n"); in do_tpmtest()
544 argc--; in do_tpmtest()
548 return c ? c->cmd(cmdtp, flag, argc, argv) : cmd_usage(cmdtp); in do_tpmtest()