Lines Matching refs:ib

439 	struct amdgpu_ib *ib;  in amdgpu_vcn_dec_send_msg()  local
448 ib = &job->ibs[0]; in amdgpu_vcn_dec_send_msg()
450 ib->ptr[0] = PACKET0(adev->vcn.internal.data0, 0); in amdgpu_vcn_dec_send_msg()
451 ib->ptr[1] = addr; in amdgpu_vcn_dec_send_msg()
452 ib->ptr[2] = PACKET0(adev->vcn.internal.data1, 0); in amdgpu_vcn_dec_send_msg()
453 ib->ptr[3] = addr >> 32; in amdgpu_vcn_dec_send_msg()
454 ib->ptr[4] = PACKET0(adev->vcn.internal.cmd, 0); in amdgpu_vcn_dec_send_msg()
455 ib->ptr[5] = 0; in amdgpu_vcn_dec_send_msg()
457 ib->ptr[i] = PACKET0(adev->vcn.internal.nop, 0); in amdgpu_vcn_dec_send_msg()
458 ib->ptr[i+1] = 0; in amdgpu_vcn_dec_send_msg()
460 ib->length_dw = 16; in amdgpu_vcn_dec_send_msg()
606 struct amdgpu_ib *ib; in amdgpu_vcn_enc_get_create_msg() local
616 ib = &job->ibs[0]; in amdgpu_vcn_enc_get_create_msg()
619 ib->length_dw = 0; in amdgpu_vcn_enc_get_create_msg()
620 ib->ptr[ib->length_dw++] = 0x00000018; in amdgpu_vcn_enc_get_create_msg()
621 ib->ptr[ib->length_dw++] = 0x00000001; /* session info */ in amdgpu_vcn_enc_get_create_msg()
622 ib->ptr[ib->length_dw++] = handle; in amdgpu_vcn_enc_get_create_msg()
623 ib->ptr[ib->length_dw++] = upper_32_bits(addr); in amdgpu_vcn_enc_get_create_msg()
624 ib->ptr[ib->length_dw++] = addr; in amdgpu_vcn_enc_get_create_msg()
625 ib->ptr[ib->length_dw++] = 0x0000000b; in amdgpu_vcn_enc_get_create_msg()
627 ib->ptr[ib->length_dw++] = 0x00000014; in amdgpu_vcn_enc_get_create_msg()
628 ib->ptr[ib->length_dw++] = 0x00000002; /* task info */ in amdgpu_vcn_enc_get_create_msg()
629 ib->ptr[ib->length_dw++] = 0x0000001c; in amdgpu_vcn_enc_get_create_msg()
630 ib->ptr[ib->length_dw++] = 0x00000000; in amdgpu_vcn_enc_get_create_msg()
631 ib->ptr[ib->length_dw++] = 0x00000000; in amdgpu_vcn_enc_get_create_msg()
633 ib->ptr[ib->length_dw++] = 0x00000008; in amdgpu_vcn_enc_get_create_msg()
634 ib->ptr[ib->length_dw++] = 0x08000001; /* op initialize */ in amdgpu_vcn_enc_get_create_msg()
636 for (i = ib->length_dw; i < ib_size_dw; ++i) in amdgpu_vcn_enc_get_create_msg()
637 ib->ptr[i] = 0x0; in amdgpu_vcn_enc_get_create_msg()
660 struct amdgpu_ib *ib; in amdgpu_vcn_enc_get_destroy_msg() local
670 ib = &job->ibs[0]; in amdgpu_vcn_enc_get_destroy_msg()
673 ib->length_dw = 0; in amdgpu_vcn_enc_get_destroy_msg()
674 ib->ptr[ib->length_dw++] = 0x00000018; in amdgpu_vcn_enc_get_destroy_msg()
675 ib->ptr[ib->length_dw++] = 0x00000001; in amdgpu_vcn_enc_get_destroy_msg()
676 ib->ptr[ib->length_dw++] = handle; in amdgpu_vcn_enc_get_destroy_msg()
677 ib->ptr[ib->length_dw++] = upper_32_bits(addr); in amdgpu_vcn_enc_get_destroy_msg()
678 ib->ptr[ib->length_dw++] = addr; in amdgpu_vcn_enc_get_destroy_msg()
679 ib->ptr[ib->length_dw++] = 0x0000000b; in amdgpu_vcn_enc_get_destroy_msg()
681 ib->ptr[ib->length_dw++] = 0x00000014; in amdgpu_vcn_enc_get_destroy_msg()
682 ib->ptr[ib->length_dw++] = 0x00000002; in amdgpu_vcn_enc_get_destroy_msg()
683 ib->ptr[ib->length_dw++] = 0x0000001c; in amdgpu_vcn_enc_get_destroy_msg()
684 ib->ptr[ib->length_dw++] = 0x00000000; in amdgpu_vcn_enc_get_destroy_msg()
685 ib->ptr[ib->length_dw++] = 0x00000000; in amdgpu_vcn_enc_get_destroy_msg()
687 ib->ptr[ib->length_dw++] = 0x00000008; in amdgpu_vcn_enc_get_destroy_msg()
688 ib->ptr[ib->length_dw++] = 0x08000002; /* op close session */ in amdgpu_vcn_enc_get_destroy_msg()
690 for (i = ib->length_dw; i < ib_size_dw; ++i) in amdgpu_vcn_enc_get_destroy_msg()
691 ib->ptr[i] = 0x0; in amdgpu_vcn_enc_get_destroy_msg()