Home
last modified time | relevance | path

Searched refs:prot (Results 1 – 6 of 6) sorted by relevance

/libpciaccess/src/
H A Dlinux_sysfs.c478 const int prot = ((map->flags & PCI_DEV_MAP_FLAG_WRITABLE) != 0) in pci_device_linux_sysfs_map_range_wc() local
495 map->memory = mmap(NULL, map->size, prot, MAP_SHARED, fd, offset); in pci_device_linux_sysfs_map_range_wc()
530 const int prot = ((map->flags & PCI_DEV_MAP_FLAG_WRITABLE) != 0) in pci_device_linux_sysfs_map_range() local
562 map->memory = mmap(NULL, map->size, prot, MAP_SHARED, fd, offset); in pci_device_linux_sysfs_map_range()
596 map->memory = mmap(NULL, map->size, prot, MAP_SHARED, fd, offset); in pci_device_linux_sysfs_map_range()
851 int prot = PROT_READ; in pci_device_linux_sysfs_map_legacy() local
857 prot |= PROT_WRITE; in pci_device_linux_sysfs_map_legacy()
879 *addr = mmap(NULL, size, prot, MAP_SHARED, fd, base); in pci_device_linux_sysfs_map_legacy()
H A Dnetbsd_pci.c95 int fd, error, nmtrr, prot = PROT_READ; in pci_device_netbsd_map_range() local
101 prot |= PROT_WRITE; in pci_device_netbsd_map_range()
103 map->memory = mmap(NULL, map->size, prot, MAP_SHARED, in pci_device_netbsd_map_range()
H A Dx86_pci.c479 int prot = PROT_READ; in pci_device_x86_map_range() local
485 prot |= PROT_WRITE; in pci_device_x86_map_range()
487 map->memory = mmap(NULL, map->size, prot, MAP_SHARED, memfd, map->base); in pci_device_x86_map_range()
H A Dopenbsd_pci.c169 int prot = PROT_READ; in pci_device_openbsd_map_range() local
172 prot |= PROT_WRITE; in pci_device_openbsd_map_range()
174 map->memory = mmap(NULL, map->size, prot, MAP_SHARED, aperturefd, in pci_device_openbsd_map_range()
H A Dsolx_devfs.c1172 const int prot = ((map->flags & PCI_DEV_MAP_FLAG_WRITABLE) != 0) in pci_device_solx_devfs_map_range() local
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()
H A Dfreebsd_pci.c107 const int prot = ((map->flags & PCI_DEV_MAP_FLAG_WRITABLE) != 0) in pci_device_freebsd_map_range() local
118 map->memory = mmap(NULL, map->size, prot, MAP_SHARED, fd, map->base); in pci_device_freebsd_map_range()