Lines Matching refs:burstcnt
301 ssize_t burstcnt; in tpm_tis_i2c_get_burstcount() local
312 burstcnt = 0; in tpm_tis_i2c_get_burstcount()
314 burstcnt = (buf[2] << 16) + (buf[1] << 8) + buf[0]; in tpm_tis_i2c_get_burstcount()
316 if (burstcnt) in tpm_tis_i2c_get_burstcount()
317 return burstcnt; in tpm_tis_i2c_get_burstcount()
350 ssize_t burstcnt; in tpm_tis_i2c_recv_data() local
354 burstcnt = tpm_tis_i2c_get_burstcount(dev); in tpm_tis_i2c_recv_data()
357 if (burstcnt < 0) in tpm_tis_i2c_recv_data()
358 return burstcnt; in tpm_tis_i2c_recv_data()
361 if (burstcnt > (count - size)) in tpm_tis_i2c_recv_data()
362 burstcnt = count - size; in tpm_tis_i2c_recv_data()
365 &(buf[size]), burstcnt); in tpm_tis_i2c_recv_data()
367 size += burstcnt; in tpm_tis_i2c_recv_data()
426 size_t burstcnt; in tpm_tis_i2c_send() local
449 burstcnt = tpm_tis_i2c_get_burstcount(dev); in tpm_tis_i2c_send()
452 if (burstcnt < 0) in tpm_tis_i2c_send()
453 return burstcnt; in tpm_tis_i2c_send()
457 if (burstcnt > len - count) in tpm_tis_i2c_send()
458 burstcnt = len - count; in tpm_tis_i2c_send()
461 if (retry && burstcnt > CONFIG_TPM_TIS_I2C_BURST_LIMITATION_LEN) in tpm_tis_i2c_send()
462 burstcnt = CONFIG_TPM_TIS_I2C_BURST_LIMITATION_LEN; in tpm_tis_i2c_send()
466 &(buf[count]), burstcnt); in tpm_tis_i2c_send()
468 count += burstcnt; in tpm_tis_i2c_send()