Lines Matching defs:buf
300 * @param: buf, the buffer where the data are received
304 static int recv_data(struct tpm_chip *chip, u8 *buf, size_t count)
319 buf + size, len);
350 * @param: buf, the buffer to send.
355 static int st33zp24_send(struct tpm_chip *chip, unsigned char *buf,
388 buf + i, size);
402 buf + len - 1, 1);
418 ordinal = be32_to_cpu(*((__be32 *) (buf + 6)));
437 * @param: buf, the buffer to store datas.
442 static int st33zp24_recv(struct tpm_chip *chip, unsigned char *buf,
456 size = recv_data(chip, buf, TPM_HEADER_SIZE);
462 expected = be32_to_cpu(*(__be32 *)(buf + 2));
468 size += recv_data(chip, &buf[TPM_HEADER_SIZE],