Lines Matching refs:flags

33 	if (!(ch->flags & XPC_C_OPENREQUEST) ||  in xpc_process_connect()
34 !(ch->flags & XPC_C_ROPENREQUEST)) { in xpc_process_connect()
38 DBUG_ON(!(ch->flags & XPC_C_CONNECTING)); in xpc_process_connect()
40 if (!(ch->flags & XPC_C_SETUP)) { in xpc_process_connect()
48 ch->flags |= XPC_C_SETUP; in xpc_process_connect()
50 if (ch->flags & XPC_C_DISCONNECTING) in xpc_process_connect()
54 if (!(ch->flags & XPC_C_OPENREPLY)) { in xpc_process_connect()
55 ch->flags |= XPC_C_OPENREPLY; in xpc_process_connect()
59 if (!(ch->flags & XPC_C_ROPENREPLY)) in xpc_process_connect()
62 if (!(ch->flags & XPC_C_OPENCOMPLETE)) { in xpc_process_connect()
63 ch->flags |= (XPC_C_OPENCOMPLETE | XPC_C_CONNECTED); in xpc_process_connect()
67 if (!(ch->flags & XPC_C_ROPENCOMPLETE)) in xpc_process_connect()
73 ch->flags = (XPC_C_CONNECTED | XPC_C_SETUP); /* clear all else */ in xpc_process_connect()
83 u32 channel_was_connected = (ch->flags & XPC_C_WASCONNECTED); in xpc_process_disconnect()
87 if (!(ch->flags & XPC_C_DISCONNECTING)) in xpc_process_disconnect()
90 DBUG_ON(!(ch->flags & XPC_C_CLOSEREQUEST)); in xpc_process_disconnect()
98 DBUG_ON((ch->flags & XPC_C_CONNECTEDCALLOUT_MADE) && in xpc_process_disconnect()
99 !(ch->flags & XPC_C_DISCONNECTINGCALLOUT_MADE)); in xpc_process_disconnect()
110 if (!(ch->flags & XPC_C_RCLOSEREQUEST)) in xpc_process_disconnect()
113 if (!(ch->flags & XPC_C_CLOSEREPLY)) { in xpc_process_disconnect()
114 ch->flags |= XPC_C_CLOSEREPLY; in xpc_process_disconnect()
118 if (!(ch->flags & XPC_C_RCLOSEREPLY)) in xpc_process_disconnect()
130 if (ch->flags & XPC_C_DISCONNECTINGCALLOUT_MADE) { in xpc_process_disconnect()
155 ch->flags = (XPC_C_DISCONNECTED | (ch->flags & XPC_C_WDISCONNECT)); in xpc_process_disconnect()
164 if (ch->flags & XPC_C_WDISCONNECT) { in xpc_process_disconnect()
171 part->chctl.flags[ch->number] |= in xpc_process_disconnect()
198 if ((ch->flags & XPC_C_DISCONNECTED) && in xpc_process_openclose_chctl_flags()
199 (ch->flags & XPC_C_WDISCONNECT)) { in xpc_process_openclose_chctl_flags()
220 if (ch->flags & XPC_C_RCLOSEREQUEST) { in xpc_process_openclose_chctl_flags()
221 DBUG_ON(!(ch->flags & XPC_C_DISCONNECTING)); in xpc_process_openclose_chctl_flags()
222 DBUG_ON(!(ch->flags & XPC_C_CLOSEREQUEST)); in xpc_process_openclose_chctl_flags()
223 DBUG_ON(!(ch->flags & XPC_C_CLOSEREPLY)); in xpc_process_openclose_chctl_flags()
224 DBUG_ON(ch->flags & XPC_C_RCLOSEREPLY); in xpc_process_openclose_chctl_flags()
228 ch->flags |= XPC_C_RCLOSEREPLY; in xpc_process_openclose_chctl_flags()
232 DBUG_ON(!(ch->flags & XPC_C_DISCONNECTED)); in xpc_process_openclose_chctl_flags()
236 if (ch->flags & XPC_C_DISCONNECTED) { in xpc_process_openclose_chctl_flags()
238 if (part->chctl.flags[ch_number] & in xpc_process_openclose_chctl_flags()
243 part->chctl.flags[ch_number] |= in xpc_process_openclose_chctl_flags()
251 ch->flags &= ~XPC_C_DISCONNECTED; in xpc_process_openclose_chctl_flags()
254 ch->flags |= (XPC_C_CONNECTING | XPC_C_ROPENREQUEST); in xpc_process_openclose_chctl_flags()
265 ch->flags |= XPC_C_RCLOSEREQUEST; in xpc_process_openclose_chctl_flags()
267 if (!(ch->flags & XPC_C_DISCONNECTING)) { in xpc_process_openclose_chctl_flags()
288 if (ch->flags & XPC_C_DISCONNECTED) { in xpc_process_openclose_chctl_flags()
293 DBUG_ON(!(ch->flags & XPC_C_CLOSEREQUEST)); in xpc_process_openclose_chctl_flags()
295 if (!(ch->flags & XPC_C_RCLOSEREQUEST)) { in xpc_process_openclose_chctl_flags()
296 if (part->chctl.flags[ch_number] & in xpc_process_openclose_chctl_flags()
301 part->chctl.flags[ch_number] |= in xpc_process_openclose_chctl_flags()
308 ch->flags |= XPC_C_RCLOSEREPLY; in xpc_process_openclose_chctl_flags()
310 if (ch->flags & XPC_C_CLOSEREPLY) { in xpc_process_openclose_chctl_flags()
324 (ch->flags & XPC_C_ROPENREQUEST)) { in xpc_process_openclose_chctl_flags()
328 if (ch->flags & (XPC_C_DISCONNECTING | XPC_C_WDISCONNECT)) { in xpc_process_openclose_chctl_flags()
332 DBUG_ON(!(ch->flags & (XPC_C_DISCONNECTED | in xpc_process_openclose_chctl_flags()
334 DBUG_ON(ch->flags & (XPC_C_ROPENREQUEST | XPC_C_ROPENREPLY | in xpc_process_openclose_chctl_flags()
347 ch->flags |= (XPC_C_ROPENREQUEST | XPC_C_CONNECTING); in xpc_process_openclose_chctl_flags()
350 if (ch->flags & XPC_C_OPENREQUEST) { in xpc_process_openclose_chctl_flags()
360 ch->flags &= ~XPC_C_DISCONNECTED; in xpc_process_openclose_chctl_flags()
376 if (ch->flags & (XPC_C_DISCONNECTING | XPC_C_DISCONNECTED)) in xpc_process_openclose_chctl_flags()
379 if (!(ch->flags & XPC_C_OPENREQUEST)) { in xpc_process_openclose_chctl_flags()
385 DBUG_ON(!(ch->flags & XPC_C_ROPENREQUEST)); in xpc_process_openclose_chctl_flags()
386 DBUG_ON(ch->flags & XPC_C_CONNECTED); in xpc_process_openclose_chctl_flags()
405 ch->flags |= XPC_C_ROPENREPLY; in xpc_process_openclose_chctl_flags()
434 if (ch->flags & (XPC_C_DISCONNECTING | XPC_C_DISCONNECTED)) in xpc_process_openclose_chctl_flags()
437 if (!(ch->flags & XPC_C_OPENREQUEST) || in xpc_process_openclose_chctl_flags()
438 !(ch->flags & XPC_C_OPENREPLY)) { in xpc_process_openclose_chctl_flags()
444 DBUG_ON(!(ch->flags & XPC_C_ROPENREQUEST)); in xpc_process_openclose_chctl_flags()
445 DBUG_ON(!(ch->flags & XPC_C_ROPENREPLY)); in xpc_process_openclose_chctl_flags()
446 DBUG_ON(!(ch->flags & XPC_C_CONNECTED)); in xpc_process_openclose_chctl_flags()
448 ch->flags |= XPC_C_ROPENCOMPLETE; in xpc_process_openclose_chctl_flags()
480 DBUG_ON(ch->flags & XPC_C_CONNECTED); in xpc_connect_channel()
481 DBUG_ON(ch->flags & XPC_C_OPENREQUEST); in xpc_connect_channel()
483 if (ch->flags & XPC_C_DISCONNECTING) { in xpc_connect_channel()
503 if (ch->flags & XPC_C_ROPENREQUEST) { in xpc_connect_channel()
526 ch->flags &= ~XPC_C_DISCONNECTED; in xpc_connect_channel()
535 ch->flags |= (XPC_C_OPENREQUEST | XPC_C_CONNECTING); in xpc_connect_channel()
571 if (chctl.flags[ch_number] & XPC_OPENCLOSE_CHCTL_FLAGS) { in xpc_process_sent_chctl_flags()
573 chctl.flags[ch_number]); in xpc_process_sent_chctl_flags()
576 ch_flags = ch->flags; /* need an atomic snapshot of flags */ in xpc_process_sent_chctl_flags()
602 if (chctl.flags[ch_number] & XPC_MSG_CHCTL_FLAGS) in xpc_process_sent_chctl_flags()
726 if (!(ch->flags & XPC_C_DISCONNECTED)) { in xpc_initiate_disconnect()
727 ch->flags |= XPC_C_WDISCONNECT; in xpc_initiate_disconnect()
756 u32 channel_was_connected = (ch->flags & XPC_C_CONNECTED); in xpc_disconnect_channel()
760 if (ch->flags & (XPC_C_DISCONNECTING | XPC_C_DISCONNECTED)) in xpc_disconnect_channel()
763 DBUG_ON(!(ch->flags & (XPC_C_CONNECTING | XPC_C_CONNECTED))); in xpc_disconnect_channel()
770 ch->flags |= (XPC_C_CLOSEREQUEST | XPC_C_DISCONNECTING); in xpc_disconnect_channel()
772 ch->flags &= ~(XPC_C_OPENREQUEST | XPC_C_OPENREPLY | in xpc_disconnect_channel()
779 ch->flags |= XPC_C_WASCONNECTED; in xpc_disconnect_channel()
787 } else if ((ch->flags & XPC_C_CONNECTEDCALLOUT_MADE) && in xpc_disconnect_channel()
788 !(ch->flags & XPC_C_DISCONNECTINGCALLOUT)) { in xpc_disconnect_channel()
830 if (ch->flags & XPC_C_DISCONNECTING) { in xpc_allocate_msg_wait()
841 if (ch->flags & XPC_C_DISCONNECTING) { in xpc_allocate_msg_wait()
872 xpc_initiate_send(short partid, int ch_number, u32 flags, void *payload, in xpc_initiate_send() argument
887 flags, payload, payload_size, 0, NULL, NULL); in xpc_initiate_send()
923 xpc_initiate_send_notify(short partid, int ch_number, u32 flags, void *payload, in xpc_initiate_send_notify() argument
939 flags, payload, payload_size, XPC_N_CALL, func, key); in xpc_initiate_send_notify()