Lines Matching refs:spec
140 #define IS_PCR_HREG(spec) ((spec) & 0x20) argument
141 #define IS_FIX_HREG(spec) (((spec) & 0x38) == 0x08) argument
142 #define IS_VAR_HREG(spec) (((spec) & 0x38) == 0x10) argument
143 #define HREG_IDX(spec) ((spec) & (IS_PCR_HREG(spec) ? 0x1f : 0x7)) argument
439 static struct h_reg *get_hreg(uint8_t spec) in get_hreg() argument
443 idx = HREG_IDX(spec); in get_hreg()
444 if (IS_FIX_HREG(spec)) { in get_hreg()
448 } else if (IS_PCR_HREG(spec)) { in get_hreg()
452 } else if (IS_VAR_HREG(spec)) { in get_hreg()
471 static struct h_reg *access_hreg(uint8_t spec, enum access_mode mode) in access_hreg() argument
475 result = get_hreg(spec); in access_hreg()
480 if (IS_FIX_HREG(spec)) { in access_hreg()
487 if (IS_PCR_HREG(spec)) { in access_hreg()
488 hre_tpm_err = tpm_pcr_read(HREG_IDX(spec), in access_hreg()
491 } else if (IS_FIX_HREG(spec)) { in access_hreg()
492 switch (HREG_IDX(spec)) { in access_hreg()