Lines Matching refs:iobuf
1525 tpm->iobuf = kmem_zalloc((sizeof (uint8_t))*(tpm->bufsize), KM_SLEEP); in tpm_attach()
1590 ASSERT(tpm->iobuf != NULL); in tpm_cleanup()
1591 kmem_free(tpm->iobuf, (sizeof (uint8_t))*(tpm->bufsize)); in tpm_cleanup()
1831 ret = tis_recv_data(tpm, tpm->iobuf, tpm->bufsize); in tpm_read()
1840 size = load32(tpm->iobuf, 2); in tpm_read()
1852 ret = uiomove(tpm->iobuf, size, UIO_READ, uiop); in tpm_read()
1861 bzero(tpm->iobuf, tpm->bufsize); in tpm_read()
1913 ret = uiomove(tpm->iobuf, TPM_HEADER_SIZE, UIO_WRITE, uiop); in tpm_write()
1924 size = load32(tpm->iobuf, TPM_PARAMSIZE_OFFSET); in tpm_write()
1938 ret = uiomove(tpm->iobuf+TPM_HEADER_SIZE, size-TPM_HEADER_SIZE, in tpm_write()
1950 ret = tis_send_data(tpm, tpm->iobuf, size); in tpm_write()
1960 bzero(tpm->iobuf, tpm->bufsize); in tpm_write()