Searched refs:burstcnt (Results 1 – 4 of 4) sorted by relevance
/drivers/char/tpm/ |
D | tpm_i2c_infineon.c | 392 ssize_t burstcnt; in get_burstcount() local 401 burstcnt = 0; in get_burstcount() 403 burstcnt = (buf[2] << 16) + (buf[1] << 8) + buf[0]; in get_burstcount() 405 if (burstcnt) in get_burstcount() 406 return burstcnt; in get_burstcount() 439 ssize_t burstcnt; in recv_data() local 444 burstcnt = get_burstcount(chip); in recv_data() 447 if (burstcnt < 0) in recv_data() 448 return burstcnt; in recv_data() 451 if (burstcnt > (count - size)) in recv_data() [all …]
|
D | tpm_tis_i2c_cr50.c | 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 [all …]
|
D | tpm_tis_core.c | 283 int burstcnt, rc; in get_burstcount() local 296 burstcnt = (value >> 8) & 0xFFFF; in get_burstcount() 297 if (burstcnt) in get_burstcount() 298 return burstcnt; in get_burstcount() 307 int size = 0, burstcnt, rc; in recv_data() local 316 burstcnt = get_burstcount(chip); in recv_data() 317 if (burstcnt < 0) { in recv_data() 319 return burstcnt; in recv_data() 321 burstcnt = min_t(int, burstcnt, count - size); in recv_data() 324 burstcnt, buf + size); in recv_data() [all …]
|
/drivers/char/tpm/st33zp24/ |
D | st33zp24.c | 162 int burstcnt, status; in get_burstcount() local 172 burstcnt = temp; in get_burstcount() 178 burstcnt |= temp << 8; in get_burstcount() 179 if (burstcnt) in get_burstcount() 180 return burstcnt; in get_burstcount() 265 int size = 0, burstcnt, len, ret; in recv_data() local 272 burstcnt = get_burstcount(chip); in recv_data() 273 if (burstcnt < 0) in recv_data() 274 return burstcnt; in recv_data() 275 len = min_t(int, burstcnt, count - size); in recv_data() [all …]
|