Lines Matching refs:bar

331 	u32 bar[6];  in configure_device()  local
371 pci_bus_read_config_dword(ibmphp_pci_bus, devfn, address[count], &bar[count]); in configure_device()
373 if (!bar[count]) /* This BAR is not implemented */ in configure_device()
376 debug("Device %x BAR %d wants %x\n", func->device, count, bar[count]); in configure_device()
378 if (bar[count] & PCI_BASE_ADDRESS_SPACE_IO) { in configure_device()
382 len[count] = bar[count] & 0xFFFFFFFC; in configure_device()
409 pci_bus_read_config_dword(ibmphp_pci_bus, devfn, address[count], &bar[count]); in configure_device()
410 debug("after writing.... the start address is %x\n", bar[count]); in configure_device()
415 if (bar[count] & PCI_BASE_ADDRESS_MEM_PREFETCH) { in configure_device()
419 len[count] = bar[count] & 0xFFFFFFF0; in configure_device()
469 pci_bus_read_config_dword(ibmphp_pci_bus, devfn, address[count], &bar[count]); in configure_device()
470 debug("after writing, start address is %x\n", bar[count]); in configure_device()
473 if (bar[count] & PCI_BASE_ADDRESS_MEM_TYPE_64) { /* takes up another dword */ in configure_device()
483 len[count] = bar[count] & 0xFFFFFFF0; in configure_device()
509 pci_bus_read_config_dword(ibmphp_pci_bus, devfn, address[count], &bar[count]); in configure_device()
510 debug("after writing, the address is %x\n", bar[count]); in configure_device()
513 if (bar[count] & PCI_BASE_ADDRESS_MEM_TYPE_64) { in configure_device()
551 u32 bar[2]; in configure_bridge() local
633 pci_bus_read_config_dword(ibmphp_pci_bus, devfn, address[count], &bar[count]); in configure_bridge()
635 if (!bar[count]) { in configure_bridge()
642 debug("Bar %d wants %x\n", count, bar[count]); in configure_bridge()
644 if (bar[count] & PCI_BASE_ADDRESS_SPACE_IO) { in configure_bridge()
646 len[count] = bar[count] & 0xFFFFFFFC; in configure_bridge()
676 if (bar[count] & PCI_BASE_ADDRESS_MEM_PREFETCH) { in configure_bridge()
678 len[count] = bar[count] & 0xFFFFFFF0; in configure_bridge()
724 if (bar[count] & PCI_BASE_ADDRESS_MEM_TYPE_64) { in configure_bridge()
733 len[count] = bar[count] & 0xFFFFFFF0; in configure_bridge()
760 if (bar[count] & PCI_BASE_ADDRESS_MEM_TYPE_64) { in configure_bridge()
1055 u32 bar[6], class; in scan_behind_bridge() local
1119 pci_bus_read_config_dword(ibmphp_pci_bus, devfn, address[count], &bar[count]); in scan_behind_bridge()
1121 debug("what is bar[count]? %x, count = %d\n", bar[count], count); in scan_behind_bridge()
1123 if (!bar[count]) /* This BAR is not implemented */ in scan_behind_bridge()
1128 … debug("count %d device %x function %x wants %x resources\n", count, device, function, bar[count]); in scan_behind_bridge()
1130 if (bar[count] & PCI_BASE_ADDRESS_SPACE_IO) { in scan_behind_bridge()
1132 len[count] = bar[count] & 0xFFFFFFFC; in scan_behind_bridge()
1137 if (bar[count] & PCI_BASE_ADDRESS_MEM_PREFETCH) { in scan_behind_bridge()
1139 len[count] = bar[count] & 0xFFFFFFF0; in scan_behind_bridge()
1142 if (bar[count] & PCI_BASE_ADDRESS_MEM_TYPE_64) in scan_behind_bridge()
1148 len[count] = bar[count] & 0xFFFFFFF0; in scan_behind_bridge()
1151 if (bar[count] & PCI_BASE_ADDRESS_MEM_TYPE_64) { in scan_behind_bridge()