Home
last modified time | relevance | path

Searched refs:tbus (Results 1 – 6 of 6) sorted by relevance

/linux-2.6.39/arch/mips/dec/
Dtc.c39 int __init tc_bus_get_info(struct tc_bus *tbus) in tc_bus_get_info() argument
44 memcpy(&tbus->info, rex_gettcinfo(), sizeof(tbus->info)); in tc_bus_get_info()
45 tbus->slot_base = CPHYSADDR((long)rex_slot_address(0)); in tc_bus_get_info()
49 tbus->num_tcslots = 7; in tc_bus_get_info()
53 tbus->ext_slot_base = 0x20000000; in tc_bus_get_info()
54 tbus->ext_slot_size = 0x20000000; in tc_bus_get_info()
57 tbus->num_tcslots = 3; in tc_bus_get_info()
60 tbus->num_tcslots = 2; in tc_bus_get_info()
/linux-2.6.39/drivers/tc/
Dtc.c33 static void __init tc_bus_add_devices(struct tc_bus *tbus) in tc_bus_add_devices() argument
35 resource_size_t slotsize = tbus->info.slot_size << 20; in tc_bus_add_devices()
36 resource_size_t extslotsize = tbus->ext_slot_size; in tc_bus_add_devices()
46 for (slot = 0; slot < tbus->num_tcslots; slot++) { in tc_bus_add_devices()
47 slotaddr = tbus->slot_base + slot * slotsize; in tc_bus_add_devices()
48 extslotaddr = tbus->ext_slot_base + slot * extslotsize; in tc_bus_add_devices()
91 tdev->bus = tbus; in tc_bus_add_devices()
92 tdev->dev.parent = &tbus->dev; in tc_bus_add_devices()
133 list_add_tail(&tdev->node, &tbus->devices); in tc_bus_add_devices()
/linux-2.6.39/include/linux/
Dtc.h115 static inline unsigned long tc_get_speed(struct tc_bus *tbus) in tc_get_speed() argument
117 return 100000 * (10000 / (unsigned long)tbus->info.clk_period); in tc_get_speed()
138 extern int tc_bus_get_info(struct tc_bus *tbus);
/linux-2.6.39/drivers/pci/hotplug/
Dcpqphp_pci.c204 u8 tbus; in PCI_ScanBusForNonBridge() local
227 pci_bus_read_config_byte (ctrl->pci_bus, PCI_DEVFN(tdevice, 0), PCI_SECONDARY_BUS, &tbus); in PCI_ScanBusForNonBridge()
229 dbg("Recurse on bus_num %d tdevice %d\n", tbus, tdevice); in PCI_ScanBusForNonBridge()
242 u8 tbus, tdevice, tslot; in PCI_GetBusDevHelper() local
246 tbus = cpqhp_routing_table->slots[loop].bus; in PCI_GetBusDevHelper()
251 *bus_num = tbus; in PCI_GetBusDevHelper()
253 ctrl->pci_bus->number = tbus; in PCI_GetBusDevHelper()
263 pci_bus_read_config_byte (ctrl->pci_bus, *dev_num, PCI_SECONDARY_BUS, &tbus); in PCI_GetBusDevHelper()
264 dbg("Scan bus for Non Bridge: bus %d\n", tbus); in PCI_GetBusDevHelper()
265 if (PCI_ScanBusForNonBridge(ctrl, tbus, dev_num) == 0) { in PCI_GetBusDevHelper()
[all …]
Dcpqphp_core.c180 u8 tbus, tdevice, tslot; in pci_print_IRQ_route() local
186 tbus = cpqhp_routing_table->slots[loop].bus; in pci_print_IRQ_route()
189 dbg("%d %d %d %d\n", tbus, tdevice >> 3, tdevice & 0x7, tslot); in pci_print_IRQ_route()
340 u8 tbus, tdevice, tslot, bridgeSlot; in get_slot_mapping() local
348 tbus = cpqhp_routing_table->slots[loop].bus; in get_slot_mapping()
352 if ((tbus == bus_num) && (tdevice == dev_num)) { in get_slot_mapping()
365 bus->number = tbus; in get_slot_mapping()
/linux-2.6.39/drivers/video/
Dpmagb-b-fb.c190 struct tc_bus *tbus = to_tc_dev(info->device)->bus; in pmagbbfb_osc_setup() local
192 u32 freq0, freq1, freqtc = tc_get_speed(tbus) / 250; in pmagbbfb_osc_setup()