Lines Matching refs:ib_cpu
74 static uint32_t *ib_cpu; variable
115 &ib_handle, (void**)&ib_cpu, in suite_vce_tests_init()
248 memcpy(ib_cpu, vce_session, sizeof(vce_session)); in amdgpu_cs_vce_create()
250 memcpy((ib_cpu + len), vce_taskinfo, sizeof(vce_taskinfo)); in amdgpu_cs_vce_create()
252 memcpy((ib_cpu + len), vce_create, sizeof(vce_create)); in amdgpu_cs_vce_create()
254 memcpy((ib_cpu + len), vce_feedback, sizeof(vce_feedback)); in amdgpu_cs_vce_create()
255 ib_cpu[len + 2] = enc.fb[0].addr >> 32; in amdgpu_cs_vce_create()
256 ib_cpu[len + 3] = enc.fb[0].addr; in amdgpu_cs_vce_create()
269 memcpy((ib_cpu + len), vce_session, sizeof(vce_session)); in amdgpu_cs_vce_config()
271 memcpy((ib_cpu + len), vce_taskinfo, sizeof(vce_taskinfo)); in amdgpu_cs_vce_config()
272 ib_cpu[len + 3] = 2; in amdgpu_cs_vce_config()
273 ib_cpu[len + 6] = 0xffffffff; in amdgpu_cs_vce_config()
275 memcpy((ib_cpu + len), vce_rate_ctrl, sizeof(vce_rate_ctrl)); in amdgpu_cs_vce_config()
277 memcpy((ib_cpu + len), vce_config_ext, sizeof(vce_config_ext)); in amdgpu_cs_vce_config()
279 memcpy((ib_cpu + len), vce_motion_est, sizeof(vce_motion_est)); in amdgpu_cs_vce_config()
281 memcpy((ib_cpu + len), vce_rdo, sizeof(vce_rdo)); in amdgpu_cs_vce_config()
283 memcpy((ib_cpu + len), vce_pic_ctrl, sizeof(vce_pic_ctrl)); in amdgpu_cs_vce_config()
299 memcpy((ib_cpu + len), vce_session, sizeof(vce_session)); in amdgpu_cs_vce_encode_idr()
301 memcpy((ib_cpu + len), vce_taskinfo, sizeof(vce_taskinfo)); in amdgpu_cs_vce_encode_idr()
303 memcpy((ib_cpu + len), vce_bs_buffer, sizeof(vce_bs_buffer)); in amdgpu_cs_vce_encode_idr()
304 ib_cpu[len + 2] = enc->bs[0].addr >> 32; in amdgpu_cs_vce_encode_idr()
305 ib_cpu[len + 3] = enc->bs[0].addr; in amdgpu_cs_vce_encode_idr()
307 memcpy((ib_cpu + len), vce_context_buffer, sizeof(vce_context_buffer)); in amdgpu_cs_vce_encode_idr()
308 ib_cpu[len + 2] = enc->cpb.addr >> 32; in amdgpu_cs_vce_encode_idr()
309 ib_cpu[len + 3] = enc->cpb.addr; in amdgpu_cs_vce_encode_idr()
311 memcpy((ib_cpu + len), vce_aux_buffer, sizeof(vce_aux_buffer)); in amdgpu_cs_vce_encode_idr()
313 memcpy((ib_cpu + len), vce_feedback, sizeof(vce_feedback)); in amdgpu_cs_vce_encode_idr()
314 ib_cpu[len + 2] = enc->fb[0].addr >> 32; in amdgpu_cs_vce_encode_idr()
315 ib_cpu[len + 3] = enc->fb[0].addr; in amdgpu_cs_vce_encode_idr()
317 memcpy((ib_cpu + len), vce_encode, sizeof(vce_encode)); in amdgpu_cs_vce_encode_idr()
318 ib_cpu[len + 9] = luma_offset >> 32; in amdgpu_cs_vce_encode_idr()
319 ib_cpu[len + 10] = luma_offset; in amdgpu_cs_vce_encode_idr()
320 ib_cpu[len + 11] = chroma_offset >> 32; in amdgpu_cs_vce_encode_idr()
321 ib_cpu[len + 12] = chroma_offset; in amdgpu_cs_vce_encode_idr()
322 ib_cpu[len + 73] = 0x7800; in amdgpu_cs_vce_encode_idr()
323 ib_cpu[len + 74] = 0x7800 + 0x5000; in amdgpu_cs_vce_encode_idr()
342 memcpy((ib_cpu + len), vce_session, sizeof(vce_session)); in amdgpu_cs_vce_encode_p()
345 memcpy((ib_cpu + len), vce_taskinfo, sizeof(vce_taskinfo)); in amdgpu_cs_vce_encode_p()
347 memcpy((ib_cpu + len), vce_bs_buffer, sizeof(vce_bs_buffer)); in amdgpu_cs_vce_encode_p()
348 ib_cpu[len + 2] = enc->bs[1].addr >> 32; in amdgpu_cs_vce_encode_p()
349 ib_cpu[len + 3] = enc->bs[1].addr; in amdgpu_cs_vce_encode_p()
351 memcpy((ib_cpu + len), vce_context_buffer, sizeof(vce_context_buffer)); in amdgpu_cs_vce_encode_p()
352 ib_cpu[len + 2] = enc->cpb.addr >> 32; in amdgpu_cs_vce_encode_p()
353 ib_cpu[len + 3] = enc->cpb.addr; in amdgpu_cs_vce_encode_p()
355 memcpy((ib_cpu + len), vce_aux_buffer, sizeof(vce_aux_buffer)); in amdgpu_cs_vce_encode_p()
357 memcpy((ib_cpu + len), vce_feedback, sizeof(vce_feedback)); in amdgpu_cs_vce_encode_p()
358 ib_cpu[len + 2] = enc->fb[1].addr >> 32; in amdgpu_cs_vce_encode_p()
359 ib_cpu[len + 3] = enc->fb[1].addr; in amdgpu_cs_vce_encode_p()
361 memcpy((ib_cpu + len), vce_encode, sizeof(vce_encode)); in amdgpu_cs_vce_encode_p()
362 ib_cpu[len + 2] = 0; in amdgpu_cs_vce_encode_p()
363 ib_cpu[len + 9] = luma_offset >> 32; in amdgpu_cs_vce_encode_p()
364 ib_cpu[len + 10] = luma_offset; in amdgpu_cs_vce_encode_p()
365 ib_cpu[len + 11] = chroma_offset >> 32; in amdgpu_cs_vce_encode_p()
366 ib_cpu[len + 12] = chroma_offset; in amdgpu_cs_vce_encode_p()
367 ib_cpu[len + 18] = 0; in amdgpu_cs_vce_encode_p()
368 ib_cpu[len + 19] = 0; in amdgpu_cs_vce_encode_p()
369 ib_cpu[len + 56] = 3; in amdgpu_cs_vce_encode_p()
370 ib_cpu[len + 57] = 0; in amdgpu_cs_vce_encode_p()
371 ib_cpu[len + 58] = 0; in amdgpu_cs_vce_encode_p()
372 ib_cpu[len + 59] = 0x7800; in amdgpu_cs_vce_encode_p()
373 ib_cpu[len + 60] = 0x7800 + 0x5000; in amdgpu_cs_vce_encode_p()
374 ib_cpu[len + 73] = 0; in amdgpu_cs_vce_encode_p()
375 ib_cpu[len + 74] = 0x5000; in amdgpu_cs_vce_encode_p()
376 ib_cpu[len + 81] = 1; in amdgpu_cs_vce_encode_p()
377 ib_cpu[len + 82] = 1; in amdgpu_cs_vce_encode_p()
487 memcpy(ib_cpu, vce_session, sizeof(vce_session)); in amdgpu_cs_vce_destroy()
489 memcpy((ib_cpu + len), vce_taskinfo, sizeof(vce_taskinfo)); in amdgpu_cs_vce_destroy()
490 ib_cpu[len + 3] = 1; in amdgpu_cs_vce_destroy()
492 memcpy((ib_cpu + len), vce_feedback, sizeof(vce_feedback)); in amdgpu_cs_vce_destroy()
493 ib_cpu[len + 2] = enc.fb[0].addr >> 32; in amdgpu_cs_vce_destroy()
494 ib_cpu[len + 3] = enc.fb[0].addr; in amdgpu_cs_vce_destroy()
496 memcpy((ib_cpu + len), vce_destroy, sizeof(vce_destroy)); in amdgpu_cs_vce_destroy()