Home
last modified time | relevance | path

Searched refs:burstcnt (Results 1 - 7 of 7) sorted by relevance

/kernel/linux/linux-5.10/drivers/char/tpm/
H A Dtpm_i2c_infineon.c392 ssize_t burstcnt; in get_burstcount() local
401 burstcnt = 0; in get_burstcount()
403 burstcnt = (buf[2] << 16) + (buf[1] << 8) + buf[0]; in get_burstcount()
405 if (burstcnt) in get_burstcount()
406 return burstcnt; in get_burstcount()
439 ssize_t burstcnt; in recv_data() local
444 burstcnt = get_burstcount(chip); in recv_data()
446 /* burstcnt < 0 = TPM is busy */ in recv_data()
447 if (burstcnt < 0) in recv_data()
448 return burstcnt; in recv_data()
520 ssize_t burstcnt; tpm_tis_i2c_send() local
[all...]
H A Dtpm_tis_core.c261 int burstcnt, rc; in get_burstcount() local
274 burstcnt = (value >> 8) & 0xFFFF; in get_burstcount()
275 if (burstcnt) in get_burstcount()
276 return burstcnt; in get_burstcount()
285 int size = 0, burstcnt, rc; in recv_data() local
294 burstcnt = get_burstcount(chip); in recv_data()
295 if (burstcnt < 0) { in recv_data()
297 return burstcnt; in recv_data()
299 burstcnt = min_t(int, burstcnt, coun in recv_data()
375 int rc, status, burstcnt; tpm_tis_send_data() local
[all...]
/kernel/linux/linux-6.6/drivers/char/tpm/
H A Dtpm_i2c_infineon.c392 ssize_t burstcnt; in get_burstcount() local
401 burstcnt = 0; in get_burstcount()
403 burstcnt = (buf[2] << 16) + (buf[1] << 8) + buf[0]; in get_burstcount()
405 if (burstcnt) in get_burstcount()
406 return burstcnt; in get_burstcount()
439 ssize_t burstcnt; in recv_data() local
444 burstcnt = get_burstcount(chip); in recv_data()
446 /* burstcnt < 0 = TPM is busy */ in recv_data()
447 if (burstcnt < 0) in recv_data()
448 return burstcnt; in recv_data()
520 ssize_t burstcnt; tpm_tis_i2c_send() local
[all...]
H A Dtpm_tis_i2c_cr50.c15 * - When reading from FIFO the full burstcnt must be read instead of just
455 size_t burstcnt, cur, len, expected; in tpm_cr50_i2c_tis_recv() local
463 rc = tpm_cr50_i2c_get_burst_and_status(chip, mask, &burstcnt, &status); in tpm_cr50_i2c_tis_recv()
467 if (burstcnt > buf_len || burstcnt < TPM_HEADER_SIZE) { in tpm_cr50_i2c_tis_recv()
469 "Unexpected burstcnt: %zu (max=%zu, min=%d)\n", in tpm_cr50_i2c_tis_recv()
470 burstcnt, buf_len, TPM_HEADER_SIZE); in tpm_cr50_i2c_tis_recv()
475 /* Read first chunk of burstcnt bytes */ in tpm_cr50_i2c_tis_recv()
476 rc = tpm_cr50_i2c_read(chip, addr, buf, burstcnt); in tpm_cr50_i2c_tis_recv()
491 cur = burstcnt; in tpm_cr50_i2c_tis_recv()
542 size_t burstcnt, limit, sent = 0; tpm_cr50_i2c_tis_send() local
[all...]
H A Dtpm_tis_core.c293 int burstcnt, rc; in get_burstcount() local
306 burstcnt = (value >> 8) & 0xFFFF; in get_burstcount()
307 if (burstcnt) in get_burstcount()
308 return burstcnt; in get_burstcount()
317 int size = 0, burstcnt, rc; in recv_data() local
326 burstcnt = get_burstcount(chip); in recv_data()
327 if (burstcnt < 0) { in recv_data()
329 return burstcnt; in recv_data()
331 burstcnt = min_t(int, burstcnt, coun in recv_data()
435 int rc, status, burstcnt; tpm_tis_send_data() local
[all...]
/kernel/linux/linux-5.10/drivers/char/tpm/st33zp24/
H A Dst33zp24.c181 int burstcnt, status; in get_burstcount() local
191 burstcnt = temp; in get_burstcount()
197 burstcnt |= temp << 8; in get_burstcount()
198 if (burstcnt) in get_burstcount()
199 return burstcnt; in get_burstcount()
307 int size = 0, burstcnt, len, ret; in recv_data() local
314 burstcnt = get_burstcount(chip); in recv_data()
315 if (burstcnt < 0) in recv_data()
316 return burstcnt; in recv_data()
317 len = min_t(int, burstcnt, coun in recv_data()
360 int burstcnt = 0; st33zp24_send() local
[all...]
/kernel/linux/linux-6.6/drivers/char/tpm/st33zp24/
H A Dst33zp24.c163 int burstcnt, status; in get_burstcount() local
173 burstcnt = temp; in get_burstcount()
179 burstcnt |= temp << 8; in get_burstcount()
180 if (burstcnt) in get_burstcount()
181 return burstcnt; in get_burstcount()
266 int size = 0, burstcnt, len, ret; in recv_data() local
273 burstcnt = get_burstcount(chip); in recv_data()
274 if (burstcnt < 0) in recv_data()
275 return burstcnt; in recv_data()
276 len = min_t(int, burstcnt, coun in recv_data()
307 int burstcnt = 0; st33zp24_send() local
[all...]

Completed in 7 milliseconds