Home
last modified time | relevance | path

Searched refs:sb_ctx (Results 1 – 1 of 1) sorted by relevance

/third_party/libdrm/tests/amdgpu/
Dsecurity_tests.c265 struct command_ctx sb_ctx; in amdgpu_secure_bounce() local
272 memset(&sb_ctx, 0, sizeof(sb_ctx)); in amdgpu_secure_bounce()
273 sb_ctx.dev = device_handle; in amdgpu_secure_bounce()
274 res = amdgpu_cs_ctx_create(sb_ctx.dev, &sb_ctx.context); in amdgpu_secure_bounce()
289 sb_ctx.ring_id = res; in amdgpu_secure_bounce()
328 amdgpu_bo_lcopy(&sb_ctx, &bob, &alice, SECURE_BUFFER_SIZE, 1); in amdgpu_secure_bounce()
332 res = amdgpu_bo_move(&sb_ctx, bob.bo, AMDGPU_GEM_DOMAIN_GTT, 0); in amdgpu_secure_bounce()
341 amdgpu_bo_lcopy(&sb_ctx, &alice, &bob, SECURE_BUFFER_SIZE, 1); in amdgpu_secure_bounce()
361 res = amdgpu_cs_ctx_free(sb_ctx.context); in amdgpu_secure_bounce()