• Home
  • Raw
  • Download

Lines Matching refs:window

117 static void esb2rom_cleanup(struct esb2rom_window *window)  in esb2rom_cleanup()  argument
123 pci_read_config_byte(window->pdev, BIOS_CNTL, &byte); in esb2rom_cleanup()
124 pci_write_config_byte(window->pdev, BIOS_CNTL, in esb2rom_cleanup()
128 list_for_each_entry_safe(map, scratch, &window->maps, list) { in esb2rom_cleanup()
136 if (window->rsrc.parent) in esb2rom_cleanup()
137 release_resource(&window->rsrc); in esb2rom_cleanup()
138 if (window->virt) { in esb2rom_cleanup()
139 iounmap(window->virt); in esb2rom_cleanup()
140 window->virt = NULL; in esb2rom_cleanup()
141 window->phys = 0; in esb2rom_cleanup()
142 window->size = 0; in esb2rom_cleanup()
144 pci_dev_put(window->pdev); in esb2rom_cleanup()
151 struct esb2rom_window *window = &esb2rom_window; in esb2rom_init_one() local
167 window->pdev = pci_dev_get(pdev); in esb2rom_init_one()
186 window->phys = 0; in esb2rom_init_one()
191 window->phys = 0xff400000; in esb2rom_init_one()
193 window->phys = 0xff500000; in esb2rom_init_one()
195 window->phys = 0xff600000; in esb2rom_init_one()
197 window->phys = 0xFF700000; in esb2rom_init_one()
199 window->phys = 0xffc00000; in esb2rom_init_one()
201 window->phys = 0xffc80000; in esb2rom_init_one()
203 window->phys = 0xffd00000; in esb2rom_init_one()
205 window->phys = 0xffd80000; in esb2rom_init_one()
207 window->phys = 0xffe00000; in esb2rom_init_one()
209 window->phys = 0xffe80000; in esb2rom_init_one()
211 window->phys = 0xfff00000; in esb2rom_init_one()
213 window->phys = 0xfff80000; in esb2rom_init_one()
215 if (window->phys == 0) { in esb2rom_init_one()
221 window->phys -= 0x400000UL; in esb2rom_init_one()
222 window->size = (0xffffffffUL - window->phys) + 1UL; in esb2rom_init_one()
239 window->rsrc.name = MOD_NAME; in esb2rom_init_one()
240 window->rsrc.start = window->phys; in esb2rom_init_one()
241 window->rsrc.end = window->phys + window->size - 1; in esb2rom_init_one()
242 window->rsrc.flags = IORESOURCE_MEM | IORESOURCE_BUSY; in esb2rom_init_one()
243 if (request_resource(&iomem_resource, &window->rsrc)) { in esb2rom_init_one()
244 window->rsrc.parent = NULL; in esb2rom_init_one()
247 __func__, &window->rsrc); in esb2rom_init_one()
251 window->virt = ioremap_nocache(window->phys, window->size); in esb2rom_init_one()
252 if (!window->virt) { in esb2rom_init_one()
254 window->phys, window->size); in esb2rom_init_one()
259 map_top = window->phys; in esb2rom_init_one()
260 if ((window->phys & 0x3fffff) != 0) { in esb2rom_init_one()
262 map_top = window->phys + 0x400000; in esb2rom_init_one()
289 offset = map_top - window->phys; in esb2rom_init_one()
291 (((unsigned long)(window->virt)) + offset); in esb2rom_init_one()
329 if (window->rsrc.parent) { in esb2rom_init_one()
339 if (request_resource(&window->rsrc, &map->rsrc)) { in esb2rom_init_one()
347 map->map.virt = window->virt; in esb2rom_init_one()
348 map->map.phys = window->phys; in esb2rom_init_one()
365 list_add(&map->list, &window->maps); in esb2rom_init_one()
374 if (list_empty(&window->maps)) { in esb2rom_init_one()
375 esb2rom_cleanup(window); in esb2rom_init_one()
383 struct esb2rom_window *window = &esb2rom_window; in esb2rom_remove_one() local
384 esb2rom_cleanup(window); in esb2rom_remove_one()