Lines Matching refs:md
17 static unsigned long get_entry_num_slots(efi_memory_desc_t *md,
25 if (md->type != EFI_CONVENTIONAL_MEMORY)
29 (md->attribute & EFI_MEMORY_SP))
32 region_end = min(md->phys_addr + md->num_pages * EFI_PAGE_SIZE - 1,
37 first_slot = round_up(max(md->phys_addr, alloc_min), align);
52 #define MD_NUM_SLOTS(md) ((md)->virt_addr)
79 efi_memory_desc_t *md = (void *)map->map + map_offset;
82 slots = get_entry_num_slots(md, size, ilog2(align), alloc_min,
84 MD_NUM_SLOTS(md) = slots;
86 if (md->attribute & EFI_MEMORY_MORE_RELIABLE)
110 efi_memory_desc_t *md = (void *)map->map + map_offset;
115 !(md->attribute & EFI_MEMORY_MORE_RELIABLE))
118 if (target_slot >= MD_NUM_SLOTS(md)) {
119 target_slot -= MD_NUM_SLOTS(md);
123 target = round_up(max_t(u64, md->phys_addr, alloc_min), align) + target_slot * align;