Home
last modified time | relevance | path

Searched refs:calloc_assert (Results 1 – 5 of 5) sorted by relevance

/linux/tools/testing/selftests/vfio/
H A Dvfio_pci_device_init_perf_test.c48 self->threads = calloc_assert(nr_devices, sizeof(self->threads[0])); in FIXTURE_SETUP()
49 self->thread_args = calloc_assert(nr_devices, sizeof(self->thread_args[0])); in FIXTURE_SETUP()
/linux/tools/testing/selftests/vfio/lib/
H A Dvfio_pci_device.c37 irq = calloc_assert(1, argsz); in vfio_pci_irq_set()
147 feature = calloc_assert(1, argsz); in vfio_device_feature_ioctl()
390 cdev_path = calloc_assert(PATH_MAX, 1); in vfio_pci_get_cdev_path()
471 device = calloc_assert(1, sizeof(*device)); in vfio_pci_device_alloc()
H A Diommu.c326 ranges = calloc_assert(cap_range->nr_iovas, sizeof(*ranges)); in vfio_iommu_iova_ranges()
358 ranges = calloc_assert(query.num_iovas, sizeof(*ranges)); in iommufd_iova_ranges()
424 iommu = calloc_assert(1, sizeof(*iommu)); in iommu_init()
H A Dsysfs.c110 out_vf_bdf = calloc_assert(16, sizeof(char)); in sysfs_sriov_vf_bdf_get()
/linux/tools/testing/selftests/vfio/lib/include/libvfio/
H A Dassert.h57 #define calloc_assert(_nmemb, _size) ({ \ macro