Lines Matching refs:start
30 .start = 0x00000000UL,
81 resource_size_t start, end, map, start1, end1, map1, map2, map3, mask; in mips_pcibios_init() local
103 start = GT_READ(GT_PCI0M0LD_OFS); in mips_pcibios_init()
106 end = (end & GT_PCI_HD_MSK) | (start & ~GT_PCI_HD_MSK); in mips_pcibios_init()
112 if (end1 - start1 > end - start) { in mips_pcibios_init()
113 start = start1; in mips_pcibios_init()
117 mask = ~(start ^ end); in mips_pcibios_init()
119 BUG_ON((start & GT_PCI_HD_MSK) != (map & GT_PCI_HD_MSK) && in mips_pcibios_init()
121 gt64120_mem_resource.start = start; in mips_pcibios_init()
123 gt64120_controller.mem_offset = (start & mask) - (map & mask); in mips_pcibios_init()
125 gt64120_mem_resource.start <<= GT_PCI_DCRM_SHF; in mips_pcibios_init()
130 start = GT_READ(GT_PCI0IOLD_OFS); in mips_pcibios_init()
133 end = (end & GT_PCI_HD_MSK) | (start & ~GT_PCI_HD_MSK); in mips_pcibios_init()
134 mask = ~(start ^ end); in mips_pcibios_init()
136 BUG_ON((start & GT_PCI_HD_MSK) != (map & GT_PCI_HD_MSK) && in mips_pcibios_init()
138 gt64120_io_resource.start = map & mask; in mips_pcibios_init()
142 gt64120_io_resource.start <<= GT_PCI_DCRM_SHF; in mips_pcibios_init()
160 start = BONITO_PCILO0_BASE; in mips_pcibios_init()
164 start = BONITO_PCILO1_BASE; in mips_pcibios_init()
169 start = BONITO_PCILO0_BASE; in mips_pcibios_init()
172 bonito64_mem_resource.start = start; in mips_pcibios_init()
173 bonito64_mem_resource.end = start + in mips_pcibios_init()
175 bonito64_controller.mem_offset = start - in mips_pcibios_init()
186 MSC_READ(MSC01_PCI_SC2PMBASL, start); in mips_pcibios_init()
189 msc_mem_resource.start = start & mask; in mips_pcibios_init()
190 msc_mem_resource.end = (start & mask) | ~mask; in mips_pcibios_init()
191 msc_controller.mem_offset = (start & mask) - (map & mask); in mips_pcibios_init()
193 write_gcr_reg0_base(start); in mips_pcibios_init()
197 MSC_READ(MSC01_PCI_SC2PIOBASL, start); in mips_pcibios_init()
200 msc_io_resource.start = map & mask; in mips_pcibios_init()
205 write_gcr_reg1_base(start); in mips_pcibios_init()
210 start = start & mask; in mips_pcibios_init()
211 end = start | ~mask; in mips_pcibios_init()
212 if ((start >= msc_mem_resource.start && in mips_pcibios_init()
213 start <= msc_mem_resource.end) || in mips_pcibios_init()
214 (end >= msc_mem_resource.start && in mips_pcibios_init()
217 start = max(start, msc_mem_resource.start); in mips_pcibios_init()
219 if (start - msc_mem_resource.start >= in mips_pcibios_init()
221 msc_mem_resource.end = start - 1; in mips_pcibios_init()
223 msc_mem_resource.start = end + 1; in mips_pcibios_init()
233 if (controller->io_resource->start < 0x00001000UL) in mips_pcibios_init()
234 controller->io_resource->start = 0x00001000UL; in mips_pcibios_init()