Lines Matching refs:registration
136 struct xpc_registration *registration; in xpc_connect() local
146 registration = &xpc_registrations[ch_number]; in xpc_connect()
148 if (mutex_lock_interruptible(®istration->mutex) != 0) in xpc_connect()
152 if (registration->func != NULL) { in xpc_connect()
153 mutex_unlock(®istration->mutex); in xpc_connect()
158 registration->entry_size = XPC_MSG_SIZE(payload_size); in xpc_connect()
159 registration->nentries = nentries; in xpc_connect()
160 registration->assigned_limit = assigned_limit; in xpc_connect()
161 registration->idle_limit = idle_limit; in xpc_connect()
162 registration->key = key; in xpc_connect()
163 registration->func = func; in xpc_connect()
165 mutex_unlock(®istration->mutex); in xpc_connect()
190 struct xpc_registration *registration; in xpc_disconnect() local
194 registration = &xpc_registrations[ch_number]; in xpc_disconnect()
201 mutex_lock(®istration->mutex); in xpc_disconnect()
204 if (registration->func == NULL) { in xpc_disconnect()
205 mutex_unlock(®istration->mutex); in xpc_disconnect()
210 registration->func = NULL; in xpc_disconnect()
211 registration->key = NULL; in xpc_disconnect()
212 registration->nentries = 0; in xpc_disconnect()
213 registration->entry_size = 0; in xpc_disconnect()
214 registration->assigned_limit = 0; in xpc_disconnect()
215 registration->idle_limit = 0; in xpc_disconnect()
220 mutex_unlock(®istration->mutex); in xpc_disconnect()