Lines Matching refs:tbl
24 efi_memory_attributes_table_t *tbl; in efi_memattr_init() local
29 tbl = early_memremap(efi_mem_attr_table, sizeof(*tbl)); in efi_memattr_init()
30 if (!tbl) { in efi_memattr_init()
36 if (tbl->version > 2) { in efi_memattr_init()
38 tbl->version); in efi_memattr_init()
42 tbl_size = sizeof(*tbl) + tbl->num_entries * tbl->desc_size; in efi_memattr_init()
47 early_memunmap(tbl, sizeof(*tbl)); in efi_memattr_init()
131 efi_memory_attributes_table_t *tbl; in efi_memattr_apply_permissions() local
135 if (tbl_size <= sizeof(*tbl)) in efi_memattr_apply_permissions()
147 tbl = memremap(efi_mem_attr_table, tbl_size, MEMREMAP_WB); in efi_memattr_apply_permissions()
148 if (!tbl) { in efi_memattr_apply_permissions()
154 if (tbl->version > 1 && in efi_memattr_apply_permissions()
155 (tbl->flags & EFI_MEMORY_ATTRIBUTES_FLAGS_RT_FORWARD_CONTROL_FLOW_GUARD)) in efi_memattr_apply_permissions()
161 for (i = ret = 0; ret == 0 && i < tbl->num_entries; i++) { in efi_memattr_apply_permissions()
167 valid = entry_is_valid((void *)tbl->entry + i * tbl->desc_size, in efi_memattr_apply_permissions()
182 memunmap(tbl); in efi_memattr_apply_permissions()