Lines Matching refs:size
174 map->memory = mmap(NULL, map->size, prot, MAP_SHARED, aperturefd, in pci_device_openbsd_map_range()
183 mr.mr_len = map->size; in pci_device_openbsd_map_range()
213 mr.mr_len = map->size; in pci_device_openbsd_unmap_range()
228 pciaddr_t offset, pciaddr_t size, pciaddr_t *bytes_read) in pci_device_openbsd_read() argument
237 while (size > 0) { in pci_device_openbsd_read()
238 int toread = MIN(size, 4 - (offset & 0x3)); in pci_device_openbsd_read()
253 size -= toread; in pci_device_openbsd_read()
262 pciaddr_t offset, pciaddr_t size, pciaddr_t *bytes_written) in pci_device_openbsd_write() argument
266 if ((offset % 4) != 0 || (size % 4) != 0) in pci_device_openbsd_write()
274 while (size > 0) { in pci_device_openbsd_write()
284 size -= 4; in pci_device_openbsd_write()
307 uint32_t bar, reg, size; in pci_device_openbsd_probe() local
334 pci_read(domain, bus, dev, func, bar, &size); in pci_device_openbsd_probe()
340 region->size = PCI_MAPREG_IO_SIZE(size); in pci_device_openbsd_probe()
348 region->size = PCI_MAPREG_MEM_SIZE(size); in pci_device_openbsd_probe()
354 size64 = size; in pci_device_openbsd_probe()
366 pci_read(domain, bus, dev, func, bar, &size); in pci_device_openbsd_probe()
368 size64 |= (uint64_t)size << 32; in pci_device_openbsd_probe()
371 region->size = PCI_MAPREG_MEM64_SIZE(size64); in pci_device_openbsd_probe()
386 pci_read(domain, bus, dev, func, PCI_ROM_REG, &size); in pci_device_openbsd_probe()
391 device->rom_size = PCI_ROM_SIZE(size); in pci_device_openbsd_probe()