Lines Matching refs:md
250 int __init efi_memmap_split_count(efi_memory_desc_t *md, struct range *range) in efi_memmap_split_count() argument
256 start = md->phys_addr; in efi_memmap_split_count()
257 end = start + (md->num_pages << EFI_PAGE_SHIFT) - 1; in efi_memmap_split_count()
294 efi_memory_desc_t *md; in efi_memmap_insert() local
320 md = new; in efi_memmap_insert()
321 start = md->phys_addr; in efi_memmap_insert()
322 end = md->phys_addr + (md->num_pages << EFI_PAGE_SHIFT) - 1; in efi_memmap_insert()
325 md->attribute |= m_attr; in efi_memmap_insert()
330 md->attribute |= m_attr; in efi_memmap_insert()
331 md->num_pages = (m_end - md->phys_addr + 1) >> in efi_memmap_insert()
336 md = new; in efi_memmap_insert()
337 md->phys_addr = m_end + 1; in efi_memmap_insert()
338 md->num_pages = (end - md->phys_addr + 1) >> in efi_memmap_insert()
344 md->num_pages = (m_start - md->phys_addr) >> in efi_memmap_insert()
349 md = new; in efi_memmap_insert()
350 md->attribute |= m_attr; in efi_memmap_insert()
351 md->phys_addr = m_start; in efi_memmap_insert()
352 md->num_pages = (m_end - m_start + 1) >> in efi_memmap_insert()
357 md = new; in efi_memmap_insert()
358 md->phys_addr = m_end + 1; in efi_memmap_insert()
359 md->num_pages = (end - m_end) >> in efi_memmap_insert()
366 md->num_pages = (m_start - md->phys_addr) >> in efi_memmap_insert()
371 md = new; in efi_memmap_insert()
372 md->phys_addr = m_start; in efi_memmap_insert()
373 md->num_pages = (end - md->phys_addr + 1) >> in efi_memmap_insert()
375 md->attribute |= m_attr; in efi_memmap_insert()