Searched refs:ib_cpu (Results 1 – 6 of 6) sorted by relevance
/third_party/libdrm/tests/amdgpu/ |
D | vce_tests.c | 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() [all …]
|
D | uvd_enc_tests.c | 67 static uint32_t *ib_cpu; variable 125 &ib_handle, (void**)&ib_cpu, in suite_uvd_enc_tests_init() 283 memcpy((ib_cpu + len), uve_session_info, sizeof(uve_session_info)); in amdgpu_cs_uvd_enc_session_init() 285 ib_cpu[len++] = enc.session.addr >> 32; in amdgpu_cs_uvd_enc_session_init() 286 ib_cpu[len++] = enc.session.addr; in amdgpu_cs_uvd_enc_session_init() 288 memcpy((ib_cpu + len), uve_task_info, sizeof(uve_task_info)); in amdgpu_cs_uvd_enc_session_init() 290 ib_cpu[len++] = 0x000000d8; in amdgpu_cs_uvd_enc_session_init() 291 ib_cpu[len++] = 0x00000000; in amdgpu_cs_uvd_enc_session_init() 292 ib_cpu[len++] = 0x00000000; in amdgpu_cs_uvd_enc_session_init() 294 memcpy((ib_cpu + len), uve_op_init, sizeof(uve_op_init)); in amdgpu_cs_uvd_enc_session_init() [all …]
|
D | vcn_tests.c | 69 static uint32_t *ib_cpu; variable 164 &ib_handle, (void**)&ib_cpu, in suite_vcn_tests_init() 285 ib_cpu[(*idx)++] = reg[vcn_reg_index].data0; in vcn_dec_cmd() 286 ib_cpu[(*idx)++] = addr; in vcn_dec_cmd() 287 ib_cpu[(*idx)++] = reg[vcn_reg_index].data1; in vcn_dec_cmd() 288 ib_cpu[(*idx)++] = addr >> 32; in vcn_dec_cmd() 289 ib_cpu[(*idx)++] = reg[vcn_reg_index].cmd; in vcn_dec_cmd() 290 ib_cpu[(*idx)++] = cmd << 1; in vcn_dec_cmd() 310 ib_cpu[len++] = reg[vcn_reg_index].data0; in amdgpu_cs_vcn_dec_create() 311 ib_cpu[len++] = msg_buf.addr; in amdgpu_cs_vcn_dec_create() [all …]
|
D | cs_tests.c | 48 static uint32_t *ib_cpu; variable 126 ib_cpu = ib_result_cpu; in suite_cs_tests_init() 197 ib_cpu[(*idx)++] = (family_id < AMDGPU_FAMILY_AI) ? 0x3BC4 : 0x81C4; in uvd_cmd() 198 ib_cpu[(*idx)++] = addr; in uvd_cmd() 199 ib_cpu[(*idx)++] = (family_id < AMDGPU_FAMILY_AI) ? 0x3BC5 : 0x81C5; in uvd_cmd() 200 ib_cpu[(*idx)++] = addr >> 32; in uvd_cmd() 201 ib_cpu[(*idx)++] = (family_id < AMDGPU_FAMILY_AI) ? 0x3BC3 : 0x81C3; in uvd_cmd() 202 ib_cpu[(*idx)++] = cmd << 1; in uvd_cmd() 258 ib_cpu[i] = 0x80000000; in amdgpu_cs_uvd_create() 390 ib_cpu[i++] = (family_id < AMDGPU_FAMILY_AI) ? 0x3BC6 : 0x81C6; in amdgpu_cs_uvd_decode() [all …]
|
D | cp_dma_tests.c | 53 static uint32_t *ib_cpu; variable 262 ib_cpu[0] = 0xc0055000; in cp_dma_cmd() 263 ib_cpu[1] = 0x80000000; in cp_dma_cmd() 264 ib_cpu[2] = src_bo.gpu_va & 0x00000000ffffffff; in cp_dma_cmd() 265 ib_cpu[3] = (src_bo.gpu_va & 0xffffffff00000000) >> 32; in cp_dma_cmd() 266 ib_cpu[4] = dst_bo.gpu_va & 0x00000000ffffffff; in cp_dma_cmd() 267 ib_cpu[5] = (dst_bo.gpu_va & 0xffffffff00000000) >> 32; in cp_dma_cmd() 269 ib_cpu[6] = ((1 << 26) - 1) & DMA_SIZE; in cp_dma_cmd() 270 ib_cpu[7] = 0xffff1000; in cp_dma_cmd() 440 &ib_handle, (void**)&ib_cpu, in suite_cp_dma_tests_init()
|
D | jpeg_tests.c | 134 static uint32_t *ib_cpu; variable 209 (void **)&ib_cpu, &ib_mc_address, &ib_va_handle); in suite_jpeg_tests_init() 325 ib_cpu[len++] = RDECODE_PKTJ(reg, cond, type); in set_reg_jpeg() 326 ib_cpu[len++] = val; in set_reg_jpeg()
|