Searched refs:prot (Results 1 – 6 of 6) sorted by relevance
| /libpciaccess/src/ |
| H A D | linux_sysfs.c | 478 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 D | netbsd_pci.c | 95 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 D | x86_pci.c | 479 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 D | openbsd_pci.c | 169 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 D | solx_devfs.c | 1172 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 D | freebsd_pci.c | 107 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()
|