Home
last modified time | relevance | path

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

/external/u-boot/drivers/tpm/
Dtpm_tis_infineon.c298 ssize_t burstcnt; in tpm_tis_i2c_get_burstcount() local
309 burstcnt = 0; in tpm_tis_i2c_get_burstcount()
311 burstcnt = (buf[2] << 16) + (buf[1] << 8) + buf[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
351 burstcnt = tpm_tis_i2c_get_burstcount(dev); in tpm_tis_i2c_recv_data()
354 if (burstcnt < 0) in tpm_tis_i2c_recv_data()
355 return burstcnt; in tpm_tis_i2c_recv_data()
358 if (burstcnt > (count - size)) in tpm_tis_i2c_recv_data()
[all …]
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
281 burstcnt = st33zp24_i2c_get_burstcount(dev); in st33zp24_i2c_recv_data()
282 if (burstcnt < 0) in st33zp24_i2c_recv_data()
283 return burstcnt; in st33zp24_i2c_recv_data()
284 len = min_t(int, burstcnt, count - size); in st33zp24_i2c_recv_data()
[all …]
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
410 burstcnt = st33zp24_spi_get_burstcount(dev); in st33zp24_spi_recv_data()
411 if (burstcnt < 0) in st33zp24_spi_recv_data()
412 return burstcnt; in st33zp24_spi_recv_data()
413 len = min_t(int, burstcnt, count - size); in st33zp24_spi_recv_data()
[all …]
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()