Lines Matching refs:state
275 struct msm_gpu_state *state;
277 state = msm_gpu_crashstate_get(gpu);
278 if (!state)
292 state->time.tv_sec, state->time.tv_nsec);
293 if (state->comm)
294 drm_printf(&p, "comm: %s\n", state->comm);
295 if (state->cmd)
296 drm_printf(&p, "cmdline: %s\n", state->cmd);
298 gpu->funcs->show(gpu, state, &p);
312 static void msm_gpu_crashstate_get_bo(struct msm_gpu_state *state,
315 struct msm_gpu_state_bo *state_bo = &state->bos[state->nr_bos];
340 state->nr_bos++;
346 struct msm_gpu_state *state;
348 /* Check if the target supports capturing crash state */
352 /* Only save one crash state at a time */
356 state = gpu->funcs->gpu_state_get(gpu);
357 if (IS_ERR_OR_NULL(state))
360 /* Fill in the additional crash state information */
361 state->comm = kstrdup(comm, GFP_KERNEL);
362 state->cmd = kstrdup(cmd, GFP_KERNEL);
376 state->bos = kcalloc(nr,
379 for (i = 0; state->bos && i < submit->nr_bos; i++) {
381 msm_gpu_crashstate_get_bo(state, submit->bos[i].obj,
386 for (i = 0; state->bos && i < submit->nr_cmds; i++) {
390 msm_gpu_crashstate_get_bo(state, submit->bos[idx].obj,
396 /* Set the active crash state to be dumped on failure */
397 gpu->crashstate = state;
483 /* Record the crash state */