Home
last modified time | relevance | path

Searched refs:session (Results 1 – 25 of 338) sorted by relevance

12345678910>>...14

/linux-6.6.21/net/can/j1939/
Dtransport.c246 void j1939_session_get(struct j1939_session *session) in j1939_session_get() argument
248 kref_get(&session->kref); in j1939_session_get()
252 static void __j1939_session_drop(struct j1939_session *session) in __j1939_session_drop() argument
254 if (!session->transmission) in __j1939_session_drop()
257 j1939_sock_pending_del(session->sk); in __j1939_session_drop()
258 sock_put(session->sk); in __j1939_session_drop()
261 static void j1939_session_destroy(struct j1939_session *session) in j1939_session_destroy() argument
265 if (session->transmission) { in j1939_session_destroy()
266 if (session->err) in j1939_session_destroy()
267 j1939_sk_errqueue(session, J1939_ERRQUEUE_TX_ABORT); in j1939_session_destroy()
[all …]
/linux-6.6.21/net/bluetooth/hidp/
Dcore.c72 static void hidp_copy_session(struct hidp_session *session, struct hidp_conninfo *ci) in hidp_copy_session() argument
76 bacpy(&ci->bdaddr, &session->bdaddr); in hidp_copy_session()
78 ci->flags = session->flags & valid_flags; in hidp_copy_session()
81 if (session->input) { in hidp_copy_session()
82 ci->vendor = session->input->id.vendor; in hidp_copy_session()
83 ci->product = session->input->id.product; in hidp_copy_session()
84 ci->version = session->input->id.version; in hidp_copy_session()
85 if (session->input->name) in hidp_copy_session()
86 strscpy(ci->name, session->input->name, 128); in hidp_copy_session()
89 } else if (session->hid) { in hidp_copy_session()
[all …]
/linux-6.6.21/net/bluetooth/cmtp/
Dcore.c55 struct cmtp_session *session; in __cmtp_get_session() local
59 list_for_each_entry(session, &cmtp_session_list, list) in __cmtp_get_session()
60 if (!bacmp(bdaddr, &session->bdaddr)) in __cmtp_get_session()
61 return session; in __cmtp_get_session()
66 static void __cmtp_link_session(struct cmtp_session *session) in __cmtp_link_session() argument
68 list_add(&session->list, &cmtp_session_list); in __cmtp_link_session()
71 static void __cmtp_unlink_session(struct cmtp_session *session) in __cmtp_unlink_session() argument
73 list_del(&session->list); in __cmtp_unlink_session()
76 static void __cmtp_copy_session(struct cmtp_session *session, struct cmtp_conninfo *ci) in __cmtp_copy_session() argument
80 bacpy(&ci->bdaddr, &session->bdaddr); in __cmtp_copy_session()
[all …]
Dcapi.c73 static struct cmtp_application *cmtp_application_add(struct cmtp_session *session, __u16 appl) in cmtp_application_add() argument
77 BT_DBG("session %p application %p appl %u", session, app, appl); in cmtp_application_add()
85 list_add_tail(&app->list, &session->applications); in cmtp_application_add()
90 static void cmtp_application_del(struct cmtp_session *session, struct cmtp_application *app) in cmtp_application_del() argument
92 BT_DBG("session %p application %p", session, app); in cmtp_application_del()
100 static struct cmtp_application *cmtp_application_get(struct cmtp_session *session, int pattern, __u… in cmtp_application_get() argument
104 list_for_each_entry(app, &session->applications, list) { in cmtp_application_get()
124 static int cmtp_msgnum_get(struct cmtp_session *session) in cmtp_msgnum_get() argument
126 session->msgnum++; in cmtp_msgnum_get()
128 if ((session->msgnum & 0xff) > 200) in cmtp_msgnum_get()
[all …]
/linux-6.6.21/drivers/scsi/
Dlibiscsi.c90 struct Scsi_Host *shost = conn->session->host; in iscsi_conn_queue_xmit()
100 struct Scsi_Host *shost = conn->session->host; in iscsi_conn_queue_recv()
108 static void __iscsi_update_cmdsn(struct iscsi_session *session, in __iscsi_update_cmdsn() argument
118 if (exp_cmdsn != session->exp_cmdsn && in __iscsi_update_cmdsn()
119 !iscsi_sna_lt(exp_cmdsn, session->exp_cmdsn)) in __iscsi_update_cmdsn()
120 session->exp_cmdsn = exp_cmdsn; in __iscsi_update_cmdsn()
122 if (max_cmdsn != session->max_cmdsn && in __iscsi_update_cmdsn()
123 !iscsi_sna_lt(max_cmdsn, session->max_cmdsn)) in __iscsi_update_cmdsn()
124 session->max_cmdsn = max_cmdsn; in __iscsi_update_cmdsn()
127 void iscsi_update_cmdsn(struct iscsi_session *session, struct iscsi_nopin *hdr) in iscsi_update_cmdsn() argument
[all …]
Dscsi_transport_iscsi.c1687 int iscsi_session_chkready(struct iscsi_cls_session *session) in iscsi_session_chkready() argument
1691 switch (session->state) { in iscsi_session_chkready()
1709 int iscsi_is_session_online(struct iscsi_cls_session *session) in iscsi_is_session_online() argument
1714 spin_lock_irqsave(&session->lock, flags); in iscsi_is_session_online()
1715 if (session->state == ISCSI_SESSION_LOGGED_IN) in iscsi_is_session_online()
1717 spin_unlock_irqrestore(&session->lock, flags); in iscsi_is_session_online()
1724 struct iscsi_cls_session *session = iscsi_dev_to_session(dev); in iscsi_session_release() local
1727 shost = iscsi_session_to_shost(session); in iscsi_session_release()
1729 ISCSI_DBG_TRANS_SESSION(session, "Completing session release\n"); in iscsi_session_release()
1730 kfree(session); in iscsi_session_release()
[all …]
/linux-6.6.21/drivers/s390/char/
Dvmcp.c60 static void vmcp_response_alloc(struct vmcp_session *session) in vmcp_response_alloc() argument
65 order = get_order(session->bufsize); in vmcp_response_alloc()
66 nr_pages = ALIGN(session->bufsize, PAGE_SIZE) >> PAGE_SHIFT; in vmcp_response_alloc()
75 session->response = (char *)page_to_virt(page); in vmcp_response_alloc()
76 session->cma_alloc = 1; in vmcp_response_alloc()
79 session->response = (char *)__get_free_pages(GFP_KERNEL | __GFP_RETRY_MAYFAIL, order); in vmcp_response_alloc()
82 static void vmcp_response_free(struct vmcp_session *session) in vmcp_response_free() argument
87 if (!session->response) in vmcp_response_free()
89 order = get_order(session->bufsize); in vmcp_response_free()
90 nr_pages = ALIGN(session->bufsize, PAGE_SIZE) >> PAGE_SHIFT; in vmcp_response_free()
[all …]
/linux-6.6.21/net/l2tp/
Dl2tp_core.c158 static void l2tp_session_free(struct l2tp_session *session) in l2tp_session_free() argument
160 trace_free_session(session); in l2tp_session_free()
161 if (session->tunnel) in l2tp_session_free()
162 l2tp_tunnel_dec_refcount(session->tunnel); in l2tp_session_free()
163 kfree(session); in l2tp_session_free()
191 void l2tp_session_inc_refcount(struct l2tp_session *session) in l2tp_session_inc_refcount() argument
193 refcount_inc(&session->ref_count); in l2tp_session_inc_refcount()
197 void l2tp_session_dec_refcount(struct l2tp_session *session) in l2tp_session_dec_refcount() argument
199 if (refcount_dec_and_test(&session->ref_count)) in l2tp_session_dec_refcount()
200 l2tp_session_free(session); in l2tp_session_dec_refcount()
[all …]
Dl2tp_debugfs.c40 struct l2tp_session *session; /* NULL means get next tunnel */ member
56 if (pd->session) in l2tp_dfs_next_session()
57 l2tp_session_dec_refcount(pd->session); in l2tp_dfs_next_session()
59 pd->session = l2tp_session_get_nth(pd->tunnel, pd->session_idx); in l2tp_dfs_next_session()
62 if (!pd->session) { in l2tp_dfs_next_session()
88 if (!pd->tunnel && !pd->session) in l2tp_dfs_seq_start()
111 if (pd->session) { in l2tp_dfs_seq_stop()
112 l2tp_session_dec_refcount(pd->session); in l2tp_dfs_seq_stop()
113 pd->session = NULL; in l2tp_dfs_seq_stop()
124 struct l2tp_session *session; in l2tp_dfs_seq_tunnel_show() local
[all …]
Dtrace.h40 TP_PROTO(struct l2tp_session *session),
41 TP_ARGS(session),
46 memcpy(__entry->name, session->name, L2TP_SESSION_NAME_MAX);
91 TP_PROTO(struct l2tp_session *session),
92 TP_ARGS(session),
102 memcpy(__entry->name, session->name, L2TP_SESSION_NAME_MAX);
103 __entry->tid = session->tunnel ? session->tunnel->tunnel_id : 0;
104 __entry->ptid = session->tunnel ? session->tunnel->peer_tunnel_id : 0;
105 __entry->sid = session->session_id;
106 __entry->psid = session->peer_session_id;
[all …]
Dl2tp_ppp.c137 static struct sock *pppol2tp_session_get_sock(struct l2tp_session *session) in pppol2tp_session_get_sock() argument
139 struct pppol2tp_session *ps = l2tp_session_priv(session); in pppol2tp_session_get_sock()
155 struct l2tp_session *session; in pppol2tp_sock_to_session() local
161 session = (struct l2tp_session *)(sk->sk_user_data); in pppol2tp_sock_to_session()
162 if (!session) { in pppol2tp_sock_to_session()
166 if (WARN_ON(session->magic != L2TP_SESSION_MAGIC)) { in pppol2tp_sock_to_session()
167 session = NULL; in pppol2tp_sock_to_session()
173 return session; in pppol2tp_sock_to_session()
212 static void pppol2tp_recv(struct l2tp_session *session, struct sk_buff *skb, int data_len) in pppol2tp_recv() argument
214 struct pppol2tp_session *ps = l2tp_session_priv(session); in pppol2tp_recv()
[all …]
Dl2tp_eth.c39 struct l2tp_session *session; member
67 spriv = l2tp_session_priv(priv->session); in l2tp_eth_dev_uninit()
77 struct l2tp_session *session = priv->session; in l2tp_eth_dev_xmit() local
79 int ret = l2tp_xmit_skb(session, skb); in l2tp_eth_dev_xmit()
125 static void l2tp_eth_dev_recv(struct l2tp_session *session, struct sk_buff *skb, int data_len) in l2tp_eth_dev_recv() argument
127 struct l2tp_eth_sess *spriv = l2tp_session_priv(session); in l2tp_eth_dev_recv()
164 static void l2tp_eth_delete(struct l2tp_session *session) in l2tp_eth_delete() argument
169 if (session) { in l2tp_eth_delete()
170 spriv = l2tp_session_priv(session); in l2tp_eth_delete()
186 struct l2tp_session *session = arg; in l2tp_eth_show() local
[all …]
Dl2tp_netlink.c40 int flags, struct l2tp_session *session,
52 struct l2tp_session *session = NULL; in l2tp_nl_session_get() local
57 session = l2tp_session_get_by_ifname(net, ifname); in l2tp_nl_session_get()
64 session = l2tp_tunnel_get_session(tunnel, session_id); in l2tp_nl_session_get()
69 return session; in l2tp_nl_session_get()
132 struct l2tp_session *session, in l2tp_session_notify() argument
143 NLM_F_ACK, session, cmd); in l2tp_session_notify()
528 struct l2tp_session *session; in l2tp_nl_cmd_session_create() local
638 session = l2tp_tunnel_get_session(tunnel, session_id); in l2tp_nl_cmd_session_create()
639 if (session) { in l2tp_nl_cmd_session_create()
[all …]
/linux-6.6.21/kernel/trace/
Dtrace_stat.c47 static void __reset_stat_session(struct stat_session *session) in __reset_stat_session() argument
51 rbtree_postorder_for_each_entry_safe(snode, n, &session->stat_root, node) { in __reset_stat_session()
52 if (session->ts->stat_release) in __reset_stat_session()
53 session->ts->stat_release(snode->stat); in __reset_stat_session()
57 session->stat_root = RB_ROOT; in __reset_stat_session()
60 static void reset_stat_session(struct stat_session *session) in reset_stat_session() argument
62 mutex_lock(&session->stat_mutex); in reset_stat_session()
63 __reset_stat_session(session); in reset_stat_session()
64 mutex_unlock(&session->stat_mutex); in reset_stat_session()
67 static void destroy_session(struct stat_session *session) in destroy_session() argument
[all …]
/linux-6.6.21/tools/perf/
Dbuiltin-daemon.c117 struct daemon_session *session = zalloc(sizeof(*session)); in daemon__add_session() local
119 if (!session) in daemon__add_session()
122 session->name = strdup(name); in daemon__add_session()
123 if (!session->name) { in daemon__add_session()
124 free(session); in daemon__add_session()
128 session->pid = -1; in daemon__add_session()
129 list_add_tail(&session->list, &config->sessions); in daemon__add_session()
130 return session; in daemon__add_session()
135 struct daemon_session *session; in daemon__find_session() local
137 list_for_each_entry(session, &daemon->sessions, list) { in daemon__find_session()
[all …]
/linux-6.6.21/tools/perf/tests/
Dtopology.c35 struct perf_session *session; in session_write_header() local
41 session = perf_session__new(&data, NULL); in session_write_header()
42 TEST_ASSERT_VAL("can't get session", !IS_ERR(session)); in session_write_header()
44 session->evlist = evlist__new_default(); in session_write_header()
45 TEST_ASSERT_VAL("can't get evlist", session->evlist); in session_write_header()
47 perf_header__set_feat(&session->header, HEADER_CPU_TOPOLOGY); in session_write_header()
48 perf_header__set_feat(&session->header, HEADER_NRCPUS); in session_write_header()
49 perf_header__set_feat(&session->header, HEADER_ARCH); in session_write_header()
51 session->header.data_size += DATA_SIZE; in session_write_header()
54 !perf_session__write_header(session, session->evlist, data.file.fd, true)); in session_write_header()
[all …]
/linux-6.6.21/tools/perf/util/
Dsession.h76 void perf_session__delete(struct perf_session *session);
80 int perf_session__peek_event(struct perf_session *session, off_t file_offset,
84 typedef int (*peek_events_cb_t)(struct perf_session *session,
87 int perf_session__peek_events(struct perf_session *session, u64 offset,
90 int perf_session__process_events(struct perf_session *session);
97 int perf_session__resolve_callchain(struct perf_session *session,
103 bool perf_session__has_traces(struct perf_session *session, const char *msg);
107 int perf_session__create_kernel_maps(struct perf_session *session);
109 void perf_session__set_id_hdr_size(struct perf_session *session);
112 struct machine *perf_session__find_machine(struct perf_session *session, pid_t pid) in perf_session__find_machine() argument
[all …]
Dsession.c42 static int perf_session__process_compressed_event(struct perf_session *session, in perf_session__process_compressed_event() argument
49 size_t mmap_len, decomp_len = session->header.env.comp_mmap_len; in perf_session__process_compressed_event()
50 struct decomp *decomp, *decomp_last = session->active_decomp->decomp_last; in perf_session__process_compressed_event()
78 decomp_size = zstd_decompress_stream(session->active_decomp->zstd_decomp, src, src_size, in perf_session__process_compressed_event()
88 if (session->active_decomp->decomp == NULL) in perf_session__process_compressed_event()
89 session->active_decomp->decomp = decomp; in perf_session__process_compressed_event()
91 session->active_decomp->decomp_last->next = decomp; in perf_session__process_compressed_event()
93 session->active_decomp->decomp_last = decomp; in perf_session__process_compressed_event()
103 static int perf_session__deliver_event(struct perf_session *session,
109 static int perf_session__open(struct perf_session *session, int repipe_fd) in perf_session__open() argument
[all …]
Dhisi-ptt.c33 struct perf_session *session; member
84 static int hisi_ptt_process_event(struct perf_session *session __maybe_unused, in hisi_ptt_process_event()
92 static int hisi_ptt_process_auxtrace_event(struct perf_session *session, in hisi_ptt_process_auxtrace_event() argument
96 struct hisi_ptt *ptt = container_of(session->auxtrace, struct hisi_ptt, in hisi_ptt_process_auxtrace_event()
98 int fd = perf_data__fd(session->data); in hisi_ptt_process_auxtrace_event()
107 if (perf_data__is_pipe(session->data)) { in hisi_ptt_process_auxtrace_event()
128 static int hisi_ptt_flush(struct perf_session *session __maybe_unused, in hisi_ptt_flush()
134 static void hisi_ptt_free_events(struct perf_session *session __maybe_unused) in hisi_ptt_free_events()
138 static void hisi_ptt_free(struct perf_session *session) in hisi_ptt_free() argument
140 struct hisi_ptt *ptt = container_of(session->auxtrace, struct hisi_ptt, in hisi_ptt_free()
[all …]
Dauxtrace.h206 int (*process_event)(struct perf_session *session,
210 int (*process_auxtrace_event)(struct perf_session *session,
213 int (*queue_data)(struct perf_session *session,
216 void (*dump_auxtrace_sample)(struct perf_session *session,
218 int (*flush_events)(struct perf_session *session,
220 void (*free_events)(struct perf_session *session);
221 void (*free)(struct perf_session *session);
222 bool (*evsel_is_auxtrace)(struct perf_session *session,
396 struct perf_session *session,
524 struct perf_session *session,
[all …]
/linux-6.6.21/tools/perf/tests/shell/
Ddaemon.sh135 local session=$2
146 state=`perf daemon ping --config ${config} --session ${session} | awk '{ print $1 }'`
170 [session-size]
173 [session-time]
192 check_line_other "${line}" size "-e cpu-clock -m 1 sleep 10" ${base}/session-size \
193 ${base}/session-size/output ${base}/session-size/control \
194 ${base}/session-size/ack "0"
200 check_line_other "${line}" time "-e task-clock -m 1 sleep 10" ${base}/session-time \
201 ${base}/session-time/output ${base}/session-time/control \
202 ${base}/session-time/ack "0"
[all …]
/linux-6.6.21/tools/perf/Documentation/
Dperf-daemon.txt35 Not every 'perf record' session is suitable for running under daemon.
36 User need perf session that either produces data on query, like the
37 flight recorder sessions in above example or session that is configured
41 Each session is started with control setup (with perf record --control
77 The stop command stops all the session and the daemon process.
84 --session::
85 Send signal to specific session.
92 --session::
93 Send ping to specific session.
105 session-<NAME>.run:
[all …]
/linux-6.6.21/fs/ceph/
Dmds_client.c55 struct ceph_mds_session *session; member
1405 mds = cap->session->s_mds; in __choose_mds()
1634 struct ceph_mds_session *session) in __open_session() argument
1638 int mds = session->s_mds; in __open_session()
1647 session->s_state = CEPH_MDS_SESSION_OPENING; in __open_session()
1648 session->s_renew_requested = jiffies; in __open_session()
1651 msg = create_session_open_msg(mdsc, session->s_seq); in __open_session()
1654 ceph_con_send(&session->s_con, msg); in __open_session()
1666 struct ceph_mds_session *session; in __open_export_target_session() local
1669 session = __ceph_lookup_mds_session(mdsc, target); in __open_export_target_session()
[all …]
/linux-6.6.21/drivers/virt/vboxguest/
Dvboxguest_core.c575 struct vbg_session *session, in vbg_set_session_event_filter() argument
590 session->requestor); in vbg_set_session_event_filter()
600 previous = session->event_filter; in vbg_set_session_event_filter()
601 session->event_filter |= or_mask; in vbg_set_session_event_filter()
602 session->event_filter &= ~not_mask; in vbg_set_session_event_filter()
605 changed = previous ^ session->event_filter; in vbg_set_session_event_filter()
628 session->event_filter); in vbg_set_session_event_filter()
629 session->event_filter = previous; in vbg_set_session_event_filter()
673 struct vbg_session *session, in vbg_set_host_capabilities() argument
690 session->requestor); in vbg_set_host_capabilities()
[all …]
/linux-6.6.21/drivers/net/wwan/iosm/
Diosm_ipc_mux.c48 if_entry = &ipc_mux->session[if_id]; in ipc_mux_session_free()
116 skb_queue_head_init(&ipc_mux->session[if_id].ul_list); in ipc_mux_session_open()
118 ipc_mux->session[if_id].dl_head_pad_len = IPC_MEM_DL_ETH_OFFSET; in ipc_mux_session_open()
119 ipc_mux->session[if_id].ul_head_pad_len = in ipc_mux_session_open()
121 ipc_mux->session[if_id].wwan = ipc_mux->wwan; in ipc_mux_session_open()
124 ipc_mux->session[if_id].flow_ctl_en_cnt = 0; in ipc_mux_session_open()
125 ipc_mux->session[if_id].flow_ctl_dis_cnt = 0; in ipc_mux_session_open()
126 ipc_mux->session[if_id].ul_flow_credits = 0; in ipc_mux_session_open()
127 ipc_mux->session[if_id].net_tx_stop = false; in ipc_mux_session_open()
128 ipc_mux->session[if_id].flow_ctl_mask = 0; in ipc_mux_session_open()
[all …]

12345678910>>...14