Lines Matching refs:ops
18 struct tpm_ops *ops = tpm_get_ops(dev); in tpm_open() local
20 if (!ops->open) in tpm_open()
23 return ops->open(dev); in tpm_open()
28 struct tpm_ops *ops = tpm_get_ops(dev); in tpm_close() local
30 if (!ops->close) in tpm_close()
33 return ops->close(dev); in tpm_close()
38 struct tpm_ops *ops = tpm_get_ops(dev); in tpm_get_desc() local
40 if (!ops->get_desc) in tpm_get_desc()
43 return ops->get_desc(dev, buf, size); in tpm_get_desc()
74 struct tpm_ops *ops = tpm_get_ops(dev); in tpm_xfer() local
79 if (ops->xfer) in tpm_xfer()
80 return ops->xfer(dev, sendbuf, send_size, recvbuf, recv_size); in tpm_xfer()
82 if (!ops->send || !ops->recv) in tpm_xfer()
99 ret = ops->send(dev, sendbuf, send_size); in tpm_xfer()
106 ret = ops->recv(dev, priv->buf, sizeof(priv->buf)); in tpm_xfer()
126 if (ops->cleanup) { in tpm_xfer()
127 ret2 = ops->cleanup(dev); in tpm_xfer()