Home
last modified time | relevance | path

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

/openbmc/qemu/hw/pci-host/
H A Dxen_igd_pt.c51 int rc, config_fd; in host_pci_config_read() local
56 config_fd = open(path, O_RDWR); in host_pci_config_read()
57 if (config_fd < 0) { in host_pci_config_read()
62 if (lseek(config_fd, pos, SEEK_SET) != pos) { in host_pci_config_read()
68 rc = read(config_fd, (uint8_t *)val, len); in host_pci_config_read()
75 close(config_fd); in host_pci_config_read()
/openbmc/qemu/hw/xen/
H A Dxen-host-pci-device.c269 d->config_fd = open(path, O_RDWR); in xen_host_pci_config_open()
270 if (d->config_fd == -1) { in xen_host_pci_config_open()
281 rc = pread(d->config_fd, buf, len, pos); in xen_host_pci_config_read()
295 rc = pwrite(d->config_fd, buf, len, pos); in xen_host_pci_config_write()
401 d->config_fd = -1; in xen_host_pci_device_get()
459 if (d->config_fd >= 0) { in xen_host_pci_device_get()
460 close(d->config_fd); in xen_host_pci_device_get()
461 d->config_fd = -1; in xen_host_pci_device_get()
467 return d->config_fd == -1; in xen_host_pci_device_closed()
472 if (d->config_fd >= 0) { in xen_host_pci_device_put()
[all …]
H A Dxen-host-pci-device.h42 int config_fd; member
/openbmc/qemu/ebpf/
H A Debpf_rss.c160 int config_fd, int toeplitz_fd, int table_fd, in ebpf_rss_load_fds() argument
172 if (config_fd < 0) { in ebpf_rss_load_fds()
186 ctx->map_configuration = config_fd; in ebpf_rss_load_fds()
H A Debpf_rss-stub.c32 int config_fd, int toeplitz_fd, int table_fd, in ebpf_rss_load_fds() argument
H A Debpf_rss.h49 int config_fd, int toeplitz_fd, int table_fd,