Lines Matching refs:ch_number
138 * ch_number - channel # to register for connection.
157 xpc_connect(int ch_number, xpc_channel_func func, void *key, u16 payload_size,
162 DBUG_ON(ch_number < 0 || ch_number >= XPC_MAX_NCHANNELS);
170 registration = &xpc_registrations[ch_number];
175 /* if XPC_CHANNEL_REGISTERED(ch_number) */
191 xpc_interface.connect(ch_number);
208 * ch_number - channel # to unregister.
211 xpc_disconnect(int ch_number)
215 DBUG_ON(ch_number < 0 || ch_number >= XPC_MAX_NCHANNELS);
217 registration = &xpc_registrations[ch_number];
226 /* if !XPC_CHANNEL_REGISTERED(ch_number) */
240 xpc_interface.disconnect(ch_number);
252 int ch_number;
255 for (ch_number = 0; ch_number < XPC_MAX_NCHANNELS; ch_number++)
256 mutex_init(&xpc_registrations[ch_number].mutex);