Lines Matching +full:0 +full:x00000042

98 	for (; size > 0; --size, ++c)  in radeon_vce_init()
99 if (strncmp(c, fw_version, strlen(fw_version)) == 0) in radeon_vce_init()
102 if (size == 0) in radeon_vce_init()
113 for (; size > 0; --size, ++c) in radeon_vce_init()
114 if (strncmp(c, fb_version, strlen(fb_version)) == 0) in radeon_vce_init()
117 if (size == 0) in radeon_vce_init()
131 (rdev->vce.fw_version != ((50 << 24) | (0 << 16) | (1 << 8))) && in radeon_vce_init()
142 RADEON_GEM_DOMAIN_VRAM, 0, NULL, NULL, in radeon_vce_init()
165 for (i = 0; i < RADEON_MAX_VCE_HANDLES; ++i) { in radeon_vce_init()
166 atomic_set(&rdev->vce.handles[i], 0); in radeon_vce_init()
170 return 0; in radeon_vce_init()
201 return 0; in radeon_vce_suspend()
203 for (i = 0; i < RADEON_MAX_VCE_HANDLES; ++i) in radeon_vce_suspend()
208 return 0; in radeon_vce_suspend()
241 memset(cpu_addr, 0, radeon_bo_size(rdev->vce.vcpu_bo)); in radeon_vce_resume()
266 if ((radeon_fence_count_emitted(rdev, TN_RING_TYPE_VCE1_INDEX) == 0) && in radeon_vce_idle_work_handler()
267 (radeon_fence_count_emitted(rdev, TN_RING_TYPE_VCE2_INDEX) == 0)) { in radeon_vce_idle_work_handler()
271 radeon_set_vce_clocks(rdev, 0, 0); in radeon_vce_idle_work_handler()
318 for (i = 0; i < RADEON_MAX_VCE_HANDLES; ++i) { in radeon_vce_free_handles()
331 atomic_set(&rdev->vce.handles[i], 0); in radeon_vce_free_handles()
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()
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()
384 ib.ptr[ib.length_dw++] = cpu_to_le32(0x00000001); in radeon_vce_get_create_msg()
387 ib.ptr[i] = cpu_to_le32(0x0); in radeon_vce_get_create_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()
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()
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()
444 ib.ptr[i] = cpu_to_le32(0x0); in radeon_vce_get_destroy_msg()
492 p->ib.ptr[lo] = start & 0xFFFFFFFF; in radeon_vce_cs_reloc()
505 return 0; in radeon_vce_cs_reloc()
526 for (i = 0; i < RADEON_MAX_VCE_HANDLES; ++i) { in radeon_vce_validate_handle()
537 for (i = 0; i < RADEON_MAX_VCE_HANDLES; ++i) { in radeon_vce_validate_handle()
538 if (!atomic_cmpxchg(&p->rdev->vce.handles[i], 0, handle)) { in radeon_vce_validate_handle()
540 p->rdev->vce.img_size[i] = 0; in radeon_vce_validate_handle()
560 uint32_t tmp, handle = 0; in radeon_vce_cs_parse()
562 int i, r = 0; in radeon_vce_cs_parse()
581 case 0x00000001: // session in radeon_vce_cs_parse()
585 if (session_idx < 0) in radeon_vce_cs_parse()
590 case 0x00000002: // task info in radeon_vce_cs_parse()
593 case 0x01000001: // create in radeon_vce_cs_parse()
606 case 0x04000001: // config extension in radeon_vce_cs_parse()
607 case 0x04000002: // pic control in radeon_vce_cs_parse()
608 case 0x04000005: // rate control in radeon_vce_cs_parse()
609 case 0x04000007: // motion estimation in radeon_vce_cs_parse()
610 case 0x04000008: // rdo in radeon_vce_cs_parse()
611 case 0x04000009: // vui in radeon_vce_cs_parse()
614 case 0x03000001: // encode in radeon_vce_cs_parse()
626 case 0x02000001: // destroy in radeon_vce_cs_parse()
630 case 0x05000001: // context buffer in radeon_vce_cs_parse()
637 case 0x05000004: // video bitstream buffer in radeon_vce_cs_parse()
645 case 0x05000005: // feedback buffer in radeon_vce_cs_parse()
653 DRM_ERROR("invalid VCE command (0x%x)!\n", cmd); in radeon_vce_cs_parse()
678 for (i = 0; i < RADEON_MAX_VCE_HANDLES; ++i) in radeon_vce_cs_parse()
679 atomic_cmpxchg(&p->rdev->vce.handles[i], handle, 0); in radeon_vce_cs_parse()
702 radeon_ring_write(ring, cpu_to_le32((addr >> 3) & 0x000FFFFF)); in radeon_vce_semaphore_emit()
703 radeon_ring_write(ring, cpu_to_le32((addr >> 23) & 0x000FFFFF)); in radeon_vce_semaphore_emit()
704 radeon_ring_write(ring, cpu_to_le32(0x01003000 | (emit_wait ? 1 : 0))); in radeon_vce_semaphore_emit()
770 for (i = 0; i < rdev->usec_timeout; i++) { in radeon_vce_ring_test()
814 if (r < 0) { in radeon_vce_ib_test()
816 } else if (r == 0) { in radeon_vce_ib_test()
821 r = 0; in radeon_vce_ib_test()