• Home
  • Raw
  • Download

Lines Matching refs:obj_state

15 	struct intel_global_state *obj_state =  in __intel_atomic_global_state_free()  local
17 struct intel_global_obj *obj = obj_state->obj; in __intel_atomic_global_state_free()
19 obj->funcs->atomic_destroy_state(obj, obj_state); in __intel_atomic_global_state_free()
22 static void intel_atomic_global_state_put(struct intel_global_state *obj_state) in intel_atomic_global_state_put() argument
24 kref_put(&obj_state->ref, __intel_atomic_global_state_free); in intel_atomic_global_state_put()
28 intel_atomic_global_state_get(struct intel_global_state *obj_state) in intel_atomic_global_state_get() argument
30 kref_get(&obj_state->ref); in intel_atomic_global_state_get()
32 return obj_state; in intel_atomic_global_state_get()
106 struct intel_global_state *obj_state; in intel_atomic_get_global_obj_state() local
124 obj_state = obj->funcs->atomic_duplicate_state(obj); in intel_atomic_get_global_obj_state()
125 if (!obj_state) in intel_atomic_get_global_obj_state()
128 obj_state->obj = obj; in intel_atomic_get_global_obj_state()
129 obj_state->changed = false; in intel_atomic_get_global_obj_state()
131 kref_init(&obj_state->ref); in intel_atomic_get_global_obj_state()
133 state->global_objs[index].state = obj_state; in intel_atomic_get_global_obj_state()
136 state->global_objs[index].new_state = obj_state; in intel_atomic_get_global_obj_state()
138 obj_state->state = state; in intel_atomic_get_global_obj_state()
143 obj, obj_state, state); in intel_atomic_get_global_obj_state()
145 return obj_state; in intel_atomic_get_global_obj_state()
220 int intel_atomic_lock_global_state(struct intel_global_state *obj_state) in intel_atomic_lock_global_state() argument
222 struct intel_atomic_state *state = obj_state->state; in intel_atomic_lock_global_state()
235 obj_state->changed = true; in intel_atomic_lock_global_state()
240 int intel_atomic_serialize_global_state(struct intel_global_state *obj_state) in intel_atomic_serialize_global_state() argument
242 struct intel_atomic_state *state = obj_state->state; in intel_atomic_serialize_global_state()
254 obj_state->changed = true; in intel_atomic_serialize_global_state()