Lines Matching refs:FspData
68 IN FSP_GLOBAL_DATA *FspData in SetFspGlobalDataPointer() argument
71 ASSERT (FspData != NULL); in SetFspGlobalDataPointer()
72 *((volatile UINT32 *)(UINTN)PcdGet32(PcdGlobalDataPointerAddress)) = (UINT32)(UINTN)FspData; in SetFspGlobalDataPointer()
85 FSP_GLOBAL_DATA *FspData; in GetFspGlobalDataPointer() local
87 FspData = *(FSP_GLOBAL_DATA **)(UINTN)PcdGet32(PcdGlobalDataPointerAddress); in GetFspGlobalDataPointer()
88 return FspData; in GetFspGlobalDataPointer()
102 FSP_GLOBAL_DATA *FspData; in GetFspApiParameter() local
104 FspData = GetFspGlobalDataPointer (); in GetFspApiParameter()
105 return *(UINT32 *)(UINTN)(FspData->CoreStack + CONTEXT_STACK_OFFSET(ApiParam)); in GetFspApiParameter()
120 FSP_GLOBAL_DATA *FspData; in SetFspApiParameter() local
122 FspData = GetFspGlobalDataPointer (); in SetFspApiParameter()
123 *(UINT32 *)(UINTN)(FspData->CoreStack + CONTEXT_STACK_OFFSET(ApiParam)) = Value; in SetFspApiParameter()
139 FSP_GLOBAL_DATA *FspData; in SetFspContinuationFuncParameter() local
141 FspData = GetFspGlobalDataPointer (); in SetFspContinuationFuncParameter()
142 …*(UINT32 *)(UINTN)(FspData->CoreStack + CONTEXT_STACK_OFFSET(ApiParam) + (Index + 1) * sizeof(UINT… in SetFspContinuationFuncParameter()
158 FSP_GLOBAL_DATA *FspData; in SetFspApiReturnAddress() local
160 FspData = GetFspGlobalDataPointer (); in SetFspApiReturnAddress()
161 *(UINT32 *)(UINTN)(FspData->CoreStack + CONTEXT_STACK_OFFSET(ApiRet)) = ReturnAddress; in SetFspApiReturnAddress()
176 FSP_GLOBAL_DATA *FspData; in SetFspApiReturnStatus() local
178 FspData = GetFspGlobalDataPointer (); in SetFspApiReturnStatus()
179 *(UINT32 *)(UINTN)(FspData->CoreStack + CONTEXT_STACK_OFFSET(Eax)) = ReturnStatus; in SetFspApiReturnStatus()
194 FSP_GLOBAL_DATA *FspData; in SetFspCoreStackPointer() local
199 FspData = GetFspGlobalDataPointer (); in SetFspCoreStackPointer()
205 OldStack = (UINT32 *)FspData->CoreStack; in SetFspCoreStackPointer()
207 FspData->CoreStack = (UINT32)NewStack; in SetFspCoreStackPointer()
225 FSP_GLOBAL_DATA *FspData; in SetFspPlatformDataPointer() local
227 FspData = GetFspGlobalDataPointer (); in SetFspPlatformDataPointer()
228 FspData->PlatformData.DataPtr = PlatformData; in SetFspPlatformDataPointer()
244 FSP_GLOBAL_DATA *FspData; in GetFspPlatformDataPointer() local
246 FspData = GetFspGlobalDataPointer (); in GetFspPlatformDataPointer()
247 return FspData->PlatformData.DataPtr; in GetFspPlatformDataPointer()
262 FSP_GLOBAL_DATA *FspData; in SetFspUpdDataPointer() local
267 FspData = GetFspGlobalDataPointer (); in SetFspUpdDataPointer()
272 FspData->UpdDataRgnPtr = UpdDataRgnPtr; in SetFspUpdDataPointer()
286 FSP_GLOBAL_DATA *FspData; in GetFspUpdDataPointer() local
288 FspData = GetFspGlobalDataPointer (); in GetFspUpdDataPointer()
289 return FspData->UpdDataRgnPtr; in GetFspUpdDataPointer()
304 FSP_GLOBAL_DATA *FspData; in SetFspMemoryInitUpdDataPointer() local
309 FspData = GetFspGlobalDataPointer (); in SetFspMemoryInitUpdDataPointer()
314 FspData->MemoryInitUpdPtr = MemoryInitUpdPtr; in SetFspMemoryInitUpdDataPointer()
328 FSP_GLOBAL_DATA *FspData; in GetFspMemoryInitUpdDataPointer() local
330 FspData = GetFspGlobalDataPointer (); in GetFspMemoryInitUpdDataPointer()
331 return FspData->MemoryInitUpdPtr; in GetFspMemoryInitUpdDataPointer()
346 FSP_GLOBAL_DATA *FspData; in SetFspSiliconInitUpdDataPointer() local
351 FspData = GetFspGlobalDataPointer (); in SetFspSiliconInitUpdDataPointer()
356 FspData->SiliconInitUpdPtr = SiliconInitUpdPtr; in SetFspSiliconInitUpdDataPointer()
370 FSP_GLOBAL_DATA *FspData; in GetFspSiliconInitUpdDataPointer() local
372 FspData = GetFspGlobalDataPointer (); in GetFspSiliconInitUpdDataPointer()
373 return FspData->SiliconInitUpdPtr; in GetFspSiliconInitUpdDataPointer()
390 FSP_GLOBAL_DATA *FspData; in SetFspMeasurePoint() local
396 FspData = GetFspGlobalDataPointer (); in SetFspMeasurePoint()
397 if (FspData->PerfIdx < sizeof(FspData->PerfData) / sizeof(FspData->PerfData[0])) { in SetFspMeasurePoint()
398 FspData->PerfData[FspData->PerfIdx] = AsmReadTsc (); in SetFspMeasurePoint()
399 ((UINT8 *)(&FspData->PerfData[FspData->PerfIdx]))[7] = Id; in SetFspMeasurePoint()
402 return FspData->PerfData[(FspData->PerfIdx)++]; in SetFspMeasurePoint()
430 FSP_GLOBAL_DATA *FspData; in GetFspInfoHeaderFromApiContext() local
432 FspData = GetFspGlobalDataPointer (); in GetFspInfoHeaderFromApiContext()
433 …return (FSP_INFO_HEADER *)(*(UINT32 *)(UINTN)(FspData->CoreStack + CONTEXT_STACK_OFFSET(FspInfoHe… in GetFspInfoHeaderFromApiContext()
478 FSP_GLOBAL_DATA *FspData; in SetFspApiCallingMode() local
480 FspData = GetFspGlobalDataPointer (); in SetFspApiCallingMode()
481 FspData->ApiMode = Mode; in SetFspApiCallingMode()