Home
last modified time | relevance | path

Searched refs:burstcnt (Results 1 – 9 of 9) sorted by relevance

/openbmc/u-boot/drivers/tpm/
H A Dtpm_tis_infineon.c298 ssize_t burstcnt; in tpm_tis_i2c_get_burstcount() local
309 burstcnt = 0; in tpm_tis_i2c_get_burstcount()
313 if (burstcnt) in tpm_tis_i2c_get_burstcount()
314 return burstcnt; in tpm_tis_i2c_get_burstcount()
347 ssize_t burstcnt; in tpm_tis_i2c_recv_data() local
354 if (burstcnt < 0) in tpm_tis_i2c_recv_data()
355 return burstcnt; in tpm_tis_i2c_recv_data()
364 size += burstcnt; in tpm_tis_i2c_recv_data()
424 size_t burstcnt; in tpm_tis_i2c_send() local
450 if (burstcnt < 0) in tpm_tis_i2c_send()
[all …]
H A Dtpm_tis_st33zp24_i2c.c196 int burstcnt, status; in st33zp24_i2c_get_burstcount() local
209 burstcnt = temp; in st33zp24_i2c_get_burstcount()
214 burstcnt |= temp << 8; in st33zp24_i2c_get_burstcount()
215 if (burstcnt) in st33zp24_i2c_get_burstcount()
216 return burstcnt; in st33zp24_i2c_get_burstcount()
276 int size = 0, burstcnt, len, ret, status; in st33zp24_i2c_recv_data() local
282 if (burstcnt < 0) in st33zp24_i2c_recv_data()
283 return burstcnt; in st33zp24_i2c_recv_data()
354 int burstcnt, ret, status; in st33zp24_i2c_send() local
378 if (burstcnt < 0) in st33zp24_i2c_send()
[all …]
H A Dtpm_tis_st33zp24_spi.c325 int burstcnt, status; in st33zp24_spi_get_burstcount() local
338 burstcnt = temp; in st33zp24_spi_get_burstcount()
343 burstcnt |= temp << 8; in st33zp24_spi_get_burstcount()
344 if (burstcnt) in st33zp24_spi_get_burstcount()
345 return burstcnt; in st33zp24_spi_get_burstcount()
405 int size = 0, burstcnt, len, ret, status; in st33zp24_spi_recv_data() local
411 if (burstcnt < 0) in st33zp24_spi_recv_data()
412 return burstcnt; in st33zp24_spi_recv_data()
482 int burstcnt, ret, status; in st33zp24_spi_send() local
506 if (burstcnt < 0) in st33zp24_spi_send()
[all …]
H A Dtpm2_tis_spi.c334 int size = 0, burstcnt, len, ret; in tpm_tis_spi_recv_data() local
341 burstcnt = tpm_tis_spi_get_burstcount(dev); in tpm_tis_spi_recv_data()
342 if (burstcnt < 0) in tpm_tis_spi_recv_data()
343 return burstcnt; in tpm_tis_spi_recv_data()
345 len = min_t(int, burstcnt, count - size); in tpm_tis_spi_recv_data()
403 int burstcnt, ret; in tpm_tis_spi_send() local
445 burstcnt = tpm_tis_spi_get_burstcount(dev); in tpm_tis_spi_send()
446 if (burstcnt < 0) in tpm_tis_spi_send()
447 return burstcnt; in tpm_tis_spi_send()
449 size = min_t(int, len - i - 1, burstcnt); in tpm_tis_spi_send()
H A Dtpm2_tis_core.c222 size_t burstcnt, wr_size, sent = 0; in tpm_tis_send() local
253 ret = tpm_tis_get_burstcount(dev, &burstcnt); in tpm_tis_send()
257 wr_size = min(len, burstcnt); in tpm_tis_send()
309 size_t burstcnt; in tpm_tis_recv_data() local
315 ret = tpm_tis_get_burstcount(dev, &burstcnt); in tpm_tis_recv_data()
319 len = min_t(int, burstcnt, count - size); in tpm_tis_recv_data()
/openbmc/linux/drivers/char/tpm/
H A Dtpm_i2c_infineon.c392 ssize_t burstcnt; in get_burstcount() local
401 burstcnt = 0; in get_burstcount()
405 if (burstcnt) in get_burstcount()
406 return burstcnt; in get_burstcount()
439 ssize_t burstcnt; in recv_data() local
447 if (burstcnt < 0) in recv_data()
448 return burstcnt; in recv_data()
457 size += burstcnt; in recv_data()
520 ssize_t burstcnt; in tpm_tis_i2c_send() local
546 if (burstcnt < 0) in tpm_tis_i2c_send()
[all …]
H A Dtpm_tis_i2c_cr50.c455 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()
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()
[all …]
H A Dtpm_tis_core.c293 int burstcnt, rc; in get_burstcount() local
307 if (burstcnt) in get_burstcount()
308 return burstcnt; in get_burstcount()
327 if (burstcnt < 0) { in recv_data()
329 return burstcnt; in recv_data()
331 burstcnt = min_t(int, burstcnt, count - size); in recv_data()
338 size += burstcnt; in recv_data()
452 if (burstcnt < 0) { in tpm_tis_send_data()
454 rc = burstcnt; in tpm_tis_send_data()
457 burstcnt = min_t(int, burstcnt, len - count - 1); in tpm_tis_send_data()
[all …]
/openbmc/linux/drivers/char/tpm/st33zp24/
H A Dst33zp24.c163 int burstcnt, status; in get_burstcount() local
173 burstcnt = temp; in get_burstcount()
179 burstcnt |= temp << 8; in get_burstcount()
180 if (burstcnt) in get_burstcount()
181 return burstcnt; in get_burstcount()
266 int size = 0, burstcnt, len, ret; in recv_data() local
274 if (burstcnt < 0) in recv_data()
275 return burstcnt; in recv_data()
307 int burstcnt = 0; in st33zp24_send() local
331 if (burstcnt < 0) in st33zp24_send()
[all …]