Lines Matching refs:md

249 int __init efi_memmap_split_count(efi_memory_desc_t *md, struct range *range)  in efi_memmap_split_count()  argument
255 start = md->phys_addr; in efi_memmap_split_count()
256 end = start + (md->num_pages << EFI_PAGE_SHIFT) - 1; in efi_memmap_split_count()
293 efi_memory_desc_t *md; in efi_memmap_insert() local
319 md = new; in efi_memmap_insert()
320 start = md->phys_addr; in efi_memmap_insert()
321 end = md->phys_addr + (md->num_pages << EFI_PAGE_SHIFT) - 1; in efi_memmap_insert()
324 md->attribute |= m_attr; in efi_memmap_insert()
329 md->attribute |= m_attr; in efi_memmap_insert()
330 md->num_pages = (m_end - md->phys_addr + 1) >> in efi_memmap_insert()
335 md = new; in efi_memmap_insert()
336 md->phys_addr = m_end + 1; in efi_memmap_insert()
337 md->num_pages = (end - md->phys_addr + 1) >> in efi_memmap_insert()
343 md->num_pages = (m_start - md->phys_addr) >> in efi_memmap_insert()
348 md = new; in efi_memmap_insert()
349 md->attribute |= m_attr; in efi_memmap_insert()
350 md->phys_addr = m_start; in efi_memmap_insert()
351 md->num_pages = (m_end - m_start + 1) >> in efi_memmap_insert()
356 md = new; in efi_memmap_insert()
357 md->phys_addr = m_end + 1; in efi_memmap_insert()
358 md->num_pages = (end - m_end) >> in efi_memmap_insert()
365 md->num_pages = (m_start - md->phys_addr) >> in efi_memmap_insert()
370 md = new; in efi_memmap_insert()
371 md->phys_addr = m_start; in efi_memmap_insert()
372 md->num_pages = (end - md->phys_addr + 1) >> in efi_memmap_insert()
374 md->attribute |= m_attr; in efi_memmap_insert()