Lines Matching refs:res
128 sn_legacy_pci_window_fixup(struct resource *res, in sn_legacy_pci_window_fixup() argument
131 res[0].name = "legacy_io"; in sn_legacy_pci_window_fixup()
132 res[0].flags = IORESOURCE_IO; in sn_legacy_pci_window_fixup()
133 res[0].start = legacy_io; in sn_legacy_pci_window_fixup()
134 res[0].end = res[0].start + 0xffff; in sn_legacy_pci_window_fixup()
135 res[0].parent = &ioport_resource; in sn_legacy_pci_window_fixup()
136 res[1].name = "legacy_mem"; in sn_legacy_pci_window_fixup()
137 res[1].flags = IORESOURCE_MEM; in sn_legacy_pci_window_fixup()
138 res[1].start = legacy_mem; in sn_legacy_pci_window_fixup()
139 res[1].end = res[1].start + (1024 * 1024) - 1; in sn_legacy_pci_window_fixup()
140 res[1].parent = &iomem_resource; in sn_legacy_pci_window_fixup()
239 struct resource *res; in sn_pci_controller_fixup() local
252 res = kcalloc(2, sizeof(struct resource), GFP_KERNEL); in sn_pci_controller_fixup()
253 BUG_ON(!res); in sn_pci_controller_fixup()
261 sn_legacy_pci_window_fixup(res, in sn_pci_controller_fixup()
264 pci_add_resource_offset(&resources, &res[0], in sn_pci_controller_fixup()
266 pci_add_resource_offset(&resources, &res[1], in sn_pci_controller_fixup()
272 kfree(res); in sn_pci_controller_fixup()