Lines Matching refs:duration

69  * This is to address some TPMs that does not report the correct duration
76 * TPM_GetCapability (short duration) commands should not be longer than 750ms
77 * and that section 11.3.7 states that TPM_ContinueSelfTest (medium duration)
91 * and 400 milliseconds for long duration
494 uint32_t duration;
519 * Make sure that there are 3 duration values (S,M,L: in that order)
533 duration = load32(buf, TPM_CAP_DUR_SHORT_OFFSET);
534 if (duration == 0) {
535 duration = DEFAULT_SHORT_DURATION;
536 } else if (duration < TEN_MILLISECONDS) {
537 duration *= 1000;
539 tpm->duration[TPM_SHORT] = drv_usectohz(duration);
541 duration = load32(buf, TPM_CAP_DUR_MEDIUM_OFFSET);
542 if (duration == 0) {
543 duration = DEFAULT_MEDIUM_DURATION;
544 } else if (duration < TEN_MILLISECONDS) {
545 duration *= 1000;
547 tpm->duration[TPM_MEDIUM] = drv_usectohz(duration);
549 duration = load32(buf, TPM_CAP_DUR_LONG_OFFSET);
550 if (duration == 0) {
551 duration = DEFAULT_LONG_DURATION;
552 } else if (duration < FOUR_HUNDRED_MILLISECONDS) {
553 duration *= 1000;
555 tpm->duration[TPM_LONG] = drv_usectohz(duration);
557 /* Just make the undefined duration be the same as the LONG */
558 tpm->duration[TPM_UNDEFINED] = tpm->duration[TPM_LONG];
706 cmn_err(CE_WARN, "!%s: duration index '%d' is out of bounds",
711 return (tpm->duration[index]);
1202 * 3. Determine timeouts and commands duration
1221 * Do the same with the duration (real duration will be filled out
1222 * when we call TPM_GetCapability to get the duration values from
1225 tpm->duration[TPM_SHORT] = drv_usectohz(TPM_DEFAULT_DURATION);
1226 tpm->duration[TPM_MEDIUM] = drv_usectohz(TPM_DEFAULT_DURATION);
1227 tpm->duration[TPM_LONG] = drv_usectohz(TPM_DEFAULT_DURATION);
1228 tpm->duration[TPM_UNDEFINED] = drv_usectohz(TPM_DEFAULT_DURATION);