Lines Matching refs:burstcnt
15 * - When reading from FIFO the full burstcnt must be read instead of just
455 size_t burstcnt, cur, len, expected;
463 rc = tpm_cr50_i2c_get_burst_and_status(chip, mask, &burstcnt, &status);
467 if (burstcnt > buf_len || burstcnt < TPM_HEADER_SIZE) {
469 "Unexpected burstcnt: %zu (max=%zu, min=%d)\n",
470 burstcnt, buf_len, TPM_HEADER_SIZE);
475 /* Read first chunk of burstcnt bytes */
476 rc = tpm_cr50_i2c_read(chip, addr, buf, burstcnt);
491 cur = burstcnt;
494 rc = tpm_cr50_i2c_get_burst_and_status(chip, mask, &burstcnt, &status);
498 len = min_t(size_t, burstcnt, expected - cur);
509 rc = tpm_cr50_i2c_get_burst_and_status(chip, TPM_STS_VALID, &burstcnt, &status);
542 size_t burstcnt, limit, sent = 0;
571 rc = tpm_cr50_i2c_get_burst_and_status(chip, mask, &burstcnt, &status);
576 * Use burstcnt - 1 to account for the address byte
579 limit = min_t(size_t, burstcnt - 1, len);
591 rc = tpm_cr50_i2c_get_burst_and_status(chip, TPM_STS_VALID, &burstcnt, &status);