Lines Matching defs:func
68 u32 func;
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;
407 for (func = 0; func < 8; func++) {
410 cap = __find_dbgp(bus, slot, func);
418 *rfunc = func;
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,
720 ehci_dev.func, offset);
726 ehci_dev.func, offset + 3, 1);
735 ehci_dev.func, offset);
743 ehci_dev.func, offset + 2, 0);
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);
849 func);
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);
892 ehci_dev.func = func;