Home
last modified time | relevance | path

Searched refs:ibmvtpm (Results 1 – 1 of 1) sorted by relevance

/linux-6.1.9/drivers/char/tpm/
Dtpm_ibmvtpm.c107 struct ibmvtpm_dev *ibmvtpm = dev_get_drvdata(&chip->dev); in tpm_ibmvtpm_recv() local
110 if (!ibmvtpm->rtce_buf) { in tpm_ibmvtpm_recv()
111 dev_err(ibmvtpm->dev, "ibmvtpm device is not ready\n"); in tpm_ibmvtpm_recv()
115 len = ibmvtpm->res_len; in tpm_ibmvtpm_recv()
118 dev_err(ibmvtpm->dev, in tpm_ibmvtpm_recv()
124 spin_lock(&ibmvtpm->rtce_lock); in tpm_ibmvtpm_recv()
125 memcpy((void *)buf, (void *)ibmvtpm->rtce_buf, len); in tpm_ibmvtpm_recv()
126 memset(ibmvtpm->rtce_buf, 0, len); in tpm_ibmvtpm_recv()
127 ibmvtpm->res_len = 0; in tpm_ibmvtpm_recv()
128 spin_unlock(&ibmvtpm->rtce_lock); in tpm_ibmvtpm_recv()
[all …]