Lines Matching refs:global_objs
109 if (obj == state->global_objs[i].ptr) in intel_atomic_get_global_obj_state()
110 return state->global_objs[i].state; in intel_atomic_get_global_obj_state()
115 size = sizeof(*state->global_objs) * num_objs; in intel_atomic_get_global_obj_state()
116 arr = krealloc(state->global_objs, size, GFP_KERNEL); in intel_atomic_get_global_obj_state()
120 state->global_objs = arr; in intel_atomic_get_global_obj_state()
122 memset(&state->global_objs[index], 0, sizeof(*state->global_objs)); in intel_atomic_get_global_obj_state()
133 state->global_objs[index].state = obj_state; in intel_atomic_get_global_obj_state()
134 state->global_objs[index].old_state = in intel_atomic_get_global_obj_state()
136 state->global_objs[index].new_state = obj_state; in intel_atomic_get_global_obj_state()
137 state->global_objs[index].ptr = obj; in intel_atomic_get_global_obj_state()
155 if (obj == state->global_objs[i].ptr) in intel_atomic_get_old_global_obj_state()
156 return state->global_objs[i].old_state; in intel_atomic_get_old_global_obj_state()
168 if (obj == state->global_objs[i].ptr) in intel_atomic_get_new_global_obj_state()
169 return state->global_objs[i].new_state; in intel_atomic_get_new_global_obj_state()
197 state->global_objs[i].state = old_obj_state; in intel_atomic_swap_global_state()
209 intel_atomic_global_state_put(state->global_objs[i].old_state); in intel_atomic_clear_global_state()
210 intel_atomic_global_state_put(state->global_objs[i].new_state); in intel_atomic_clear_global_state()
212 state->global_objs[i].ptr = NULL; in intel_atomic_clear_global_state()
213 state->global_objs[i].state = NULL; in intel_atomic_clear_global_state()
214 state->global_objs[i].old_state = NULL; in intel_atomic_clear_global_state()
215 state->global_objs[i].new_state = NULL; in intel_atomic_clear_global_state()