Lines Matching refs:ibs_request
295 struct amdgpu_cs_request ibs_request = {0}; in amdgpu_command_submission_gfx_separate_ibs() local
342 ibs_request.ip_type = AMDGPU_HW_IP_GFX; in amdgpu_command_submission_gfx_separate_ibs()
343 ibs_request.number_of_ibs = 2; in amdgpu_command_submission_gfx_separate_ibs()
344 ibs_request.ibs = ib_info; in amdgpu_command_submission_gfx_separate_ibs()
345 ibs_request.resources = bo_list; in amdgpu_command_submission_gfx_separate_ibs()
346 ibs_request.fence_info.handle = NULL; in amdgpu_command_submission_gfx_separate_ibs()
348 r = amdgpu_cs_submit(context_handle, 0,&ibs_request, 1); in amdgpu_command_submission_gfx_separate_ibs()
355 fence_status.fence = ibs_request.seq_no; in amdgpu_command_submission_gfx_separate_ibs()
384 struct amdgpu_cs_request ibs_request = {0}; in amdgpu_command_submission_gfx_shared_ib() local
424 ibs_request.ip_type = AMDGPU_HW_IP_GFX; in amdgpu_command_submission_gfx_shared_ib()
425 ibs_request.number_of_ibs = 2; in amdgpu_command_submission_gfx_shared_ib()
426 ibs_request.ibs = ib_info; in amdgpu_command_submission_gfx_shared_ib()
427 ibs_request.resources = bo_list; in amdgpu_command_submission_gfx_shared_ib()
428 ibs_request.fence_info.handle = NULL; in amdgpu_command_submission_gfx_shared_ib()
430 r = amdgpu_cs_submit(context_handle, 0, &ibs_request, 1); in amdgpu_command_submission_gfx_shared_ib()
437 fence_status.fence = ibs_request.seq_no; in amdgpu_command_submission_gfx_shared_ib()
491 struct amdgpu_cs_request ibs_request[2] = {0}; in amdgpu_semaphore_test() local
523 ibs_request[0].ip_type = AMDGPU_HW_IP_DMA; in amdgpu_semaphore_test()
524 ibs_request[0].number_of_ibs = 1; in amdgpu_semaphore_test()
525 ibs_request[0].ibs = &ib_info[0]; in amdgpu_semaphore_test()
526 ibs_request[0].resources = bo_list[0]; in amdgpu_semaphore_test()
527 ibs_request[0].fence_info.handle = NULL; in amdgpu_semaphore_test()
528 r = amdgpu_cs_submit(context_handle[0], 0,&ibs_request[0], 1); in amdgpu_semaphore_test()
540 ibs_request[1].ip_type = AMDGPU_HW_IP_GFX; in amdgpu_semaphore_test()
541 ibs_request[1].number_of_ibs = 1; in amdgpu_semaphore_test()
542 ibs_request[1].ibs = &ib_info[1]; in amdgpu_semaphore_test()
543 ibs_request[1].resources = bo_list[1]; in amdgpu_semaphore_test()
544 ibs_request[1].fence_info.handle = NULL; in amdgpu_semaphore_test()
546 r = amdgpu_cs_submit(context_handle[0], 0,&ibs_request[1], 1); in amdgpu_semaphore_test()
552 fence_status.fence = ibs_request[1].seq_no; in amdgpu_semaphore_test()
564 ibs_request[0].ip_type = AMDGPU_HW_IP_GFX; in amdgpu_semaphore_test()
565 ibs_request[0].number_of_ibs = 1; in amdgpu_semaphore_test()
566 ibs_request[0].ibs = &ib_info[0]; in amdgpu_semaphore_test()
567 ibs_request[0].resources = bo_list[0]; in amdgpu_semaphore_test()
568 ibs_request[0].fence_info.handle = NULL; in amdgpu_semaphore_test()
569 r = amdgpu_cs_submit(context_handle[0], 0,&ibs_request[0], 1); in amdgpu_semaphore_test()
581 ibs_request[1].ip_type = AMDGPU_HW_IP_GFX; in amdgpu_semaphore_test()
582 ibs_request[1].number_of_ibs = 1; in amdgpu_semaphore_test()
583 ibs_request[1].ibs = &ib_info[1]; in amdgpu_semaphore_test()
584 ibs_request[1].resources = bo_list[1]; in amdgpu_semaphore_test()
585 ibs_request[1].fence_info.handle = NULL; in amdgpu_semaphore_test()
586 r = amdgpu_cs_submit(context_handle[1], 0,&ibs_request[1], 1); in amdgpu_semaphore_test()
593 fence_status.fence = ibs_request[1].seq_no; in amdgpu_semaphore_test()
620 struct amdgpu_cs_request ibs_request; in amdgpu_command_submission_compute_nop() local
651 memset(&ibs_request, 0, sizeof(struct amdgpu_cs_request)); in amdgpu_command_submission_compute_nop()
652 ibs_request.ip_type = AMDGPU_HW_IP_COMPUTE; in amdgpu_command_submission_compute_nop()
653 ibs_request.ring = instance; in amdgpu_command_submission_compute_nop()
654 ibs_request.number_of_ibs = 1; in amdgpu_command_submission_compute_nop()
655 ibs_request.ibs = &ib_info; in amdgpu_command_submission_compute_nop()
656 ibs_request.resources = bo_list; in amdgpu_command_submission_compute_nop()
657 ibs_request.fence_info.handle = NULL; in amdgpu_command_submission_compute_nop()
660 r = amdgpu_cs_submit(context_handle, 0,&ibs_request, 1); in amdgpu_command_submission_compute_nop()
667 fence_status.fence = ibs_request.seq_no; in amdgpu_command_submission_compute_nop()
723 struct amdgpu_cs_request *ibs_request) in amdgpu_test_exec_cs_helper() argument
739 CU_ASSERT_NOT_EQUAL(ibs_request, NULL); in amdgpu_test_exec_cs_helper()
756 ibs_request->ip_type = ip_type; in amdgpu_test_exec_cs_helper()
757 ibs_request->ring = instance; in amdgpu_test_exec_cs_helper()
758 ibs_request->number_of_ibs = 1; in amdgpu_test_exec_cs_helper()
759 ibs_request->ibs = ib_info; in amdgpu_test_exec_cs_helper()
760 ibs_request->fence_info.handle = NULL; in amdgpu_test_exec_cs_helper()
766 NULL, &ibs_request->resources); in amdgpu_test_exec_cs_helper()
769 CU_ASSERT_NOT_EQUAL(ibs_request, NULL); in amdgpu_test_exec_cs_helper()
772 r = amdgpu_cs_submit(context_handle, 0, ibs_request, 1); in amdgpu_test_exec_cs_helper()
775 r = amdgpu_bo_list_destroy(ibs_request->resources); in amdgpu_test_exec_cs_helper()
780 fence_status.ring = ibs_request->ring; in amdgpu_test_exec_cs_helper()
782 fence_status.fence = ibs_request->seq_no; in amdgpu_test_exec_cs_helper()
805 struct amdgpu_cs_request *ibs_request; in amdgpu_command_submission_write_linear_helper() local
818 ibs_request = calloc(1, sizeof(*ibs_request)); in amdgpu_command_submission_write_linear_helper()
819 CU_ASSERT_NOT_EQUAL(ibs_request, NULL); in amdgpu_command_submission_write_linear_helper()
868 ib_info, ibs_request); in amdgpu_command_submission_write_linear_helper()
883 free(ibs_request); in amdgpu_command_submission_write_linear_helper()
906 struct amdgpu_cs_request *ibs_request; in amdgpu_command_submission_const_fill_helper() local
919 ibs_request = calloc(1, sizeof(*ibs_request)); in amdgpu_command_submission_const_fill_helper()
920 CU_ASSERT_NOT_EQUAL(ibs_request, NULL); in amdgpu_command_submission_const_fill_helper()
971 ib_info, ibs_request); in amdgpu_command_submission_const_fill_helper()
986 free(ibs_request); in amdgpu_command_submission_const_fill_helper()
1009 struct amdgpu_cs_request *ibs_request; in amdgpu_command_submission_copy_linear_helper() local
1022 ibs_request = calloc(1, sizeof(*ibs_request)); in amdgpu_command_submission_copy_linear_helper()
1023 CU_ASSERT_NOT_EQUAL(ibs_request, NULL); in amdgpu_command_submission_copy_linear_helper()
1091 ib_info, ibs_request); in amdgpu_command_submission_copy_linear_helper()
1110 free(ibs_request); in amdgpu_command_submission_copy_linear_helper()
1142 struct amdgpu_cs_request *ibs_request; in amdgpu_userptr_test() local
1152 ibs_request = calloc(1, sizeof(*ibs_request)); in amdgpu_userptr_test()
1153 CU_ASSERT_NOT_EQUAL(ibs_request, NULL); in amdgpu_userptr_test()
1191 ib_info, ibs_request); in amdgpu_userptr_test()
1196 free(ibs_request); in amdgpu_userptr_test()