Lines Matching refs:ptr_cmd

2444 	uint32_t *ptr_cmd;  in amdgpu_memset_dispatch_test()  local
2462 &bo_cmd, (void **)&ptr_cmd, in amdgpu_memset_dispatch_test()
2465 memset(ptr_cmd, 0, bo_cmd_size); in amdgpu_memset_dispatch_test()
2484 i += amdgpu_dispatch_init(ptr_cmd + i, ip_type); in amdgpu_memset_dispatch_test()
2487 i += amdgpu_dispatch_write_cumask(ptr_cmd + i); in amdgpu_memset_dispatch_test()
2490 i += amdgpu_dispatch_write2hw(ptr_cmd + i, mc_address_shader); in amdgpu_memset_dispatch_test()
2494 ptr_cmd[i++] = PACKET3_COMPUTE(PKT3_SET_SH_REG, 4); in amdgpu_memset_dispatch_test()
2495 ptr_cmd[i++] = 0x240; in amdgpu_memset_dispatch_test()
2496 ptr_cmd[i++] = mc_address_dst; in amdgpu_memset_dispatch_test()
2497 ptr_cmd[i++] = (mc_address_dst >> 32) | 0x100000; in amdgpu_memset_dispatch_test()
2498 ptr_cmd[i++] = 0x400; in amdgpu_memset_dispatch_test()
2499 ptr_cmd[i++] = 0x74fac; in amdgpu_memset_dispatch_test()
2502 ptr_cmd[i++] = PACKET3_COMPUTE(PKT3_SET_SH_REG, 4); in amdgpu_memset_dispatch_test()
2503 ptr_cmd[i++] = 0x244; in amdgpu_memset_dispatch_test()
2504 ptr_cmd[i++] = 0x22222222; in amdgpu_memset_dispatch_test()
2505 ptr_cmd[i++] = 0x22222222; in amdgpu_memset_dispatch_test()
2506 ptr_cmd[i++] = 0x22222222; in amdgpu_memset_dispatch_test()
2507 ptr_cmd[i++] = 0x22222222; in amdgpu_memset_dispatch_test()
2510 ptr_cmd[i++] = PACKET3_COMPUTE(PKT3_SET_SH_REG, 1); in amdgpu_memset_dispatch_test()
2511 ptr_cmd[i++] = 0x215; in amdgpu_memset_dispatch_test()
2512 ptr_cmd[i++] = 0; in amdgpu_memset_dispatch_test()
2515 ptr_cmd[i++] = PACKET3_COMPUTE(PACKET3_DISPATCH_DIRECT, 3); in amdgpu_memset_dispatch_test()
2516 ptr_cmd[i++] = 0x10; in amdgpu_memset_dispatch_test()
2517 ptr_cmd[i++] = 1; in amdgpu_memset_dispatch_test()
2518 ptr_cmd[i++] = 1; in amdgpu_memset_dispatch_test()
2519 ptr_cmd[i++] = 1; in amdgpu_memset_dispatch_test()
2522 ptr_cmd[i++] = 0xffff1000; /* type3 nop packet */ in amdgpu_memset_dispatch_test()
2588 uint32_t *ptr_cmd; in amdgpu_memcpy_dispatch_test() local
2607 &bo_cmd, (void **)&ptr_cmd, in amdgpu_memcpy_dispatch_test()
2610 memset(ptr_cmd, 0, bo_cmd_size); in amdgpu_memcpy_dispatch_test()
2638 i += amdgpu_dispatch_init(ptr_cmd + i, ip_type); in amdgpu_memcpy_dispatch_test()
2641 i += amdgpu_dispatch_write_cumask(ptr_cmd + i); in amdgpu_memcpy_dispatch_test()
2644 i += amdgpu_dispatch_write2hw(ptr_cmd + i, mc_address_shader); in amdgpu_memcpy_dispatch_test()
2648 ptr_cmd[i++] = PACKET3_COMPUTE(PKT3_SET_SH_REG, 4); in amdgpu_memcpy_dispatch_test()
2649 ptr_cmd[i++] = 0x240; in amdgpu_memcpy_dispatch_test()
2650 ptr_cmd[i++] = mc_address_src; in amdgpu_memcpy_dispatch_test()
2651 ptr_cmd[i++] = (mc_address_src >> 32) | 0x100000; in amdgpu_memcpy_dispatch_test()
2652 ptr_cmd[i++] = 0x400; in amdgpu_memcpy_dispatch_test()
2653 ptr_cmd[i++] = 0x74fac; in amdgpu_memcpy_dispatch_test()
2656 ptr_cmd[i++] = PACKET3_COMPUTE(PKT3_SET_SH_REG, 4); in amdgpu_memcpy_dispatch_test()
2657 ptr_cmd[i++] = 0x244; in amdgpu_memcpy_dispatch_test()
2658 ptr_cmd[i++] = mc_address_dst; in amdgpu_memcpy_dispatch_test()
2659 ptr_cmd[i++] = (mc_address_dst >> 32) | 0x100000; in amdgpu_memcpy_dispatch_test()
2660 ptr_cmd[i++] = 0x400; in amdgpu_memcpy_dispatch_test()
2661 ptr_cmd[i++] = 0x74fac; in amdgpu_memcpy_dispatch_test()
2664 ptr_cmd[i++] = PACKET3_COMPUTE(PKT3_SET_SH_REG, 1); in amdgpu_memcpy_dispatch_test()
2665 ptr_cmd[i++] = 0x215; in amdgpu_memcpy_dispatch_test()
2666 ptr_cmd[i++] = 0; in amdgpu_memcpy_dispatch_test()
2669 ptr_cmd[i++] = PACKET3_COMPUTE(PACKET3_DISPATCH_DIRECT, 3); in amdgpu_memcpy_dispatch_test()
2670 ptr_cmd[i++] = 0x10; in amdgpu_memcpy_dispatch_test()
2671 ptr_cmd[i++] = 1; in amdgpu_memcpy_dispatch_test()
2672 ptr_cmd[i++] = 1; in amdgpu_memcpy_dispatch_test()
2673 ptr_cmd[i++] = 1; in amdgpu_memcpy_dispatch_test()
2676 ptr_cmd[i++] = 0xffff1000; /* type3 nop packet */ in amdgpu_memcpy_dispatch_test()
2801 uint32_t *ptr_cmd; in amdgpu_memcpy_dispatch_hang_slow_test() local
2823 &bo_cmd, (void **)&ptr_cmd, in amdgpu_memcpy_dispatch_hang_slow_test()
2826 memset(ptr_cmd, 0, bo_cmd_size); in amdgpu_memcpy_dispatch_hang_slow_test()
2853 i += amdgpu_dispatch_init(ptr_cmd + i, ip_type); in amdgpu_memcpy_dispatch_hang_slow_test()
2856 i += amdgpu_dispatch_write_cumask(ptr_cmd + i); in amdgpu_memcpy_dispatch_hang_slow_test()
2859 i += amdgpu_dispatch_write2hw(ptr_cmd + i, mc_address_shader); in amdgpu_memcpy_dispatch_hang_slow_test()
2863 ptr_cmd[i++] = PACKET3_COMPUTE(PKT3_SET_SH_REG, 4); in amdgpu_memcpy_dispatch_hang_slow_test()
2864 ptr_cmd[i++] = 0x240; in amdgpu_memcpy_dispatch_hang_slow_test()
2865 ptr_cmd[i++] = mc_address_src; in amdgpu_memcpy_dispatch_hang_slow_test()
2866 ptr_cmd[i++] = (mc_address_src >> 32) | 0x100000; in amdgpu_memcpy_dispatch_hang_slow_test()
2867 ptr_cmd[i++] = 0x400000; in amdgpu_memcpy_dispatch_hang_slow_test()
2868 ptr_cmd[i++] = 0x74fac; in amdgpu_memcpy_dispatch_hang_slow_test()
2871 ptr_cmd[i++] = PACKET3_COMPUTE(PKT3_SET_SH_REG, 4); in amdgpu_memcpy_dispatch_hang_slow_test()
2872 ptr_cmd[i++] = 0x244; in amdgpu_memcpy_dispatch_hang_slow_test()
2873 ptr_cmd[i++] = mc_address_dst; in amdgpu_memcpy_dispatch_hang_slow_test()
2874 ptr_cmd[i++] = (mc_address_dst >> 32) | 0x100000; in amdgpu_memcpy_dispatch_hang_slow_test()
2875 ptr_cmd[i++] = 0x400000; in amdgpu_memcpy_dispatch_hang_slow_test()
2876 ptr_cmd[i++] = 0x74fac; in amdgpu_memcpy_dispatch_hang_slow_test()
2879 ptr_cmd[i++] = PACKET3_COMPUTE(PKT3_SET_SH_REG, 1); in amdgpu_memcpy_dispatch_hang_slow_test()
2880 ptr_cmd[i++] = 0x215; in amdgpu_memcpy_dispatch_hang_slow_test()
2881 ptr_cmd[i++] = 0; in amdgpu_memcpy_dispatch_hang_slow_test()
2884 ptr_cmd[i++] = PACKET3_COMPUTE(PACKET3_DISPATCH_DIRECT, 3); in amdgpu_memcpy_dispatch_hang_slow_test()
2885 ptr_cmd[i++] = 0x10000; in amdgpu_memcpy_dispatch_hang_slow_test()
2886 ptr_cmd[i++] = 1; in amdgpu_memcpy_dispatch_hang_slow_test()
2887 ptr_cmd[i++] = 1; in amdgpu_memcpy_dispatch_hang_slow_test()
2888 ptr_cmd[i++] = 1; in amdgpu_memcpy_dispatch_hang_slow_test()
2891 ptr_cmd[i++] = 0xffff1000; /* type3 nop packet */ in amdgpu_memcpy_dispatch_hang_slow_test()
3330 uint32_t *ptr_cmd; in amdgpu_memset_draw() local
3347 &bo_cmd, (void **)&ptr_cmd, in amdgpu_memset_draw()
3350 memset(ptr_cmd, 0, bo_cmd_size); in amdgpu_memset_draw()
3359 i += amdgpu_draw_init(ptr_cmd + i); in amdgpu_memset_draw()
3361 i += amdgpu_draw_setup_and_write_drawblt_surf_info(ptr_cmd + i, mc_address_dst, 0); in amdgpu_memset_draw()
3363 i += amdgpu_draw_setup_and_write_drawblt_state(ptr_cmd + i, 0); in amdgpu_memset_draw()
3365 i += amdgpu_draw_vs_RectPosTexFast_write2hw(ptr_cmd + i, PS_CONST, mc_address_shader_vs, 0); in amdgpu_memset_draw()
3367 i += amdgpu_draw_ps_write2hw(ptr_cmd + i, PS_CONST, mc_address_shader_ps); in amdgpu_memset_draw()
3369 ptr_cmd[i++] = PACKET3(PKT3_SET_SH_REG, 4); in amdgpu_memset_draw()
3370 ptr_cmd[i++] = 0xc; in amdgpu_memset_draw()
3371 ptr_cmd[i++] = 0x33333333; in amdgpu_memset_draw()
3372 ptr_cmd[i++] = 0x33333333; in amdgpu_memset_draw()
3373 ptr_cmd[i++] = 0x33333333; in amdgpu_memset_draw()
3374 ptr_cmd[i++] = 0x33333333; in amdgpu_memset_draw()
3376 i += amdgpu_draw_draw(ptr_cmd + i); in amdgpu_memset_draw()
3379 ptr_cmd[i++] = 0xffff1000; /* type3 nop packet */ in amdgpu_memset_draw()
3485 uint32_t *ptr_cmd; in amdgpu_memcpy_draw() local
3503 &bo_cmd, (void **)&ptr_cmd, in amdgpu_memcpy_draw()
3506 memset(ptr_cmd, 0, bo_cmd_size); in amdgpu_memcpy_draw()
3523 i += amdgpu_draw_init(ptr_cmd + i); in amdgpu_memcpy_draw()
3525 i += amdgpu_draw_setup_and_write_drawblt_surf_info(ptr_cmd + i, mc_address_dst, 0); in amdgpu_memcpy_draw()
3527 i += amdgpu_draw_setup_and_write_drawblt_state(ptr_cmd + i, 0); in amdgpu_memcpy_draw()
3529 i += amdgpu_draw_vs_RectPosTexFast_write2hw(ptr_cmd + i, PS_TEX, mc_address_shader_vs, 0); in amdgpu_memcpy_draw()
3531 i += amdgpu_draw_ps_write2hw(ptr_cmd + i, PS_TEX, mc_address_shader_ps); in amdgpu_memcpy_draw()
3533 ptr_cmd[i++] = PACKET3(PKT3_SET_SH_REG, 8); in amdgpu_memcpy_draw()
3534 ptr_cmd[i++] = 0xc; in amdgpu_memcpy_draw()
3535 ptr_cmd[i++] = mc_address_src >> 8; in amdgpu_memcpy_draw()
3536 ptr_cmd[i++] = mc_address_src >> 40 | 0x10e00000; in amdgpu_memcpy_draw()
3537 ptr_cmd[i++] = 0x7c01f; in amdgpu_memcpy_draw()
3538 ptr_cmd[i++] = 0x90500fac; in amdgpu_memcpy_draw()
3539 ptr_cmd[i++] = 0x3e000; in amdgpu_memcpy_draw()
3542 ptr_cmd[i++] = PACKET3(PKT3_SET_SH_REG, 4); in amdgpu_memcpy_draw()
3543 ptr_cmd[i++] = 0x14; in amdgpu_memcpy_draw()
3544 ptr_cmd[i++] = 0x92; in amdgpu_memcpy_draw()
3547 ptr_cmd[i++] = PACKET3(PACKET3_SET_CONTEXT_REG, 1); in amdgpu_memcpy_draw()
3548 ptr_cmd[i++] = 0x191; in amdgpu_memcpy_draw()
3549 ptr_cmd[i++] = 0; in amdgpu_memcpy_draw()
3551 i += amdgpu_draw_draw(ptr_cmd + i); in amdgpu_memcpy_draw()
3554 ptr_cmd[i++] = 0xffff1000; /* type3 nop packet */ in amdgpu_memcpy_draw()
3684 uint32_t *ptr_cmd; in amdgpu_memcpy_draw_hang_slow_test() local
3709 &bo_cmd, (void **)&ptr_cmd, in amdgpu_memcpy_draw_hang_slow_test()
3712 memset(ptr_cmd, 0, bo_cmd_size); in amdgpu_memcpy_draw_hang_slow_test()
3749 i += amdgpu_draw_init(ptr_cmd + i); in amdgpu_memcpy_draw_hang_slow_test()
3751 i += amdgpu_draw_setup_and_write_drawblt_surf_info(ptr_cmd + i, mc_address_dst, 1); in amdgpu_memcpy_draw_hang_slow_test()
3753 i += amdgpu_draw_setup_and_write_drawblt_state(ptr_cmd + i, 1); in amdgpu_memcpy_draw_hang_slow_test()
3755 i += amdgpu_draw_vs_RectPosTexFast_write2hw(ptr_cmd + i, PS_TEX, in amdgpu_memcpy_draw_hang_slow_test()
3758 i += amdgpu_draw_ps_write2hw(ptr_cmd + i, PS_TEX, mc_address_shader_ps); in amdgpu_memcpy_draw_hang_slow_test()
3760 ptr_cmd[i++] = PACKET3(PKT3_SET_SH_REG, 8); in amdgpu_memcpy_draw_hang_slow_test()
3761 ptr_cmd[i++] = 0xc; in amdgpu_memcpy_draw_hang_slow_test()
3762 ptr_cmd[i++] = mc_address_src >> 8; in amdgpu_memcpy_draw_hang_slow_test()
3763 ptr_cmd[i++] = mc_address_src >> 40 | 0x10e00000; in amdgpu_memcpy_draw_hang_slow_test()
3764 ptr_cmd[i++] = 0x1ffc7ff; in amdgpu_memcpy_draw_hang_slow_test()
3765 ptr_cmd[i++] = 0x90500fac; in amdgpu_memcpy_draw_hang_slow_test()
3766 ptr_cmd[i++] = 0xffe000; in amdgpu_memcpy_draw_hang_slow_test()
3769 ptr_cmd[i++] = PACKET3(PKT3_SET_SH_REG, 4); in amdgpu_memcpy_draw_hang_slow_test()
3770 ptr_cmd[i++] = 0x14; in amdgpu_memcpy_draw_hang_slow_test()
3771 ptr_cmd[i++] = 0x92; in amdgpu_memcpy_draw_hang_slow_test()
3774 ptr_cmd[i++] = PACKET3(PACKET3_SET_CONTEXT_REG, 1); in amdgpu_memcpy_draw_hang_slow_test()
3775 ptr_cmd[i++] = 0x191; in amdgpu_memcpy_draw_hang_slow_test()
3776 ptr_cmd[i++] = 0; in amdgpu_memcpy_draw_hang_slow_test()
3778 i += amdgpu_draw_draw(ptr_cmd + i); in amdgpu_memcpy_draw_hang_slow_test()
3781 ptr_cmd[i++] = 0xffff1000; /* type3 nop packet */ in amdgpu_memcpy_draw_hang_slow_test()