Home
last modified time | relevance | path

Searched full:call (Results 1 – 25 of 3800) sorted by relevance

12345678910>>...152

/Linux-v5.4/net/rxrpc/
Dcall_object.c2 /* RxRPC individual remote procedure call handling
46 struct rxrpc_call *call = from_timer(call, t, timer); in rxrpc_call_timer_expired() local
48 _enter("%d", call->debug_id); in rxrpc_call_timer_expired()
50 if (call->state < RXRPC_CALL_COMPLETE) { in rxrpc_call_timer_expired()
51 trace_rxrpc_timer(call, rxrpc_timer_expired, jiffies); in rxrpc_call_timer_expired()
52 rxrpc_queue_call(call); in rxrpc_call_timer_expired()
59 * find an extant server call
65 struct rxrpc_call *call; in rxrpc_find_call_by_user_ID() local
74 call = rb_entry(p, struct rxrpc_call, sock_node); in rxrpc_find_call_by_user_ID()
76 if (user_call_ID < call->user_call_ID) in rxrpc_find_call_by_user_ID()
[all …]
Dsendmsg.c24 struct rxrpc_call *call, in rxrpc_wait_for_tx_window_intr() argument
29 if (call->tx_top - call->tx_hard_ack < in rxrpc_wait_for_tx_window_intr()
30 min_t(unsigned int, call->tx_winsize, in rxrpc_wait_for_tx_window_intr()
31 call->cong_cwnd + call->cong_extra)) in rxrpc_wait_for_tx_window_intr()
34 if (call->state >= RXRPC_CALL_COMPLETE) in rxrpc_wait_for_tx_window_intr()
35 return call->error; in rxrpc_wait_for_tx_window_intr()
40 trace_rxrpc_transmit(call, rxrpc_transmit_wait); in rxrpc_wait_for_tx_window_intr()
41 mutex_unlock(&call->user_mutex); in rxrpc_wait_for_tx_window_intr()
43 if (mutex_lock_interruptible(&call->user_mutex) < 0) in rxrpc_wait_for_tx_window_intr()
53 struct rxrpc_call *call) in rxrpc_wait_for_tx_window_nonintr() argument
[all …]
Dcall_event.c23 static void rxrpc_propose_ping(struct rxrpc_call *call, in rxrpc_propose_ping() argument
28 !test_and_set_bit(RXRPC_CALL_EV_PING, &call->events)) in rxrpc_propose_ping()
29 rxrpc_queue_call(call); in rxrpc_propose_ping()
34 if (time_before(ping_at, call->ping_at)) { in rxrpc_propose_ping()
35 WRITE_ONCE(call->ping_at, ping_at); in rxrpc_propose_ping()
36 rxrpc_reduce_call_timer(call, ping_at, now, in rxrpc_propose_ping()
45 static void __rxrpc_propose_ACK(struct rxrpc_call *call, u8 ack_reason, in __rxrpc_propose_ACK() argument
57 rxrpc_propose_ping(call, immediate, background); in __rxrpc_propose_ACK()
66 call->ackr_reason, rxrpc_ack_priority[call->ackr_reason]); in __rxrpc_propose_ACK()
67 if (ack_reason == call->ackr_reason) { in __rxrpc_propose_ACK()
[all …]
Drecvmsg.c20 * Post a call for attention by the socket or kernel service. Further
23 void rxrpc_notify_socket(struct rxrpc_call *call) in rxrpc_notify_socket() argument
28 _enter("%d", call->debug_id); in rxrpc_notify_socket()
30 if (!list_empty(&call->recvmsg_link)) in rxrpc_notify_socket()
35 rx = rcu_dereference(call->socket); in rxrpc_notify_socket()
38 if (call->notify_rx) { in rxrpc_notify_socket()
39 spin_lock_bh(&call->notify_lock); in rxrpc_notify_socket()
40 call->notify_rx(sk, call, call->user_call_ID); in rxrpc_notify_socket()
41 spin_unlock_bh(&call->notify_lock); in rxrpc_notify_socket()
44 if (list_empty(&call->recvmsg_link)) { in rxrpc_notify_socket()
[all …]
Dinput.c27 struct rxrpc_call *call, rxrpc_seq_t seq) in rxrpc_proto_abort() argument
29 if (rxrpc_abort_call(why, call, seq, RX_PROTOCOL_ERROR, -EBADMSG)) { in rxrpc_proto_abort()
30 set_bit(RXRPC_CALL_EV_ABORT, &call->events); in rxrpc_proto_abort()
31 rxrpc_queue_call(call); in rxrpc_proto_abort()
38 static void rxrpc_congestion_management(struct rxrpc_call *call, in rxrpc_congestion_management() argument
44 unsigned int cumulative_acks = call->cong_cumul_acks; in rxrpc_congestion_management()
45 unsigned int cwnd = call->cong_cwnd; in rxrpc_congestion_management()
49 (call->tx_top - call->tx_hard_ack) - summary->nr_acks; in rxrpc_congestion_management()
51 if (test_and_clear_bit(RXRPC_CALL_RETRANS_TIMEOUT, &call->flags)) { in rxrpc_congestion_management()
53 call->cong_ssthresh = max_t(unsigned int, in rxrpc_congestion_management()
[all …]
Dcall_accept.c2 /* incoming call handling
26 * Preallocate a single service call, connection and peer and, if possible,
37 struct rxrpc_call *call; in rxrpc_service_prealloc_one() local
94 call = rxrpc_alloc_call(rx, gfp, debug_id); in rxrpc_service_prealloc_one()
95 if (!call) in rxrpc_service_prealloc_one()
97 call->flags |= (1 << RXRPC_CALL_IS_SERVICE); in rxrpc_service_prealloc_one()
98 call->state = RXRPC_CALL_SERVER_PREALLOC; in rxrpc_service_prealloc_one()
100 trace_rxrpc_call(call->debug_id, rxrpc_call_new_service, in rxrpc_service_prealloc_one()
101 atomic_read(&call->usage), in rxrpc_service_prealloc_one()
123 call->user_call_ID = user_call_ID; in rxrpc_service_prealloc_one()
[all …]
Doutput.c36 static void rxrpc_tx_backoff(struct rxrpc_call *call, int ret) in rxrpc_tx_backoff() argument
39 u16 tx_backoff = READ_ONCE(call->tx_backoff); in rxrpc_tx_backoff()
42 WRITE_ONCE(call->tx_backoff, tx_backoff + 1); in rxrpc_tx_backoff()
44 WRITE_ONCE(call->tx_backoff, 0); in rxrpc_tx_backoff()
50 * lets the far side know we're still interested in this call and helps keep
56 static void rxrpc_set_keepalive(struct rxrpc_call *call) in rxrpc_set_keepalive() argument
58 unsigned long now = jiffies, keepalive_at = call->next_rx_timo / 6; in rxrpc_set_keepalive()
61 WRITE_ONCE(call->keepalive_at, keepalive_at); in rxrpc_set_keepalive()
62 rxrpc_reduce_call_timer(call, keepalive_at, now, in rxrpc_set_keepalive()
70 struct rxrpc_call *call, in rxrpc_fill_out_ack() argument
[all …]
Dconn_client.c8 * call so as to handle retransmitted DATA packets in case the server didn't
25 * (3) ACTIVE - The connection has at least one call in progress upon it, it
34 * (4) UPGRADE - As for ACTIVE, but only one call may be in progress and is
57 * This allows us to move terminal call state retransmission to the
58 * connection and to discard the call immediately we think it is done
63 * or a call ID counter overflows.
270 * Create or find a client connection to use for a call.
272 * If we return with a connection, the call will be on its waiting list. It's
273 * left to the caller to assign a channel and wake up the call.
276 struct rxrpc_call *call, in rxrpc_get_client_conn() argument
[all …]
/Linux-v5.4/fs/afs/
Drxrpc.c27 /* asynchronous incoming call initial processing */
135 * Allocate a call.
141 struct afs_call *call; in afs_alloc_call() local
144 call = kzalloc(sizeof(*call), gfp); in afs_alloc_call()
145 if (!call) in afs_alloc_call()
148 call->type = type; in afs_alloc_call()
149 call->net = net; in afs_alloc_call()
150 call->debug_id = atomic_inc_return(&rxrpc_debug_id); in afs_alloc_call()
151 atomic_set(&call->usage, 1); in afs_alloc_call()
152 INIT_WORK(&call->async_work, afs_process_async_call); in afs_alloc_call()
[all …]
Dcmservice.c114 * route an incoming cache manager call
117 bool afs_cm_incoming_call(struct afs_call *call) in afs_cm_incoming_call() argument
119 _enter("{%u, CB.OP %u}", call->service_id, call->operation_ID); in afs_cm_incoming_call()
121 call->epoch = rxrpc_kernel_get_epoch(call->net->socket, call->rxcall); in afs_cm_incoming_call()
123 switch (call->operation_ID) { in afs_cm_incoming_call()
125 call->type = &afs_SRXCBCallBack; in afs_cm_incoming_call()
128 call->type = &afs_SRXCBInitCallBackState; in afs_cm_incoming_call()
131 call->type = &afs_SRXCBInitCallBackState3; in afs_cm_incoming_call()
134 call->type = &afs_SRXCBProbe; in afs_cm_incoming_call()
137 call->type = &afs_SRXCBProbeUuid; in afs_cm_incoming_call()
[all …]
Dyfsclient.c20 static inline void afs_use_fs_server(struct afs_call *call, struct afs_cb_interest *cbi) in afs_use_fs_server() argument
22 call->cbi = afs_get_cb_interest(cbi); in afs_use_fs_server()
147 static void yfs_check_req(struct afs_call *call, __be32 *bp) in yfs_check_req() argument
149 size_t len = (void *)bp - call->request; in yfs_check_req()
151 if (len > call->request_size) in yfs_check_req()
153 call->type->name, len, call->request_size); in yfs_check_req()
154 else if (len < call->request_size) in yfs_check_req()
156 call->type->name, len, call->request_size); in yfs_check_req()
183 struct afs_call *call, in xdr_decode_YFSFetchStatus() argument
229 return afs_protocol_error(call, -EBADMSG, afs_eproto_bad_status); in xdr_decode_YFSFetchStatus()
[all …]
Dfsclient.c18 static inline void afs_use_fs_server(struct afs_call *call, struct afs_cb_interest *cbi) in afs_use_fs_server() argument
20 call->cbi = afs_get_cb_interest(cbi); in afs_use_fs_server()
60 struct afs_call *call, in xdr_decode_AFSFetchStatus() argument
65 bool inline_error = (call->operation_ID == afs_FS_InlineBulkStatus); in xdr_decode_AFSFetchStatus()
132 return afs_protocol_error(call, -EBADMSG, afs_eproto_bad_status); in xdr_decode_AFSFetchStatus()
135 static time64_t xdr_decode_expiry(struct afs_call *call, u32 expiry) in xdr_decode_expiry() argument
137 return ktime_divns(call->reply_time, NSEC_PER_SEC) + expiry; in xdr_decode_expiry()
141 struct afs_call *call, in xdr_decode_AFSCallBack() argument
148 cb->expires_at = xdr_decode_expiry(call, ntohl(*bp++)); in xdr_decode_AFSCallBack()
241 static int afs_deliver_fs_fetch_status_vnode(struct afs_call *call) in afs_deliver_fs_fetch_status_vnode() argument
[all …]
Dvlclient.c15 * Deliver reply data to a VL.GetEntryByNameU call.
17 static int afs_deliver_vl_get_entry_by_name_u(struct afs_call *call) in afs_deliver_vl_get_entry_by_name_u() argument
27 ret = afs_transfer_reply(call); in afs_deliver_vl_get_entry_by_name_u()
32 uvldb = call->buffer; in afs_deliver_vl_get_entry_by_name_u()
33 entry = call->ret_vldb; in afs_deliver_vl_get_entry_by_name_u()
108 static void afs_destroy_vl_get_entry_by_name_u(struct afs_call *call) in afs_destroy_vl_get_entry_by_name_u() argument
110 kfree(call->ret_vldb); in afs_destroy_vl_get_entry_by_name_u()
111 afs_flat_call_destructor(call); in afs_destroy_vl_get_entry_by_name_u()
133 struct afs_call *call; in afs_vl_get_entry_by_name_u() local
147 call = afs_alloc_flat_call(net, &afs_RXVLGetEntryByNameU, reqsz, in afs_vl_get_entry_by_name_u()
[all …]
/Linux-v5.4/include/asm-generic/
Dsyscall.h3 * Access to user system call parameters and results
23 * syscall_get_nr - find what system call a task is executing
27 * If @task is executing a system call or is at system call
28 * tracing about to attempt one, returns the system call number.
29 * If @task is not executing a system call, i.e. it's blocked
33 * system call number can be meaningful. If the actual arch value
36 * It's only valid to call this when @task is known to be blocked.
41 * syscall_rollback - roll back registers after an aborted system call
42 * @task: task of interest, must be in system call exit tracing
45 * It's only valid to call this when @task is stopped for system
[all …]
/Linux-v5.4/include/trace/events/
Drxrpc.h615 __field(unsigned int, call )
623 __entry->call = call_debug_id;
631 __entry->call,
744 TP_PROTO(struct rxrpc_call *call),
746 TP_ARGS(call),
749 __field(unsigned int, call )
756 __entry->call = call->debug_id;
757 __entry->compl = call->completion;
758 __entry->error = call->error;
759 __entry->abort_code = call->abort_code;
[all …]
Dafs.h249 EM(afs_server_trace_put_call, "PUT call ") \
464 TP_PROTO(struct afs_call *call, struct iov_iter *iter,
467 TP_ARGS(call, iter, want_more, ret),
471 __field(unsigned int, call )
479 __entry->call = call->debug_id;
480 __entry->state = call->state;
481 __entry->unmarshall = call->unmarshall;
488 __entry->call,
497 TP_PROTO(struct rxrpc_call *rxcall, struct afs_call *call),
499 TP_ARGS(rxcall, call),
[all …]
/Linux-v5.4/arch/nds32/include/asm/
Dsyscall.h14 * syscall_get_nr - find what system call a task is executing
18 * If @task is executing a system call or is at system call
19 * tracing about to attempt one, returns the system call number.
20 * If @task is not executing a system call, i.e. it's blocked
24 * system call number can be meaningful. If the actual arch value
27 * It's only valid to call this when @task is known to be blocked.
36 * syscall_rollback - roll back registers after an aborted system call
37 * @task: task of interest, must be in system call exit tracing
40 * It's only valid to call this when @task is stopped for system
41 * call exit tracing (due to TIF_SYSCALL_TRACE or TIF_SYSCALL_AUDIT),
[all …]
/Linux-v5.4/Documentation/networking/
Drxrpc.txt63 (3) Retention of the reusable bits of the transport system set up for one call
122 (*) Each RxRPC operation is a "call". A connection may make up to four
147 explicitly sequenced per call.
158 (*) An call is complete when the request has been sent, the reply has been
162 (*) An call may be aborted by either end at any time up to its completion.
183 the last call currently using it has completed in case a new call is made
216 be used in all other sendmsgs or recvmsgs associated with that call. The
221 first sendmsg() of a call (struct msghdr::msg_name).
227 first sendmsg() of the call must specify the target address. The server's
230 (*) Once the application has received the last message associated with a call,
[all …]
/Linux-v5.4/tools/
DMakefile61 $(call descend,power/$@)
64 $(call descend,power/$@)
67 $(call descend,$@)
70 $(call descend,lib/lockdep)
73 $(call descend,lib/api)
84 $(call descend,testing/$@)
87 $(call descend,power/x86/$@)
90 $(call descend,thermal/$@)
93 $(call descend,laptop/$@)
96 $(call descend,kvm/$@)
[all …]
/Linux-v5.4/tools/perf/util/
Dthread-stack.h3 * thread-stack.h: Synthesize a thread's stack using call / return events
25 * Call/Return flags.
27 * CALL_RETURN_NO_CALL: 'return' but no matching 'call'
28 * CALL_RETURN_NO_RETURN: 'call' but no matching 'return'
29 * CALL_RETURN_NON_CALL: a branch but not a 'call' to the start of a different
39 * struct call_return - paired call/return information.
40 * @thread: thread in which call/return occurred
41 * @comm: comm in which call/return occurred
42 * @cp: call path
43 * @call_time: timestamp of call (if known)
[all …]
/Linux-v5.4/include/trace/
Dtrace_events.h7 * struct trace_event_raw_<call> {
161 * struct trace_event_data_offsets_<call> {
203 #define DECLARE_EVENT_CLASS(call, proto, args, tstruct, assign, print) \ argument
204 struct trace_event_data_offsets_##call { \
229 * trace_raw_output_<call>(struct trace_iterator *iter, int flags)
232 * struct trace_event_raw_<call> *field; <-- defined in stage 1
239 * if (entry->type != event_<call>->event.type) {
247 * ret = trace_seq_printf(s, "%s: ", <call>);
344 #define DECLARE_EVENT_CLASS(call, proto, args, tstruct, assign, print) \ argument
346 trace_raw_output_##call(struct trace_iterator *iter, int flags, \
[all …]
/Linux-v5.4/arch/x86/
DMakefile_32.cpu6 HAS_MTUNE := $(call cc-option-yn, -mtune=i386)
8 tune = $(call cc-option,-mtune=$(1),$(2))
10 tune = $(call cc-option,-mcpu=$(1),$(2))
18 cflags-$(CONFIG_MPENTIUMII) += -march=i686 $(call tune,pentium2)
19 cflags-$(CONFIG_MPENTIUMIII) += -march=i686 $(call tune,pentium3)
20 cflags-$(CONFIG_MPENTIUMM) += -march=i686 $(call tune,pentium3)
21 cflags-$(CONFIG_MPENTIUM4) += -march=i686 $(call tune,pentium4)
26 cflags-$(CONFIG_MK8) += $(call cc-option,-march=k8,-march=athlon)
28 cflags-$(CONFIG_MEFFICEON) += -march=i686 $(call tune,pentium3) -falign-functions=0 -falign-jumps=0…
29 cflags-$(CONFIG_MWINCHIPC6) += $(call cc-option,-march=winchip-c6,-march=i586)
[all …]
/Linux-v5.4/tools/perf/
DMakefile.config23 $(call detected_var,SRCARCH)
38 $(call detected,CONFIG_X86)
44 $(call detected,CONFIG_X86_64)
78 $(call detected,CONFIG_PERF_REGS)
112 $(foreach libunwind_arch,$(LIBUNWIND_ARCHS),$(call libunwind_arch_set_flags,$(libunwind_arch)))
181 ifeq ($(call get-executable,$(FLEX)),)
185 ifeq ($(call get-executable,$(BISON)),)
211 $(call detected_var,PARSER_DEBUG_BISON)
212 $(call detected_var,PARSER_DEBUG_FLEX)
219 PYTHON2 := $(if $(call get-executable,python2),python2,python)
[all …]
/Linux-v5.4/tools/scripts/
Dutilities.mak10 # Usage: escape = $(call nl-escape[,escape])
20 # Usage: escaped-text = $(call escape-nl,text[,escape])
30 # $(call unescape-nl...)
32 escape-nl = $(subst $(newline),$(call nl-escape,$(2)),$(1))
36 # Usage: text = $(call unescape-nl,escaped-text[,escape])
40 unescape-nl = $(subst $(call nl-escape,$(2)),$(newline),$(1))
44 # Usage: $(shell some-command | $(call shell-escape-nl[,escape]))
46 # Use this to escape newlines from within a shell call;
60 # Usage: $(shell some-command | $(call shell-unescape-nl[,escape]))
62 # Use this to unescape newlines from within a shell call;
[all …]
/Linux-v5.4/Documentation/process/
Dadding-syscalls.rst4 Adding a New System Call
7 This document describes what's involved in adding a new system call to the
12 System Call Alternatives
15 The first thing to consider when adding a new system call is whether one of
43 :manpage:`fcntl(2)` is a multiplexing system call that hides a lot of complexity, so
49 with :manpage:`fcntl(2)`, this system call is a complicated multiplexor so
57 A new system call forms part of the API of the kernel, and has to be supported
70 system call. To make sure that userspace programs can safely use flags
72 flags, and reject the system call (with ``EINVAL``) if it does::
109 If your new system call allows userspace to refer to a kernel object, it
[all …]

12345678910>>...152