/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-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-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-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 …]
|
D | scsi_transport_iscsi.c | 1684 int iscsi_session_chkready(struct iscsi_cls_session *session) in iscsi_session_chkready() argument 1689 spin_lock_irqsave(&session->lock, flags); in iscsi_session_chkready() 1690 switch (session->state) { in iscsi_session_chkready() 1704 spin_unlock_irqrestore(&session->lock, flags); 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() [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 …]
|
D | l2tp_eth.c | 39 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 …]
|
D | l2tp_netlink.c | 40 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 …]
|
D | l2tp_core.h | 112 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 …]
|
/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-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 …]
|
D | session.c | 38 static int perf_session__process_compressed_event(struct perf_session *session, in perf_session__process_compressed_event() argument 44 size_t mmap_len, decomp_len = session->header.env.comp_mmap_len; in perf_session__process_compressed_event() 45 struct decomp *decomp, *decomp_last = session->decomp_last; in perf_session__process_compressed_event() 72 decomp_size = zstd_decompress_stream(&(session->zstd_data), src, src_size, in perf_session__process_compressed_event() 82 if (session->decomp == NULL) { in perf_session__process_compressed_event() 83 session->decomp = decomp; in perf_session__process_compressed_event() 84 session->decomp_last = decomp; in perf_session__process_compressed_event() 86 session->decomp_last->next = decomp; in perf_session__process_compressed_event() 87 session->decomp_last = decomp; in perf_session__process_compressed_event() 98 static int perf_session__deliver_event(struct perf_session *session, [all …]
|
D | auxtrace.h | 182 int (*process_event)(struct perf_session *session, 186 int (*process_auxtrace_event)(struct perf_session *session, 189 int (*queue_data)(struct perf_session *session, 192 void (*dump_auxtrace_sample)(struct perf_session *session, 194 int (*flush_events)(struct perf_session *session, 196 void (*free_events)(struct perf_session *session); 197 void (*free)(struct perf_session *session); 198 bool (*evsel_is_auxtrace)(struct perf_session *session, 367 struct perf_session *session, 508 struct perf_session *session, [all …]
|
/kernel/linux/common_modules/tzdriver/ |
D | teek_client_api.h | 49 struct teec_session *session, 56 void teek_close_session(struct teec_session *session); 58 uint32_t teek_send_secfile(struct teec_session *session, 61 TEEC_Result TEEK_SendSecfile(TEEC_Session *session, 64 uint32_t teek_invoke_command(struct teec_session *session, 85 TEEC_Session *session, 92 void TEEK_CloseSession(TEEC_Session *session); 94 TEEC_Result TEEK_InvokeCommand(TEEC_Session *session, 134 struct teec_session *session, in teek_open_session() argument 145 TEEC_Session *session, const TEEC_UUID *destination, in TEEK_OpenSession() argument [all …]
|
/kernel/linux/linux-5.10/fs/ceph/ |
D | mds_client.c | 53 struct ceph_mds_session *session; member 1163 mds = cap->session->s_mds; in __choose_mds() 1394 struct ceph_mds_session *session) in __open_session() argument 1398 int mds = session->s_mds; in __open_session() 1404 session->s_state = CEPH_MDS_SESSION_OPENING; in __open_session() 1405 session->s_renew_requested = jiffies; in __open_session() 1408 msg = create_session_open_msg(mdsc, session->s_seq); in __open_session() 1411 ceph_con_send(&session->s_con, msg); in __open_session() 1423 struct ceph_mds_session *session; in __open_export_target_session() local 1426 session = __ceph_lookup_mds_session(mdsc, target); in __open_export_target_session() [all …]
|
/kernel/linux/linux-5.10/drivers/virt/vboxguest/ |
D | vboxguest_core.c | 575 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 …]
|
/kernel/linux/common_modules/tzdriver/core/ |
D | session_manager.c | 70 void get_session_struct(struct tc_ns_session *session) in get_session_struct() argument 72 if (!session) in get_session_struct() 75 atomic_inc(&session->usage); in get_session_struct() 78 void put_session_struct(struct tc_ns_session *session) in put_session_struct() argument 80 if (!session || !atomic_dec_and_test(&session->usage)) in put_session_struct() 83 if (memset_s(session, sizeof(*session), 0, sizeof(*session)) != 0) in put_session_struct() 85 kfree(session); in put_session_struct() 191 struct tc_ns_session *session = NULL; in tc_find_session_withowner() local 198 list_for_each_entry(session, session_list, head) { in tc_find_session_withowner() 199 if (session->session_id == session_id && in tc_find_session_withowner() [all …]
|
D | teek_client_api.c | 441 static uint32_t open_session_and_switch_ret(struct teec_session *session, in open_session_and_switch_ret() argument 451 session->session_id = cli_context->session_id; in open_session_and_switch_ret() 452 session->service_id = *destination; in open_session_and_switch_ret() 453 session->ops_cnt = 0; in open_session_and_switch_ret() 454 session->context = context; in open_session_and_switch_ret() 481 struct teec_session *session, const struct teec_uuid *destination, in proc_teek_open_session() argument 498 if (!session) { in proc_teek_open_session() 509 session->context = context; in proc_teek_open_session() 538 teec_ret = open_session_and_switch_ret(session, context, in proc_teek_open_session() 552 struct teec_session *session, const struct teec_uuid *destination, in teek_open_session() argument [all …]
|
/kernel/linux/linux-5.10/tools/perf/bench/ |
D | synthesize.c | 61 static int do_run_single_threaded(struct perf_session *session, in do_run_single_threaded() argument 79 err = __machine__synthesize_threads(&session->machines.host, in do_run_single_threaded() 112 struct perf_session *session; in run_single_threaded() local 120 session = perf_session__new(NULL, false, NULL); in run_single_threaded() 121 if (IS_ERR(session)) { in run_single_threaded() 123 return PTR_ERR(session); in run_single_threaded() 136 err = do_run_single_threaded(session, threads, &target, false); in run_single_threaded() 140 err = do_run_single_threaded(session, threads, &target, true); in run_single_threaded() 146 perf_session__delete(session); in run_single_threaded() 159 struct perf_session *session; in do_run_multi_threaded() local [all …]
|