Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/char/tpm/
Dtpm_nsc.c276 static inline int tpm_read_index(int base, int index) in tpm_read_index() function
298 if (tpm_read_index(TPM_ADDR, NSC_SID_INDEX) != 0xEF) { in init_nsc()
299 nscAddrBase = (tpm_read_index(TPM_SUPERIO_ADDR, 0x2C)<<8)| in init_nsc()
300 (tpm_read_index(TPM_SUPERIO_ADDR, 0x2B)&0xFE); in init_nsc()
301 if (tpm_read_index(nscAddrBase, NSC_SID_INDEX) != 0xF6) in init_nsc()
309 hi = tpm_read_index(nscAddrBase, TPM_NSC_BASE0_HI); in init_nsc()
310 lo = tpm_read_index(nscAddrBase, TPM_NSC_BASE0_LO); in init_nsc()
357 tpm_read_index(nscAddrBase,0x07), tpm_read_index(nscAddrBase,0x20), in init_nsc()
358 tpm_read_index(nscAddrBase,0x27)); in init_nsc()
361 tpm_read_index(nscAddrBase,0x21), tpm_read_index(nscAddrBase,0x25), in init_nsc()
[all …]
Dtpm_atmel.h94 static inline int tpm_read_index(int base, int index) in tpm_read_index() function
105 if (tpm_read_index(TPM_ADDR, 4) != 'A' || in atmel_verify_tpm11()
106 tpm_read_index(TPM_ADDR, 5) != 'T' || in atmel_verify_tpm11()
107 tpm_read_index(TPM_ADDR, 6) != 'M' || in atmel_verify_tpm11()
108 tpm_read_index(TPM_ADDR, 7) != 'L') in atmel_verify_tpm11()
112 if (tpm_read_index(TPM_ADDR, 0x00) != 1 || in atmel_verify_tpm11()
113 tpm_read_index(TPM_ADDR, 0x01) != 1) in atmel_verify_tpm11()
132 lo = tpm_read_index(TPM_ADDR, TPM_ATMEL_BASE_ADDR_LO); in atmel_get_base_addr()
133 hi = tpm_read_index(TPM_ADDR, TPM_ATMEL_BASE_ADDR_HI); in atmel_get_base_addr()