Lines Matching refs:sys
364 struct pci_sys_data *sys = dev->sysdata; in pcibios_swizzle() local
367 if (sys->swizzle) in pcibios_swizzle()
368 slot = sys->swizzle(dev, pin); in pcibios_swizzle()
384 struct pci_sys_data *sys = dev->sysdata; in pcibios_map_irq() local
387 if (sys->map_irq) in pcibios_map_irq()
388 irq = sys->map_irq(dev, slot, pin); in pcibios_map_irq()
397 static int pcibios_init_resource(int busnr, struct pci_sys_data *sys) in pcibios_init_resource() argument
402 if (list_empty(&sys->resources)) { in pcibios_init_resource()
403 pci_add_resource_offset(&sys->resources, in pcibios_init_resource()
404 &iomem_resource, sys->mem_offset); in pcibios_init_resource()
407 resource_list_for_each_entry(window, &sys->resources) in pcibios_init_resource()
411 sys->io_res.start = (busnr * SZ_64K) ? : pcibios_min_io; in pcibios_init_resource()
412 sys->io_res.end = (busnr + 1) * SZ_64K - 1; in pcibios_init_resource()
413 sys->io_res.flags = IORESOURCE_IO; in pcibios_init_resource()
414 sys->io_res.name = sys->io_res_name; in pcibios_init_resource()
415 sprintf(sys->io_res_name, "PCI%d I/O", busnr); in pcibios_init_resource()
417 ret = request_resource(&ioport_resource, &sys->io_res); in pcibios_init_resource()
422 pci_add_resource_offset(&sys->resources, &sys->io_res, in pcibios_init_resource()
423 sys->io_offset); in pcibios_init_resource()
431 struct pci_sys_data *sys = NULL; in pcibios_init_hw() local
442 sys = pci_host_bridge_priv(bridge); in pcibios_init_hw()
444 sys->busnr = busnr; in pcibios_init_hw()
445 sys->swizzle = hw->swizzle; in pcibios_init_hw()
446 sys->map_irq = hw->map_irq; in pcibios_init_hw()
447 INIT_LIST_HEAD(&sys->resources); in pcibios_init_hw()
450 sys->private_data = hw->private_data[nr]; in pcibios_init_hw()
452 ret = hw->setup(nr, sys); in pcibios_init_hw()
456 ret = pcibios_init_resource(nr, sys); in pcibios_init_hw()
468 list_splice_init(&sys->resources, in pcibios_init_hw()
471 bridge->sysdata = sys; in pcibios_init_hw()
472 bridge->busnr = sys->busnr; in pcibios_init_hw()
483 sys->bus = bridge->bus; in pcibios_init_hw()
485 busnr = sys->bus->busn_res.end + 1; in pcibios_init_hw()
487 list_add(&sys->node, head); in pcibios_init_hw()
498 struct pci_sys_data *sys; in pci_common_init_dev() local
508 list_for_each_entry(sys, &head, node) { in pci_common_init_dev()
509 struct pci_bus *bus = sys->bus; in pci_common_init_dev()