Lines Matching refs:burstcnt
360 ssize_t burstcnt; in get_burstcount() local
369 burstcnt = 0; in get_burstcount()
371 burstcnt = (buf[2] << 16) + (buf[1] << 8) + buf[0]; in get_burstcount()
373 if (burstcnt) in get_burstcount()
374 return burstcnt; in get_burstcount()
407 ssize_t burstcnt; in recv_data() local
412 burstcnt = get_burstcount(chip); in recv_data()
415 if (burstcnt < 0) in recv_data()
416 return burstcnt; in recv_data()
419 if (burstcnt > (count - size)) in recv_data()
420 burstcnt = count - size; in recv_data()
423 &(buf[size]), burstcnt); in recv_data()
425 size += burstcnt; in recv_data()
487 ssize_t burstcnt; in tpm_tis_i2c_send() local
510 burstcnt = get_burstcount(chip); in tpm_tis_i2c_send()
513 if (burstcnt < 0) in tpm_tis_i2c_send()
514 return burstcnt; in tpm_tis_i2c_send()
516 if (burstcnt > (len - 1 - count)) in tpm_tis_i2c_send()
517 burstcnt = len - 1 - count; in tpm_tis_i2c_send()
520 &(buf[count]), burstcnt); in tpm_tis_i2c_send()
522 count += burstcnt; in tpm_tis_i2c_send()