• Home
  • Raw
  • Download

Lines Matching refs:pm4

530 	uint32_t *pm4;  in amdgpu_bo_eviction_test()  local
540 pm4 = calloc(pm4_dw, sizeof(*pm4)); in amdgpu_bo_eviction_test()
541 CU_ASSERT_NOT_EQUAL(pm4, NULL); in amdgpu_bo_eviction_test()
616 pm4[i++] = SDMA_PACKET_SI(SDMA_OPCODE_COPY_SI, 0, 0, 0, in amdgpu_bo_eviction_test()
618 pm4[i++] = 0xffffffff & bo2_mc; in amdgpu_bo_eviction_test()
619 pm4[i++] = 0xffffffff & bo1_mc; in amdgpu_bo_eviction_test()
620 pm4[i++] = (0xffffffff00000000 & bo2_mc) >> 32; in amdgpu_bo_eviction_test()
621 pm4[i++] = (0xffffffff00000000 & bo1_mc) >> 32; in amdgpu_bo_eviction_test()
623 pm4[i++] = SDMA_PACKET(SDMA_OPCODE_COPY, SDMA_COPY_SUB_OPCODE_LINEAR, 0); in amdgpu_bo_eviction_test()
625 pm4[i++] = sdma_write_length - 1; in amdgpu_bo_eviction_test()
627 pm4[i++] = sdma_write_length; in amdgpu_bo_eviction_test()
628 pm4[i++] = 0; in amdgpu_bo_eviction_test()
629 pm4[i++] = 0xffffffff & bo1_mc; in amdgpu_bo_eviction_test()
630 pm4[i++] = (0xffffffff00000000 & bo1_mc) >> 32; in amdgpu_bo_eviction_test()
631 pm4[i++] = 0xffffffff & bo2_mc; in amdgpu_bo_eviction_test()
632 pm4[i++] = (0xffffffff00000000 & bo2_mc) >> 32; in amdgpu_bo_eviction_test()
637 i, pm4, in amdgpu_bo_eviction_test()
665 free(pm4); in amdgpu_bo_eviction_test()
1020 uint32_t *pm4; in amdgpu_command_submission_write_linear_helper() local
1030 pm4 = calloc(pm4_dw, sizeof(*pm4)); in amdgpu_command_submission_write_linear_helper()
1031 CU_ASSERT_NOT_EQUAL(pm4, NULL); in amdgpu_command_submission_write_linear_helper()
1069 pm4[i++] = SDMA_PACKET_SI(SDMA_OPCODE_WRITE, 0, 0, 0, in amdgpu_command_submission_write_linear_helper()
1072 pm4[i++] = SDMA_PACKET(SDMA_OPCODE_WRITE, in amdgpu_command_submission_write_linear_helper()
1074 pm4[i++] = 0xffffffff & bo_mc; in amdgpu_command_submission_write_linear_helper()
1075 pm4[i++] = (0xffffffff00000000 & bo_mc) >> 32; in amdgpu_command_submission_write_linear_helper()
1077 pm4[i++] = sdma_write_length - 1; in amdgpu_command_submission_write_linear_helper()
1079 pm4[i++] = sdma_write_length; in amdgpu_command_submission_write_linear_helper()
1081 pm4[i++] = 0xdeadbeaf; in amdgpu_command_submission_write_linear_helper()
1084 pm4[i++] = PACKET3(PACKET3_WRITE_DATA, 2 + sdma_write_length); in amdgpu_command_submission_write_linear_helper()
1085 pm4[i++] = WRITE_DATA_DST_SEL(5) | WR_CONFIRM; in amdgpu_command_submission_write_linear_helper()
1086 pm4[i++] = 0xfffffffc & bo_mc; in amdgpu_command_submission_write_linear_helper()
1087 pm4[i++] = (0xffffffff00000000 & bo_mc) >> 32; in amdgpu_command_submission_write_linear_helper()
1089 pm4[i++] = 0xdeadbeaf; in amdgpu_command_submission_write_linear_helper()
1094 i, pm4, in amdgpu_command_submission_write_linear_helper()
1114 free(pm4); in amdgpu_command_submission_write_linear_helper()
1133 uint32_t *pm4; in amdgpu_command_submission_const_fill_helper() local
1143 pm4 = calloc(pm4_dw, sizeof(*pm4)); in amdgpu_command_submission_const_fill_helper()
1144 CU_ASSERT_NOT_EQUAL(pm4, NULL); in amdgpu_command_submission_const_fill_helper()
1182 pm4[i++] = SDMA_PACKET_SI(SDMA_OPCODE_CONSTANT_FILL_SI, in amdgpu_command_submission_const_fill_helper()
1185 pm4[i++] = 0xfffffffc & bo_mc; in amdgpu_command_submission_const_fill_helper()
1186 pm4[i++] = 0xdeadbeaf; in amdgpu_command_submission_const_fill_helper()
1187 pm4[i++] = (0xffffffff00000000 & bo_mc) >> 16; in amdgpu_command_submission_const_fill_helper()
1189 pm4[i++] = SDMA_PACKET(SDMA_OPCODE_CONSTANT_FILL, 0, in amdgpu_command_submission_const_fill_helper()
1191 pm4[i++] = 0xffffffff & bo_mc; in amdgpu_command_submission_const_fill_helper()
1192 pm4[i++] = (0xffffffff00000000 & bo_mc) >> 32; in amdgpu_command_submission_const_fill_helper()
1193 pm4[i++] = 0xdeadbeaf; in amdgpu_command_submission_const_fill_helper()
1195 pm4[i++] = sdma_write_length - 1; in amdgpu_command_submission_const_fill_helper()
1197 pm4[i++] = sdma_write_length; in amdgpu_command_submission_const_fill_helper()
1202 pm4[i++] = PACKET3(PACKET3_DMA_DATA_SI, 4); in amdgpu_command_submission_const_fill_helper()
1203 pm4[i++] = 0xdeadbeaf; in amdgpu_command_submission_const_fill_helper()
1204 pm4[i++] = PACKET3_DMA_DATA_SI_ENGINE(0) | in amdgpu_command_submission_const_fill_helper()
1208 pm4[i++] = 0xffffffff & bo_mc; in amdgpu_command_submission_const_fill_helper()
1209 pm4[i++] = (0xffffffff00000000 & bo_mc) >> 32; in amdgpu_command_submission_const_fill_helper()
1210 pm4[i++] = sdma_write_length; in amdgpu_command_submission_const_fill_helper()
1212 pm4[i++] = PACKET3(PACKET3_DMA_DATA, 5); in amdgpu_command_submission_const_fill_helper()
1213 pm4[i++] = PACKET3_DMA_DATA_ENGINE(0) | in amdgpu_command_submission_const_fill_helper()
1217 pm4[i++] = 0xdeadbeaf; in amdgpu_command_submission_const_fill_helper()
1218 pm4[i++] = 0; in amdgpu_command_submission_const_fill_helper()
1219 pm4[i++] = 0xfffffffc & bo_mc; in amdgpu_command_submission_const_fill_helper()
1220 pm4[i++] = (0xffffffff00000000 & bo_mc) >> 32; in amdgpu_command_submission_const_fill_helper()
1221 pm4[i++] = sdma_write_length; in amdgpu_command_submission_const_fill_helper()
1227 i, pm4, in amdgpu_command_submission_const_fill_helper()
1247 free(pm4); in amdgpu_command_submission_const_fill_helper()
1266 uint32_t *pm4; in amdgpu_command_submission_copy_linear_helper() local
1276 pm4 = calloc(pm4_dw, sizeof(*pm4)); in amdgpu_command_submission_copy_linear_helper()
1277 CU_ASSERT_NOT_EQUAL(pm4, NULL); in amdgpu_command_submission_copy_linear_helper()
1331 pm4[i++] = SDMA_PACKET_SI(SDMA_OPCODE_COPY_SI, in amdgpu_command_submission_copy_linear_helper()
1334 pm4[i++] = 0xffffffff & bo2_mc; in amdgpu_command_submission_copy_linear_helper()
1335 pm4[i++] = 0xffffffff & bo1_mc; in amdgpu_command_submission_copy_linear_helper()
1336 pm4[i++] = (0xffffffff00000000 & bo2_mc) >> 32; in amdgpu_command_submission_copy_linear_helper()
1337 pm4[i++] = (0xffffffff00000000 & bo1_mc) >> 32; in amdgpu_command_submission_copy_linear_helper()
1339 pm4[i++] = SDMA_PACKET(SDMA_OPCODE_COPY, in amdgpu_command_submission_copy_linear_helper()
1343 pm4[i++] = sdma_write_length - 1; in amdgpu_command_submission_copy_linear_helper()
1345 pm4[i++] = sdma_write_length; in amdgpu_command_submission_copy_linear_helper()
1346 pm4[i++] = 0; in amdgpu_command_submission_copy_linear_helper()
1347 pm4[i++] = 0xffffffff & bo1_mc; in amdgpu_command_submission_copy_linear_helper()
1348 pm4[i++] = (0xffffffff00000000 & bo1_mc) >> 32; in amdgpu_command_submission_copy_linear_helper()
1349 pm4[i++] = 0xffffffff & bo2_mc; in amdgpu_command_submission_copy_linear_helper()
1350 pm4[i++] = (0xffffffff00000000 & bo2_mc) >> 32; in amdgpu_command_submission_copy_linear_helper()
1355 pm4[i++] = PACKET3(PACKET3_DMA_DATA_SI, 4); in amdgpu_command_submission_copy_linear_helper()
1356 pm4[i++] = 0xfffffffc & bo1_mc; in amdgpu_command_submission_copy_linear_helper()
1357 pm4[i++] = PACKET3_DMA_DATA_SI_ENGINE(0) | in amdgpu_command_submission_copy_linear_helper()
1362 pm4[i++] = 0xfffffffc & bo2_mc; in amdgpu_command_submission_copy_linear_helper()
1363 pm4[i++] = (0xffffffff00000000 & bo2_mc) >> 32; in amdgpu_command_submission_copy_linear_helper()
1364 pm4[i++] = sdma_write_length; in amdgpu_command_submission_copy_linear_helper()
1366 pm4[i++] = PACKET3(PACKET3_DMA_DATA, 5); in amdgpu_command_submission_copy_linear_helper()
1367 pm4[i++] = PACKET3_DMA_DATA_ENGINE(0) | in amdgpu_command_submission_copy_linear_helper()
1371 pm4[i++] = 0xfffffffc & bo1_mc; in amdgpu_command_submission_copy_linear_helper()
1372 pm4[i++] = (0xffffffff00000000 & bo1_mc) >> 32; in amdgpu_command_submission_copy_linear_helper()
1373 pm4[i++] = 0xfffffffc & bo2_mc; in amdgpu_command_submission_copy_linear_helper()
1374 pm4[i++] = (0xffffffff00000000 & bo2_mc) >> 32; in amdgpu_command_submission_copy_linear_helper()
1375 pm4[i++] = sdma_write_length; in amdgpu_command_submission_copy_linear_helper()
1381 i, pm4, in amdgpu_command_submission_copy_linear_helper()
1405 free(pm4); in amdgpu_command_submission_copy_linear_helper()
1527 uint32_t *pm4 = NULL; in amdgpu_userptr_test() local
1539 pm4 = calloc(pm4_dw, sizeof(*pm4)); in amdgpu_userptr_test()
1540 CU_ASSERT_NOT_EQUAL(pm4, NULL); in amdgpu_userptr_test()
1573 pm4[i++] = SDMA_PACKET_SI(SDMA_OPCODE_WRITE, 0, 0, 0, in amdgpu_userptr_test()
1576 pm4[i++] = SDMA_PACKET(SDMA_OPCODE_WRITE, in amdgpu_userptr_test()
1578 pm4[i++] = 0xffffffff & bo_mc; in amdgpu_userptr_test()
1579 pm4[i++] = (0xffffffff00000000 & bo_mc) >> 32; in amdgpu_userptr_test()
1581 pm4[i++] = sdma_write_length - 1; in amdgpu_userptr_test()
1583 pm4[i++] = sdma_write_length; in amdgpu_userptr_test()
1586 pm4[i++] = 0xdeadbeaf; in amdgpu_userptr_test()
1589 pm4[0] = 0x0; in amdgpu_userptr_test()
1595 i, pm4, in amdgpu_userptr_test()
1604 free(pm4); in amdgpu_userptr_test()