Lines Matching refs:bc
43 struct bridge_controller *bc;
55 bc = &bridges[num_bridges];
57 bc->pc.pci_ops = &bridge_pci_ops;
58 bc->pc.mem_resource = &bc->mem;
59 bc->pc.io_resource = &bc->io;
61 bc->pc.index = num_bridges;
63 bc->mem.name = "Bridge PCI MEM";
64 bc->pc.mem_offset = offset;
65 bc->mem.start = 0;
66 bc->mem.end = ~0UL;
67 bc->mem.flags = IORESOURCE_MEM;
69 bc->io.name = "Bridge IO MEM";
70 bc->pc.io_offset = offset;
71 bc->io.start = 0UL;
72 bc->io.end = ~0UL;
73 bc->io.flags = IORESOURCE_IO;
75 bc->irq_cpu = smp_processor_id();
76 bc->widget_id = widget_id;
77 bc->nasid = nasid;
79 bc->baddr = (u64)masterwid << 60 | PCI64_ATTR_BAR;
118 bc->pci_int[slot] = -1;
122 bc->base = bridge;
124 register_pci_controller(&bc->pc);
158 struct bridge_controller *bc = BRIDGE_CONTROLLER(dev->bus);
163 irq = bc->pci_int[slot];
165 irq = request_bridge_irq(bc);
169 bc->pci_int[slot] = irq;
172 irq_to_bridge[irq] = bc;
183 struct bridge_controller *bc = BRIDGE_CONTROLLER(dev->bus);
184 bridge_t *bridge = bc->base;
194 struct bridge_controller *bc = BRIDGE_CONTROLLER(dev->bus);
195 bridge_t *bridge = bc->base;
210 struct bridge_controller *bc = BRIDGE_CONTROLLER(bus);
212 return bc->nasid;