Lines Matching refs:device_id

190 static int _test_cmd_hwpt_alloc(int fd, __u32 device_id, __u32 pt_id, __u32 ft_id,  in _test_cmd_hwpt_alloc()  argument
197 .dev_id = device_id, in _test_cmd_hwpt_alloc()
214 #define test_cmd_hwpt_alloc(device_id, pt_id, flags, hwpt_id) \ argument
215 ASSERT_EQ(0, _test_cmd_hwpt_alloc(self->fd, device_id, pt_id, 0, flags, \
218 #define test_err_hwpt_alloc(_errno, device_id, pt_id, flags, hwpt_id) \ argument
220 self->fd, device_id, pt_id, 0, flags, \
223 #define test_cmd_hwpt_alloc_nested(device_id, pt_id, flags, hwpt_id, \ argument
225 ASSERT_EQ(0, _test_cmd_hwpt_alloc(self->fd, device_id, pt_id, 0, flags, \
227 #define test_err_hwpt_alloc_nested(_errno, device_id, pt_id, flags, hwpt_id, \ argument
230 _test_cmd_hwpt_alloc(self->fd, device_id, pt_id, 0, flags, \
233 #define test_cmd_hwpt_alloc_iopf(device_id, pt_id, fault_id, flags, hwpt_id, \ argument
235 ASSERT_EQ(0, _test_cmd_hwpt_alloc(self->fd, device_id, pt_id, fault_id, \
238 #define test_err_hwpt_alloc_iopf(_errno, device_id, pt_id, fault_id, flags, \ argument
241 _test_cmd_hwpt_alloc(self->fd, device_id, pt_id, fault_id, \
269 #define test_cmd_dev_check_cache(device_id, cache_id, expected) \ argument
274 .id = device_id, \
286 #define test_cmd_dev_check_cache_all(device_id, expected) \ argument
290 test_cmd_dev_check_cache(device_id, c, expected); \
769 static int _test_cmd_get_hw_info(int fd, __u32 device_id, __u32 data_type, in _test_cmd_get_hw_info() argument
776 .dev_id = device_id, in _test_cmd_get_hw_info()
829 #define test_cmd_get_hw_info(device_id, data_type, data, data_len) \ argument
830 ASSERT_EQ(0, _test_cmd_get_hw_info(self->fd, device_id, data_type, \
833 #define test_err_get_hw_info(_errno, device_id, data_type, data, data_len) \ argument
835 _test_cmd_get_hw_info(self->fd, device_id, data_type, \
838 #define test_cmd_get_hw_capabilities(device_id, caps) \ argument
839 ASSERT_EQ(0, _test_cmd_get_hw_info(self->fd, device_id, \
843 #define test_cmd_get_hw_info_pasid(device_id, max_pasid) \ argument
844 ASSERT_EQ(0, _test_cmd_get_hw_info(self->fd, device_id, \
871 static int _test_cmd_trigger_iopf(int fd, __u32 device_id, __u32 pasid, in _test_cmd_trigger_iopf() argument
878 .dev_id = device_id, in _test_cmd_trigger_iopf()
909 #define test_cmd_trigger_iopf(device_id, fault_fd) \ argument
910 ASSERT_EQ(0, _test_cmd_trigger_iopf(self->fd, device_id, 0x1, fault_fd))
911 #define test_cmd_trigger_iopf_pasid(device_id, pasid, fault_fd) \ argument
912 ASSERT_EQ(0, _test_cmd_trigger_iopf(self->fd, device_id, \
915 static int _test_cmd_viommu_alloc(int fd, __u32 device_id, __u32 hwpt_id, in _test_cmd_viommu_alloc() argument
923 .dev_id = device_id, in _test_cmd_viommu_alloc()
938 #define test_cmd_viommu_alloc(device_id, hwpt_id, type, data, data_len, \ argument
940 ASSERT_EQ(0, _test_cmd_viommu_alloc(self->fd, device_id, hwpt_id, 0, \
942 #define test_err_viommu_alloc(_errno, device_id, hwpt_id, type, data, \ argument
945 _test_cmd_viommu_alloc(self->fd, device_id, hwpt_id, 0, \