Lines Matching defs:buf
228 /* Read @count bytes into @buf from TPM_RD_FIFO register */
230 struct tpm_chip *chip, u8 *buf, size_t count)
249 bytes2read, &buf[size]);
264 static int i2c_nuvoton_recv(struct tpm_chip *chip, u8 *buf, size_t count)
304 size = i2c_nuvoton_recv_data(client, chip, buf,
315 expected = be32_to_cpu(*(__be32 *) (buf + 2));
321 rc = i2c_nuvoton_recv_data(client, chip, &buf[size],
352 static int i2c_nuvoton_send(struct tpm_chip *chip, u8 *buf, size_t len)
385 bytes2write, &buf[count]);
412 &buf[count]);
419 dev_dbg(dev, "%s(last): %02x", __func__, buf[count]);
444 ordinal = be32_to_cpu(*((__be32 *) (buf + 6)));