Lines Matching refs:md

111 int __init efi_memmap_split_count(efi_memory_desc_t *md, struct range *range)  in efi_memmap_split_count()  argument
117 start = md->phys_addr; in efi_memmap_split_count()
118 end = start + (md->num_pages << EFI_PAGE_SHIFT) - 1; in efi_memmap_split_count()
155 efi_memory_desc_t *md; in efi_memmap_insert() local
181 md = new; in efi_memmap_insert()
182 start = md->phys_addr; in efi_memmap_insert()
183 end = md->phys_addr + (md->num_pages << EFI_PAGE_SHIFT) - 1; in efi_memmap_insert()
186 md->attribute |= m_attr; in efi_memmap_insert()
191 md->attribute |= m_attr; in efi_memmap_insert()
192 md->num_pages = (m_end - md->phys_addr + 1) >> in efi_memmap_insert()
197 md = new; in efi_memmap_insert()
198 md->phys_addr = m_end + 1; in efi_memmap_insert()
199 md->num_pages = (end - md->phys_addr + 1) >> in efi_memmap_insert()
205 md->num_pages = (m_start - md->phys_addr) >> in efi_memmap_insert()
210 md = new; in efi_memmap_insert()
211 md->attribute |= m_attr; in efi_memmap_insert()
212 md->phys_addr = m_start; in efi_memmap_insert()
213 md->num_pages = (m_end - m_start + 1) >> in efi_memmap_insert()
218 md = new; in efi_memmap_insert()
219 md->phys_addr = m_end + 1; in efi_memmap_insert()
220 md->num_pages = (end - m_end) >> in efi_memmap_insert()
227 md->num_pages = (m_start - md->phys_addr) >> in efi_memmap_insert()
232 md = new; in efi_memmap_insert()
233 md->phys_addr = m_start; in efi_memmap_insert()
234 md->num_pages = (end - md->phys_addr + 1) >> in efi_memmap_insert()
236 md->attribute |= m_attr; in efi_memmap_insert()