/kernel/linux/linux-5.10/net/can/j1939/ |
D | transport.c | 246 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->err) in j1939_session_destroy() 266 j1939_sk_errqueue(session, J1939_ERRQUEUE_ABORT); in j1939_session_destroy() 268 j1939_sk_errqueue(session, J1939_ERRQUEUE_ACK); in j1939_session_destroy() [all …]
|
/kernel/linux/linux-4.19/net/bluetooth/hidp/ |
D | core.c | 72 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 strlcpy(ci->name, session->input->name, 128); in hidp_copy_session() 89 } else if (session->hid) { in hidp_copy_session() [all …]
|
/kernel/linux/linux-5.10/net/bluetooth/hidp/ |
D | core.c | 72 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 strlcpy(ci->name, session->input->name, 128); in hidp_copy_session() 89 } else if (session->hid) { in hidp_copy_session() [all …]
|
/kernel/linux/linux-5.10/net/bluetooth/cmtp/ |
D | core.c | 55 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 …]
|
D | capi.c | 73 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 %d", 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 …]
|
/kernel/linux/linux-4.19/net/bluetooth/cmtp/ |
D | core.c | 55 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 …]
|
D | capi.c | 73 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 %d", 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 …]
|
/kernel/linux/linux-4.19/net/l2tp/ |
D | l2tp_core.c | 209 struct l2tp_session *session; in l2tp_tunnel_get_session() local 214 hlist_for_each_entry(session, session_list, hlist) in l2tp_tunnel_get_session() 215 if (session->session_id == session_id) { in l2tp_tunnel_get_session() 216 l2tp_session_inc_refcount(session); in l2tp_tunnel_get_session() 219 return session; in l2tp_tunnel_get_session() 230 struct l2tp_session *session; in l2tp_session_get() local 235 hlist_for_each_entry_rcu(session, session_list, global_hlist) in l2tp_session_get() 236 if (session->session_id == session_id) { in l2tp_session_get() 237 l2tp_session_inc_refcount(session); in l2tp_session_get() 240 return session; in l2tp_session_get() [all …]
|
D | l2tp_debugfs.c | 45 struct l2tp_session *session; /* NULL means get next tunnel */ member 61 if (pd->session) in l2tp_dfs_next_session() 62 l2tp_session_dec_refcount(pd->session); in l2tp_dfs_next_session() 64 pd->session = l2tp_session_get_nth(pd->tunnel, pd->session_idx); in l2tp_dfs_next_session() 67 if (pd->session == NULL) { in l2tp_dfs_next_session() 91 if ((pd->tunnel == NULL) && (pd->session == NULL)) in l2tp_dfs_seq_start() 115 if (pd->session) { in l2tp_dfs_seq_stop() 116 l2tp_session_dec_refcount(pd->session); in l2tp_dfs_seq_stop() 117 pd->session = NULL; in l2tp_dfs_seq_stop() 136 struct l2tp_session *session; in l2tp_dfs_seq_tunnel_show() local [all …]
|
D | l2tp_ppp.c | 142 static struct sock *pppol2tp_session_get_sock(struct l2tp_session *session) in pppol2tp_session_get_sock() argument 144 struct pppol2tp_session *ps = l2tp_session_priv(session); in pppol2tp_session_get_sock() 160 struct l2tp_session *session; in pppol2tp_sock_to_session() local 166 session = (struct l2tp_session *)(sk->sk_user_data); in pppol2tp_sock_to_session() 167 if (session == NULL) { in pppol2tp_sock_to_session() 172 BUG_ON(session->magic != L2TP_SESSION_MAGIC); in pppol2tp_sock_to_session() 175 return session; in pppol2tp_sock_to_session() 215 static void pppol2tp_recv(struct l2tp_session *session, struct sk_buff *skb, int data_len) in pppol2tp_recv() argument 217 struct pppol2tp_session *ps = l2tp_session_priv(session); in pppol2tp_recv() 242 l2tp_dbg(session, L2TP_MSG_DATA, in pppol2tp_recv() [all …]
|
D | l2tp_eth.c | 44 struct l2tp_session *session; member 73 spriv = l2tp_session_priv(priv->session); in l2tp_eth_dev_uninit() 83 struct l2tp_session *session = priv->session; in l2tp_eth_dev_xmit() local 85 int ret = l2tp_xmit_skb(session, skb, session->hdr_len); in l2tp_eth_dev_xmit() 132 static void l2tp_eth_dev_recv(struct l2tp_session *session, struct sk_buff *skb, int data_len) in l2tp_eth_dev_recv() argument 134 struct l2tp_eth_sess *spriv = l2tp_session_priv(session); in l2tp_eth_dev_recv() 138 if (session->debug & L2TP_MSG_DATA) { in l2tp_eth_dev_recv() 145 pr_debug("%s: eth recv\n", session->name); in l2tp_eth_dev_recv() 182 static void l2tp_eth_delete(struct l2tp_session *session) in l2tp_eth_delete() argument 187 if (session) { in l2tp_eth_delete() [all …]
|
/kernel/linux/linux-5.10/drivers/s390/char/ |
D | vmcp.c | 60 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_phys(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 …]
|
/kernel/linux/linux-4.19/drivers/s390/char/ |
D | vmcp.c | 58 static void vmcp_response_alloc(struct vmcp_session *session) in vmcp_response_alloc() argument 63 order = get_order(session->bufsize); in vmcp_response_alloc() 64 nr_pages = ALIGN(session->bufsize, PAGE_SIZE) >> PAGE_SHIFT; in vmcp_response_alloc() 73 session->response = (char *)page_to_phys(page); in vmcp_response_alloc() 74 session->cma_alloc = 1; in vmcp_response_alloc() 77 session->response = (char *)__get_free_pages(GFP_KERNEL | __GFP_RETRY_MAYFAIL, order); in vmcp_response_alloc() 80 static void vmcp_response_free(struct vmcp_session *session) in vmcp_response_free() argument 85 if (!session->response) in vmcp_response_free() 87 order = get_order(session->bufsize); in vmcp_response_free() 88 nr_pages = ALIGN(session->bufsize, PAGE_SIZE) >> PAGE_SHIFT; in vmcp_response_free() [all …]
|
/kernel/linux/linux-5.10/drivers/scsi/ |
D | libiscsi.c | 88 struct Scsi_Host *shost = conn->session->host; in iscsi_conn_queue_work() 96 static void __iscsi_update_cmdsn(struct iscsi_session *session, in __iscsi_update_cmdsn() argument 106 if (exp_cmdsn != session->exp_cmdsn && in __iscsi_update_cmdsn() 107 !iscsi_sna_lt(exp_cmdsn, session->exp_cmdsn)) in __iscsi_update_cmdsn() 108 session->exp_cmdsn = exp_cmdsn; in __iscsi_update_cmdsn() 110 if (max_cmdsn != session->max_cmdsn && in __iscsi_update_cmdsn() 111 !iscsi_sna_lt(max_cmdsn, session->max_cmdsn)) in __iscsi_update_cmdsn() 112 session->max_cmdsn = max_cmdsn; in __iscsi_update_cmdsn() 115 void iscsi_update_cmdsn(struct iscsi_session *session, struct iscsi_nopin *hdr) in iscsi_update_cmdsn() argument 117 __iscsi_update_cmdsn(session, be32_to_cpu(hdr->exp_cmdsn), in iscsi_update_cmdsn() [all …]
|
/kernel/linux/linux-5.10/net/l2tp/ |
D | l2tp_core.c | 158 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 …]
|
D | l2tp_debugfs.c | 39 struct l2tp_session *session; /* NULL means get next tunnel */ member 55 if (pd->session) in l2tp_dfs_next_session() 56 l2tp_session_dec_refcount(pd->session); in l2tp_dfs_next_session() 58 pd->session = l2tp_session_get_nth(pd->tunnel, pd->session_idx); in l2tp_dfs_next_session() 61 if (!pd->session) { in l2tp_dfs_next_session() 87 if (!pd->tunnel && !pd->session) in l2tp_dfs_seq_start() 110 if (pd->session) { in l2tp_dfs_seq_stop() 111 l2tp_session_dec_refcount(pd->session); in l2tp_dfs_seq_stop() 112 pd->session = NULL; in l2tp_dfs_seq_stop() 131 struct l2tp_session *session; in l2tp_dfs_seq_tunnel_show() local [all …]
|
D | trace.h | 40 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 …]
|
D | l2tp_ppp.c | 137 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() 213 static void pppol2tp_recv(struct l2tp_session *session, struct sk_buff *skb, int data_len) in pppol2tp_recv() argument 215 struct pppol2tp_session *ps = l2tp_session_priv(session); in pppol2tp_recv() [all …]
|
/kernel/linux/linux-4.19/drivers/scsi/ |
D | libiscsi.c | 91 struct Scsi_Host *shost = conn->session->host; in iscsi_conn_queue_work() 99 static void __iscsi_update_cmdsn(struct iscsi_session *session, in __iscsi_update_cmdsn() argument 109 if (exp_cmdsn != session->exp_cmdsn && in __iscsi_update_cmdsn() 110 !iscsi_sna_lt(exp_cmdsn, session->exp_cmdsn)) in __iscsi_update_cmdsn() 111 session->exp_cmdsn = exp_cmdsn; in __iscsi_update_cmdsn() 113 if (max_cmdsn != session->max_cmdsn && in __iscsi_update_cmdsn() 114 !iscsi_sna_lt(max_cmdsn, session->max_cmdsn)) in __iscsi_update_cmdsn() 115 session->max_cmdsn = max_cmdsn; in __iscsi_update_cmdsn() 118 void iscsi_update_cmdsn(struct iscsi_session *session, struct iscsi_nopin *hdr) in iscsi_update_cmdsn() argument 120 __iscsi_update_cmdsn(session, be32_to_cpu(hdr->exp_cmdsn), in iscsi_update_cmdsn() [all …]
|
/kernel/linux/linux-4.19/kernel/trace/ |
D | trace_stat.c | 47 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 …]
|
/kernel/linux/linux-5.10/kernel/trace/ |
D | trace_stat.c | 47 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 …]
|
/kernel/linux/linux-5.10/tools/perf/tests/ |
D | topology.c | 34 struct perf_session *session; in session_write_header() local 40 session = perf_session__new(&data, false, NULL); in session_write_header() 41 TEST_ASSERT_VAL("can't get session", !IS_ERR(session)); in session_write_header() 43 session->evlist = perf_evlist__new_default(); in session_write_header() 44 TEST_ASSERT_VAL("can't get evlist", session->evlist); in session_write_header() 46 perf_header__set_feat(&session->header, HEADER_CPU_TOPOLOGY); in session_write_header() 47 perf_header__set_feat(&session->header, HEADER_NRCPUS); in session_write_header() 48 perf_header__set_feat(&session->header, HEADER_ARCH); in session_write_header() 50 session->header.data_size += DATA_SIZE; in session_write_header() 53 !perf_session__write_header(session, session->evlist, data.file.fd, true)); in session_write_header() [all …]
|
/kernel/linux/linux-4.19/tools/perf/tests/ |
D | topology.c | 32 struct perf_session *session; in session_write_header() local 40 session = perf_session__new(&data, false, NULL); in session_write_header() 41 TEST_ASSERT_VAL("can't get session", session); in session_write_header() 43 session->evlist = perf_evlist__new_default(); in session_write_header() 44 TEST_ASSERT_VAL("can't get evlist", session->evlist); in session_write_header() 46 perf_header__set_feat(&session->header, HEADER_CPU_TOPOLOGY); in session_write_header() 47 perf_header__set_feat(&session->header, HEADER_NRCPUS); in session_write_header() 48 perf_header__set_feat(&session->header, HEADER_ARCH); in session_write_header() 50 session->header.data_size += DATA_SIZE; in session_write_header() 53 !perf_session__write_header(session, session->evlist, data.file.fd, true)); in session_write_header() [all …]
|
/kernel/linux/linux-5.10/tools/perf/util/ |
D | session.h | 59 void perf_session__delete(struct perf_session *session); 63 int perf_session__peek_event(struct perf_session *session, off_t file_offset, 67 typedef int (*peek_events_cb_t)(struct perf_session *session, 70 int perf_session__peek_events(struct perf_session *session, u64 offset, 73 int perf_session__process_events(struct perf_session *session); 80 int perf_session__resolve_callchain(struct perf_session *session, 86 bool perf_session__has_traces(struct perf_session *session, const char *msg); 90 int perf_session__create_kernel_maps(struct perf_session *session); 92 void perf_session__set_id_hdr_size(struct perf_session *session); 95 struct machine *perf_session__find_machine(struct perf_session *session, pid_t pid) in perf_session__find_machine() argument [all …]
|
/kernel/linux/linux-4.19/tools/perf/util/ |
D | session.h | 44 void perf_session__delete(struct perf_session *session); 48 int perf_session__peek_event(struct perf_session *session, off_t file_offset, 53 int perf_session__process_events(struct perf_session *session); 60 int perf_session__resolve_callchain(struct perf_session *session, 66 bool perf_session__has_traces(struct perf_session *session, const char *msg); 70 int perf_session__create_kernel_maps(struct perf_session *session); 72 void perf_session__set_id_hdr_size(struct perf_session *session); 75 struct machine *perf_session__find_machine(struct perf_session *session, pid_t pid) in perf_session__find_machine() argument 77 return machines__find(&session->machines, pid); in perf_session__find_machine() 81 struct machine *perf_session__findnew_machine(struct perf_session *session, pid_t pid) in perf_session__findnew_machine() argument [all …]
|