Home
last modified time | relevance | path

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

12

/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 …]
Dsocket.c98 static bool j1939_sk_queue_session(struct j1939_session *session) in j1939_sk_queue_session() argument
100 struct j1939_sock *jsk = j1939_sk(session->sk); in j1939_sk_queue_session()
105 j1939_session_get(session); in j1939_sk_queue_session()
106 list_add_tail(&session->sk_session_queue_entry, &jsk->sk_session_queue); in j1939_sk_queue_session()
116 struct j1939_session *session = NULL; in j1939_sk_get_incomplete_session() local
120 session = list_last_entry(&jsk->sk_session_queue, in j1939_sk_get_incomplete_session()
123 if (session->total_queued_size == session->total_message_size) in j1939_sk_get_incomplete_session()
124 session = NULL; in j1939_sk_get_incomplete_session()
126 j1939_session_get(session); in j1939_sk_get_incomplete_session()
130 return session; in j1939_sk_get_incomplete_session()
[all …]
Dj1939-priv.h188 void j1939_sk_errqueue(struct j1939_session *session,
190 void j1939_sk_queue_activate_next(struct j1939_session *session);
326 void j1939_session_get(struct j1939_session *session);
327 void j1939_session_put(struct j1939_session *session);
328 void j1939_session_skb_queue(struct j1939_session *session,
330 int j1939_session_activate(struct j1939_session *session);
331 void j1939_tp_schedule_txtimer(struct j1939_session *session, int msec);
332 void j1939_session_timers_cancel(struct j1939_session *session);
/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 …]
/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 …]
Dcmtp.h120 int cmtp_attach_device(struct cmtp_session *session);
121 void cmtp_detach_device(struct cmtp_session *session);
123 void cmtp_recv_capimsg(struct cmtp_session *session, struct sk_buff *skb);
/net/l2tp/
Dl2tp_core.c163 static void l2tp_session_free(struct l2tp_session *session) in l2tp_session_free() argument
165 trace_free_session(session); in l2tp_session_free()
166 if (session->tunnel) in l2tp_session_free()
167 l2tp_tunnel_dec_refcount(session->tunnel); in l2tp_session_free()
168 kfree(session); in l2tp_session_free()
196 void l2tp_session_inc_refcount(struct l2tp_session *session) in l2tp_session_inc_refcount() argument
198 refcount_inc(&session->ref_count); in l2tp_session_inc_refcount()
202 void l2tp_session_dec_refcount(struct l2tp_session *session) in l2tp_session_dec_refcount() argument
204 if (refcount_dec_and_test(&session->ref_count)) in l2tp_session_dec_refcount()
205 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 …]
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 …]
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_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()
167 static void l2tp_eth_delete(struct l2tp_session *session) in l2tp_eth_delete() argument
172 if (session) { in l2tp_eth_delete()
173 spriv = l2tp_session_priv(session); in l2tp_eth_delete()
189 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 …]
Dl2tp_core.h112 void (*recv_skb)(struct l2tp_session *session, struct sk_buff *skb, int data_len);
120 void (*session_close)(struct l2tp_session *session);
207 void (*session_delete)(struct l2tp_session *session);
210 static inline void *l2tp_session_priv(struct l2tp_session *session) in l2tp_session_priv() argument
212 return &session->priv[0]; in l2tp_session_priv()
218 void l2tp_session_inc_refcount(struct l2tp_session *session);
219 void l2tp_session_dec_refcount(struct l2tp_session *session);
250 int l2tp_session_register(struct l2tp_session *session,
252 void l2tp_session_delete(struct l2tp_session *session);
258 void l2tp_recv_common(struct l2tp_session *session, struct sk_buff *skb,
[all …]
Dl2tp_ip.c120 struct l2tp_session *session; in l2tp_ip_recv() local
143 session = l2tp_session_get(net, session_id); in l2tp_ip_recv()
144 if (!session) in l2tp_ip_recv()
147 tunnel = session->tunnel; in l2tp_ip_recv()
151 if (l2tp_v3_ensure_opt_in_linear(session, skb, &ptr, &optr)) in l2tp_ip_recv()
154 l2tp_recv_common(session, skb, ptr, optr, 0, skb->len); in l2tp_ip_recv()
155 l2tp_session_dec_refcount(session); in l2tp_ip_recv()
188 l2tp_session_dec_refcount(session); in l2tp_ip_recv()
Dl2tp_ip6.c130 struct l2tp_session *session; in l2tp_ip6_recv() local
153 session = l2tp_session_get(net, session_id); in l2tp_ip6_recv()
154 if (!session) in l2tp_ip6_recv()
157 tunnel = session->tunnel; in l2tp_ip6_recv()
161 if (l2tp_v3_ensure_opt_in_linear(session, skb, &ptr, &optr)) in l2tp_ip6_recv()
164 l2tp_recv_common(session, skb, ptr, optr, 0, skb->len); in l2tp_ip6_recv()
165 l2tp_session_dec_refcount(session); in l2tp_ip6_recv()
198 l2tp_session_dec_refcount(session); in l2tp_ip6_recv()
DKconfig31 and session setup). One such daemon is OpenL2TP
/net/batman-adv/
Dtp_meter.c97 static u32 batadv_tp_session_cookie(const u8 session[2], u8 icmp_uid) in batadv_tp_session_cookie()
102 cookie |= session[0] << 8; in batadv_tp_session_cookie()
103 cookie |= session[1]; in batadv_tp_session_cookie()
302 const u8 *session) in batadv_tp_list_find_session() argument
311 if (memcmp(pos->session, session, sizeof(pos->session)) != 0) in batadv_tp_list_find_session()
419 session_cookie = batadv_tp_session_cookie(tp_vars->session, in batadv_tp_sender_end()
579 u32 seqno, size_t len, const u8 *session, in batadv_tp_send_msg() argument
605 memcpy(icmp->session, session, sizeof(icmp->session)); in batadv_tp_send_msg()
646 icmp->session); in batadv_tp_recv_ack()
688 icmp->session, icmp->uid, in batadv_tp_recv_ack()
[all …]
/net/mac80211/
Dfils_aead.c223 const struct element *session; in fils_encrypt_assoc_req() local
235 session = cfg80211_find_ext_elem(WLAN_EID_EXT_FILS_SESSION, in fils_encrypt_assoc_req()
237 if (!session || session->datalen != 1 + 8) in fils_encrypt_assoc_req()
240 encr = (u8 *)session->data + 1 + 8; in fils_encrypt_assoc_req()
275 const struct element *session; in fils_decrypt_assoc_resp() local
285 session = cfg80211_find_ext_elem(WLAN_EID_EXT_FILS_SESSION, in fils_decrypt_assoc_resp()
287 if (!session || session->datalen != 1 + 8) { in fils_decrypt_assoc_resp()
294 encr = (u8 *)session->data + 1 + 8; in fils_decrypt_assoc_resp()
/net/atm/
Dsignaling.c87 session_vcc = vcc->session ? vcc->session : vcc; in sigd_send()
149 static unsigned int session = 0; in sigd_enq2() local
171 msg->session = ++session; in sigd_enq2()
/net/rxrpc/
DKconfig3 # RxRPC session sockets
7 tristate "RxRPC session sockets"
13 Say Y or M here to include support for RxRPC session sockets (just
/net/bluetooth/rfcomm/
Dcore.c214 struct sock *sk = d->session->sock->sk; in rfcomm_check_security()
338 d->session = s; in rfcomm_dlc_link()
343 struct rfcomm_session *s = d->session; in rfcomm_dlc_unlink()
348 d->session = NULL; in rfcomm_dlc_unlink()
439 struct rfcomm_session *s = d->session; in __rfcomm_dlc_disconn()
453 struct rfcomm_session *s = d->session; in __rfcomm_dlc_close()
513 s = d->session; in rfcomm_dlc_close()
1322 struct sock *sk = d->session->sock->sk; in rfcomm_dlc_accept()
1327 rfcomm_send_ua(d->session, d->dlci); in rfcomm_dlc_accept()
1339 rfcomm_send_msc(d->session, 1, d->dlci, d->v24_sig); in rfcomm_dlc_accept()
[all …]
/net/tipc/
Dlink.c159 u16 session; member
500 u32 min_win, u32 max_win, u32 session, u32 self, in tipc_link_create() argument
516 l->session = session; in tipc_link_create()
985 l->session++; in tipc_link_reset()
1889 msg_set_session(hdr, l->session); in tipc_link_build_proto_msg()
2157 u16 session = msg_session(hdr); in tipc_link_validate_msg() local
2168 return more(session, curr_session); in tipc_link_validate_msg()
2173 return !less(session, curr_session); in tipc_link_validate_msg()
2178 if (session != curr_session) in tipc_link_validate_msg()
2272 l->session != msg_dest_session(hdr)) { in tipc_link_proto_rcv()
[all …]
Dlink.h76 u32 min_win, u32 max_win, u32 session, u32 ownnode,
/net/bluetooth/bnep/
Dcore.c543 static struct device *bnep_get_device(struct bnep_session *session) in bnep_get_device() argument
545 struct l2cap_conn *conn = l2cap_pi(session->sock->sk)->chan->conn; in bnep_get_device()

12