Lines Matching refs:func

67 	u32 func;  member
369 static u32 __init find_cap(u32 num, u32 slot, u32 func, int cap) in find_cap() argument
374 if (!(read_pci_config_16(num, slot, func, PCI_STATUS) & in find_cap()
378 pos = read_pci_config_byte(num, slot, func, PCI_CAPABILITY_LIST); in find_cap()
383 id = read_pci_config_byte(num, slot, func, pos+PCI_CAP_LIST_ID); in find_cap()
389 pos = read_pci_config_byte(num, slot, func, in find_cap()
395 static u32 __init __find_dbgp(u32 bus, u32 slot, u32 func) in __find_dbgp() argument
399 class = read_pci_config(bus, slot, func, PCI_CLASS_REVISION); in __find_dbgp()
403 return find_cap(bus, slot, func, PCI_CAP_ID_EHCI_DEBUG); in __find_dbgp()
408 u32 bus, slot, func; in find_dbgp() local
412 for (func = 0; func < 8; func++) { in find_dbgp()
415 cap = __find_dbgp(bus, slot, func); in find_dbgp()
423 *rfunc = func; in find_dbgp()
688 dword = read_pci_config(ehci_dev.bus, ehci_dev.slot, ehci_dev.func, in nvidia_set_debug_port()
692 write_pci_config(ehci_dev.bus, ehci_dev.slot, ehci_dev.func, 0x74, in nvidia_set_debug_port()
701 vendorid = read_pci_config(ehci_dev.bus, ehci_dev.slot, ehci_dev.func, in detect_set_debug_port()
726 ehci_dev.func, offset); in early_ehci_bios_handoff()
732 ehci_dev.func, offset + 3, 1); in early_ehci_bios_handoff()
741 ehci_dev.func, offset); in early_ehci_bios_handoff()
749 ehci_dev.func, offset + 2, 0); in early_ehci_bios_handoff()
753 write_pci_config_byte(ehci_dev.bus, ehci_dev.slot, ehci_dev.func, in early_ehci_bios_handoff()
834 u32 bus, slot, func, cap; in early_dbgp_init() local
850 cap = find_dbgp(dbgp_num, &bus, &slot, &func); in early_dbgp_init()
855 func); in early_dbgp_init()
857 debug_port = read_pci_config(bus, slot, func, cap); in early_dbgp_init()
868 bar_val = read_pci_config(bus, slot, func, PCI_BASE_ADDRESS_0); in early_dbgp_init()
877 byte = read_pci_config_byte(bus, slot, func, 0x04); in early_dbgp_init()
880 write_pci_config_byte(bus, slot, func, 0x04, byte); in early_dbgp_init()
898 ehci_dev.func = func; in early_dbgp_init()