Home
last modified time | relevance | path

Searched refs:state_bo (Results 1 - 2 of 2) sorted by relevance

/kernel/linux/linux-6.6/drivers/gpu/drm/msm/
H A Dmsm_gpu.c224 struct msm_gpu_state_bo *state_bo = &state->bos[state->nr_bos]; in msm_gpu_crashstate_get_bo() local
227 state_bo->size = obj->size; in msm_gpu_crashstate_get_bo()
228 state_bo->iova = iova; in msm_gpu_crashstate_get_bo()
230 BUILD_BUG_ON(sizeof(state_bo->name) != sizeof(to_msm_bo(obj)->name)); in msm_gpu_crashstate_get_bo()
232 memcpy(state_bo->name, to_msm_bo(obj)->name, sizeof(state_bo->name)); in msm_gpu_crashstate_get_bo()
237 state_bo->data = kvmalloc(obj->size, GFP_KERNEL); in msm_gpu_crashstate_get_bo()
238 if (!state_bo->data) in msm_gpu_crashstate_get_bo()
245 kvfree(state_bo->data); in msm_gpu_crashstate_get_bo()
246 state_bo in msm_gpu_crashstate_get_bo()
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/
H A Dmsm_gpu.c315 struct msm_gpu_state_bo *state_bo = &state->bos[state->nr_bos]; in msm_gpu_crashstate_get_bo() local
318 state_bo->size = obj->base.size; in msm_gpu_crashstate_get_bo()
319 state_bo->iova = iova; in msm_gpu_crashstate_get_bo()
325 state_bo->data = kvmalloc(obj->base.size, GFP_KERNEL); in msm_gpu_crashstate_get_bo()
326 if (!state_bo->data) in msm_gpu_crashstate_get_bo()
331 kvfree(state_bo->data); in msm_gpu_crashstate_get_bo()
332 state_bo->data = NULL; in msm_gpu_crashstate_get_bo()
336 memcpy(state_bo->data, ptr, obj->base.size); in msm_gpu_crashstate_get_bo()

Completed in 3 milliseconds