Lines Matching defs:timeout

71  * time errors such as GetCapability command from TPM reporting the timeout
379 * TPM commands to get the TPM's properties, e.g.,timeout
406 uint32_t timeout; /* in milliseconds */
409 /* The buffer size (30) needs room for 4 timeout values (uint32_t) */
432 * Make sure that there are 4 timeout values returned
446 /* Get the four timeout's: a,b,c,d (they are 4 bytes long each) */
447 timeout = load32(buf, TPM_CAP_TIMEOUT_A_OFFSET);
448 if (timeout == 0) {
449 timeout = DEFAULT_TIMEOUT_A;
450 } else if (timeout < TEN_MILLISECONDS) {
451 /* timeout is in millisecond range (should be microseconds) */
452 timeout *= 1000;
454 tpm->timeout_a = drv_usectohz(timeout);
456 timeout = load32(buf, TPM_CAP_TIMEOUT_B_OFFSET);
457 if (timeout == 0) {
458 timeout = DEFAULT_TIMEOUT_B;
459 } else if (timeout < TEN_MILLISECONDS) {
460 /* timeout is in millisecond range (should be microseconds) */
461 timeout *= 1000;
463 tpm->timeout_b = drv_usectohz(timeout);
465 timeout = load32(buf, TPM_CAP_TIMEOUT_C_OFFSET);
466 if (timeout == 0) {
467 timeout = DEFAULT_TIMEOUT_C;
468 } else if (timeout < TEN_MILLISECONDS) {
469 /* timeout is in millisecond range (should be microseconds) */
470 timeout *= 1000;
472 tpm->timeout_c = drv_usectohz(timeout);
474 timeout = load32(buf, TPM_CAP_TIMEOUT_D_OFFSET);
475 if (timeout == 0) {
476 timeout = DEFAULT_TIMEOUT_D;
477 } else if (timeout < TEN_MILLISECONDS) {
478 /* timeout is in millisecond range (should be microseconds) */
479 timeout *= 1000;
481 tpm->timeout_d = drv_usectohz(timeout);
654 /* Need a longer timeout */
792 * Spec says timeout should be TIMEOUT_D
1065 "(ordinal = %d timeout = %ld status = 0x%0x)",
1135 clock_t timeout;
1150 timeout = ddi_get_lbolt() + tpm->timeout_a;
1155 if (ddi_get_lbolt() >= timeout) {
1177 tpm_wait_for_stat(tpm_state_t *tpm, uint8_t mask, clock_t timeout) {
1179 clock_t absolute_timeout = ddi_get_lbolt() + timeout;
1187 "polling - reached timeout (%ld usecs)",
1188 myname, drv_hztousec(timeout));
1977 clock_t timeout;
1982 timeout = ddi_get_lbolt() + drv_usectohz(TPM_IO_TIMEOUT);
1984 /* Wait until the iobuf becomes free with the timeout */
1986 ret = cv_timedwait(&tpm->iobuf_cv, &tpm->iobuf_lock, timeout);