Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/char/tpm/
Dtpm_nsc.c281 static inline int tpm_read_index(int base, int index) in tpm_read_index() function
303 if (tpm_read_index(TPM_ADDR, NSC_SID_INDEX) != 0xEF) { in init_nsc()
304 nscAddrBase = (tpm_read_index(TPM_SUPERIO_ADDR, 0x2C)<<8)| in init_nsc()
305 (tpm_read_index(TPM_SUPERIO_ADDR, 0x2B)&0xFE); in init_nsc()
306 if (tpm_read_index(nscAddrBase, NSC_SID_INDEX) != 0xF6) in init_nsc()
314 hi = tpm_read_index(nscAddrBase, TPM_NSC_BASE0_HI); in init_nsc()
315 lo = tpm_read_index(nscAddrBase, TPM_NSC_BASE0_LO); in init_nsc()
362 tpm_read_index(nscAddrBase,0x07), tpm_read_index(nscAddrBase,0x20), in init_nsc()
363 tpm_read_index(nscAddrBase,0x27)); in init_nsc()
366 tpm_read_index(nscAddrBase,0x21), tpm_read_index(nscAddrBase,0x25), in init_nsc()
[all …]
Dtpm_atmel.h99 static inline int tpm_read_index(int base, int index) in tpm_read_index() function
110 if (tpm_read_index(TPM_ADDR, 4) != 'A' || in atmel_verify_tpm11()
111 tpm_read_index(TPM_ADDR, 5) != 'T' || in atmel_verify_tpm11()
112 tpm_read_index(TPM_ADDR, 6) != 'M' || in atmel_verify_tpm11()
113 tpm_read_index(TPM_ADDR, 7) != 'L') in atmel_verify_tpm11()
117 if (tpm_read_index(TPM_ADDR, 0x00) != 1 || in atmel_verify_tpm11()
118 tpm_read_index(TPM_ADDR, 0x01) != 1) in atmel_verify_tpm11()
137 lo = tpm_read_index(TPM_ADDR, TPM_ATMEL_BASE_ADDR_LO); in atmel_get_base_addr()
138 hi = tpm_read_index(TPM_ADDR, TPM_ATMEL_BASE_ADDR_HI); in atmel_get_base_addr()