Home
last modified time | relevance | path

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

123

/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/scsi/
Dlibiscsi.c88 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 …]
Dscsi_transport_iscsi.c1687 int iscsi_session_chkready(struct iscsi_cls_session *session) in iscsi_session_chkready() argument
1692 spin_lock_irqsave(&session->lock, flags); in iscsi_session_chkready()
1693 switch (session->state) { in iscsi_session_chkready()
1707 spin_unlock_irqrestore(&session->lock, flags); in iscsi_session_chkready()
1712 int iscsi_is_session_online(struct iscsi_cls_session *session) in iscsi_is_session_online() argument
1717 spin_lock_irqsave(&session->lock, flags); in iscsi_is_session_online()
1718 if (session->state == ISCSI_SESSION_LOGGED_IN) in iscsi_is_session_online()
1720 spin_unlock_irqrestore(&session->lock, flags); in iscsi_is_session_online()
1727 struct iscsi_cls_session *session = iscsi_dev_to_session(dev); in iscsi_session_release() local
1730 shost = iscsi_session_to_shost(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
555 iscsi_update_cmdsn(session, (struct iscsi_nopin*)rhdr); in iscsi_tcp_r2t_rsp()
557 if (!task->sc || session->state != ISCSI_STATE_LOGGED_IN) { in iscsi_tcp_r2t_rsp()
571 if (data_length > session->max_burst) in iscsi_tcp_r2t_rsp()
574 data_length, session->max_burst); in iscsi_tcp_r2t_rsp()
679 spin_lock(&conn->session->back_lock); in iscsi_tcp_hdr_dissect()
686 spin_unlock(&conn->session->back_lock); in iscsi_tcp_hdr_dissect()
[all …]
Discsi_tcp.c116 (conn->session->state != ISCSI_STATE_LOGGING_OUT) && in iscsi_sw_sk_state_check()
595 struct iscsi_session *session = conn->session; in iscsi_sw_tcp_release_conn() local
607 spin_lock_bh(&session->frwd_lock); in iscsi_sw_tcp_release_conn()
609 spin_unlock_bh(&session->frwd_lock); in iscsi_sw_tcp_release_conn()
661 struct iscsi_session *session = cls_session->dd_data; in iscsi_sw_tcp_conn_bind() local
681 spin_lock_bh(&session->frwd_lock); in iscsi_sw_tcp_conn_bind()
684 spin_unlock_bh(&session->frwd_lock); in iscsi_sw_tcp_conn_bind()
745 spin_lock_bh(&conn->session->frwd_lock); in iscsi_sw_tcp_conn_get_param()
747 spin_unlock_bh(&conn->session->frwd_lock); in iscsi_sw_tcp_conn_get_param()
756 spin_unlock_bh(&conn->session->frwd_lock); in iscsi_sw_tcp_conn_get_param()
[all …]
/drivers/virt/vboxguest/
Dvboxguest_core.c574 struct vbg_session *session, in vbg_set_session_event_filter() argument
589 session->requestor); in vbg_set_session_event_filter()
599 previous = session->event_filter; in vbg_set_session_event_filter()
600 session->event_filter |= or_mask; in vbg_set_session_event_filter()
601 session->event_filter &= ~not_mask; in vbg_set_session_event_filter()
604 changed = previous ^ session->event_filter; in vbg_set_session_event_filter()
627 session->event_filter); in vbg_set_session_event_filter()
628 session->event_filter = previous; in vbg_set_session_event_filter()
676 struct vbg_session *session, in vbg_set_session_capabilities() argument
691 session->requestor); in vbg_set_session_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 …]
Dvboxguest_core.h166 void vbg_core_close_session(struct vbg_session *session);
167 int vbg_core_ioctl(struct vbg_session *session, unsigned int req, void *data);
/drivers/net/ethernet/mellanox/mlx5/core/en/
Dxdp.h117 struct mlx5e_xdp_mpwqe *session = &sq->mpwqe; in mlx5e_xdp_update_inline_state() local
122 if (session->inline_on) { in mlx5e_xdp_update_inline_state()
124 session->inline_on = 0; in mlx5e_xdp_update_inline_state()
130 session->inline_on = 1; in mlx5e_xdp_update_inline_state()
134 mlx5e_xdp_no_room_for_inline_pkt(struct mlx5e_xdp_mpwqe *session) in mlx5e_xdp_no_room_for_inline_pkt() argument
136 return session->inline_on && in mlx5e_xdp_no_room_for_inline_pkt()
137 session->ds_count + MLX5E_XDP_INLINE_WQE_MAX_DS_CNT > MLX5E_XDP_MPW_MAX_NUM_DS; in mlx5e_xdp_no_room_for_inline_pkt()
162 struct mlx5e_xdp_mpwqe *session = &sq->mpwqe; in mlx5e_xdp_mpwqe_add_dseg() local
164 (struct mlx5_wqe_data_seg *)session->wqe + session->ds_count; in mlx5e_xdp_mpwqe_add_dseg()
167 session->pkt_count++; in mlx5e_xdp_mpwqe_add_dseg()
[all …]
Dxdp.c183 struct mlx5e_xdp_mpwqe *session = &sq->mpwqe; in mlx5e_xdp_mpwqe_session_start() local
194 session->wqe = mlx5e_xdpsq_fetch_wqe(sq, &pi); in mlx5e_xdp_mpwqe_session_start()
196 prefetchw(session->wqe->data); in mlx5e_xdp_mpwqe_session_start()
197 session->ds_count = MLX5E_XDP_TX_EMPTY_DS_COUNT; in mlx5e_xdp_mpwqe_session_start()
198 session->pkt_count = 0; in mlx5e_xdp_mpwqe_session_start()
208 struct mlx5e_xdp_mpwqe *session = &sq->mpwqe; in mlx5e_xdp_mpwqe_complete() local
209 struct mlx5_wqe_ctrl_seg *cseg = &session->wqe->ctrl; in mlx5e_xdp_mpwqe_complete()
210 u16 ds_count = session->ds_count; in mlx5e_xdp_mpwqe_complete()
219 wi->num_pkts = session->pkt_count; in mlx5e_xdp_mpwqe_complete()
225 session->wqe = NULL; /* Close session */ in mlx5e_xdp_mpwqe_complete()
[all …]
/drivers/tty/
Dtty_jobctrl.c103 put_pid(tty->session); in __proc_set_tty()
107 tty->session = get_pid(task_session(current)); in __proc_set_tty()
134 tty->session == NULL) { in tty_open_proc_set_tty()
171 void session_clear_tty(struct pid *session) in session_clear_tty() argument
174 do_each_pid_task(session, PIDTYPE_SID, p) { in session_clear_tty()
176 } while_each_pid_task(session, PIDTYPE_SID, p); in session_clear_tty()
198 if (tty->session) { in tty_signal_session_leader()
199 do_each_pid_task(tty->session, PIDTYPE_SID, p) { in tty_signal_session_leader()
220 } while_each_pid_task(tty->session, PIDTYPE_SID, p); in tty_signal_session_leader()
301 put_pid(tty->session); in disassociate_ctty()
[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 …]
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);
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 …]
/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()
77 spin_unlock(&session->back_lock); in qedi_process_logout_resp()
86 struct iscsi_session *session = conn->session; in qedi_process_text_resp() local
97 spin_lock(&session->back_lock); in qedi_process_text_resp()
109 conn->session->age); in qedi_process_text_resp()
143 spin_unlock(&session->back_lock); in qedi_process_text_resp()
153 struct iscsi_session *session = conn->session; in qedi_tmf_resp_work() local
160 iscsi_block_session(session->cls_session); 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()
1335 int bnx2i_process_scsi_cmd_resp(struct iscsi_session *session, in bnx2i_process_scsi_cmd_resp() argument
1348 spin_lock_bh(&session->back_lock); in bnx2i_process_scsi_cmd_resp()
1419 spin_unlock_bh(&session->back_lock); in bnx2i_process_scsi_cmd_resp()
1432 static int bnx2i_process_login_resp(struct iscsi_session *session, in bnx2i_process_login_resp() argument
[all …]
Dbnx2i_iscsi.c114 if ((start_bd_offset > task->conn->session->first_burst) || in bnx2i_setup_write_cmd_bd_info()
444 static int bnx2i_alloc_bdt(struct bnx2i_hba *hba, struct iscsi_session *session, in bnx2i_alloc_bdt() argument
454 iscsi_session_printk(KERN_ERR, session, "Could not " in bnx2i_alloc_bdt()
469 struct iscsi_session *session) in bnx2i_destroy_cmd_pool() argument
473 for (i = 0; i < session->cmds_max; i++) { in bnx2i_destroy_cmd_pool()
474 struct iscsi_task *task = session->cmds[i]; in bnx2i_destroy_cmd_pool()
494 struct iscsi_session *session) in bnx2i_setup_cmd_pool() argument
498 for (i = 0; i < session->cmds_max; i++) { in bnx2i_setup_cmd_pool()
499 struct iscsi_task *task = session->cmds[i]; in bnx2i_setup_cmd_pool()
505 if (bnx2i_alloc_bdt(hba, session, cmd)) in bnx2i_setup_cmd_pool()
[all …]
/drivers/tee/optee/
Dcall.c256 sess->session_id = msg_arg->session; in optee_open_session()
268 optee_close_session(ctx, msg_arg->session); in optee_open_session()
270 arg->session = msg_arg->session; in optee_open_session()
280 int optee_close_session(struct tee_context *ctx, u32 session) in optee_close_session() argument
290 sess = find_session(ctxdata, session); in optee_close_session()
303 msg_arg->session = session; in optee_close_session()
322 sess = find_session(ctxdata, arg->session); in optee_invoke_func()
332 msg_arg->session = arg->session; in optee_invoke_func()
356 int optee_cancel_req(struct tee_context *ctx, u32 cancel_id, u32 session) in optee_cancel_req() argument
366 sess = find_session(ctxdata, session); in optee_cancel_req()
[all …]
Ddevice.c34 static int get_devices(struct tee_context *ctx, u32 session, in get_devices() argument
46 inv_arg.session = session; in get_devices()
121 rc = get_devices(ctx, sess_arg.session, NULL, &shm_size); in optee_enumerate_devices()
133 rc = get_devices(ctx, sess_arg.session, device_shm, &shm_size); in optee_enumerate_devices()
155 tee_client_close_session(ctx, sess_arg.session); in optee_enumerate_devices()
/drivers/char/tpm/
Dtpm_ftpm_tee.c98 .session = pvt_data->session, in ftpm_tee_tpm_op_send()
255 pvt_data->session = sess_arg.session; in ftpm_tee_probe()
293 tee_client_close_session(pvt_data->ctx, pvt_data->session); in ftpm_tee_probe()
321 tee_client_close_session(pvt_data->ctx, pvt_data->session); in ftpm_tee_remove()
340 tee_client_close_session(pvt_data->ctx, pvt_data->session); in ftpm_tee_shutdown()
/drivers/scsi/be2iscsi/
Dbe_iscsi.c646 struct iscsi_session *session = conn->session; in beiscsi_set_param() local
664 if (session->first_burst > 8192) in beiscsi_set_param()
665 session->first_burst = 8192; in beiscsi_set_param()
672 if (session->max_burst > 262144) in beiscsi_set_param()
673 session->max_burst = 262144; in beiscsi_set_param()
850 struct iscsi_session *session = conn->session; in beiscsi_set_params_for_offld() local
853 params, session->max_burst); in beiscsi_set_params_for_offld()
858 params, session->first_burst); in beiscsi_set_params_for_offld()
860 session->erl); in beiscsi_set_params_for_offld()
866 session->initial_r2t_en); in beiscsi_set_params_for_offld()
[all …]
/drivers/infiniband/ulp/iser/
Diser_initiator.c240 struct iscsi_session *session) in iser_alloc_rx_descriptors() argument
249 iser_conn->qp_max_recv_dtos = session->cmds_max; in iser_alloc_rx_descriptors()
250 iser_conn->qp_max_recv_dtos_mask = session->cmds_max - 1; /* cmds_max is 2^N */ in iser_alloc_rx_descriptors()
253 if (device->reg_ops->alloc_reg_res(ib_conn, session->scsi_cmds_max, in iser_alloc_rx_descriptors()
260 iser_conn->num_rx_descs = session->cmds_max; in iser_alloc_rx_descriptors()
327 struct iscsi_session *session = conn->session; in iser_post_rx_bufs() local
340 if (session->discovery_sess) { in iser_post_rx_bufs()
/drivers/char/hw_random/
Doptee-rng.c87 inv_arg.session = pvt_data->session_id; in get_optee_rng_data()
187 inv_arg.session = pvt_data.session_id; in get_optee_rng_info()
240 pvt_data.session_id = sess_arg.session; in optee_rng_probe()

123