Lines Matching refs:pbm
1095 struct pci_bar_mmap pbm; in dump_bar() local
1119 pbm.pbm_sel = getsel(name); in dump_bar()
1120 pbm.pbm_reg = strtoul(reg, &el, 0); in dump_bar()
1123 pbm.pbm_flags = 0; in dump_bar()
1124 pbm.pbm_memattr = VM_MEMATTR_DEVICE; in dump_bar()
1130 if (ioctl(fd, PCIOCBARMMAP, &pbm) < 0) in dump_bar()
1134 count = pbm.pbm_bar_length / width; in dump_bar()
1137 if ((start + count) * width > pbm.pbm_bar_length) { in dump_bar()
1138 if (start * width > pbm.pbm_bar_length) in dump_bar()
1141 count = (pbm.pbm_bar_length - start * width) / width; in dump_bar()
1147 pbm.pbm_sel.pc_domain, pbm.pbm_sel.pc_bus, in dump_bar()
1148 pbm.pbm_sel.pc_dev, pbm.pbm_sel.pc_func, in dump_bar()
1149 pbm.pbm_reg, pbm.pbm_map_base, pbm.pbm_bar_off, in dump_bar()
1150 pbm.pbm_bar_length, start, count, width); in dump_bar()
1154 db = (uint8_t *)(uintptr_t)((uintptr_t)pbm.pbm_map_base + in dump_bar()
1155 pbm.pbm_bar_off + start * width); in dump_bar()
1165 dh = (uint16_t *)(uintptr_t)((uintptr_t)pbm.pbm_map_base + in dump_bar()
1166 pbm.pbm_bar_off + start * width); in dump_bar()
1176 dd = (uint32_t *)(uintptr_t)((uintptr_t)pbm.pbm_map_base + in dump_bar()
1177 pbm.pbm_bar_off + start * width); in dump_bar()
1187 dx = (uint64_t *)(uintptr_t)((uintptr_t)pbm.pbm_map_base + in dump_bar()
1188 pbm.pbm_bar_off + start * width); in dump_bar()
1201 munmap((void *)pbm.pbm_map_base, pbm.pbm_map_length); in dump_bar()