Lines Matching defs:testval
106 static int pci_romsize(uint64_t testval);
568 pci_mapsize(uint64_t testval)
572 testval = pci_mapbase(testval);
574 if (testval != 0) {
575 while ((testval & 1) == 0)
578 testval >>= 1;
596 pci_romsize(uint64_t testval)
600 testval = pci_rombase(testval);
602 if (testval != 0) {
603 while ((testval & 1) == 0)
606 testval >>= 1;
3056 pci_addr_t map, testval;
3069 testval = pci_read_config(dev, reg, 4);
3072 *testvalp = testval;
3104 testval = 0;
3108 testval |= (pci_addr_t)pci_read_config(dev, reg + 4, 4) << 32;
3110 testval |= pci_read_config(dev, reg, 4);
3123 *testvalp = testval;
3259 pci_addr_t base, map, testval;
3276 pci_read_bar(dev, reg, &map, &testval, NULL);
3283 mapsize = pci_mapsize(testval);
3300 if (PCI_BAR_IO(testval) && (testval & PCIM_BAR_IO_RESERVED) != 0)
3330 if (!force && (basezero || map == testval))
3370 if (basezero || base == pci_mapbase(testval) || pci_clear_bars) {
5416 pci_addr_t map, testval;
5439 pci_read_bar(child, *rid, &map, &testval, NULL);
5446 mapsize = pci_romsize(testval);
5448 mapsize = pci_mapsize(testval);