Home
last modified time | relevance | path

Searched refs:VFIO_ASSERT_NOT_NULL (Results 1 – 8 of 8) sorted by relevance

/linux/tools/testing/selftests/vfio/lib/include/libvfio/
H A Dassert.h42 #define VFIO_ASSERT_NOT_NULL(_a, ...) VFIO_ASSERT_NE(NULL, _a, ##__VA_ARGS__) macro
52 VFIO_ASSERT_NOT_NULL(__ptr, "malloc(%zu) failed", \
61 VFIO_ASSERT_NOT_NULL(__ptr, "calloc(%zu, %zu) failed", \
/linux/tools/testing/selftests/vfio/lib/
H A Dvfio_pci_driver.c41 VFIO_ASSERT_NOT_NULL(driver->ops); in vfio_check_driver_op()
42 VFIO_ASSERT_NOT_NULL(op, "Driver has no %s()\n", op_name); in vfio_check_driver_op()
56 VFIO_ASSERT_NOT_NULL(driver->region.vaddr); in vfio_pci_driver_init()
H A Dvfio_pci_device.c172 VFIO_ASSERT_NOT_NULL(vf_token, "vf_token is NULL"); in vfio_device_set_vf_token()
232 VFIO_ASSERT_NOT_NULL(bar->vaddr); in vfio_pci_bar_unmap()
395 VFIO_ASSERT_NOT_NULL(dir, "Failed to open directory %s\n", dir_path); in vfio_pci_get_cdev_path()
473 VFIO_ASSERT_NOT_NULL(iommu); in vfio_pci_device_alloc()
H A Diova_allocator.c30 VFIO_ASSERT_NOT_NULL(ranges); in iova_allocator_init()
H A Dsysfs.c146 VFIO_ASSERT_NOT_NULL(out_driver); in sysfs_driver_get()
H A Diommu.c299 VFIO_ASSERT_NOT_NULL(info); in vfio_iommu_get_info()
321 VFIO_ASSERT_NOT_NULL(hdr); in vfio_iommu_iova_ranges()
/linux/tools/testing/selftests/vfio/
H A Dvfio_dma_mapping_test.c54 VFIO_ASSERT_NOT_NULL(file, "fopen(%s) failed", iommu_mapping_path); in intel_iommu_mapping_get()
244 VFIO_ASSERT_NOT_NULL(ranges); in FIXTURE_SETUP()
/linux/tools/testing/selftests/vfio/lib/drivers/ioat/
H A Dioat.c45 VFIO_ASSERT_NOT_NULL(device->bars[0].vaddr); in ioat_probe()