Lines Matching refs:ib

349 	struct radeon_ib ib;  in radeon_vce_get_create_msg()  local
353 r = radeon_ib_get(rdev, ring, &ib, NULL, ib_size_dw * 4); in radeon_vce_get_create_msg()
359 dummy = ib.gpu_addr + 1024; in radeon_vce_get_create_msg()
362 ib.length_dw = 0; in radeon_vce_get_create_msg()
363 ib.ptr[ib.length_dw++] = cpu_to_le32(0x0000000c); /* len */ in radeon_vce_get_create_msg()
364 ib.ptr[ib.length_dw++] = cpu_to_le32(0x00000001); /* session cmd */ in radeon_vce_get_create_msg()
365 ib.ptr[ib.length_dw++] = cpu_to_le32(handle); in radeon_vce_get_create_msg()
367 ib.ptr[ib.length_dw++] = cpu_to_le32(0x00000030); /* len */ in radeon_vce_get_create_msg()
368 ib.ptr[ib.length_dw++] = cpu_to_le32(0x01000001); /* create cmd */ in radeon_vce_get_create_msg()
369 ib.ptr[ib.length_dw++] = cpu_to_le32(0x00000000); in radeon_vce_get_create_msg()
370 ib.ptr[ib.length_dw++] = cpu_to_le32(0x00000042); in radeon_vce_get_create_msg()
371 ib.ptr[ib.length_dw++] = cpu_to_le32(0x0000000a); in radeon_vce_get_create_msg()
372 ib.ptr[ib.length_dw++] = cpu_to_le32(0x00000001); in radeon_vce_get_create_msg()
373 ib.ptr[ib.length_dw++] = cpu_to_le32(0x00000080); in radeon_vce_get_create_msg()
374 ib.ptr[ib.length_dw++] = cpu_to_le32(0x00000060); in radeon_vce_get_create_msg()
375 ib.ptr[ib.length_dw++] = cpu_to_le32(0x00000100); in radeon_vce_get_create_msg()
376 ib.ptr[ib.length_dw++] = cpu_to_le32(0x00000100); in radeon_vce_get_create_msg()
377 ib.ptr[ib.length_dw++] = cpu_to_le32(0x0000000c); in radeon_vce_get_create_msg()
378 ib.ptr[ib.length_dw++] = cpu_to_le32(0x00000000); in radeon_vce_get_create_msg()
380 ib.ptr[ib.length_dw++] = cpu_to_le32(0x00000014); /* len */ in radeon_vce_get_create_msg()
381 ib.ptr[ib.length_dw++] = cpu_to_le32(0x05000005); /* feedback buffer */ in radeon_vce_get_create_msg()
382 ib.ptr[ib.length_dw++] = cpu_to_le32(upper_32_bits(dummy)); in radeon_vce_get_create_msg()
383 ib.ptr[ib.length_dw++] = cpu_to_le32(dummy); in radeon_vce_get_create_msg()
384 ib.ptr[ib.length_dw++] = cpu_to_le32(0x00000001); in radeon_vce_get_create_msg()
386 for (i = ib.length_dw; i < ib_size_dw; ++i) in radeon_vce_get_create_msg()
387 ib.ptr[i] = cpu_to_le32(0x0); in radeon_vce_get_create_msg()
389 r = radeon_ib_schedule(rdev, &ib, NULL, false); in radeon_vce_get_create_msg()
395 *fence = radeon_fence_ref(ib.fence); in radeon_vce_get_create_msg()
397 radeon_ib_free(rdev, &ib); in radeon_vce_get_create_msg()
416 struct radeon_ib ib; in radeon_vce_get_destroy_msg() local
420 r = radeon_ib_get(rdev, ring, &ib, NULL, ib_size_dw * 4); in radeon_vce_get_destroy_msg()
426 dummy = ib.gpu_addr + 1024; in radeon_vce_get_destroy_msg()
429 ib.length_dw = 0; in radeon_vce_get_destroy_msg()
430 ib.ptr[ib.length_dw++] = cpu_to_le32(0x0000000c); /* len */ in radeon_vce_get_destroy_msg()
431 ib.ptr[ib.length_dw++] = cpu_to_le32(0x00000001); /* session cmd */ in radeon_vce_get_destroy_msg()
432 ib.ptr[ib.length_dw++] = cpu_to_le32(handle); in radeon_vce_get_destroy_msg()
434 ib.ptr[ib.length_dw++] = cpu_to_le32(0x00000014); /* len */ in radeon_vce_get_destroy_msg()
435 ib.ptr[ib.length_dw++] = cpu_to_le32(0x05000005); /* feedback buffer */ in radeon_vce_get_destroy_msg()
436 ib.ptr[ib.length_dw++] = cpu_to_le32(upper_32_bits(dummy)); in radeon_vce_get_destroy_msg()
437 ib.ptr[ib.length_dw++] = cpu_to_le32(dummy); in radeon_vce_get_destroy_msg()
438 ib.ptr[ib.length_dw++] = cpu_to_le32(0x00000001); in radeon_vce_get_destroy_msg()
440 ib.ptr[ib.length_dw++] = cpu_to_le32(0x00000008); /* len */ in radeon_vce_get_destroy_msg()
441 ib.ptr[ib.length_dw++] = cpu_to_le32(0x02000001); /* destroy cmd */ in radeon_vce_get_destroy_msg()
443 for (i = ib.length_dw; i < ib_size_dw; ++i) in radeon_vce_get_destroy_msg()
444 ib.ptr[i] = cpu_to_le32(0x0); in radeon_vce_get_destroy_msg()
446 r = radeon_ib_schedule(rdev, &ib, NULL, false); in radeon_vce_get_destroy_msg()
452 *fence = radeon_fence_ref(ib.fence); in radeon_vce_get_destroy_msg()
454 radeon_ib_free(rdev, &ib); in radeon_vce_get_destroy_msg()
492 p->ib.ptr[lo] = start & 0xFFFFFFFF; in radeon_vce_cs_reloc()
493 p->ib.ptr[hi] = start >> 32; in radeon_vce_cs_reloc()
718 void radeon_vce_ib_execute(struct radeon_device *rdev, struct radeon_ib *ib) in radeon_vce_ib_execute() argument
720 struct radeon_ring *ring = &rdev->ring[ib->ring]; in radeon_vce_ib_execute()
722 radeon_ring_write(ring, cpu_to_le32(ib->gpu_addr)); in radeon_vce_ib_execute()
723 radeon_ring_write(ring, cpu_to_le32(upper_32_bits(ib->gpu_addr))); in radeon_vce_ib_execute()
724 radeon_ring_write(ring, cpu_to_le32(ib->length_dw)); in radeon_vce_ib_execute()