Lines Matching refs:ibs_request
243 struct amdgpu_cs_request *ibs_request) in amdgpu_cs_submit_one() argument
257 if (ibs_request->ip_type >= AMDGPU_HW_IP_NUM) in amdgpu_cs_submit_one()
259 if (ibs_request->ring >= AMDGPU_CS_MAX_RINGS) in amdgpu_cs_submit_one()
261 if (ibs_request->number_of_ibs == 0) { in amdgpu_cs_submit_one()
262 ibs_request->seq_no = AMDGPU_NULL_SUBMIT_SEQ; in amdgpu_cs_submit_one()
265 user_fence = (ibs_request->fence_info.handle != NULL); in amdgpu_cs_submit_one()
267 size = ibs_request->number_of_ibs + (user_fence ? 2 : 1) + 1; in amdgpu_cs_submit_one()
271 size = ibs_request->number_of_ibs + (user_fence ? 1 : 0); in amdgpu_cs_submit_one()
275 if (ibs_request->resources) in amdgpu_cs_submit_one()
276 bo_list_handle = ibs_request->resources->handle; in amdgpu_cs_submit_one()
277 num_chunks = ibs_request->number_of_ibs; in amdgpu_cs_submit_one()
279 for (i = 0; i < ibs_request->number_of_ibs; i++) { in amdgpu_cs_submit_one()
285 ib = &ibs_request->ibs[i]; in amdgpu_cs_submit_one()
290 chunk_data[i].ib_data.ip_type = ibs_request->ip_type; in amdgpu_cs_submit_one()
291 chunk_data[i].ib_data.ip_instance = ibs_request->ip_instance; in amdgpu_cs_submit_one()
292 chunk_data[i].ib_data.ring = ibs_request->ring; in amdgpu_cs_submit_one()
307 chunk_data[i].fence_data.handle = ibs_request->fence_info.handle->handle; in amdgpu_cs_submit_one()
310 ibs_request->fence_info.offset * sizeof(uint64_t); in amdgpu_cs_submit_one()
313 if (ibs_request->number_of_dependencies) { in amdgpu_cs_submit_one()
315 ibs_request->number_of_dependencies); in amdgpu_cs_submit_one()
321 for (i = 0; i < ibs_request->number_of_dependencies; ++i) { in amdgpu_cs_submit_one()
322 struct amdgpu_cs_fence *info = &ibs_request->dependencies[i]; in amdgpu_cs_submit_one()
336 * ibs_request->number_of_dependencies; in amdgpu_cs_submit_one()
340 sem_list = &context->sem_list[ibs_request->ip_type][ibs_request->ip_instance][ibs_request->ring]; in amdgpu_cs_submit_one()
376 ibs_request->seq_no = seq_no; in amdgpu_cs_submit_one()
377 …context->last_seq[ibs_request->ip_type][ibs_request->ip_instance][ibs_request->ring] = ibs_request… in amdgpu_cs_submit_one()
385 struct amdgpu_cs_request *ibs_request, in amdgpu_cs_submit() argument
391 if (!context || !ibs_request) in amdgpu_cs_submit()
396 r = amdgpu_cs_submit_one(context, ibs_request); in amdgpu_cs_submit()
399 ibs_request++; in amdgpu_cs_submit()