Lines Matching refs:bar

350 	u32 bar[6];  in configure_device()  local
390 pci_bus_read_config_dword (ibmphp_pci_bus, devfn, address[count], &bar[count]); in configure_device()
392 if (!bar[count]) /* This BAR is not implemented */ in configure_device()
395 debug ("Device %x BAR %d wants %x\n", func->device, count, bar[count]); in configure_device()
397 if (bar[count] & PCI_BASE_ADDRESS_SPACE_IO) { in configure_device()
401 len[count] = bar[count] & 0xFFFFFFFC; in configure_device()
429 pci_bus_read_config_dword (ibmphp_pci_bus, devfn, address[count], &bar[count]); in configure_device()
430 debug ("after writing.... the start address is %x\n", bar[count]); in configure_device()
435 if (bar[count] & PCI_BASE_ADDRESS_MEM_PREFETCH) { in configure_device()
439 len[count] = bar[count] & 0xFFFFFFF0; in configure_device()
491 pci_bus_read_config_dword (ibmphp_pci_bus, devfn, address[count], &bar[count]); in configure_device()
492 debug ("after writing, start address is %x\n", bar[count]); in configure_device()
495 if (bar[count] & PCI_BASE_ADDRESS_MEM_TYPE_64) { /* takes up another dword */ in configure_device()
505 len[count] = bar[count] & 0xFFFFFFF0; in configure_device()
532 pci_bus_read_config_dword (ibmphp_pci_bus, devfn, address[count], &bar[count]); in configure_device()
533 debug ("after writing, the address is %x\n", bar[count]); in configure_device()
536 if (bar[count] & PCI_BASE_ADDRESS_MEM_TYPE_64) { in configure_device()
574 u32 bar[2]; in configure_bridge() local
656 pci_bus_read_config_dword (ibmphp_pci_bus, devfn, address[count], &bar[count]); in configure_bridge()
658 if (!bar[count]) { in configure_bridge()
665 debug ("Bar %d wants %x\n", count, bar[count]); in configure_bridge()
667 if (bar[count] & PCI_BASE_ADDRESS_SPACE_IO) { in configure_bridge()
669 len[count] = bar[count] & 0xFFFFFFFC; in configure_bridge()
700 if (bar[count] & PCI_BASE_ADDRESS_MEM_PREFETCH) { in configure_bridge()
702 len[count] = bar[count] & 0xFFFFFFF0; in configure_bridge()
750 if (bar[count] & PCI_BASE_ADDRESS_MEM_TYPE_64) { in configure_bridge()
759 len[count] = bar[count] & 0xFFFFFFF0; in configure_bridge()
787 if (bar[count] & PCI_BASE_ADDRESS_MEM_TYPE_64) { in configure_bridge()
1087 u32 bar[6], class; in scan_behind_bridge() local
1151 pci_bus_read_config_dword (ibmphp_pci_bus, devfn, address[count], &bar[count]); in scan_behind_bridge()
1153 debug ("what is bar[count]? %x, count = %d\n", bar[count], count); in scan_behind_bridge()
1155 if (!bar[count]) /* This BAR is not implemented */ in scan_behind_bridge()
1160 …debug ("count %d device %x function %x wants %x resources\n", count, device, function, bar[count]); in scan_behind_bridge()
1162 if (bar[count] & PCI_BASE_ADDRESS_SPACE_IO) { in scan_behind_bridge()
1164 len[count] = bar[count] & 0xFFFFFFFC; in scan_behind_bridge()
1169 if (bar[count] & PCI_BASE_ADDRESS_MEM_PREFETCH) { in scan_behind_bridge()
1171 len[count] = bar[count] & 0xFFFFFFF0; in scan_behind_bridge()
1174 if (bar[count] & PCI_BASE_ADDRESS_MEM_TYPE_64) in scan_behind_bridge()
1180 len[count] = bar[count] & 0xFFFFFFF0; in scan_behind_bridge()
1183 if (bar[count] & PCI_BASE_ADDRESS_MEM_TYPE_64) { in scan_behind_bridge()