Lines Matching full:spec
87 #define IS_PCR_HREG(spec) ((spec) & 0x20) argument
88 #define IS_FIX_HREG(spec) (((spec) & 0x38) == 0x08) argument
89 #define IS_VAR_HREG(spec) (((spec) & 0x38) == 0x10) argument
90 #define HREG_IDX(spec) ((spec) & (IS_PCR_HREG(spec) ? 0x1f : 0x7)) argument
216 * @param spec specification of a hash register
217 * @return pointer to hash register or NULL if @a spec does not qualify a
220 static struct h_reg *get_hreg(uint8_t spec) in get_hreg() argument
224 idx = HREG_IDX(spec); in get_hreg()
225 if (IS_FIX_HREG(spec)) { in get_hreg()
229 } else if (IS_PCR_HREG(spec)) { in get_hreg()
233 } else if (IS_VAR_HREG(spec)) { in get_hreg()
244 * @param spec specification of a hash register
248 * This func uses @a get_reg() to determine the hash register for a given spec.
253 static struct h_reg *access_hreg(struct udevice *tpm, uint8_t spec, in access_hreg() argument
258 result = get_hreg(spec); in access_hreg()
263 if (IS_FIX_HREG(spec)) { in access_hreg()
270 if (IS_PCR_HREG(spec)) { in access_hreg()
271 hre_tpm_err = tpm_pcr_read(tpm, HREG_IDX(spec), in access_hreg()
274 } else if (IS_FIX_HREG(spec)) { in access_hreg()
275 switch (HREG_IDX(spec)) { in access_hreg()