Home
last modified time | relevance | path

Searched refs:memory (Results 1 – 10 of 10) sorted by relevance

/libpciaccess/src/
H A Dcommon_interface.c194 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 Dlinux_sysfs.c495 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 Dcommon_map.c54 return (munmap(map->memory, map->size) == -1) ? errno : 0; in pci_device_generic_unmap_range()
H A Dsolx_devfs.c1020 (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 Dpciaccess_private.h91 void *memory; member
H A Dnetbsd_pci.c103 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 Dx86_pci.c487 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 Dfreebsd_pci.c118 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 Dopenbsd_pci.c174 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 Dpciaccess.h94 int pci_device_unmap_range(struct pci_device *dev, void *memory,
101 void *memory, pciaddr_t size);
254 void *memory; member