Lines Matching refs:func
140 static u32 __init find_cap(int bus, int slot, int func, int cap) in find_cap() argument
145 if (!(read_pci_config_16(bus, slot, func, PCI_STATUS) & in find_cap()
149 pos = read_pci_config_byte(bus, slot, func, PCI_CAPABILITY_LIST); in find_cap()
154 id = read_pci_config_byte(bus, slot, func, pos+PCI_CAP_LIST_ID); in find_cap()
159 pos = read_pci_config_byte(bus, slot, func, in find_cap()
166 static u32 __init read_agp(int bus, int slot, int func, int cap, u32 *order) in read_agp() argument
175 pr_info("pci 0000:%02x:%02x:%02x: AGP bridge\n", bus, slot, func); in read_agp()
176 apsizereg = read_pci_config_16(bus, slot, func, cap + 0x14); in read_agp()
179 bus, slot, func); in read_agp()
195 aper_low = read_pci_config(bus, slot, func, 0x10); in read_agp()
196 aper_hi = read_pci_config(bus, slot, func, 0x14); in read_agp()
204 bus, slot, func, aper, aper + (32ULL << (old_order + 20)) - 1, in read_agp()
208 bus, slot, func, 32 << *order, apsizereg); in read_agp()
213 bus, slot, func, aper, aper + (32ULL << (*order + 20)) - 1, in read_agp()
236 int bus, slot, func; in search_agp_bridge() local
241 for (func = 0; func < 8; func++) { in search_agp_bridge()
244 class = read_pci_config(bus, slot, func, in search_agp_bridge()
253 cap = find_cap(bus, slot, func, in search_agp_bridge()
258 return read_agp(bus, slot, func, cap, in search_agp_bridge()
262 type = read_pci_config_byte(bus, slot, func, in search_agp_bridge()