Lines Matching refs:md

217 int __init efi_memmap_split_count(efi_memory_desc_t *md, struct range *range)  in efi_memmap_split_count()  argument
223 start = md->phys_addr; in efi_memmap_split_count()
224 end = start + (md->num_pages << EFI_PAGE_SHIFT) - 1; in efi_memmap_split_count()
261 efi_memory_desc_t *md; in efi_memmap_insert() local
287 md = new; in efi_memmap_insert()
288 start = md->phys_addr; in efi_memmap_insert()
289 end = md->phys_addr + (md->num_pages << EFI_PAGE_SHIFT) - 1; in efi_memmap_insert()
292 md->attribute |= m_attr; in efi_memmap_insert()
297 md->attribute |= m_attr; in efi_memmap_insert()
298 md->num_pages = (m_end - md->phys_addr + 1) >> in efi_memmap_insert()
303 md = new; in efi_memmap_insert()
304 md->phys_addr = m_end + 1; in efi_memmap_insert()
305 md->num_pages = (end - md->phys_addr + 1) >> in efi_memmap_insert()
311 md->num_pages = (m_start - md->phys_addr) >> in efi_memmap_insert()
316 md = new; in efi_memmap_insert()
317 md->attribute |= m_attr; in efi_memmap_insert()
318 md->phys_addr = m_start; in efi_memmap_insert()
319 md->num_pages = (m_end - m_start + 1) >> in efi_memmap_insert()
324 md = new; in efi_memmap_insert()
325 md->phys_addr = m_end + 1; in efi_memmap_insert()
326 md->num_pages = (end - m_end) >> in efi_memmap_insert()
333 md->num_pages = (m_start - md->phys_addr) >> in efi_memmap_insert()
338 md = new; in efi_memmap_insert()
339 md->phys_addr = m_start; in efi_memmap_insert()
340 md->num_pages = (end - md->phys_addr + 1) >> in efi_memmap_insert()
342 md->attribute |= m_attr; in efi_memmap_insert()