Searched refs:fd (Results 1 – 10 of 10) sorted by relevance
| /libpciaccess/src/ |
| H A D | linux_sysfs.c | 202 int fd; in pci_device_linux_sysfs_probe() local 285 int fd; in pci_device_linux_sysfs_read_rom() local 361 int fd; in pci_device_linux_sysfs_read() local 421 int fd; in pci_device_linux_sysfs_write() local 477 int fd; in pci_device_linux_sysfs_map_range_wc() local 498 close(fd); in pci_device_linux_sysfs_map_range_wc() 528 int fd; in pci_device_linux_sysfs_map_range() local 565 close(fd); in pci_device_linux_sysfs_map_range() 599 close(fd); in pci_device_linux_sysfs_map_range() 670 int fd; in pci_device_linux_sysfs_enable() local [all …]
|
| H A D | linux_devmem.c | 68 int fd; in pci_device_linux_devmem_read_rom() local 120 fd = open("/dev/mem", O_RDONLY, 0); in pci_device_linux_devmem_read_rom() 121 if (fd < 0) { in pci_device_linux_devmem_read_rom() 128 const ssize_t got = pread(fd, buffer, rom_size - bytes, in pci_device_linux_devmem_read_rom() 138 close(fd); in pci_device_linux_devmem_read_rom()
|
| H A D | freebsd_pci.c | 112 int fd, err = 0; in pci_device_freebsd_map_range() local 114 fd = open("/dev/mem", O_RDWR); in pci_device_freebsd_map_range() 115 if (fd == -1) in pci_device_freebsd_map_range() 118 map->memory = mmap(NULL, map->size, prot, MAP_SHARED, fd, map->base); in pci_device_freebsd_map_range() 138 if (ioctl(fd, MEMRANGE_SET, &mro)) { in pci_device_freebsd_map_range() 143 close(fd); in pci_device_freebsd_map_range() 154 int fd; in pci_device_freebsd_unmap_range() local 159 fd = open("/dev/mem", O_RDWR); in pci_device_freebsd_unmap_range() 160 if (fd != -1) { in pci_device_freebsd_unmap_range() 168 if (ioctl(fd, MEMRANGE_SET, &mro)) { in pci_device_freebsd_unmap_range() [all …]
|
| H A D | solx_devfs.c | 62 int fd; member 152 static int get_config_header(int fd, uint8_t bus_no, uint8_t dev_no, 227 close(nexus->fd); in pci_system_solx_devfs_destroy() 337 if ((rval = ioctl(fd, PCITOOL_DEVICE_GET_REG, &cfg_prg)) != 0) { in get_config_header() 398 if (((rval = ioctl(nexus->fd, PCITOOL_DEVICE_GET_REG, prg_p)) != 0) || in probe_dev() 457 if ((rval = get_config_header(nexus->fd, prg_p->bus_no, in probe_dev() 574 int fd; in probe_nexus_node() local 705 if ((fd = open(nexus_path, O_RDWR)) >= 0) { in probe_nexus_node() 706 nexus->fd = fd; in probe_nexus_node() 714 (void) close(fd); in probe_nexus_node() [all …]
|
| H A D | common_init.c | 73 pci_system_init_dev_mem(int fd) in pci_system_init_dev_mem() argument 76 pci_system_openbsd_init_dev_mem(fd); in pci_system_init_dev_mem()
|
| H A D | netbsd_pci.c | 95 int fd, error, nmtrr, prot = PROT_READ; in pci_device_netbsd_map_range() local 97 if ((fd = open("/dev/mem", O_RDWR)) == -1) in pci_device_netbsd_map_range() 104 fd, map->base); in pci_device_netbsd_map_range() 126 close(fd); in pci_device_netbsd_map_range() 131 close(fd); in pci_device_netbsd_map_range()
|
| H A D | common_vgaarb.c | 178 vgaarb_write(int fd, char *buf, int len) in vgaarb_write() argument 185 ret = write(fd, buf, len); in vgaarb_write()
|
| H A D | pciaccess_private.h | 97 int fd; member
|
| H A D | openbsd_pci.c | 522 pci_system_openbsd_init_dev_mem(int fd) in pci_system_openbsd_init_dev_mem() argument 524 aperturefd = fd; in pci_system_openbsd_init_dev_mem()
|
| /libpciaccess/include/ |
| H A D | pciaccess.h | 118 void pci_system_init_dev_mem(int fd);
|