Lines Matching refs:bus
34 #define CONFIG_CMD(bus, device_fn, where) (0x80000000 | (bus << 16) | (device_fn << 8) | (where &… argument
36 int pcibios_read_config_byte(unsigned int bus, unsigned int device_fn, in pcibios_read_config_byte() argument
39 outl(CONFIG_CMD(bus,device_fn,where), 0xCF8); in pcibios_read_config_byte()
44 int pcibios_read_config_word (unsigned int bus, in pcibios_read_config_word() argument
47 outl(CONFIG_CMD(bus,device_fn,where), 0xCF8); in pcibios_read_config_word()
52 int pcibios_read_config_dword (unsigned int bus, unsigned int device_fn, in pcibios_read_config_dword() argument
55 outl(CONFIG_CMD(bus,device_fn,where), 0xCF8); in pcibios_read_config_dword()
60 int pcibios_write_config_byte (unsigned int bus, unsigned int device_fn, in pcibios_write_config_byte() argument
63 outl(CONFIG_CMD(bus,device_fn,where), 0xCF8); in pcibios_write_config_byte()
68 int pcibios_write_config_word (unsigned int bus, unsigned int device_fn, in pcibios_write_config_word() argument
71 outl(CONFIG_CMD(bus,device_fn,where), 0xCF8); in pcibios_write_config_word()
76 int pcibios_write_config_dword (unsigned int bus, unsigned int device_fn, unsigned int where, unsig… in pcibios_write_config_dword() argument
78 outl(CONFIG_CMD(bus,device_fn,where), 0xCF8); in pcibios_write_config_dword()
135 int pcibios_read_config_byte(unsigned int bus, in pcibios_read_config_byte() argument
139 unsigned long bx = (bus << 8) | device_fn; in pcibios_read_config_byte()
162 int pcibios_read_config_word(unsigned int bus, in pcibios_read_config_word() argument
166 unsigned long bx = (bus << 8) | device_fn; in pcibios_read_config_word()
189 int pcibios_read_config_dword(unsigned int bus, in pcibios_read_config_dword() argument
193 unsigned long bx = (bus << 8) | device_fn; in pcibios_read_config_dword()
216 int pcibios_write_config_byte (unsigned int bus, in pcibios_write_config_byte() argument
220 unsigned long bx = (bus << 8) | device_fn; in pcibios_write_config_byte()
243 int pcibios_write_config_word (unsigned int bus, in pcibios_write_config_word() argument
247 unsigned long bx = (bus << 8) | device_fn; in pcibios_write_config_word()
270 int pcibios_write_config_dword (unsigned int bus, in pcibios_write_config_dword() argument
274 unsigned long bx = (bus << 8) | device_fn; in pcibios_write_config_dword()
401 unsigned int devfn, l, bus, buses; in scan_bus() local
415 for (bus = 0; bus < buses; ++bus) { in scan_bus()
418 pcibios_read_config_byte(bus, devfn, PCI_HEADER_TYPE, &hdr_type); in scan_bus()
421 pcibios_read_config_dword(bus, devfn, PCI_VENDOR_ID, &l); in scan_bus()
432 bus, devfn, vendor, device); in scan_bus()
439 pcidev[i].bus = bus; in scan_bus()
441 pcibios_read_config_dword(bus, devfn, reg, &ioaddr); in scan_bus()
448 pcibios_read_config_dword(bus, devfn, in scan_bus()
451 pcibios_read_config_dword(bus, devfn, PCI_ROM_ADDRESS, &romaddr); in scan_bus()
489 pcibios_read_config_word(p->bus, p->devfn, PCI_COMMAND, &pci_command); in adjust_pci_device()
493 pci_command, new_command, p->bus, p->devfn); in adjust_pci_device()
494 pcibios_write_config_word(p->bus, p->devfn, PCI_COMMAND, new_command); in adjust_pci_device()
496 pcibios_read_config_byte(p->bus, p->devfn, PCI_LATENCY_TIMER, &pci_latency); in adjust_pci_device()
499 pcibios_write_config_byte(p->bus, p->devfn, PCI_LATENCY_TIMER, 32); in adjust_pci_device()