Lines Matching refs:start
42 .start = 0x00000000UL,
93 resource_size_t start, end, map, start1, end1, map1, map2, map3, mask; in mips_pcibios_init() local
115 start = GT_READ(GT_PCI0M0LD_OFS); in mips_pcibios_init()
118 end = (end & GT_PCI_HD_MSK) | (start & ~GT_PCI_HD_MSK); in mips_pcibios_init()
124 if (end1 - start1 > end - start) { in mips_pcibios_init()
125 start = start1; in mips_pcibios_init()
129 mask = ~(start ^ end); in mips_pcibios_init()
131 BUG_ON((start & GT_PCI_HD_MSK) != (map & GT_PCI_HD_MSK) && in mips_pcibios_init()
133 gt64120_mem_resource.start = start; in mips_pcibios_init()
135 gt64120_controller.mem_offset = (start & mask) - (map & mask); in mips_pcibios_init()
137 gt64120_mem_resource.start <<= GT_PCI_DCRM_SHF; in mips_pcibios_init()
142 start = GT_READ(GT_PCI0IOLD_OFS); in mips_pcibios_init()
145 end = (end & GT_PCI_HD_MSK) | (start & ~GT_PCI_HD_MSK); in mips_pcibios_init()
146 mask = ~(start ^ end); in mips_pcibios_init()
148 BUG_ON((start & GT_PCI_HD_MSK) != (map & GT_PCI_HD_MSK) && in mips_pcibios_init()
150 gt64120_io_resource.start = map & mask; in mips_pcibios_init()
154 gt64120_io_resource.start <<= GT_PCI_DCRM_SHF; in mips_pcibios_init()
172 start = BONITO_PCILO0_BASE; in mips_pcibios_init()
176 start = BONITO_PCILO1_BASE; in mips_pcibios_init()
181 start = BONITO_PCILO0_BASE; in mips_pcibios_init()
184 bonito64_mem_resource.start = start; in mips_pcibios_init()
185 bonito64_mem_resource.end = start + in mips_pcibios_init()
187 bonito64_controller.mem_offset = start - in mips_pcibios_init()
198 MSC_READ(MSC01_PCI_SC2PMBASL, start); in mips_pcibios_init()
201 msc_mem_resource.start = start & mask; in mips_pcibios_init()
202 msc_mem_resource.end = (start & mask) | ~mask; in mips_pcibios_init()
203 msc_controller.mem_offset = (start & mask) - (map & mask); in mips_pcibios_init()
205 write_gcr_reg0_base(start); in mips_pcibios_init()
209 MSC_READ(MSC01_PCI_SC2PIOBASL, start); in mips_pcibios_init()
212 msc_io_resource.start = map & mask; in mips_pcibios_init()
217 write_gcr_reg1_base(start); in mips_pcibios_init()
222 start = start & mask; in mips_pcibios_init()
223 end = start | ~mask; in mips_pcibios_init()
224 if ((start >= msc_mem_resource.start && in mips_pcibios_init()
225 start <= msc_mem_resource.end) || in mips_pcibios_init()
226 (end >= msc_mem_resource.start && in mips_pcibios_init()
229 start = max(start, msc_mem_resource.start); in mips_pcibios_init()
231 if (start - msc_mem_resource.start >= in mips_pcibios_init()
233 msc_mem_resource.end = start - 1; in mips_pcibios_init()
235 msc_mem_resource.start = end + 1; in mips_pcibios_init()
245 if (controller->io_resource->start < 0x00001000UL) in mips_pcibios_init()
246 controller->io_resource->start = 0x00001000UL; in mips_pcibios_init()