Lines Matching refs:mapping
166 void *mapping = NULL; in __calc_tpm2_event_size() local
186 mapping = TPM_MEMREMAP((unsigned long)marker_start, in __calc_tpm2_event_size()
188 if (!mapping) { in __calc_tpm2_event_size()
193 mapping = marker_start; in __calc_tpm2_event_size()
196 event = (struct tcg_pcr_event2_head *)mapping; in __calc_tpm2_event_size()
233 TPM_MEMUNMAP(mapping, mapping_size); in __calc_tpm2_event_size()
235 mapping = TPM_MEMREMAP((unsigned long)marker, in __calc_tpm2_event_size()
237 if (!mapping) { in __calc_tpm2_event_size()
242 mapping = marker; in __calc_tpm2_event_size()
245 memcpy(&halg, mapping, halg_size); in __calc_tpm2_event_size()
267 TPM_MEMUNMAP(mapping, mapping_size); in __calc_tpm2_event_size()
269 mapping = TPM_MEMREMAP((unsigned long)marker, in __calc_tpm2_event_size()
271 if (!mapping) { in __calc_tpm2_event_size()
276 mapping = marker; in __calc_tpm2_event_size()
279 event_field = (struct tcg_event_field *)mapping; in __calc_tpm2_event_size()
290 TPM_MEMUNMAP(mapping, mapping_size); in __calc_tpm2_event_size()