Lines Matching refs:cmd

420 				    struct iommu_test_cmd *cmd)  in iommufd_test_mock_domain()  argument
424 u32 pt_id = cmd->id; in iommufd_test_mock_domain()
454 cmd->mock_domain.out_hwpt_id = pt_id; in iommufd_test_mock_domain()
455 cmd->mock_domain.out_stdev_id = sobj->obj.id; in iommufd_test_mock_domain()
456 cmd->mock_domain.out_idev_id = idev_id; in iommufd_test_mock_domain()
457 rc = iommufd_ucmd_respond(ucmd, sizeof(*cmd)); in iommufd_test_mock_domain()
477 struct iommu_test_cmd *cmd) in iommufd_test_mock_domain_replace() argument
502 cmd->mock_domain_replace.pt_id = pt_id; in iommufd_test_mock_domain_replace()
503 rc = iommufd_ucmd_respond(ucmd, sizeof(*cmd)); in iommufd_test_mock_domain_replace()
752 struct iommu_test_cmd *cmd = ucmd->cmd; in iommufd_test_create_access() local
785 cmd->create_access.out_access_fd = fdno; in iommufd_test_create_access()
786 rc = iommufd_ucmd_respond(ucmd, sizeof(*cmd)); in iommufd_test_create_access()
846 struct iommu_test_cmd *cmd = ucmd->cmd; in iommufd_test_access_pages() local
871 &cmd->access_pages.iova); in iommufd_test_access_pages()
917 cmd->access_pages.out_access_pages_id = item->id; in iommufd_test_access_pages()
918 rc = iommufd_ucmd_respond(ucmd, sizeof(*cmd)); in iommufd_test_access_pages()
941 struct iommu_test_cmd *cmd = ucmd->cmd; in iommufd_test_access_rw() local
973 &cmd->access_rw.iova); in iommufd_test_access_rw()
1010 struct iommu_test_cmd *cmd = ucmd->cmd; in iommufd_test() local
1012 switch (cmd->op) { in iommufd_test()
1014 return iommufd_test_add_reserved(ucmd, cmd->id, in iommufd_test()
1015 cmd->add_reserved.start, in iommufd_test()
1016 cmd->add_reserved.length); in iommufd_test()
1018 return iommufd_test_mock_domain(ucmd, cmd); in iommufd_test()
1021 ucmd, cmd->id, cmd->mock_domain_replace.pt_id, cmd); in iommufd_test()
1024 ucmd, cmd->id, cmd->check_map.iova, in iommufd_test()
1025 cmd->check_map.length, in iommufd_test()
1026 u64_to_user_ptr(cmd->check_map.uptr)); in iommufd_test()
1029 ucmd, u64_to_user_ptr(cmd->check_refs.uptr), in iommufd_test()
1030 cmd->check_refs.length, cmd->check_refs.refs); in iommufd_test()
1032 return iommufd_test_create_access(ucmd, cmd->id, in iommufd_test()
1033 cmd->create_access.flags); in iommufd_test()
1036 ucmd, cmd->id, cmd->access_replace_ioas.ioas_id); in iommufd_test()
1039 ucmd, cmd->id, cmd->access_pages.iova, in iommufd_test()
1040 cmd->access_pages.length, in iommufd_test()
1041 u64_to_user_ptr(cmd->access_pages.uptr), in iommufd_test()
1042 cmd->access_pages.flags); in iommufd_test()
1045 ucmd, cmd->id, cmd->access_rw.iova, in iommufd_test()
1046 cmd->access_rw.length, in iommufd_test()
1047 u64_to_user_ptr(cmd->access_rw.uptr), in iommufd_test()
1048 cmd->access_rw.flags); in iommufd_test()
1051 ucmd, cmd->id, cmd->destroy_access_pages.access_pages_id); in iommufd_test()
1054 if (cmd->memory_limit.limit < in iommufd_test()
1057 iommufd_test_memory_limit = cmd->memory_limit.limit; in iommufd_test()