Lines Matching refs:count
75 int count; in tpm_tis_i2c_read() local
80 for (count = 0; count < MAX_COUNT; count++) { in tpm_tis_i2c_read()
93 for (count = 0; count < MAX_COUNT; count++) { in tpm_tis_i2c_read()
107 for (count = 0; count < MAX_COUNT; count++) { in tpm_tis_i2c_read()
130 int count; in tpm_tis_i2c_write_generic() local
141 for (count = 0; count < max_count; count++) { in tpm_tis_i2c_write_generic()
343 static int tpm_tis_i2c_recv_data(struct udevice *dev, u8 *buf, size_t count) in tpm_tis_i2c_recv_data() argument
350 while (size < count) { 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()
370 static int tpm_tis_i2c_recv(struct udevice *dev, u8 *buf, size_t count) in tpm_tis_i2c_recv() argument
395 if ((size_t)expected > count || (size_t)expected < TPM_HEADER_SIZE) { in tpm_tis_i2c_recv()
397 count); in tpm_tis_i2c_recv()
425 size_t count = 0; in tpm_tis_i2c_send() local
453 while (count < len) { in tpm_tis_i2c_send()
455 if (burstcnt > len - count) in tpm_tis_i2c_send()
456 burstcnt = len - count; in tpm_tis_i2c_send()
464 &(buf[count]), burstcnt); in tpm_tis_i2c_send()
466 count += burstcnt; in tpm_tis_i2c_send()