Home
last modified time | relevance | path

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

1234

/drivers/scsi/
Dlibiscsi.c88 struct Scsi_Host *shost = conn->session->host; in iscsi_conn_queue_xmit()
98 struct Scsi_Host *shost = conn->session->host; in iscsi_conn_queue_recv()
106 static void __iscsi_update_cmdsn(struct iscsi_session *session, in __iscsi_update_cmdsn() argument
116 if (exp_cmdsn != session->exp_cmdsn && in __iscsi_update_cmdsn()
117 !iscsi_sna_lt(exp_cmdsn, session->exp_cmdsn)) in __iscsi_update_cmdsn()
118 session->exp_cmdsn = exp_cmdsn; in __iscsi_update_cmdsn()
120 if (max_cmdsn != session->max_cmdsn && in __iscsi_update_cmdsn()
121 !iscsi_sna_lt(max_cmdsn, session->max_cmdsn)) in __iscsi_update_cmdsn()
122 session->max_cmdsn = max_cmdsn; in __iscsi_update_cmdsn()
125 void iscsi_update_cmdsn(struct iscsi_session *session, struct iscsi_nopin *hdr) in iscsi_update_cmdsn() argument
[all …]
Dscsi_transport_iscsi.c1689 int iscsi_session_chkready(struct iscsi_cls_session *session) in iscsi_session_chkready() argument
1693 switch (session->state) { in iscsi_session_chkready()
1711 int iscsi_is_session_online(struct iscsi_cls_session *session) in iscsi_is_session_online() argument
1716 spin_lock_irqsave(&session->lock, flags); in iscsi_is_session_online()
1717 if (session->state == ISCSI_SESSION_LOGGED_IN) in iscsi_is_session_online()
1719 spin_unlock_irqrestore(&session->lock, flags); in iscsi_is_session_online()
1726 struct iscsi_cls_session *session = iscsi_dev_to_session(dev); in iscsi_session_release() local
1729 shost = iscsi_session_to_shost(session); in iscsi_session_release()
1731 ISCSI_DBG_TRANS_SESSION(session, "Completing session release\n"); in iscsi_session_release()
1732 kfree(session); in iscsi_session_release()
[all …]
Dlibiscsi_tcp.c245 if (!(tcp_conn->iscsi_conn->session->tt->caps & CAP_PADDING_OFFLOAD)) { in iscsi_tcp_segment_done()
440 !(conn->session->tt->caps & CAP_DIGEST_OFFLOAD)) in iscsi_tcp_data_recv_prep()
499 iscsi_update_cmdsn(conn->session, (struct iscsi_nopin*)rhdr); in iscsi_tcp_data_in()
531 struct iscsi_session *session = conn->session; in iscsi_tcp_r2t_rsp() local
542 spin_lock(&session->back_lock); in iscsi_tcp_r2t_rsp()
545 spin_unlock(&session->back_lock); in iscsi_tcp_r2t_rsp()
548 spin_unlock(&session->back_lock); in iscsi_tcp_r2t_rsp()
556 spin_unlock(&session->back_lock); in iscsi_tcp_r2t_rsp()
566 iscsi_update_cmdsn(session, (struct iscsi_nopin *)rhdr); in iscsi_tcp_r2t_rsp()
567 spin_unlock(&session->back_lock); in iscsi_tcp_r2t_rsp()
[all …]
Discsi_tcp.c120 (conn->session->state != ISCSI_STATE_LOGGING_OUT) && in iscsi_sw_sk_state_check()
803 spin_lock_bh(&conn->session->frwd_lock); in iscsi_sw_tcp_conn_get_param()
804 if (!conn->session->leadconn) { in iscsi_sw_tcp_conn_get_param()
805 spin_unlock_bh(&conn->session->frwd_lock); in iscsi_sw_tcp_conn_get_param()
813 spin_unlock_bh(&conn->session->frwd_lock); in iscsi_sw_tcp_conn_get_param()
850 struct iscsi_session *session; in iscsi_sw_tcp_host_get_param() local
860 session = tcp_sw_host->session; in iscsi_sw_tcp_host_get_param()
861 if (!session) in iscsi_sw_tcp_host_get_param()
864 spin_lock_bh(&session->frwd_lock); in iscsi_sw_tcp_host_get_param()
865 conn = session->leadconn; in iscsi_sw_tcp_host_get_param()
[all …]
/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_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 …]
/drivers/net/wwan/iosm/
Diosm_ipc_mux_codec.c125 void ipc_mux_netif_tx_flowctrl(struct mux_session *session, int idx, bool on) in ipc_mux_netif_tx_flowctrl() argument
128 ipc_wwan_tx_flowctrl(session->wwan, idx, on); in ipc_mux_netif_tx_flowctrl()
169 struct mux_session *session; in ipc_mux_dl_dlcmds_decode_process() local
184 session = &ipc_mux->session[cmdh->if_id]; in ipc_mux_dl_dlcmds_decode_process()
191 session->flow_ctl_mask = in ipc_mux_dl_dlcmds_decode_process()
194 session->flow_ctl_mask = ~0; in ipc_mux_dl_dlcmds_decode_process()
199 session->net_tx_stop = true; in ipc_mux_dl_dlcmds_decode_process()
201 session->flow_ctl_en_cnt++; in ipc_mux_dl_dlcmds_decode_process()
210 session->flow_ctl_mask = in ipc_mux_dl_dlcmds_decode_process()
213 session->flow_ctl_mask = 0; in ipc_mux_dl_dlcmds_decode_process()
[all …]
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 …]
/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 …]
Dvboxguest_linux.c51 struct vbg_session *session; in vbg_misc_device_open() local
57 session = vbg_core_open_session(gdev, vbg_misc_device_requestor(inode)); in vbg_misc_device_open()
58 if (IS_ERR(session)) in vbg_misc_device_open()
59 return PTR_ERR(session); in vbg_misc_device_open()
61 filp->private_data = session; in vbg_misc_device_open()
67 struct vbg_session *session; in vbg_misc_device_user_open() local
74 session = vbg_core_open_session(gdev, vbg_misc_device_requestor(inode) | in vbg_misc_device_user_open()
76 if (IS_ERR(session)) in vbg_misc_device_user_open()
77 return PTR_ERR(session); in vbg_misc_device_user_open()
79 filp->private_data = session; in vbg_misc_device_user_open()
[all …]
/drivers/net/ethernet/mellanox/mlx5/core/en/
Dxdp.h126 static inline bool mlx5e_xdp_mpqwe_is_full(struct mlx5e_tx_mpwqe *session) in mlx5e_xdp_mpqwe_is_full() argument
128 if (session->inline_on) in mlx5e_xdp_mpqwe_is_full()
129 return session->ds_count + MLX5E_XDP_INLINE_WQE_MAX_DS_CNT > in mlx5e_xdp_mpqwe_is_full()
131 return mlx5e_tx_mpwqe_is_full(session); in mlx5e_xdp_mpqwe_is_full()
144 struct mlx5e_tx_mpwqe *session = &sq->mpwqe; in mlx5e_xdp_mpwqe_add_dseg() local
146 (struct mlx5_wqe_data_seg *)session->wqe + session->ds_count; in mlx5e_xdp_mpwqe_add_dseg()
149 session->pkt_count++; in mlx5e_xdp_mpwqe_add_dseg()
150 session->bytes_count += dma_len; in mlx5e_xdp_mpwqe_add_dseg()
152 if (session->inline_on && dma_len <= MLX5E_XDP_INLINE_WQE_SZ_THRSD) { in mlx5e_xdp_mpwqe_add_dseg()
161 session->ds_count += ds_cnt; in mlx5e_xdp_mpwqe_add_dseg()
[all …]
Dxdp.c197 struct mlx5e_tx_mpwqe *session = &sq->mpwqe; in mlx5e_xdp_mpwqe_session_start() local
206 *session = (struct mlx5e_tx_mpwqe) { in mlx5e_xdp_mpwqe_session_start()
211 .inline_on = mlx5e_xdp_get_inline_state(sq, session->inline_on), in mlx5e_xdp_mpwqe_session_start()
220 struct mlx5e_tx_mpwqe *session = &sq->mpwqe; in mlx5e_xdp_mpwqe_complete() local
221 struct mlx5_wqe_ctrl_seg *cseg = &session->wqe->ctrl; in mlx5e_xdp_mpwqe_complete()
222 u16 ds_count = session->ds_count; in mlx5e_xdp_mpwqe_complete()
231 wi->num_pkts = session->pkt_count; in mlx5e_xdp_mpwqe_complete()
237 session->wqe = NULL; /* Close session */ in mlx5e_xdp_mpwqe_complete()
268 struct mlx5e_tx_mpwqe *session = &sq->mpwqe; in mlx5e_xmit_xdp_frame_mpwqe() local
291 if (unlikely(mlx5e_xdp_mpqwe_is_full(session))) in mlx5e_xmit_xdp_frame_mpwqe()
/drivers/tee/amdtee/
Damdtee_private.h121 u32 *session) in set_session_id() argument
123 *session = (session_index << 16) | (LOWER_TWO_BYTE_MASK & ta_handle); in set_session_id()
126 static inline u32 get_ta_handle(u32 session) in get_ta_handle() argument
128 return session & LOWER_TWO_BYTE_MASK; in get_ta_handle()
131 static inline u32 get_session_index(u32 session) in get_session_index() argument
133 return (session >> 16) & LOWER_TWO_BYTE_MASK; in get_session_index()
140 int amdtee_close_session(struct tee_context *ctx, u32 session);
146 int amdtee_cancel_req(struct tee_context *ctx, u32 cancel_id, u32 session);
Dcore.c110 u32 session) in alloc_session() argument
113 u32 ta_handle = get_ta_handle(session); in alloc_session()
136 u32 session) in find_session() argument
138 u32 ta_handle = get_ta_handle(session); in find_session()
139 u32 index = get_session_index(session); in find_session()
258 ta_handle = get_ta_handle(arg->session); in amdtee_open_session()
261 sess = alloc_session(ctxdata, arg->session); in amdtee_open_session()
285 set_session_id(ta_handle, i, &arg->session); in amdtee_open_session()
305 int amdtee_close_session(struct tee_context *ctx, u32 session) in amdtee_close_session() argument
311 pr_debug("%s: sid = 0x%x\n", __func__, session); in amdtee_close_session()
[all …]
/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
Dampdu.c501 void brcms_c_ampdu_reset_session(struct brcms_ampdu_session *session, in brcms_c_ampdu_reset_session() argument
504 session->wlc = wlc; in brcms_c_ampdu_reset_session()
505 skb_queue_head_init(&session->skb_list); in brcms_c_ampdu_reset_session()
506 session->max_ampdu_len = 0; /* determined from first MPDU */ in brcms_c_ampdu_reset_session()
507 session->max_ampdu_frames = 0; /* determined from first MPDU */ in brcms_c_ampdu_reset_session()
508 session->ampdu_len = 0; in brcms_c_ampdu_reset_session()
509 session->dma_len = 0; in brcms_c_ampdu_reset_session()
517 int brcms_c_ampdu_add_frame(struct brcms_ampdu_session *session, in brcms_c_ampdu_add_frame() argument
520 struct brcms_c_info *wlc = session->wlc; in brcms_c_ampdu_add_frame()
542 ampdu_frames = skb_queue_len(&session->skb_list); in brcms_c_ampdu_add_frame()
[all …]
Ddma.c1319 struct brcms_ampdu_session *session = &di->ampdu_session; in ampdu_finalize() local
1322 trace_brcms_ampdu_session(&session->wlc->hw->d11core->dev, in ampdu_finalize()
1323 session->max_ampdu_len, in ampdu_finalize()
1324 session->max_ampdu_frames, in ampdu_finalize()
1325 session->ampdu_len, in ampdu_finalize()
1326 skb_queue_len(&session->skb_list), in ampdu_finalize()
1327 session->dma_len); in ampdu_finalize()
1329 if (WARN_ON(skb_queue_empty(&session->skb_list))) in ampdu_finalize()
1332 brcms_c_ampdu_finalize(session); in ampdu_finalize()
1334 while (!skb_queue_empty(&session->skb_list)) { in ampdu_finalize()
[all …]
Dampdu.h40 void brcms_c_ampdu_reset_session(struct brcms_ampdu_session *session,
42 int brcms_c_ampdu_add_frame(struct brcms_ampdu_session *session,
44 void brcms_c_ampdu_finalize(struct brcms_ampdu_session *session);
/drivers/tty/
Dtty_jobctrl.c107 put_pid(tty->ctrl.session); in __proc_set_tty()
110 tty->ctrl.session = get_pid(task_session(current)); in __proc_set_tty()
138 tty->ctrl.session == NULL) { in tty_open_proc_set_tty()
175 void session_clear_tty(struct pid *session) in session_clear_tty() argument
179 do_each_pid_task(session, PIDTYPE_SID, p) { in session_clear_tty()
181 } while_each_pid_task(session, PIDTYPE_SID, p); in session_clear_tty()
203 if (tty->ctrl.session) { in tty_signal_session_leader()
204 do_each_pid_task(tty->ctrl.session, PIDTYPE_SID, p) { in tty_signal_session_leader()
228 } while_each_pid_task(tty->ctrl.session, PIDTYPE_SID, p); in tty_signal_session_leader()
309 put_pid(tty->ctrl.session); in disassociate_ctty()
[all …]
/drivers/misc/
Dibmvmc.c491 struct ibmvmc_file_session *session = hmc->file_session; in ibmvmc_return_hmc() local
493 session->valid = 0; in ibmvmc_return_hmc()
579 crq_msg.hmc_session = hmc->session; in ibmvmc_send_open()
623 crq_msg.hmc_session = hmc->session; in ibmvmc_send_close()
801 crq_msg.hmc_session = hmc->session; in ibmvmc_send_msg()
827 struct ibmvmc_file_session *session; in ibmvmc_open() local
833 session = kzalloc(sizeof(*session), GFP_KERNEL); in ibmvmc_open()
834 if (!session) in ibmvmc_open()
837 session->file = file; in ibmvmc_open()
838 file->private_data = session; in ibmvmc_open()
[all …]
/drivers/scsi/qedi/
Dqedi_fw.c37 struct iscsi_session *session = conn->session; in qedi_process_logout_resp() local
43 spin_lock(&session->back_lock); in qedi_process_logout_resp()
50 resp_hdr->itt = build_itt(cqe->cqe_solicited.itid, conn->session->age); in qedi_process_logout_resp()
78 spin_unlock(&session->back_lock); in qedi_process_logout_resp()
87 struct iscsi_session *session = conn->session; in qedi_process_text_resp() local
98 spin_lock(&session->back_lock); in qedi_process_text_resp()
110 conn->session->age); in qedi_process_text_resp()
145 spin_unlock(&session->back_lock); in qedi_process_text_resp()
155 struct iscsi_session *session = conn->session; in qedi_tmf_resp_work() local
165 spin_lock(&session->back_lock); in qedi_tmf_resp_work()
[all …]
Dqedi_iscsi.c164 struct iscsi_session *session) in qedi_destroy_cmd_pool() argument
168 for (i = 0; i < session->cmds_max; i++) { in qedi_destroy_cmd_pool()
169 struct iscsi_task *task = session->cmds[i]; in qedi_destroy_cmd_pool()
187 static int qedi_alloc_sget(struct qedi_ctx *qedi, struct iscsi_session *session, in qedi_alloc_sget() argument
198 iscsi_session_printk(KERN_ERR, session, in qedi_alloc_sget()
208 struct iscsi_session *session) in qedi_setup_cmd_pool() argument
212 for (i = 0; i < session->cmds_max; i++) { in qedi_setup_cmd_pool()
213 struct iscsi_task *task = session->cmds[i]; in qedi_setup_cmd_pool()
219 if (qedi_alloc_sget(qedi, session, cmd)) in qedi_setup_cmd_pool()
233 qedi_destroy_cmd_pool(qedi, session); in qedi_setup_cmd_pool()
[all …]
/drivers/scsi/bnx2i/
Dbnx2i_hwi.c653 if (conn->session->initial_r2t_en) in bnx2i_update_iscsi_conn()
655 if (conn->session->imm_data_en) in bnx2i_update_iscsi_conn()
660 update_wqe->first_burst_length = conn->session->first_burst; in bnx2i_update_iscsi_conn()
661 update_wqe->max_burst_length = conn->session->max_burst; in bnx2i_update_iscsi_conn()
663 update_wqe->max_outstanding_r2ts = conn->session->max_r2t; in bnx2i_update_iscsi_conn()
664 update_wqe->session_error_recovery_level = conn->session->erl; in bnx2i_update_iscsi_conn()
1336 int bnx2i_process_scsi_cmd_resp(struct iscsi_session *session, in bnx2i_process_scsi_cmd_resp() argument
1349 spin_lock_bh(&session->back_lock); in bnx2i_process_scsi_cmd_resp()
1420 spin_unlock_bh(&session->back_lock); in bnx2i_process_scsi_cmd_resp()
1433 static int bnx2i_process_login_resp(struct iscsi_session *session, in bnx2i_process_login_resp() argument
[all …]
/drivers/tee/optee/
Dcall.c267 sess->session_id = msg_arg->session; in optee_open_session()
279 optee_close_session(ctx, msg_arg->session); in optee_open_session()
281 arg->session = msg_arg->session; in optee_open_session()
291 int optee_close_session(struct tee_context *ctx, u32 session) in optee_close_session() argument
301 sess = find_session(ctxdata, session); in optee_close_session()
314 msg_arg->session = session; in optee_close_session()
333 sess = find_session(ctxdata, arg->session); in optee_invoke_func()
343 msg_arg->session = arg->session; in optee_invoke_func()
367 int optee_cancel_req(struct tee_context *ctx, u32 cancel_id, u32 session) in optee_cancel_req() argument
377 sess = find_session(ctxdata, session); in optee_cancel_req()
[all …]
Ddevice.c22 static int get_devices(struct tee_context *ctx, u32 session, in get_devices() argument
34 inv_arg.session = session; in get_devices()
133 rc = get_devices(ctx, sess_arg.session, NULL, &shm_size, func); in __optee_enumerate_devices()
145 rc = get_devices(ctx, sess_arg.session, device_shm, &shm_size, func); in __optee_enumerate_devices()
167 tee_client_close_session(ctx, sess_arg.session); in __optee_enumerate_devices()
/drivers/net/wwan/
Dmhi_wwan_mbim.c43 #define LINK_HASH(session) ((session) % MHI_MBIM_LINK_HASH_SIZE) argument
48 unsigned int session; member
84 unsigned int session) in mhi_mbim_get_link_rcu() argument
88 hlist_for_each_entry_rcu(link, &mbim->link_list[LINK_HASH(session)], hlnode) { in mhi_mbim_get_link_rcu()
89 if (link->session == session) in mhi_mbim_get_link_rcu()
96 static struct sk_buff *mbim_tx_fixup(struct sk_buff *skb, unsigned int session, in mbim_tx_fixup() argument
124 ndp16->dwSignature = cpu_to_le32(USB_CDC_MBIM_NDP16_IPS_SIGN | (session << 24)); in mbim_tx_fixup()
150 skb = mbim_tx_fixup(skb, link->session, mbim->tx_seq); in mhi_mbim_ndo_xmit()
260 unsigned int session; in mhi_mbim_rx() local
282 session = (le32_to_cpu(ndp16.dwSignature) & ~MBIM_NDP16_SIGN_MASK) >> 24; in mhi_mbim_rx()
[all …]
/drivers/char/tpm/
Dtpm_ftpm_tee.c98 .session = pvt_data->session, in ftpm_tee_tpm_op_send()
254 pvt_data->session = sess_arg.session; in ftpm_tee_probe()
292 tee_client_close_session(pvt_data->ctx, pvt_data->session); in ftpm_tee_probe()
327 tee_client_close_session(pvt_data->ctx, pvt_data->session); in ftpm_tee_remove()
353 tee_client_close_session(pvt_data->ctx, pvt_data->session); in ftpm_plat_tee_shutdown()

1234