Lines Matching refs:burstcnt
455 size_t burstcnt, cur, len, expected; in tpm_cr50_i2c_tis_recv() local
463 rc = tpm_cr50_i2c_get_burst_and_status(chip, mask, &burstcnt, &status); in tpm_cr50_i2c_tis_recv()
467 if (burstcnt > buf_len || burstcnt < TPM_HEADER_SIZE) { in tpm_cr50_i2c_tis_recv()
470 burstcnt, buf_len, TPM_HEADER_SIZE); in tpm_cr50_i2c_tis_recv()
476 rc = tpm_cr50_i2c_read(chip, addr, buf, burstcnt); in tpm_cr50_i2c_tis_recv()
491 cur = burstcnt; in tpm_cr50_i2c_tis_recv()
494 rc = tpm_cr50_i2c_get_burst_and_status(chip, mask, &burstcnt, &status); in tpm_cr50_i2c_tis_recv()
498 len = min_t(size_t, burstcnt, expected - cur); in tpm_cr50_i2c_tis_recv()
509 rc = tpm_cr50_i2c_get_burst_and_status(chip, TPM_STS_VALID, &burstcnt, &status); in tpm_cr50_i2c_tis_recv()
542 size_t burstcnt, limit, sent = 0; in tpm_cr50_i2c_tis_send() local
571 rc = tpm_cr50_i2c_get_burst_and_status(chip, mask, &burstcnt, &status); in tpm_cr50_i2c_tis_send()
579 limit = min_t(size_t, burstcnt - 1, len); in tpm_cr50_i2c_tis_send()
591 rc = tpm_cr50_i2c_get_burst_and_status(chip, TPM_STS_VALID, &burstcnt, &status); in tpm_cr50_i2c_tis_send()