Lines Matching refs:slot

67 	u32 slot;
364 static u32 __init find_cap(u32 num, u32 slot, u32 func, int cap)
369 if (!(read_pci_config_16(num, slot, func, PCI_STATUS) &
373 pos = read_pci_config_byte(num, slot, func, PCI_CAPABILITY_LIST);
378 id = read_pci_config_byte(num, slot, func, pos+PCI_CAP_LIST_ID);
384 pos = read_pci_config_byte(num, slot, func,
390 static u32 __init __find_dbgp(u32 bus, u32 slot, u32 func)
394 class = read_pci_config(bus, slot, func, PCI_CLASS_REVISION);
398 return find_cap(bus, slot, func, PCI_CAP_ID_EHCI_DEBUG);
403 u32 bus, slot, func;
406 for (slot = 0; slot < 32; slot++) {
410 cap = __find_dbgp(bus, slot, func);
417 *rslot = slot;
682 dword = read_pci_config(ehci_dev.bus, ehci_dev.slot, ehci_dev.func,
686 write_pci_config(ehci_dev.bus, ehci_dev.slot, ehci_dev.func, 0x74,
695 vendorid = read_pci_config(ehci_dev.bus, ehci_dev.slot, ehci_dev.func,
719 cap = read_pci_config(ehci_dev.bus, ehci_dev.slot,
725 write_pci_config_byte(ehci_dev.bus, ehci_dev.slot,
734 cap = read_pci_config(ehci_dev.bus, ehci_dev.slot,
742 write_pci_config_byte(ehci_dev.bus, ehci_dev.slot,
747 write_pci_config_byte(ehci_dev.bus, ehci_dev.slot, ehci_dev.func,
828 u32 bus, slot, func, cap;
844 cap = find_dbgp(dbgp_num, &bus, &slot, &func);
848 dbgp_printk("Found EHCI debug port on %02x:%02x.%1x\n", bus, slot,
851 debug_port = read_pci_config(bus, slot, func, cap);
862 bar_val = read_pci_config(bus, slot, func, PCI_BASE_ADDRESS_0);
871 byte = read_pci_config_byte(bus, slot, func, 0x04);
874 write_pci_config_byte(bus, slot, func, 0x04, byte);
891 ehci_dev.slot = slot;