Lines Matching refs:window
26 unsigned int page_shift = ilog2(mem->window.page_size); in pci_epc_mem_get_order()
92 mem->window.phys_base = windows[i].phys_base; in pci_epc_multi_mem_init()
93 mem->window.size = windows[i].size; in pci_epc_multi_mem_init()
94 mem->window.page_size = page_size; in pci_epc_multi_mem_init()
192 align_size = ALIGN(size, mem->window.page_size); in pci_epc_mem_alloc_addr()
198 page_shift = ilog2(mem->window.page_size); in pci_epc_mem_alloc_addr()
199 *phys_addr = mem->window.phys_base + in pci_epc_mem_alloc_addr()
227 if (phys_addr >= mem->window.phys_base && in pci_epc_get_matching_window()
228 phys_addr < (mem->window.phys_base + mem->window.size)) in pci_epc_get_matching_window()
259 page_size = mem->window.page_size; in pci_epc_mem_free_addr()
262 pageno = (phys_addr - mem->window.phys_base) >> page_shift; in pci_epc_mem_free_addr()