Home | History | Annotate | Download | only in LockBoxLib

Lines Matching refs:Header

92   LOCK_BOX_ENTRY *Header;

94 for (Header = StartOfEntries; Header < EndOfEntries; Header++) {
95 if (Header->Size == 0 || CompareGuid (Guid, &Header->Guid)) {
96 return Header;
129 LOCK_BOX_ENTRY *Header;
143 Header = FindHeaderByGuid (Guid);
144 if (Header == NULL) {
148 if (Header->Size > 0) {
158 // overwrite the current terminator header with new metadata
160 CopyGuid (&Header->Guid, Guid);
161 Header->OrigAddress = (UINTN) Buffer;
162 Header->CopyAddress = (UINTN) CopyBuffer;
163 Header->Size = (UINT32) Length;
164 Header->Attributes = 0;
196 LOCK_BOX_ENTRY *Header;
205 Header = FindHeaderByGuid (Guid);
206 if (!Header || Header->Size == 0) {
209 Header->Attributes = Attributes;
243 LOCK_BOX_ENTRY *Header;
252 Header = FindHeaderByGuid (Guid);
253 if (!Header || Header->Size == 0) {
257 if (Header->Size < Offset ||
258 Length > Header->Size - Offset) {
262 CopyMem ((UINT8 *)(UINTN) (Header->CopyAddress) + Offset, Buffer, Length);
299 LOCK_BOX_ENTRY *Header;
310 Header = FindHeaderByGuid (Guid);
311 if (!Header || Header->Size == 0) {
316 if (!(Header->Attributes & LOCK_BOX_ATTRIBUTE_RESTORE_IN_PLACE)) {
319 if (Header->OrigAddress + (Header->Size - 1) > MAX_ADDRESS) {
322 Buffer = (VOID *)(UINTN) Header->OrigAddress;
329 if (Header->Size > *Length) {
333 *Length = Header->Size;
336 *Length = Header->Size;
339 CopyMem (Buffer, (VOID*)(UINTN) Header->CopyAddress, Header->Size);
360 LOCK_BOX_ENTRY *Header;
362 for (Header = StartOfEntries;
363 Header < EndOfEntries && Header->Size > 0;
364 Header++) {
365 if (Header->Attributes & LOCK_BOX_ATTRIBUTE_RESTORE_IN_PLACE) {
368 if (Header->OrigAddress + (Header->Size - 1) > MAX_ADDRESS) {
371 Buffer = (VOID *)(UINTN) Header->OrigAddress;
372 CopyMem (Buffer, (VOID*)(UINTN)Header->CopyAddress, Header->Size);
374 &Header->Guid, Buffer));