Lines Matching refs:newbus
37 struct bus_node *newbus; in alloc_error_bus() local
44 newbus = kzalloc(sizeof(struct bus_node), GFP_KERNEL); in alloc_error_bus()
45 if (!newbus) in alloc_error_bus()
49 newbus->busno = busno; in alloc_error_bus()
51 newbus->busno = curr->bus_num; in alloc_error_bus()
52 list_add_tail(&newbus->bus_list, &gbuses); in alloc_error_bus()
53 return newbus; in alloc_error_bus()
79 struct bus_node *newbus; in alloc_bus_range() local
84 newbus = kzalloc(sizeof(struct bus_node), GFP_KERNEL); in alloc_bus_range()
85 if (!newbus) in alloc_bus_range()
88 newbus->busno = curr->bus_num; in alloc_bus_range()
90 newbus = *new_bus; in alloc_bus_range()
93 num_ranges = newbus->noMemRanges; in alloc_bus_range()
96 num_ranges = newbus->noPFMemRanges; in alloc_bus_range()
99 num_ranges = newbus->noIORanges; in alloc_bus_range()
107 kfree(newbus); in alloc_bus_range()
117 add_bus_range(flag, newrange, newbus); in alloc_bus_range()
118 …debug("%d resource Primary Bus inserted on bus %x [%x - %x]\n", flag, newbus->busno, newrange->sta… in alloc_bus_range()
123 newbus->rangeMem = newrange; in alloc_bus_range()
125 newbus->noMemRanges = 1; in alloc_bus_range()
127 …debug("First Memory Primary on bus %x, [%x - %x]\n", newbus->busno, newrange->start, newrange->end… in alloc_bus_range()
128 ++newbus->noMemRanges; in alloc_bus_range()
129 fix_resources(newbus); in alloc_bus_range()
133 newbus->rangeIO = newrange; in alloc_bus_range()
135 newbus->noIORanges = 1; in alloc_bus_range()
137 debug("First IO Primary on bus %x, [%x - %x]\n", newbus->busno, newrange->start, newrange->end); in alloc_bus_range()
138 ++newbus->noIORanges; in alloc_bus_range()
139 fix_resources(newbus); in alloc_bus_range()
143 newbus->rangePFMem = newrange; in alloc_bus_range()
145 newbus->noPFMemRanges = 1; in alloc_bus_range()
147 …debug("1st PFMemory Primary on Bus %x [%x - %x]\n", newbus->busno, newrange->start, newrange->end); in alloc_bus_range()
148 ++newbus->noPFMemRanges; in alloc_bus_range()
149 fix_resources(newbus); in alloc_bus_range()
155 *new_bus = newbus; in alloc_bus_range()
184 struct bus_node *newbus = NULL; in ibmphp_rsrc_init() local
206 rc = alloc_bus_range(&newbus, &newrange, curr, MEM, 1); in ibmphp_rsrc_init()
209 list_add_tail(&newbus->bus_list, &gbuses); in ibmphp_rsrc_init()
210 …debug("gbuses = NULL, Memory Primary Bus %x [%x - %x]\n", newbus->busno, newrange->start, newrange… in ibmphp_rsrc_init()
220 rc = alloc_bus_range(&newbus, &newrange, curr, MEM, 1); in ibmphp_rsrc_init()
224 list_add_tail(&newbus->bus_list, &gbuses); in ibmphp_rsrc_init()
225 …debug("New Bus, Memory Primary Bus %x [%x - %x]\n", newbus->busno, newrange->start, newrange->end); in ibmphp_rsrc_init()
232 rc = alloc_bus_range(&newbus, &newrange, curr, PFMEM, 1); in ibmphp_rsrc_init()
235 list_add_tail(&newbus->bus_list, &gbuses); in ibmphp_rsrc_init()
236 …debug("gbuses = NULL, PFMemory Primary Bus %x [%x - %x]\n", newbus->busno, newrange->start, newran… in ibmphp_rsrc_init()
246 rc = alloc_bus_range(&newbus, &newrange, curr, PFMEM, 1); in ibmphp_rsrc_init()
249 list_add_tail(&newbus->bus_list, &gbuses); in ibmphp_rsrc_init()
250 …debug("1st Bus, PFMemory Primary Bus %x [%x - %x]\n", newbus->busno, newrange->start, newrange->en… in ibmphp_rsrc_init()
257 rc = alloc_bus_range(&newbus, &newrange, curr, IO, 1); in ibmphp_rsrc_init()
260 list_add_tail(&newbus->bus_list, &gbuses); in ibmphp_rsrc_init()
261 …debug("gbuses = NULL, IO Primary Bus %x [%x - %x]\n", newbus->busno, newrange->start, newrange->en… in ibmphp_rsrc_init()
270 rc = alloc_bus_range(&newbus, &newrange, curr, IO, 1); in ibmphp_rsrc_init()
273 list_add_tail(&newbus->bus_list, &gbuses); in ibmphp_rsrc_init()
274 … debug("1st Bus, IO Primary Bus %x [%x - %x]\n", newbus->busno, newrange->start, newrange->end); in ibmphp_rsrc_init()
298 newbus = alloc_error_bus(curr, 0, 0); in ibmphp_rsrc_init()
299 if (!newbus) in ibmphp_rsrc_init()
301 newbus->firstMem = new_mem; in ibmphp_rsrc_init()
302 ++newbus->needMemUpdate; in ibmphp_rsrc_init()
315 newbus = alloc_error_bus(curr, 0, 0); in ibmphp_rsrc_init()
316 if (!newbus) in ibmphp_rsrc_init()
318 newbus->firstPFMem = new_pfmem; in ibmphp_rsrc_init()
319 ++newbus->needPFMemUpdate; in ibmphp_rsrc_init()
339 newbus = alloc_error_bus(curr, 0, 0); in ibmphp_rsrc_init()
340 if (!newbus) in ibmphp_rsrc_init()
342 newbus->firstIO = new_io; in ibmphp_rsrc_init()
343 ++newbus->needIOUpdate; in ibmphp_rsrc_init()