Lines Matching refs:count
109 int count; in iic_tpm_read() local
124 for (count = 0; count < MAX_COUNT; count++) { in iic_tpm_read()
136 for (count = 0; count < MAX_COUNT; count++) { in iic_tpm_read()
153 for (count = 0; count < MAX_COUNT; count++) { in iic_tpm_read()
209 int count; in iic_tpm_write_generic() local
234 for (count = 0; count < max_count; count++) { in iic_tpm_write_generic()
436 static int recv_data(struct tpm_chip *chip, u8 *buf, size_t count) in recv_data() argument
443 while (size < count) { in recv_data()
451 if (burstcnt > (count - size)) in recv_data()
452 burstcnt = count - size; in recv_data()
468 static int tpm_tis_i2c_recv(struct tpm_chip *chip, u8 *buf, size_t count) in tpm_tis_i2c_recv() argument
474 if (count < TPM_HEADER_SIZE) { in tpm_tis_i2c_recv()
487 if (((size_t) expected > count) || (expected < TPM_HEADER_SIZE)) { in tpm_tis_i2c_recv()
521 size_t count = 0; in tpm_tis_i2c_send() local
542 while (count < len - 1) { in tpm_tis_i2c_send()
549 if (burstcnt > (len - 1 - count)) in tpm_tis_i2c_send()
550 burstcnt = len - 1 - count; in tpm_tis_i2c_send()
553 &(buf[count]), burstcnt); in tpm_tis_i2c_send()
555 count += burstcnt; in tpm_tis_i2c_send()
575 iic_tpm_write(TPM_DATA_FIFO(tpm_dev.locality), &(buf[count]), 1); in tpm_tis_i2c_send()