Home
last modified time | relevance | path

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

/tools/testing/selftests/nci/
Dnci_dev.c324 int dev_fd; in virtual_dev_open() local
327 dev_fd = *(int *)data; in virtual_dev_open()
329 len = read(dev_fd, buf, 258); in virtual_dev_open()
336 write(dev_fd, nci_reset_rsp, sizeof(nci_reset_rsp)); in virtual_dev_open()
338 len = read(dev_fd, buf, 258); in virtual_dev_open()
345 write(dev_fd, nci_init_rsp, sizeof(nci_init_rsp)); in virtual_dev_open()
347 len = read(dev_fd, buf, 258); in virtual_dev_open()
354 write(dev_fd, nci_rf_disc_map_rsp, sizeof(nci_rf_disc_map_rsp)); in virtual_dev_open()
364 int dev_fd; in virtual_dev_open_v2() local
367 dev_fd = *(int *)data; in virtual_dev_open_v2()
[all …]
/tools/testing/selftests/kvm/include/
Dkvm_util.h232 int _kvm_device_check_attr(int dev_fd, uint32_t group, uint64_t attr);
233 int kvm_device_check_attr(int dev_fd, uint32_t group, uint64_t attr);
236 int _kvm_device_access(int dev_fd, uint32_t group, uint64_t attr,
238 int kvm_device_access(int dev_fd, uint32_t group, uint64_t attr,
/tools/testing/selftests/kvm/lib/
Dkvm_util.c1087 int dev_fd, ret; in vcpu_mmap_sz() local
1089 dev_fd = open_kvm_dev_path_or_exit(); in vcpu_mmap_sz()
1091 ret = ioctl(dev_fd, KVM_GET_VCPU_MMAP_SIZE, NULL); in vcpu_mmap_sz()
1096 close(dev_fd); in vcpu_mmap_sz()
1972 int _kvm_device_check_attr(int dev_fd, uint32_t group, uint64_t attr) in _kvm_device_check_attr() argument
1980 return ioctl(dev_fd, KVM_HAS_DEVICE_ATTR, &attribute); in _kvm_device_check_attr()
1983 int kvm_device_check_attr(int dev_fd, uint32_t group, uint64_t attr) in kvm_device_check_attr() argument
1985 int ret = _kvm_device_check_attr(dev_fd, group, attr); in kvm_device_check_attr()
2018 int _kvm_device_access(int dev_fd, uint32_t group, uint64_t attr, in _kvm_device_access() argument
2029 ret = ioctl(dev_fd, write ? KVM_SET_DEVICE_ATTR : KVM_GET_DEVICE_ATTR, in _kvm_device_access()
[all …]