Lines Matching refs:registration
137 struct xpc_registration *registration; in xpc_connect() local
147 registration = &xpc_registrations[ch_number]; in xpc_connect()
149 if (mutex_lock_interruptible(®istration->mutex) != 0) in xpc_connect()
153 if (registration->func != NULL) { in xpc_connect()
154 mutex_unlock(®istration->mutex); in xpc_connect()
159 registration->entry_size = XPC_MSG_SIZE(payload_size); in xpc_connect()
160 registration->nentries = nentries; in xpc_connect()
161 registration->assigned_limit = assigned_limit; in xpc_connect()
162 registration->idle_limit = idle_limit; in xpc_connect()
163 registration->key = key; in xpc_connect()
164 registration->func = func; in xpc_connect()
166 mutex_unlock(®istration->mutex); in xpc_connect()
191 struct xpc_registration *registration; in xpc_disconnect() local
195 registration = &xpc_registrations[ch_number]; in xpc_disconnect()
202 mutex_lock(®istration->mutex); in xpc_disconnect()
205 if (registration->func == NULL) { in xpc_disconnect()
206 mutex_unlock(®istration->mutex); in xpc_disconnect()
211 registration->func = NULL; in xpc_disconnect()
212 registration->key = NULL; in xpc_disconnect()
213 registration->nentries = 0; in xpc_disconnect()
214 registration->entry_size = 0; in xpc_disconnect()
215 registration->assigned_limit = 0; in xpc_disconnect()
216 registration->idle_limit = 0; in xpc_disconnect()
221 mutex_unlock(®istration->mutex); in xpc_disconnect()