Lines Matching refs:obj
67 #define reservation_object_held(obj) lockdep_is_held(&(obj)->lock.base) argument
68 #define reservation_object_assert_held(obj) \ argument
69 lockdep_assert_held(&(obj)->lock.base)
72 reservation_object_init(struct reservation_object *obj) in reservation_object_init() argument
74 ww_mutex_init(&obj->lock, &reservation_ww_class); in reservation_object_init()
76 __seqcount_init(&obj->seq, reservation_seqcount_string, &reservation_seqcount_class); in reservation_object_init()
77 RCU_INIT_POINTER(obj->fence, NULL); in reservation_object_init()
78 RCU_INIT_POINTER(obj->fence_excl, NULL); in reservation_object_init()
79 obj->staged = NULL; in reservation_object_init()
83 reservation_object_fini(struct reservation_object *obj) in reservation_object_fini() argument
93 excl = rcu_dereference_protected(obj->fence_excl, 1); in reservation_object_fini()
97 fobj = rcu_dereference_protected(obj->fence, 1); in reservation_object_fini()
104 kfree(obj->staged); in reservation_object_fini()
106 ww_mutex_destroy(&obj->lock); in reservation_object_fini()
110 reservation_object_get_list(struct reservation_object *obj) in reservation_object_get_list() argument
112 return rcu_dereference_protected(obj->fence, in reservation_object_get_list()
113 reservation_object_held(obj)); in reservation_object_get_list()
117 reservation_object_get_excl(struct reservation_object *obj) in reservation_object_get_excl() argument
119 return rcu_dereference_protected(obj->fence_excl, in reservation_object_get_excl()
120 reservation_object_held(obj)); in reservation_object_get_excl()
123 int reservation_object_reserve_shared(struct reservation_object *obj);
124 void reservation_object_add_shared_fence(struct reservation_object *obj,
127 void reservation_object_add_excl_fence(struct reservation_object *obj,
130 int reservation_object_get_fences_rcu(struct reservation_object *obj,
135 long reservation_object_wait_timeout_rcu(struct reservation_object *obj,
139 bool reservation_object_test_signaled_rcu(struct reservation_object *obj,