• Home
  • Raw
  • Download

Lines Matching refs:ib_cpu

78 static uint32_t *ib_cpu;  variable
167 &ib_handle, (void**)&ib_cpu, in suite_vce_tests_init()
301 memcpy(ib_cpu, vce_session, sizeof(vce_session)); in amdgpu_cs_vce_create()
303 memcpy((ib_cpu + len), vce_taskinfo, sizeof(vce_taskinfo)); in amdgpu_cs_vce_create()
305 memcpy((ib_cpu + len), vce_create, sizeof(vce_create)); in amdgpu_cs_vce_create()
306 ib_cpu[len + 8] = ALIGN(enc.width, align); in amdgpu_cs_vce_create()
307 ib_cpu[len + 9] = ALIGN(enc.width, align); in amdgpu_cs_vce_create()
310 ib_cpu[len + 11] = 0x01000001; in amdgpu_cs_vce_create()
312 ib_cpu[len + 11] = 0x01000201; in amdgpu_cs_vce_create()
315 memcpy((ib_cpu + len), vce_feedback, sizeof(vce_feedback)); in amdgpu_cs_vce_create()
316 ib_cpu[len + 2] = enc.fb[0].addr >> 32; in amdgpu_cs_vce_create()
317 ib_cpu[len + 3] = enc.fb[0].addr; in amdgpu_cs_vce_create()
330 memcpy((ib_cpu + len), vce_session, sizeof(vce_session)); in amdgpu_cs_vce_config()
332 memcpy((ib_cpu + len), vce_taskinfo, sizeof(vce_taskinfo)); in amdgpu_cs_vce_config()
333 ib_cpu[len + 3] = 2; in amdgpu_cs_vce_config()
334 ib_cpu[len + 6] = 0xffffffff; in amdgpu_cs_vce_config()
336 memcpy((ib_cpu + len), vce_rate_ctrl, sizeof(vce_rate_ctrl)); in amdgpu_cs_vce_config()
338 memcpy((ib_cpu + len), vce_config_ext, sizeof(vce_config_ext)); in amdgpu_cs_vce_config()
340 memcpy((ib_cpu + len), vce_motion_est, sizeof(vce_motion_est)); in amdgpu_cs_vce_config()
342 memcpy((ib_cpu + len), vce_rdo, sizeof(vce_rdo)); in amdgpu_cs_vce_config()
344 memcpy((ib_cpu + len), vce_pic_ctrl, sizeof(vce_pic_ctrl)); in amdgpu_cs_vce_config()
346 ib_cpu[len + 27] = 0x00000001; /* encSliceMode */ in amdgpu_cs_vce_config()
364 memcpy((ib_cpu + len), vce_session, sizeof(vce_session)); in amdgpu_cs_vce_encode_idr()
366 memcpy((ib_cpu + len), vce_taskinfo, sizeof(vce_taskinfo)); in amdgpu_cs_vce_encode_idr()
368 memcpy((ib_cpu + len), vce_bs_buffer, sizeof(vce_bs_buffer)); in amdgpu_cs_vce_encode_idr()
369 ib_cpu[len + 2] = enc->bs[0].addr >> 32; in amdgpu_cs_vce_encode_idr()
370 ib_cpu[len + 3] = enc->bs[0].addr; in amdgpu_cs_vce_encode_idr()
372 memcpy((ib_cpu + len), vce_context_buffer, sizeof(vce_context_buffer)); in amdgpu_cs_vce_encode_idr()
373 ib_cpu[len + 2] = enc->cpb.addr >> 32; in amdgpu_cs_vce_encode_idr()
374 ib_cpu[len + 3] = enc->cpb.addr; in amdgpu_cs_vce_encode_idr()
376 memcpy((ib_cpu + len), vce_aux_buffer, sizeof(vce_aux_buffer)); in amdgpu_cs_vce_encode_idr()
378 ib_cpu[len + 2 + i] = luma_size * 1.5 * (i + 2); in amdgpu_cs_vce_encode_idr()
380 ib_cpu[len + 10 + i] = luma_size * 1.5; in amdgpu_cs_vce_encode_idr()
382 memcpy((ib_cpu + len), vce_feedback, sizeof(vce_feedback)); in amdgpu_cs_vce_encode_idr()
383 ib_cpu[len + 2] = enc->fb[0].addr >> 32; in amdgpu_cs_vce_encode_idr()
384 ib_cpu[len + 3] = enc->fb[0].addr; in amdgpu_cs_vce_encode_idr()
386 memcpy((ib_cpu + len), vce_encode, sizeof(vce_encode)); in amdgpu_cs_vce_encode_idr()
387 ib_cpu[len + 9] = luma_offset >> 32; in amdgpu_cs_vce_encode_idr()
388 ib_cpu[len + 10] = luma_offset; in amdgpu_cs_vce_encode_idr()
389 ib_cpu[len + 11] = chroma_offset >> 32; in amdgpu_cs_vce_encode_idr()
390 ib_cpu[len + 12] = chroma_offset; in amdgpu_cs_vce_encode_idr()
391 ib_cpu[len + 14] = ALIGN(enc->width, align); in amdgpu_cs_vce_encode_idr()
392 ib_cpu[len + 15] = ALIGN(enc->width, align); in amdgpu_cs_vce_encode_idr()
393 ib_cpu[len + 73] = luma_size * 1.5; in amdgpu_cs_vce_encode_idr()
394 ib_cpu[len + 74] = luma_size * 2.5; in amdgpu_cs_vce_encode_idr()
415 memcpy((ib_cpu + len), vce_session, sizeof(vce_session)); in amdgpu_cs_vce_encode_p()
418 memcpy((ib_cpu + len), vce_taskinfo, sizeof(vce_taskinfo)); in amdgpu_cs_vce_encode_p()
420 memcpy((ib_cpu + len), vce_bs_buffer, sizeof(vce_bs_buffer)); in amdgpu_cs_vce_encode_p()
421 ib_cpu[len + 2] = enc->bs[1].addr >> 32; in amdgpu_cs_vce_encode_p()
422 ib_cpu[len + 3] = enc->bs[1].addr; in amdgpu_cs_vce_encode_p()
424 memcpy((ib_cpu + len), vce_context_buffer, sizeof(vce_context_buffer)); in amdgpu_cs_vce_encode_p()
425 ib_cpu[len + 2] = enc->cpb.addr >> 32; in amdgpu_cs_vce_encode_p()
426 ib_cpu[len + 3] = enc->cpb.addr; in amdgpu_cs_vce_encode_p()
428 memcpy((ib_cpu + len), vce_aux_buffer, sizeof(vce_aux_buffer)); in amdgpu_cs_vce_encode_p()
430 ib_cpu[len + 2 + i] = luma_size * 1.5 * (i + 2); in amdgpu_cs_vce_encode_p()
432 ib_cpu[len + 10 + i] = luma_size * 1.5; in amdgpu_cs_vce_encode_p()
434 memcpy((ib_cpu + len), vce_feedback, sizeof(vce_feedback)); in amdgpu_cs_vce_encode_p()
435 ib_cpu[len + 2] = enc->fb[1].addr >> 32; in amdgpu_cs_vce_encode_p()
436 ib_cpu[len + 3] = enc->fb[1].addr; in amdgpu_cs_vce_encode_p()
438 memcpy((ib_cpu + len), vce_encode, sizeof(vce_encode)); in amdgpu_cs_vce_encode_p()
439 ib_cpu[len + 2] = 0; in amdgpu_cs_vce_encode_p()
440 ib_cpu[len + 9] = luma_offset >> 32; in amdgpu_cs_vce_encode_p()
441 ib_cpu[len + 10] = luma_offset; in amdgpu_cs_vce_encode_p()
442 ib_cpu[len + 11] = chroma_offset >> 32; in amdgpu_cs_vce_encode_p()
443 ib_cpu[len + 12] = chroma_offset; in amdgpu_cs_vce_encode_p()
444 ib_cpu[len + 14] = ALIGN(enc->width, align); in amdgpu_cs_vce_encode_p()
445 ib_cpu[len + 15] = ALIGN(enc->width, align); in amdgpu_cs_vce_encode_p()
446 ib_cpu[len + 18] = 0; in amdgpu_cs_vce_encode_p()
447 ib_cpu[len + 19] = 0; in amdgpu_cs_vce_encode_p()
448 ib_cpu[len + 56] = 3; in amdgpu_cs_vce_encode_p()
449 ib_cpu[len + 57] = 0; in amdgpu_cs_vce_encode_p()
450 ib_cpu[len + 58] = 0; in amdgpu_cs_vce_encode_p()
451 ib_cpu[len + 59] = luma_size * 1.5; in amdgpu_cs_vce_encode_p()
452 ib_cpu[len + 60] = luma_size * 2.5; in amdgpu_cs_vce_encode_p()
453 ib_cpu[len + 73] = 0; in amdgpu_cs_vce_encode_p()
454 ib_cpu[len + 74] = luma_size; in amdgpu_cs_vce_encode_p()
455 ib_cpu[len + 81] = 1; in amdgpu_cs_vce_encode_p()
456 ib_cpu[len + 82] = 1; in amdgpu_cs_vce_encode_p()
579 memcpy((ib_cpu + len), vce_session, sizeof(vce_session)); in amdgpu_cs_vce_mv()
581 memcpy((ib_cpu + len), vce_taskinfo, sizeof(vce_taskinfo)); in amdgpu_cs_vce_mv()
583 memcpy((ib_cpu + len), vce_bs_buffer, sizeof(vce_bs_buffer)); in amdgpu_cs_vce_mv()
584 ib_cpu[len + 2] = enc->bs[0].addr >> 32; in amdgpu_cs_vce_mv()
585 ib_cpu[len + 3] = enc->bs[0].addr; in amdgpu_cs_vce_mv()
587 memcpy((ib_cpu + len), vce_context_buffer, sizeof(vce_context_buffer)); in amdgpu_cs_vce_mv()
588 ib_cpu[len + 2] = enc->cpb.addr >> 32; in amdgpu_cs_vce_mv()
589 ib_cpu[len + 3] = enc->cpb.addr; in amdgpu_cs_vce_mv()
591 memcpy((ib_cpu + len), vce_aux_buffer, sizeof(vce_aux_buffer)); in amdgpu_cs_vce_mv()
593 ib_cpu[len + 2 + i] = luma_size * 1.5 * (i + 2); in amdgpu_cs_vce_mv()
595 ib_cpu[len + 10 + i] = luma_size * 1.5; in amdgpu_cs_vce_mv()
597 memcpy((ib_cpu + len), vce_feedback, sizeof(vce_feedback)); in amdgpu_cs_vce_mv()
598 ib_cpu[len + 2] = enc->fb[0].addr >> 32; in amdgpu_cs_vce_mv()
599 ib_cpu[len + 3] = enc->fb[0].addr; in amdgpu_cs_vce_mv()
601 memcpy((ib_cpu + len), vce_mv_buffer, sizeof(vce_mv_buffer)); in amdgpu_cs_vce_mv()
602 ib_cpu[len + 2] = mv_ref_luma_offset >> 32; in amdgpu_cs_vce_mv()
603 ib_cpu[len + 3] = mv_ref_luma_offset; in amdgpu_cs_vce_mv()
604 ib_cpu[len + 4] = ALIGN(enc->width, align); in amdgpu_cs_vce_mv()
605 ib_cpu[len + 5] = ALIGN(enc->width, align); in amdgpu_cs_vce_mv()
606 ib_cpu[len + 6] = luma_size; in amdgpu_cs_vce_mv()
607 ib_cpu[len + 7] = enc->mvb.addr >> 32; in amdgpu_cs_vce_mv()
608 ib_cpu[len + 8] = enc->mvb.addr; in amdgpu_cs_vce_mv()
610 memcpy((ib_cpu + len), vce_encode, sizeof(vce_encode)); in amdgpu_cs_vce_mv()
611 ib_cpu[len + 2] = 0; in amdgpu_cs_vce_mv()
612 ib_cpu[len + 3] = 0; in amdgpu_cs_vce_mv()
613 ib_cpu[len + 4] = 0x154000; in amdgpu_cs_vce_mv()
614 ib_cpu[len + 9] = luma_offset >> 32; in amdgpu_cs_vce_mv()
615 ib_cpu[len + 10] = luma_offset; in amdgpu_cs_vce_mv()
616 ib_cpu[len + 11] = chroma_offset >> 32; in amdgpu_cs_vce_mv()
617 ib_cpu[len + 12] = chroma_offset; in amdgpu_cs_vce_mv()
618 ib_cpu[len + 13] = ALIGN(enc->height, 16);; in amdgpu_cs_vce_mv()
619 ib_cpu[len + 14] = ALIGN(enc->width, align); in amdgpu_cs_vce_mv()
620 ib_cpu[len + 15] = ALIGN(enc->width, align); in amdgpu_cs_vce_mv()
622 ib_cpu[len + 16] = 0x01010000; in amdgpu_cs_vce_mv()
623 ib_cpu[len + 18] = 0; /* encPicType */ in amdgpu_cs_vce_mv()
624 ib_cpu[len + 19] = 0; /* encIdrFlag */ in amdgpu_cs_vce_mv()
625 ib_cpu[len + 20] = 0; /* encIdrPicId */ in amdgpu_cs_vce_mv()
626 ib_cpu[len + 21] = 0; /* encMGSKeyPic */ in amdgpu_cs_vce_mv()
627 ib_cpu[len + 22] = 0; /* encReferenceFlag */ in amdgpu_cs_vce_mv()
628 ib_cpu[len + 23] = 0; /* encTemporalLayerIndex */ in amdgpu_cs_vce_mv()
629 ib_cpu[len + 55] = 0; /* pictureStructure */ in amdgpu_cs_vce_mv()
630 ib_cpu[len + 56] = 0; /* encPicType -ref[0] */ in amdgpu_cs_vce_mv()
631 ib_cpu[len + 61] = 0; /* pictureStructure */ in amdgpu_cs_vce_mv()
632 ib_cpu[len + 62] = 0; /* encPicType -ref[1] */ in amdgpu_cs_vce_mv()
633 ib_cpu[len + 67] = 0; /* pictureStructure */ in amdgpu_cs_vce_mv()
634 ib_cpu[len + 68] = 0; /* encPicType -ref1 */ in amdgpu_cs_vce_mv()
635 ib_cpu[len + 81] = 1; /* frameNumber */ in amdgpu_cs_vce_mv()
636 ib_cpu[len + 82] = 2; /* pictureOrderCount */ in amdgpu_cs_vce_mv()
637 ib_cpu[len + 83] = 0xffffffff; /* numIPicRemainInRCGOP */ in amdgpu_cs_vce_mv()
638 ib_cpu[len + 84] = 0xffffffff; /* numPPicRemainInRCGOP */ in amdgpu_cs_vce_mv()
639 ib_cpu[len + 85] = 0xffffffff; /* numBPicRemainInRCGOP */ in amdgpu_cs_vce_mv()
640 ib_cpu[len + 86] = 0xffffffff; /* numIRPicRemainInRCGOP */ in amdgpu_cs_vce_mv()
641 ib_cpu[len + 87] = 0; /* remainedIntraRefreshPictures */ in amdgpu_cs_vce_mv()
749 memcpy(ib_cpu, vce_session, sizeof(vce_session)); in amdgpu_cs_vce_destroy()
751 memcpy((ib_cpu + len), vce_taskinfo, sizeof(vce_taskinfo)); in amdgpu_cs_vce_destroy()
752 ib_cpu[len + 3] = 1; in amdgpu_cs_vce_destroy()
754 memcpy((ib_cpu + len), vce_feedback, sizeof(vce_feedback)); in amdgpu_cs_vce_destroy()
755 ib_cpu[len + 2] = enc.fb[0].addr >> 32; in amdgpu_cs_vce_destroy()
756 ib_cpu[len + 3] = enc.fb[0].addr; in amdgpu_cs_vce_destroy()
758 memcpy((ib_cpu + len), vce_destroy, sizeof(vce_destroy)); in amdgpu_cs_vce_destroy()