Lines Matching defs:busnum
225 int busnum;
255 for(busnum=maxbus; busnum > minbus; busnum--) {
256 if(pci_bus_parent[busnum] != 0) {
257 if(pci_bus_parent[busnum] < minbus ||
258 pci_bus_parent[busnum] >= maxbus) {
261 busnum, pci_bus_parent[busnum]);
266 rct.bussize_ioreqs[busnum] =
267 rbus_round_up(rct.bussize_ioreqs[busnum], PCI_BRIDGE_IO_MIN);
268 rct.bussize_ioreqs[pci_bus_parent[busnum]] +=
269 rct.bussize_ioreqs[busnum];
271 rct.bussize_memreqs[busnum] =
272 rbus_round_up(rct.bussize_memreqs[busnum], PCI_BRIDGE_MEM_MIN);
273 rct.bussize_memreqs[pci_bus_parent[busnum]] +=
274 rct.bussize_memreqs[busnum];
332 for(busnum=minbus+1; busnum <= maxbus; busnum++) {
335 busparent = pci_bus_parent[busnum];
339 busnum,
341 rct.bussize_ioreqs[busnum],
342 rct.bussize_memreqs[busnum]);
348 if(rct.bussize_ioreqs[busnum]) {
351 rct.bussize_ioreqs[busnum],
352 rct.bussize_ioreqs[busnum]-1 /*mask */,
353 rct.bussize_ioreqs[busnum] /* align */,
358 rct.bussize_ioreqs[busnum], busnum);
360 rct.iobustags[busnum]=rbus_new(rct.iobustags[busparent],
362 rct.bussize_ioreqs[busnum],
371 reg = pci_conf_read(pc, pci_bus_tag[busnum],
374 pci_conf_write(pc, pci_bus_tag[busnum],
378 pci_conf_write(pc, pci_bus_tag[busnum], PCI_BRIDGE_STATIO_REG,
381 __SHIFTIN(((start + rct.bussize_ioreqs[busnum] + 4095) >> 8)
385 if(rct.bussize_memreqs[busnum]) {
388 rct.bussize_memreqs[busnum] /* size */,
389 rct.bussize_memreqs[busnum]-1 /*mask */,
390 rct.bussize_memreqs[busnum] /* align */,
395 rct.bussize_memreqs[busnum], busnum);
397 rct.membustags[busnum]=rbus_new(rct.membustags[busparent],
399 rct.bussize_memreqs[busnum],
407 reg = pci_conf_read(pc, pci_bus_tag[busnum],
410 pci_conf_write(pc, pci_bus_tag[busnum],
414 pci_conf_write(pc, pci_bus_tag[busnum], PCI_BRIDGE_MEMORY_REG,
417 __SHIFTIN(((start + rct.bussize_memreqs[busnum]
422 pci_conf_write(pc, pci_bus_tag[busnum], PCI_BRIDGE_PREFETCHMEM_REG,
425 __SHIFTIN(((start + rct.bussize_memreqs[busnum]
430 /* pci_conf_print(pc, pci_bus_tag[busnum], NULL); */