Lines Matching refs:count
78 int count; in tpm_tis_i2c_read() local
83 for (count = 0; count < MAX_COUNT; count++) { in tpm_tis_i2c_read()
96 for (count = 0; count < MAX_COUNT; count++) { in tpm_tis_i2c_read()
110 for (count = 0; count < MAX_COUNT; count++) { in tpm_tis_i2c_read()
133 int count; in tpm_tis_i2c_write_generic() local
144 for (count = 0; count < max_count; count++) { in tpm_tis_i2c_write_generic()
346 static int tpm_tis_i2c_recv_data(struct udevice *dev, u8 *buf, size_t count) in tpm_tis_i2c_recv_data() argument
353 while (size < count) { 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()
373 static int tpm_tis_i2c_recv(struct udevice *dev, u8 *buf, size_t count) in tpm_tis_i2c_recv() argument
397 if ((size_t)expected > count) { in tpm_tis_i2c_recv()
399 count); in tpm_tis_i2c_recv()
427 size_t count = 0; in tpm_tis_i2c_send() local
455 while (count < len) { in tpm_tis_i2c_send()
457 if (burstcnt > len - count) in tpm_tis_i2c_send()
458 burstcnt = len - count; in tpm_tis_i2c_send()
466 &(buf[count]), burstcnt); in tpm_tis_i2c_send()
468 count += burstcnt; in tpm_tis_i2c_send()