Lines Matching refs:testval
106 static int pci_romsize(uint64_t testval);
589 pci_mapsize(uint64_t testval)
593 testval = pci_mapbase(testval);
595 if (testval != 0) {
596 while ((testval & 1) == 0)
599 testval >>= 1;
617 pci_romsize(uint64_t testval)
621 testval = pci_rombase(testval);
623 if (testval != 0) {
624 while ((testval & 1) == 0)
627 testval >>= 1;
3138 pci_addr_t map, testval;
3151 testval = pci_read_config(dev, reg, 4);
3154 *testvalp = testval;
3186 testval = 0;
3190 testval |= (pci_addr_t)pci_read_config(dev, reg + 4, 4) << 32;
3192 testval |= pci_read_config(dev, reg, 4);
3205 *testvalp = testval;
3341 pci_addr_t base, map, testval;
3358 pci_read_bar(dev, reg, &map, &testval, NULL);
3365 mapsize = pci_mapsize(testval);
3382 if (PCI_BAR_IO(testval) && (testval & PCIM_BAR_IO_RESERVED) != 0)
3412 if (!force && (basezero || map == testval))
3452 if (basezero || base == pci_mapbase(testval) || pci_clear_bars) {
5502 pci_addr_t map, testval;
5525 pci_read_bar(child, *rid, &map, &testval, NULL);
5532 mapsize = pci_romsize(testval);
5534 mapsize = pci_mapsize(testval);