Lines Matching refs:spec
88 #define IS_PCR_HREG(spec) ((spec) & 0x20) argument
89 #define IS_FIX_HREG(spec) (((spec) & 0x38) == 0x08) argument
90 #define IS_VAR_HREG(spec) (((spec) & 0x38) == 0x10) argument
91 #define HREG_IDX(spec) ((spec) & (IS_PCR_HREG(spec) ? 0x1f : 0x7)) argument
216 static struct h_reg *get_hreg(uint8_t spec) in get_hreg() argument
220 idx = HREG_IDX(spec); in get_hreg()
221 if (IS_FIX_HREG(spec)) { in get_hreg()
225 } else if (IS_PCR_HREG(spec)) { in get_hreg()
229 } else if (IS_VAR_HREG(spec)) { in get_hreg()
248 static struct h_reg *access_hreg(uint8_t spec, enum access_mode mode) in access_hreg() argument
252 result = get_hreg(spec); in access_hreg()
257 if (IS_FIX_HREG(spec)) { in access_hreg()
264 if (IS_PCR_HREG(spec)) { in access_hreg()
265 hre_tpm_err = tpm_pcr_read(HREG_IDX(spec), in access_hreg()
268 } else if (IS_FIX_HREG(spec)) { in access_hreg()
269 switch (HREG_IDX(spec)) { in access_hreg()