Home
last modified time | relevance | path

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

/freebsd/tools/tools/dmardump/
H A Ddmardump.c60 static int pcifd = -1; in pci_find_conf() local
65 if (pcifd == -1) { in pci_find_conf()
66 pcifd = open("/dev/pci", O_RDONLY); in pci_find_conf()
67 if (pcifd < 0) in pci_find_conf()
85 if (ioctl(pcifd, PCIOCGETCONF, &pc) == -1) in pci_find_conf()
/freebsd/usr.sbin/bhyve/amd64/
H A Dpci_lpc.c468 int pcifd; in pci_lpc_get_conf() local
470 pcifd = open("/dev/pci", O_RDONLY); in pci_lpc_get_conf()
471 if (pcifd < 0) { in pci_lpc_get_conf()
487 if (ioctl(pcifd, PCIOCGETCONF, &pcio) == -1) { in pci_lpc_get_conf()
498 close(pcifd); in pci_lpc_get_conf()
503 close(pcifd); in pci_lpc_get_conf()
/freebsd/usr.sbin/bhyve/
H A Dpci_passthru.c78 static int pcifd = -1; variable
150 pcifd = pcifd_open(); in pcifd_init()
151 if (pcifd < 0) in pcifd_init()
157 if (caph_rights_limit(pcifd, &pcifd_rights) == -1) in pcifd_init()
162 if (caph_ioctls_limit(pcifd, pcifd_ioctls, nitems(pcifd_ioctls)) == -1) in pcifd_init()
188 return (host_read_config(pcifd, sel, reg, width)); in passthru_read_config()
224 host_write_config(pcifd, sel, reg, width, data); in passthru_write_config()
545 if (ioctl(pcifd, PCIOCBARMMAP, &pbm) != 0) { in init_msix_table()
599 if (ioctl(pcifd, PCIOCGETBAR, &bar) < 0) in cfginitbar()
924 if (ioctl(pcifd, PCIOCGETCONF, &pc) == -1) { in passthru_lookup_pptdev()
[all …]