Lines Matching refs:windows
48 struct pci_epc_mem_window *windows, in pci_epc_multi_mem_init() argument
62 if (!windows || !num_windows) in pci_epc_multi_mem_init()
65 epc->windows = kcalloc(num_windows, sizeof(*epc->windows), GFP_KERNEL); in pci_epc_multi_mem_init()
66 if (!epc->windows) in pci_epc_multi_mem_init()
70 page_size = windows[i].page_size; in pci_epc_multi_mem_init()
74 pages = windows[i].size >> page_shift; in pci_epc_multi_mem_init()
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()
98 epc->windows[i] = mem; in pci_epc_multi_mem_init()
101 epc->mem = epc->windows[0]; in pci_epc_multi_mem_init()
108 mem = epc->windows[i]; in pci_epc_multi_mem_init()
112 kfree(epc->windows); in pci_epc_multi_mem_init()
147 mem = epc->windows[i]; in pci_epc_mem_exit()
151 kfree(epc->windows); in pci_epc_mem_exit()
153 epc->windows = NULL; in pci_epc_mem_exit()
180 mem = epc->windows[i]; in pci_epc_mem_alloc_addr()
215 mem = epc->windows[i]; in pci_epc_get_matching_window()