Lines Matching refs:call
11 * Transition a call to the complete state.
13 bool rxrpc_set_call_completion(struct rxrpc_call *call,
18 if (__rxrpc_call_state(call) == RXRPC_CALL_COMPLETE)
21 call->abort_code = abort_code;
22 call->error = error;
23 call->completion = compl;
25 rxrpc_set_call_state(call, RXRPC_CALL_COMPLETE);
26 trace_rxrpc_call_complete(call);
27 wake_up(&call->waitq);
28 rxrpc_notify_socket(call);
33 * Record that a call successfully completed.
35 bool rxrpc_call_completed(struct rxrpc_call *call)
37 return rxrpc_set_call_completion(call, RXRPC_CALL_SUCCEEDED, 0, 0);
41 * Record that a call is locally aborted.
43 bool rxrpc_abort_call(struct rxrpc_call *call, rxrpc_seq_t seq,
46 trace_rxrpc_abort(call->debug_id, why, call->cid, call->call_id, seq,
48 if (!rxrpc_set_call_completion(call, RXRPC_CALL_LOCALLY_ABORTED,
51 if (test_bit(RXRPC_CALL_EXPOSED, &call->flags))
52 rxrpc_send_abort_packet(call);
57 * Record that a call errored out before even getting off the ground, thereby
60 void rxrpc_prefail_call(struct rxrpc_call *call, enum rxrpc_call_completion compl,
63 call->abort_code = RX_CALL_DEAD;
64 call->error = error;
65 call->completion = compl;
66 call->_state = RXRPC_CALL_COMPLETE;
67 trace_rxrpc_call_complete(call);
68 WARN_ON_ONCE(__test_and_set_bit(RXRPC_CALL_RELEASED, &call->flags));