Lines Matching refs:cap
369 static u32 __init find_cap(u32 num, u32 slot, u32 func, int cap) in find_cap() argument
386 if (id == cap) in find_cap()
413 unsigned cap; in find_dbgp() local
415 cap = __find_dbgp(bus, slot, func); in find_dbgp()
417 if (!cap) in find_dbgp()
424 return cap; in find_dbgp()
719 u32 cap; in early_ehci_bios_handoff() local
725 cap = read_pci_config(ehci_dev.bus, ehci_dev.slot, in early_ehci_bios_handoff()
727 dbgp_printk("dbgp: ehci BIOS state %08x\n", cap); in early_ehci_bios_handoff()
729 if ((cap & 0xff) == 1 && (cap & EHCI_USBLEGSUP_BIOS)) { in early_ehci_bios_handoff()
737 while ((cap & EHCI_USBLEGSUP_BIOS) && (msec > 0)) { in early_ehci_bios_handoff()
740 cap = read_pci_config(ehci_dev.bus, ehci_dev.slot, in early_ehci_bios_handoff()
744 if (cap & EHCI_USBLEGSUP_BIOS) { in early_ehci_bios_handoff()
747 dbgp_printk("dbgp: BIOS handoff failed: %08x\n", cap); 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()
851 if (!cap) in early_dbgp_init()
857 debug_port = read_pci_config(bus, slot, func, cap); in early_dbgp_init()