Lines Matching defs:md
17 static unsigned long get_entry_num_slots(efi_memory_desc_t *md,
24 if (md->type != EFI_CONVENTIONAL_MEMORY)
28 (md->attribute & EFI_MEMORY_SP))
31 region_end = min(md->phys_addr + md->num_pages * EFI_PAGE_SIZE - 1,
36 first_slot = round_up(md->phys_addr, align);
51 #define MD_NUM_SLOTS(md) ((md)->virt_addr)
74 efi_memory_desc_t *md = (void *)map->map + map_offset;
77 slots = get_entry_num_slots(md, size, ilog2(align));
78 MD_NUM_SLOTS(md) = slots;
97 efi_memory_desc_t *md = (void *)map->map + map_offset;
101 if (target_slot >= MD_NUM_SLOTS(md)) {
102 target_slot -= MD_NUM_SLOTS(md);
106 target = round_up(md->phys_addr, align) + target_slot * align;