Lines Matching defs:args
55 union drm_amdgpu_ctx args;
70 memset(&args, 0, sizeof(args));
71 args.in.op = AMDGPU_CTX_OP_ALLOC_CTX;
72 r = drmCommandWriteRead(dev->fd, DRM_AMDGPU_CTX, &args, sizeof(args));
76 gpu_context->id = args.out.alloc.ctx_id;
96 union drm_amdgpu_ctx args;
103 memset(&args, 0, sizeof(args));
104 args.in.op = AMDGPU_CTX_OP_FREE_CTX;
105 args.in.ctx_id = context->id;
107 &args, sizeof(args));
117 union drm_amdgpu_ctx args;
123 memset(&args, 0, sizeof(args));
124 args.in.op = AMDGPU_CTX_OP_QUERY_STATE;
125 args.in.ctx_id = context->id;
127 &args, sizeof(args));
129 *state = args.out.state.reset_status;
130 *hangs = args.out.state.hangs;
318 union drm_amdgpu_wait_cs args;
321 memset(&args, 0, sizeof(args));
322 args.in.handle = handle;
323 args.in.ip_type = ip;
324 args.in.ip_instance = ip_instance;
325 args.in.ring = ring;
326 args.in.ctx_id = context->id;
329 args.in.timeout = timeout_ns;
331 args.in.timeout = amdgpu_cs_calculate_timeout(timeout_ns);
333 r = drmIoctl(dev->fd, DRM_IOCTL_AMDGPU_WAIT_CS, &args);
337 *busy = args.out.status;