Lines Matching defs:res
235 int res;
239 res = drmIoctl(ctx->dev->fd, DRM_IOCTL_AMDGPU_GEM_OP, &gop);
240 if (res)
268 int res;
274 res = amdgpu_cs_ctx_create(sb_ctx.dev, &sb_ctx.context);
275 if (res) {
276 PRINT_ERROR(res);
283 res = ffs(sdma_info.available_rings) - 1;
284 if (res == -1) {
289 sb_ctx.ring_id = res;
293 res = amdgpu_bo_alloc_map(device_handle,
299 if (res) {
300 PRINT_ERROR(res);
314 res = amdgpu_bo_alloc_map(device_handle,
320 if (res) {
321 PRINT_ERROR(res);
332 res = amdgpu_bo_move(&sb_ctx, bob.bo, AMDGPU_GEM_DOMAIN_GTT, 0);
333 if (res) {
334 PRINT_ERROR(res);
348 res = memcmp(pp, secure_pattern, sizeof(secure_pattern));
349 if (res) {
361 res = amdgpu_cs_ctx_free(sb_ctx.context);
362 CU_ASSERT_EQUAL(res, 0);
457 int res;
459 res = amdgpu_device_initialize(drm_amdgpu[0], &major_version,
461 if (res) {
462 PRINT_ERROR(res);
466 res = amdgpu_query_hw_ip_info(device_handle,
469 if (res) {
470 PRINT_ERROR(res);
479 int res;
481 res = amdgpu_device_deinitialize(device_handle);
482 if (res)