Lines Matching defs:bar
110 uint64_t config_base_addr, uint64_t config_max_addr, uint64_t *bar,
724 uint64_t config_max_addr, uint64_t *bar, boolean_t *is_io_space)
731 *bar = 0;
749 config_max_addr, bar,
757 DEBUG1(DBG_TOOLS, dip, "bar returned is 0x%llx\n", *bar);
758 if (!(*bar)) {
767 if (((PCI_BASE_SPACE_M & *bar) == PCI_BASE_SPACE_IO) &&
770 *bar &= PCI_BASE_IO_ADDR_M;
781 } else if ((PCI_BASE_TYPE_ALL & *bar) && (bar_offset != PCI_CONF_ROM)) {
783 uint32_t low_bytes = (uint32_t)(*bar & ~PCI_BASE_TYPE_ALL);
793 config_base_addr + bar_offset + 4, config_max_addr, bar,
801 *bar = (*bar << 32) + low_bytes;
844 uint64_t bar = 0;
902 if (pcitool_get_bar(pci_p, &prg, base_addr, max_addr, &bar,
917 } else if ((bar >> 32) != 0) {
920 "64 bit mem space. 64-bit bar is 0x%llx\n", bar);
944 } else if (!(bar & 0x00000001)) {
958 base_addr = range_prop + bar;
961 "addr portion of bar is 0x%llx, base=0x%llx, "
962 "offset:0x%lx\n", bar, base_addr, prg.offset);