Lines Matching refs:sys
362 struct pci_sys_data *sys = dev->sysdata; in pcibios_swizzle() local
365 if (sys->swizzle) in pcibios_swizzle()
366 slot = sys->swizzle(dev, pin); in pcibios_swizzle()
382 struct pci_sys_data *sys = dev->sysdata; in pcibios_map_irq() local
385 if (sys->map_irq) in pcibios_map_irq()
386 irq = sys->map_irq(dev, slot, pin); in pcibios_map_irq()
395 static int pcibios_init_resource(int busnr, struct pci_sys_data *sys) in pcibios_init_resource() argument
400 if (list_empty(&sys->resources)) { in pcibios_init_resource()
401 pci_add_resource_offset(&sys->resources, in pcibios_init_resource()
402 &iomem_resource, sys->mem_offset); in pcibios_init_resource()
405 resource_list_for_each_entry(window, &sys->resources) in pcibios_init_resource()
409 sys->io_res.start = (busnr * SZ_64K) ? : pcibios_min_io; in pcibios_init_resource()
410 sys->io_res.end = (busnr + 1) * SZ_64K - 1; in pcibios_init_resource()
411 sys->io_res.flags = IORESOURCE_IO; in pcibios_init_resource()
412 sys->io_res.name = sys->io_res_name; in pcibios_init_resource()
413 sprintf(sys->io_res_name, "PCI%d I/O", busnr); in pcibios_init_resource()
415 ret = request_resource(&ioport_resource, &sys->io_res); in pcibios_init_resource()
420 pci_add_resource_offset(&sys->resources, &sys->io_res, in pcibios_init_resource()
421 sys->io_offset); in pcibios_init_resource()
429 struct pci_sys_data *sys = NULL; in pcibios_init_hw() local
440 sys = pci_host_bridge_priv(bridge); in pcibios_init_hw()
442 sys->busnr = busnr; in pcibios_init_hw()
443 sys->swizzle = hw->swizzle; in pcibios_init_hw()
444 sys->map_irq = hw->map_irq; in pcibios_init_hw()
445 INIT_LIST_HEAD(&sys->resources); in pcibios_init_hw()
448 sys->private_data = hw->private_data[nr]; in pcibios_init_hw()
450 ret = hw->setup(nr, sys); in pcibios_init_hw()
454 ret = pcibios_init_resource(nr, sys); in pcibios_init_hw()
466 list_splice_init(&sys->resources, in pcibios_init_hw()
469 bridge->sysdata = sys; in pcibios_init_hw()
470 bridge->busnr = sys->busnr; in pcibios_init_hw()
481 sys->bus = bridge->bus; in pcibios_init_hw()
483 busnr = sys->bus->busn_res.end + 1; in pcibios_init_hw()
485 list_add(&sys->node, head); in pcibios_init_hw()
496 struct pci_sys_data *sys; in pci_common_init_dev() local
506 list_for_each_entry(sys, &head, node) { in pci_common_init_dev()
507 struct pci_bus *bus = sys->bus; in pci_common_init_dev()