Lines Matching refs:ib
449 struct amdgpu_ib *ib; in amdgpu_vce_get_create_msg() local
459 ib = &job->ibs[0]; in amdgpu_vce_get_create_msg()
464 ib->length_dw = 0; in amdgpu_vce_get_create_msg()
465 ib->ptr[ib->length_dw++] = 0x0000000c; /* len */ in amdgpu_vce_get_create_msg()
466 ib->ptr[ib->length_dw++] = 0x00000001; /* session cmd */ in amdgpu_vce_get_create_msg()
467 ib->ptr[ib->length_dw++] = handle; in amdgpu_vce_get_create_msg()
470 ib->ptr[ib->length_dw++] = 0x00000040; /* len */ in amdgpu_vce_get_create_msg()
472 ib->ptr[ib->length_dw++] = 0x00000030; /* len */ in amdgpu_vce_get_create_msg()
473 ib->ptr[ib->length_dw++] = 0x01000001; /* create cmd */ in amdgpu_vce_get_create_msg()
474 ib->ptr[ib->length_dw++] = 0x00000000; in amdgpu_vce_get_create_msg()
475 ib->ptr[ib->length_dw++] = 0x00000042; in amdgpu_vce_get_create_msg()
476 ib->ptr[ib->length_dw++] = 0x0000000a; in amdgpu_vce_get_create_msg()
477 ib->ptr[ib->length_dw++] = 0x00000001; in amdgpu_vce_get_create_msg()
478 ib->ptr[ib->length_dw++] = 0x00000080; in amdgpu_vce_get_create_msg()
479 ib->ptr[ib->length_dw++] = 0x00000060; in amdgpu_vce_get_create_msg()
480 ib->ptr[ib->length_dw++] = 0x00000100; in amdgpu_vce_get_create_msg()
481 ib->ptr[ib->length_dw++] = 0x00000100; in amdgpu_vce_get_create_msg()
482 ib->ptr[ib->length_dw++] = 0x0000000c; in amdgpu_vce_get_create_msg()
483 ib->ptr[ib->length_dw++] = 0x00000000; in amdgpu_vce_get_create_msg()
485 ib->ptr[ib->length_dw++] = 0x00000000; in amdgpu_vce_get_create_msg()
486 ib->ptr[ib->length_dw++] = 0x00000000; in amdgpu_vce_get_create_msg()
487 ib->ptr[ib->length_dw++] = 0x00000000; in amdgpu_vce_get_create_msg()
488 ib->ptr[ib->length_dw++] = 0x00000000; in amdgpu_vce_get_create_msg()
491 ib->ptr[ib->length_dw++] = 0x00000014; /* len */ in amdgpu_vce_get_create_msg()
492 ib->ptr[ib->length_dw++] = 0x05000005; /* feedback buffer */ in amdgpu_vce_get_create_msg()
493 ib->ptr[ib->length_dw++] = upper_32_bits(addr); in amdgpu_vce_get_create_msg()
494 ib->ptr[ib->length_dw++] = addr; in amdgpu_vce_get_create_msg()
495 ib->ptr[ib->length_dw++] = 0x00000001; in amdgpu_vce_get_create_msg()
497 for (i = ib->length_dw; i < ib_size_dw; ++i) in amdgpu_vce_get_create_msg()
498 ib->ptr[i] = 0x0; in amdgpu_vce_get_create_msg()
529 struct amdgpu_ib *ib; in amdgpu_vce_get_destroy_msg() local
539 ib = &job->ibs[0]; in amdgpu_vce_get_destroy_msg()
542 ib->length_dw = 0; in amdgpu_vce_get_destroy_msg()
543 ib->ptr[ib->length_dw++] = 0x0000000c; /* len */ in amdgpu_vce_get_destroy_msg()
544 ib->ptr[ib->length_dw++] = 0x00000001; /* session cmd */ in amdgpu_vce_get_destroy_msg()
545 ib->ptr[ib->length_dw++] = handle; in amdgpu_vce_get_destroy_msg()
547 ib->ptr[ib->length_dw++] = 0x00000020; /* len */ in amdgpu_vce_get_destroy_msg()
548 ib->ptr[ib->length_dw++] = 0x00000002; /* task info */ in amdgpu_vce_get_destroy_msg()
549 ib->ptr[ib->length_dw++] = 0xffffffff; /* next task info, set to 0xffffffff if no */ in amdgpu_vce_get_destroy_msg()
550 ib->ptr[ib->length_dw++] = 0x00000001; /* destroy session */ in amdgpu_vce_get_destroy_msg()
551 ib->ptr[ib->length_dw++] = 0x00000000; in amdgpu_vce_get_destroy_msg()
552 ib->ptr[ib->length_dw++] = 0x00000000; in amdgpu_vce_get_destroy_msg()
553 …ib->ptr[ib->length_dw++] = 0xffffffff; /* feedback is not needed, set to 0xffffffff and firmware w… in amdgpu_vce_get_destroy_msg()
554 ib->ptr[ib->length_dw++] = 0x00000000; in amdgpu_vce_get_destroy_msg()
556 ib->ptr[ib->length_dw++] = 0x00000008; /* len */ in amdgpu_vce_get_destroy_msg()
557 ib->ptr[ib->length_dw++] = 0x02000001; /* destroy cmd */ in amdgpu_vce_get_destroy_msg()
559 for (i = ib->length_dw; i < ib_size_dw; ++i) in amdgpu_vce_get_destroy_msg()
560 ib->ptr[i] = 0x0; in amdgpu_vce_get_destroy_msg()
729 struct amdgpu_ib *ib = &p->job->ibs[ib_idx]; in amdgpu_vce_ring_parse_cs() local
741 ib->gpu_addr = amdgpu_sa_bo_gpu_addr(ib->sa_bo); in amdgpu_vce_ring_parse_cs()
743 for (idx = 0; idx < ib->length_dw;) { in amdgpu_vce_ring_parse_cs()
809 for (idx = 0; idx < ib->length_dw;) { in amdgpu_vce_ring_parse_cs()
965 struct amdgpu_ib *ib = &p->job->ibs[ib_idx]; in amdgpu_vce_ring_parse_cs_vm() local
973 while (idx < ib->length_dw) { in amdgpu_vce_ring_parse_cs_vm()
1034 amdgpu_ib_free(p->adev, ib, NULL); in amdgpu_vce_ring_parse_cs_vm()
1058 struct amdgpu_ib *ib, in amdgpu_vce_ring_emit_ib() argument
1062 amdgpu_ring_write(ring, lower_32_bits(ib->gpu_addr)); in amdgpu_vce_ring_emit_ib()
1063 amdgpu_ring_write(ring, upper_32_bits(ib->gpu_addr)); in amdgpu_vce_ring_emit_ib()
1064 amdgpu_ring_write(ring, ib->length_dw); in amdgpu_vce_ring_emit_ib()