Home
last modified time | relevance | path

Searched refs:mem_fd (Results 1 – 3 of 3) sorted by relevance

/freebsd-14.2/tools/tools/pciroms/
H A Dpciroms.c303 int fd, mem_fd, err; in pci_save_rom() local
306 fd = err = mem_fd = -1; in pci_save_rom()
309 if ((mem_fd = open(_PATH_DEVMEM, O_RDONLY)) == -1) { in pci_save_rom()
315 mem_fd, base_addr); in pci_save_rom()
335 if (mem_fd != -1) in pci_save_rom()
336 close(mem_fd); in pci_save_rom()
/freebsd-14.2/tools/tools/pirtool/
H A Dpirtool.c68 int mem_fd = -1; in main() local
90 if ((mem_fd = open(_PATH_DEVMEM, O_RDONLY)) == -1) { in main()
94 map_addr = mmap(NULL, PIR_SIZE, PROT_READ, MAP_SHARED, mem_fd, in main()
113 if (mem_fd != -1) in main()
114 close(mem_fd); in main()
/freebsd-14.2/sys/dev/qat/qat_common/
H A Dadf_freebsd_uio.c107 adf_add_mem_fd(struct adf_accel_dev *accel_dev, int mem_fd) in adf_add_mem_fd() argument
119 error = fget(curthread, mem_fd, cap_rights_init(&rights), &fp); in adf_add_mem_fd()