Lines Matching refs:burstcnt
397 ssize_t burstcnt; in get_burstcount() local
406 burstcnt = 0; in get_burstcount()
408 burstcnt = (buf[2] << 16) + (buf[1] << 8) + buf[0]; in get_burstcount()
410 if (burstcnt) in get_burstcount()
411 return burstcnt; in get_burstcount()
444 ssize_t burstcnt; in recv_data() local
449 burstcnt = get_burstcount(chip); in recv_data()
452 if (burstcnt < 0) in recv_data()
453 return burstcnt; in recv_data()
456 if (burstcnt > (count - size)) in recv_data()
457 burstcnt = count - size; in recv_data()
460 &(buf[size]), burstcnt); in recv_data()
462 size += burstcnt; in recv_data()
525 ssize_t burstcnt; in tpm_tis_i2c_send() local
548 burstcnt = get_burstcount(chip); in tpm_tis_i2c_send()
551 if (burstcnt < 0) in tpm_tis_i2c_send()
552 return burstcnt; in tpm_tis_i2c_send()
554 if (burstcnt > (len - 1 - count)) in tpm_tis_i2c_send()
555 burstcnt = len - 1 - count; in tpm_tis_i2c_send()
558 &(buf[count]), burstcnt); in tpm_tis_i2c_send()
560 count += burstcnt; in tpm_tis_i2c_send()