Lines Matching refs:burstcnt
298 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()
359 burstcnt = count - size; in tpm_tis_i2c_recv_data()
362 &(buf[size]), 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
447 burstcnt = tpm_tis_i2c_get_burstcount(dev); in tpm_tis_i2c_send()
450 if (burstcnt < 0) in tpm_tis_i2c_send()
451 return burstcnt; in tpm_tis_i2c_send()
455 if (burstcnt > len - count) in tpm_tis_i2c_send()
456 burstcnt = len - count; in tpm_tis_i2c_send()
459 if (retry && burstcnt > CONFIG_TPM_TIS_I2C_BURST_LIMITATION_LEN) in tpm_tis_i2c_send()
460 burstcnt = CONFIG_TPM_TIS_I2C_BURST_LIMITATION_LEN; in tpm_tis_i2c_send()
464 &(buf[count]), burstcnt); in tpm_tis_i2c_send()
466 count += burstcnt; in tpm_tis_i2c_send()