Searched refs:memory (Results 1 – 10 of 10) sorted by relevance
| /libpciaccess/src/ |
| H A D | common_interface.c | 194 if (dev->regions[region].memory != NULL) { in pci_device_map_region() 200 &dev->regions[region].memory); in pci_device_map_region() 309 mappings[devp->num_mappings].memory = NULL; in pci_device_map_range() 311 if (dev->regions[region].memory == NULL) { in pci_device_map_range() 317 *addr = mappings[devp->num_mappings].memory; in pci_device_map_range() 358 err = pci_device_unmap_range(dev, dev->regions[region].memory, in pci_device_unmap_region() 361 dev->regions[region].memory = NULL; in pci_device_unmap_region() 385 pci_device_unmap_memory_range(struct pci_device *dev, void *memory, in pci_device_unmap_memory_range() argument 388 return pci_device_unmap_range(dev, memory, size); in pci_device_unmap_memory_range() 408 pci_device_unmap_range(struct pci_device *dev, void *memory, in pci_device_unmap_range() argument [all …]
|
| H A D | linux_sysfs.c | 495 map->memory = mmap(NULL, map->size, prot, MAP_SHARED, fd, offset); in pci_device_linux_sysfs_map_range_wc() 496 if (map->memory == MAP_FAILED) { in pci_device_linux_sysfs_map_range_wc() 497 map->memory = NULL; in pci_device_linux_sysfs_map_range_wc() 562 map->memory = mmap(NULL, map->size, prot, MAP_SHARED, fd, offset); in pci_device_linux_sysfs_map_range() 563 if (map->memory == MAP_FAILED) { in pci_device_linux_sysfs_map_range() 564 map->memory = NULL; in pci_device_linux_sysfs_map_range() 587 mprotect (map->memory, map->size, PROT_NONE); in pci_device_linux_sysfs_map_range() 588 err = mprotect (map->memory, map->size, PROT_READ|PROT_WRITE); in pci_device_linux_sysfs_map_range() 595 munmap(map->memory, map->size); in pci_device_linux_sysfs_map_range() 597 if (map->memory == MAP_FAILED) { in pci_device_linux_sysfs_map_range() [all …]
|
| H A D | common_map.c | 54 return (munmap(map->memory, map->size) == -1) ? errno : 0; in pci_device_generic_unmap_range()
|
| H A D | solx_devfs.c | 1020 (void) bcopy(prom.memory, buffer, dev->rom_size); in pci_device_solx_devfs_read_rom() 1022 if (munmap(prom.memory, dev->rom_size) == -1) { in pci_device_solx_devfs_read_rom() 1192 map->memory = mmap(NULL, map->size, prot, MAP_SHARED, map_fd, map->base); in pci_device_solx_devfs_map_range() 1206 map->memory = mmap(NULL, map->size, prot, MAP_SHARED, xsvc_fd, map->base); in pci_device_solx_devfs_map_range() 1209 if (map->memory == MAP_FAILED) { in pci_device_solx_devfs_map_range()
|
| H A D | pciaccess_private.h | 91 void *memory; member
|
| H A D | netbsd_pci.c | 103 map->memory = mmap(NULL, map->size, prot, MAP_SHARED, in pci_device_netbsd_map_range() 105 if (map->memory == MAP_FAILED) in pci_device_netbsd_map_range()
|
| H A D | x86_pci.c | 487 map->memory = mmap(NULL, map->size, prot, MAP_SHARED, memfd, map->base); in pci_device_x86_map_range() 489 if (map->memory == MAP_FAILED) in pci_device_x86_map_range()
|
| H A D | freebsd_pci.c | 118 map->memory = mmap(NULL, map->size, prot, MAP_SHARED, fd, map->base); in pci_device_freebsd_map_range() 120 if (map->memory == MAP_FAILED) { in pci_device_freebsd_map_range()
|
| H A D | openbsd_pci.c | 174 map->memory = mmap(NULL, map->size, prot, MAP_SHARED, aperturefd, in pci_device_openbsd_map_range() 176 if (map->memory == MAP_FAILED) in pci_device_openbsd_map_range()
|
| /libpciaccess/include/ |
| H A D | pciaccess.h | 94 int pci_device_unmap_range(struct pci_device *dev, void *memory, 101 void *memory, pciaddr_t size); 254 void *memory; member
|