Lines Matching refs:bar
126 int bar;
141 bar = pciCfg.bar[i];
142 if (bar != 0) {
143 if (bar & PCI_MAP_IO) {
144 pciInfo->ioBase[i] = (memType)PCIGETIO(bar);
145 pciInfo->type[i] = bar & PCI_MAP_IO_ATTR_MASK;
149 pciInfo->type[i] = bar & PCI_MAP_MEMORY_ATTR_MASK;
150 pciInfo->memBase[i] = (memType)PCIGETMEMORY(bar);
151 if (PCI_MAP_IS64BITMEM(bar)) {
155 int bar_hi = pciCfg.bar[i+1];
205 int bar;
220 bar = pciCfg.bar[i];
221 if (bar != 0) {
222 if (PCI_MAP_IS_IO(bar)) {
223 pciInfo->regions[i].base_addr = (pciaddr_t)PCIGETIO(bar);
226 if (PCI_MAP_IS64BITMEM(bar)) {
227 pciInfo->regions[i].base_addr = (pciaddr_t)PCIGETMEMORY64(bar);
230 pciInfo->regions[i].base_addr = (pciaddr_t)PCIGETMEMORY(bar);