Lines Matching refs:burstcnt
456 size_t burstcnt, cur, len, expected; in tpm_cr50_i2c_tis_recv() local
464 rc = tpm_cr50_i2c_get_burst_and_status(chip, mask, &burstcnt, &status); in tpm_cr50_i2c_tis_recv()
468 if (burstcnt > buf_len || burstcnt < TPM_HEADER_SIZE) { in tpm_cr50_i2c_tis_recv()
471 burstcnt, buf_len, TPM_HEADER_SIZE); in tpm_cr50_i2c_tis_recv()
477 rc = tpm_cr50_i2c_read(chip, addr, buf, burstcnt); in tpm_cr50_i2c_tis_recv()
492 cur = burstcnt; in tpm_cr50_i2c_tis_recv()
495 rc = tpm_cr50_i2c_get_burst_and_status(chip, mask, &burstcnt, &status); in tpm_cr50_i2c_tis_recv()
499 len = min_t(size_t, burstcnt, expected - cur); in tpm_cr50_i2c_tis_recv()
510 rc = tpm_cr50_i2c_get_burst_and_status(chip, TPM_STS_VALID, &burstcnt, &status); in tpm_cr50_i2c_tis_recv()
543 size_t burstcnt, limit, sent = 0; in tpm_cr50_i2c_tis_send() local
572 rc = tpm_cr50_i2c_get_burst_and_status(chip, mask, &burstcnt, &status); in tpm_cr50_i2c_tis_send()
580 limit = min_t(size_t, burstcnt - 1, len); in tpm_cr50_i2c_tis_send()
592 rc = tpm_cr50_i2c_get_burst_and_status(chip, TPM_STS_VALID, &burstcnt, &status); in tpm_cr50_i2c_tis_send()