Lines Matching full:attributes
46 Return length according to page attributes.
67 Return address mask according to page attributes.
158 Return memory attributes of page entry.
162 @return Memory attributes of page entry.
169 UINT64 Attributes;
170 Attributes = 0;
172 Attributes |= EFI_MEMORY_RP;
175 Attributes |= EFI_MEMORY_RO;
178 Attributes |= EFI_MEMORY_XP;
180 return Attributes;
184 Modify memory attributes of page entry.
187 @param[in] Attributes The bit mask of attributes to modify for the memory region.
188 @param[in] IsSet TRUE means to set attributes. FALSE means to clear attributes.
194 IN UINT64 Attributes,
204 if ((Attributes & EFI_MEMORY_RP) != 0) {
211 if ((Attributes & EFI_MEMORY_RO) != 0) {
218 if ((Attributes & EFI_MEMORY_XP) != 0) {
341 This function modifies the page attributes for the memory region specified by BaseAddress and
342 Length from their current attributes to the attributes specified by Attributes.
348 @param[in] Attributes The bit mask of attributes to modify for the memory region.
349 @param[in] IsSet TRUE means to set attributes. FALSE means to clear attributes.
353 @retval RETURN_SUCCESS The attributes were modified for the memory region.
354 @retval RETURN_ACCESS_DENIED The attributes for the memory resource range specified by
357 Attributes specified an illegal combination of attributes that
359 @retval RETURN_OUT_OF_RESOURCES There are not enough system resources to modify the attributes of
363 The bit mask of attributes is not support for the memory resource
371 IN UINT64 Attributes,
384 ASSERT (Attributes != 0);
385 ASSERT ((Attributes & ~(EFI_MEMORY_RP | EFI_MEMORY_RO | EFI_MEMORY_XP)) == 0);
394 // DEBUG ((DEBUG_ERROR, "ConvertMemoryPageAttributes(%x) - %016lx, %016lx, %02lx\n", IsSet, BaseAddress, Length, Attributes));
414 ConvertPageEntryAttribute (PageEntry, Attributes, IsSet, &IsEntryModified);
482 This function sets the attributes for the memory region specified by BaseAddress and
483 Length from their current attributes to the attributes specified by Attributes.
487 @param[in] Attributes The bit mask of attributes to set for the memory region.
490 @retval EFI_SUCCESS The attributes were set for the memory region.
491 @retval EFI_ACCESS_DENIED The attributes for the memory resource range specified by
494 Attributes specified an illegal combination of attributes that
496 @retval EFI_OUT_OF_RESOURCES There are not enough system resources to modify the attributes of
500 The bit mask of attributes is not support for the memory resource
509 IN UINT64 Attributes,
516 Status = ConvertMemoryPageAttributes (BaseAddress, Length, Attributes, TRUE, IsSplitted, &IsModified);
530 This function clears the attributes for the memory region specified by BaseAddress and
531 Length from their current attributes to the attributes specified by Attributes.
535 @param[in] Attributes The bit mask of attributes to clear for the memory region.
538 @retval EFI_SUCCESS The attributes were cleared for the memory region.
539 @retval EFI_ACCESS_DENIED The attributes for the memory resource range specified by
542 Attributes specified an illegal combination of attributes that
544 @retval EFI_OUT_OF_RESOURCES There are not enough system resources to modify the attributes of
548 The bit mask of attributes is not support for the memory resource
557 IN UINT64 Attributes,
564 Status = ConvertMemoryPageAttributes (BaseAddress, Length, Attributes, FALSE, IsSplitted, &IsModified);
578 This function sets the attributes for the memory region specified by BaseAddress and
579 Length from their current attributes to the attributes specified by Attributes.
583 @param[in] Attributes The bit mask of attributes to set for the memory region.
585 @retval EFI_SUCCESS The attributes were set for the memory region.
586 @retval EFI_ACCESS_DENIED The attributes for the memory resource range specified by
589 Attributes specified an illegal combination of attributes that
591 @retval EFI_OUT_OF_RESOURCES There are not enough system resources to modify the attributes of
595 The bit mask of attributes is not support for the memory resource
604 IN UINT64 Attributes
607 return SmmSetMemoryAttributesEx (BaseAddress, Length, Attributes, NULL);
611 This function clears the attributes for the memory region specified by BaseAddress and
612 Length from their current attributes to the attributes specified by Attributes.
616 @param[in] Attributes The bit mask of attributes to clear for the memory region.
618 @retval EFI_SUCCESS The attributes were cleared for the memory region.
619 @retval EFI_ACCESS_DENIED The attributes for the memory resource range specified by
622 Attributes specified an illegal combination of attributes that
624 @retval EFI_OUT_OF_RESOURCES There are not enough system resources to modify the attributes of
628 The bit mask of attributes is not support for the memory resource
637 IN UINT64 Attributes
640 return SmmClearMemoryAttributesEx (BaseAddress, Length, Attributes, NULL);