Lines Matching refs:private_objs
110 kfree(state->private_objs); in drm_atomic_state_default_release()
253 struct drm_private_obj *obj = state->private_objs[i].ptr; in drm_atomic_state_default_clear()
256 state->private_objs[i].state); in drm_atomic_state_default_clear()
257 state->private_objs[i].ptr = NULL; in drm_atomic_state_default_clear()
258 state->private_objs[i].state = NULL; in drm_atomic_state_default_clear()
259 state->private_objs[i].old_state = NULL; in drm_atomic_state_default_clear()
260 state->private_objs[i].new_state = NULL; in drm_atomic_state_default_clear()
840 if (obj == state->private_objs[i].ptr) in drm_atomic_get_private_obj_state()
841 return state->private_objs[i].state; in drm_atomic_get_private_obj_state()
848 size = sizeof(*state->private_objs) * num_objs; in drm_atomic_get_private_obj_state()
849 arr = krealloc(state->private_objs, size, GFP_KERNEL); in drm_atomic_get_private_obj_state()
853 state->private_objs = arr; in drm_atomic_get_private_obj_state()
855 memset(&state->private_objs[index], 0, sizeof(*state->private_objs)); in drm_atomic_get_private_obj_state()
861 state->private_objs[index].state = obj_state; in drm_atomic_get_private_obj_state()
862 state->private_objs[index].old_state = obj->state; in drm_atomic_get_private_obj_state()
863 state->private_objs[index].new_state = obj_state; in drm_atomic_get_private_obj_state()
864 state->private_objs[index].ptr = obj; in drm_atomic_get_private_obj_state()
892 if (obj == state->private_objs[i].ptr) in drm_atomic_get_old_private_obj_state()
893 return state->private_objs[i].old_state; in drm_atomic_get_old_private_obj_state()
914 if (obj == state->private_objs[i].ptr) in drm_atomic_get_new_private_obj_state()
915 return state->private_objs[i].new_state; in drm_atomic_get_new_private_obj_state()