Home
last modified time | relevance | path

Searched refs:ses (Results 1 – 25 of 44) sorted by relevance

12

/linux/fs/smb/client/
H A Dsess.c26 cifs_ses_add_channel(struct cifs_ses *ses,
29 bool is_ses_using_iface(struct cifs_ses *ses, struct cifs_server_iface *iface) in is_ses_using_iface() argument
33 spin_lock(&ses->chan_lock); in is_ses_using_iface()
34 for (i = 0; i < ses->chan_count; i++) { in is_ses_using_iface()
35 if (ses->chans[i].iface == iface) { in is_ses_using_iface()
36 spin_unlock(&ses->chan_lock); in is_ses_using_iface()
40 spin_unlock(&ses->chan_lock); in is_ses_using_iface()
47 cifs_ses_get_chan_index(struct cifs_ses *ses, in cifs_ses_get_chan_index() argument
56 for (i = 0; i < ses->chan_count; i++) { in cifs_ses_get_chan_index()
57 if (ses->chans[i].server == server) in cifs_ses_get_chan_index()
[all …]
H A Dsmb1session.c21 struct cifs_ses *ses; member
39 static __u32 cifs_ssetup_hdr(struct cifs_ses *ses, in cifs_ssetup_hdr() argument
68 if (ses->capabilities & CAP_UNICODE) { in cifs_ssetup_hdr()
72 if (ses->capabilities & CAP_STATUS32) { in cifs_ssetup_hdr()
76 if (ses->capabilities & CAP_DFS) { in cifs_ssetup_hdr()
80 if (ses->capabilities & CAP_UNIX) in cifs_ssetup_hdr()
125 static void unicode_domain_string(char **pbcc_area, struct cifs_ses *ses, in unicode_domain_string() argument
132 if (ses->domainName == NULL) { in unicode_domain_string()
141 bytes_ret = cifs_strtoUTF16((__le16 *) bcc_ptr, ses->domainName, in unicode_domain_string()
149 static void ascii_domain_string(char **pbcc_area, struct cifs_ses *ses, in ascii_domain_string() argument
[all …]
H A Dconnect.c66 static struct mchan_mount *mchan_mount_alloc(struct cifs_ses *ses);
110 struct TCP_Server_Info *server = tcon->ses->server; in smb2_query_server_interfaces()
152 struct cifs_ses *ses; in cifs_signal_cifsd_for_reconnect() local
166 list_for_each_entry(ses, &server->smb_ses_list, smb_ses_list) { in cifs_signal_cifsd_for_reconnect()
167 spin_lock(&ses->ses_lock); in cifs_signal_cifsd_for_reconnect()
168 if (ses->ses_status == SES_EXITING) { in cifs_signal_cifsd_for_reconnect()
169 spin_unlock(&ses->ses_lock); in cifs_signal_cifsd_for_reconnect()
172 spin_lock(&ses->chan_lock); in cifs_signal_cifsd_for_reconnect()
173 for (i = 1; i < ses->chan_count; i++) { in cifs_signal_cifsd_for_reconnect()
174 nserver = ses->chans[i].server; in cifs_signal_cifsd_for_reconnect()
[all …]
H A Dsmb2pdu.c79 if (!tcon || !tcon->ses) in smb3_encryption_required()
81 if ((tcon->ses->session_flags & SMB2_SESSION_FLAG_ENCRYPT_DATA) || in smb3_encryption_required()
85 (tcon->ses->server->capabilities & SMB2_GLOBAL_CAP_ENCRYPTION)) in smb3_encryption_required()
88 (tcon->ses->server->capabilities & SMB2_GLOBAL_CAP_ENCRYPTION)) in smb3_encryption_required()
144 if (tcon->ses) in smb2_hdr_assemble()
145 shdr->SessionId = cpu_to_le64(tcon->ses->Suid); in smb2_hdr_assemble()
168 cifs_chan_skip_or_disable(struct cifs_ses *ses, in cifs_chan_skip_or_disable() argument
178 ses->server->hostname); in cifs_chan_skip_or_disable()
180 spin_lock(&ses->chan_lock); in cifs_chan_skip_or_disable()
181 chan_index = cifs_ses_get_chan_index(ses, serve in cifs_chan_skip_or_disable()
227 smb3_update_ses_channels(struct cifs_ses * ses,struct TCP_Server_Info * server,bool from_reconnect,bool disable_mchan) smb3_update_ses_channels() argument
253 struct cifs_ses *ses; smb2_reconnect() local
1104 SMB2_negotiate(const unsigned int xid,struct cifs_ses * ses,struct TCP_Server_Info * server) SMB2_negotiate() argument
1531 struct cifs_ses *ses; global() member
1553 struct cifs_ses *ses = sess_data->ses; SMB2_sess_alloc_buffer() local
1681 struct cifs_ses *ses = sess_data->ses; SMB2_sess_establish_session() local
1709 struct cifs_ses *ses = sess_data->ses; SMB2_auth_kerberos() local
1813 struct cifs_ses *ses = sess_data->ses; SMB2_sess_auth_rawntlmssp_negotiate() local
1905 struct cifs_ses *ses = sess_data->ses; SMB2_sess_auth_rawntlmssp_authenticate() local
1983 struct cifs_ses *ses = sess_data->ses; SMB2_select_sec() local
2009 SMB2_sess_setup(const unsigned int xid,struct cifs_ses * ses,struct TCP_Server_Info * server,const struct nls_table * nls_cp) SMB2_sess_setup() argument
2056 SMB2_logoff(const unsigned int xid,struct cifs_ses * ses) SMB2_logoff() argument
2132 SMB2_tcon(const unsigned int xid,struct cifs_ses * ses,const char * tree,struct cifs_tcon * tcon,const struct nls_table * cp) SMB2_tcon() argument
2277 struct cifs_ses *ses = tcon->ses; SMB2_tdis() local
2953 struct cifs_ses *ses = tcon->ses; smb311_posix_mkdir() local
3325 struct cifs_ses *ses = tcon->ses; SMB2_open() local
3551 struct cifs_ses *ses; SMB2_ioctl() local
3753 struct cifs_ses *ses = tcon->ses; __SMB2_close() local
3966 struct cifs_ses *ses = tcon->ses; query_info() local
4140 struct cifs_ses *ses = tcon->ses; SMB2_change_notify() local
4278 struct cifs_ses *ses, *ses2; smb2_reconnect_server() local
4485 struct cifs_ses *ses = tcon->ses; SMB2_flush() local
4948 struct cifs_ses *ses = io_parms->tcon->ses; SMB2_read() local
5767 struct cifs_ses *ses = tcon->ses; SMB2_query_directory() local
5908 struct cifs_ses *ses = tcon->ses; send_set_info() local
6040 struct cifs_ses *ses = tcon->ses; SMB2_oplock_break() local
6180 struct cifs_ses *ses = tcon->ses; SMB311_posix_qfs_info() local
6249 struct cifs_ses *ses = tcon->ses; SMB2_QFS_attr() local
6455 struct cifs_ses *ses = tcon->ses; SMB2_lease_break() local
[all...]
H A Ddfs.h23 struct cifs_ses *ses; member
43 #define ref_walk_ses(w) (ref_walk_cur(w)->ses)
68 if (ref->ses) in __ref_walk_free()
69 cifs_put_smb_ses(ref->ses); in __ref_walk_free()
138 if (WARN_ON_ONCE(!ref->ses)) in ref_walk_set_tcon()
140 list_add(&ref->ses->dlist, &tcon->dfs_ses_list); in ref_walk_set_tcon()
141 ref->ses = NULL; in ref_walk_set_tcon()
170 struct cifs_ses *rses = ctx->dfs_root_ses ?: mnt_ctx->ses; in dfs_get_referral()
184 struct cifs_ses *ses, *n; in dfs_put_root_smb_sessions() local
186 list_for_each_entry_safe(ses, n, head, dlist) { in dfs_put_root_smb_sessions()
[all …]
H A Dcifsproto.h100 struct TCP_Server_Info *cifs_pick_channel(struct cifs_ses *ses);
101 int cifs_send_recv(const unsigned int xid, struct cifs_ses *ses,
104 int compound_send_recv(const unsigned int xid, struct cifs_ses *ses,
118 send_cancel(struct cifs_ses *ses, struct TCP_Server_Info *server, in send_cancel() argument
123 server->ops->send_cancel(ses, server, rqst, mid, xid) : 0; in send_cancel()
290 int cifs_negotiate_protocol(const unsigned int xid, struct cifs_ses *ses,
292 int cifs_setup_session(const unsigned int xid, struct cifs_ses *ses,
310 int setup_ntlmv2_rsp(struct cifs_ses *ses, const struct nls_table *nls_cp);
312 int calc_seckey(struct cifs_ses *ses);
313 int generate_smb30signingkey(struct cifs_ses *ses,
[all …]
H A Ddfs_cache.c646 static int get_dfs_referral(const unsigned int xid, struct cifs_ses *ses, const char *path, in get_dfs_referral() argument
655 if (!ses || !ses->server || !ses->server->ops->get_dfs_refer) in get_dfs_referral()
660 cifs_dbg(FYI, "%s: ipc=%s referral=%s\n", __func__, ses->tcon_ipc->tree_name, path); in get_dfs_referral()
661 rc = ses->server->ops->get_dfs_refer(xid, ses, path, refs, numrefs, cache_cp, in get_dfs_referral()
684 struct cifs_ses *ses, in cache_refresh_path() argument
719 rc = get_dfs_referral(xid, ses, path, &refs, &numrefs); in cache_refresh_path()
856 int dfs_cache_find(const unsigned int xid, struct cifs_ses *ses, const struct nls_table *cp, in dfs_cache_find() argument
868 ce = cache_refresh_path(xid, ses, npath, false); in dfs_cache_find()
1117 struct TCP_Server_Info *server = tcon->ses->server; in target_share_equal()
1142 static bool is_ses_good(struct cifs_tcon *tcon, struct cifs_ses *ses) in is_ses_good() argument
[all …]
H A Dcifs_swn.c94 if (tcon->ses->user_name != NULL) { in cifs_swn_auth_info_ntlm()
95 ret = nla_put_string(skb, CIFS_GENL_ATTR_SWN_USER_NAME, tcon->ses->user_name); in cifs_swn_auth_info_ntlm()
100 if (tcon->ses->password != NULL) { in cifs_swn_auth_info_ntlm()
101 ret = nla_put_string(skb, CIFS_GENL_ATTR_SWN_PASSWORD, tcon->ses->password); in cifs_swn_auth_info_ntlm()
106 if (tcon->ses->domainName != NULL) { in cifs_swn_auth_info_ntlm()
107 ret = nla_put_string(skb, CIFS_GENL_ATTR_SWN_DOMAIN_NAME, tcon->ses->domainName); in cifs_swn_auth_info_ntlm()
157 if (tcon->ses->server->use_swn_dstaddr) in cifs_swn_send_register_message()
158 addr = &tcon->ses->server->swn_dstaddr; in cifs_swn_send_register_message()
160 addr = &tcon->ses->server->dstaddr; in cifs_swn_send_register_message()
184 authtype = cifs_select_sectype(tcon->ses->server, tcon->ses->sectype); in cifs_swn_send_register_message()
[all …]
H A Dcifssmb.c75 struct cifs_ses *ses; in cifs_reconnect_tcon() local
86 ses = tcon->ses; in cifs_reconnect_tcon()
87 server = ses->server; in cifs_reconnect_tcon()
109 spin_lock(&ses->chan_lock); in cifs_reconnect_tcon()
110 if (!cifs_chan_needs_reconnect(ses, server) && !tcon->need_reconnect) { in cifs_reconnect_tcon()
111 spin_unlock(&ses->chan_lock); in cifs_reconnect_tcon()
114 spin_unlock(&ses->chan_lock); in cifs_reconnect_tcon()
116 mutex_lock(&ses->session_mutex); in cifs_reconnect_tcon()
125 mutex_unlock(&ses->session_mutex); in cifs_reconnect_tcon()
129 mutex_unlock(&ses->session_mutex); in cifs_reconnect_tcon()
[all …]
H A Ddfs.c78 struct cifs_ses *ses = mnt_ctx->ses; in set_root_smb_session() local
80 if (ses) { in set_root_smb_session()
82 cifs_smb_ses_inc_refcount(ses); in set_root_smb_session()
85 ctx->dfs_root_ses = ses; in set_root_smb_session()
222 else if (WARN_ON(!mnt_ctx->ses)) in __dfs_mount_share()
342 const struct smb_version_operations *ops = tcon->ses->server->ops; in tree_connect_dfs_target()
343 struct TCP_Server_Info *server = tcon->ses->server; in tree_connect_dfs_target()
373 rc = ops->tree_connect(xid, tcon->ses, tree, in tree_connect_dfs_target()
374 tcon, tcon->ses->local_nls); in tree_connect_dfs_target()
389 struct TCP_Server_Info *server = tcon->ses->server; in cifs_tree_connect()
[all …]
H A Dcifsglob.h113 #define CIFS_DFS_ROOT_SES(ses) ((ses)->dfs_root_ses ?: (ses)) argument
312 int (*send_cancel)(struct cifs_ses *ses, struct TCP_Server_Info *server,
368 struct cifs_ses *ses,
538 int (*generate_signingkey)(struct cifs_ses *ses,
1119 #define CIFS_ALL_CHANNELS_SET(ses) \ argument
1120 ((1UL << (ses)->chan_count) - 1)
1121 #define CIFS_ALL_CHANS_GOOD(ses) \ argument
1122 (!(ses)
1123 CIFS_ALL_CHANS_NEED_RECONNECT(ses) global() argument
1125 CIFS_SET_ALL_CHANS_NEED_RECONNECT(ses) global() argument
1127 CIFS_CHAN_NEEDS_RECONNECT(ses,index) global() argument
1129 CIFS_CHAN_IN_RECONNECT(ses,index) global() argument
1155 cap_unix(struct cifs_ses * ses) cap_unix() argument
1206 struct cifs_ses *ses; /* pointer to session associated with */ global() member
1820 struct cifs_ses *ses; global() member
1826 struct cifs_ses *ses; global() member
2221 ntlmssp_workstation_name_size(const struct cifs_ses * ses) ntlmssp_workstation_name_size() argument
2274 cifs_ses_exiting(struct cifs_ses * ses) cifs_ses_exiting() argument
[all...]
H A Dtransport.c832 struct TCP_Server_Info *cifs_pick_channel(struct cifs_ses *ses) in cifs_pick_channel() argument
839 if (!ses) in cifs_pick_channel()
842 spin_lock(&ses->chan_lock); in cifs_pick_channel()
843 start = atomic_inc_return(&ses->chan_seq); in cifs_pick_channel()
844 for (i = 0; i < ses->chan_count; i++) { in cifs_pick_channel()
845 cur = (start + i) % ses->chan_count; in cifs_pick_channel()
846 server = ses->chans[cur].server; in cifs_pick_channel()
850 if (CIFS_CHAN_NEEDS_RECONNECT(ses, cur)) in cifs_pick_channel()
867 server = ses->chans[index].server; in cifs_pick_channel()
868 spin_unlock(&ses->chan_lock); in cifs_pick_channel()
[all …]
H A Dsmb2inode.c226 struct cifs_ses *ses = tcon->ses; in smb2_compound_op() local
249 server = cifs_pick_channel(ses); in smb2_compound_op()
337 ses->Suid, full_path); in smb2_compound_op()
356 ses->Suid, full_path); in smb2_compound_op()
363 trace_smb3_mkdir_enter(xid, tcon->tid, ses->Suid, full_path); in smb2_compound_op()
381 trace_smb3_unlink_enter(xid, tcon->tid, ses->Suid, full_path); in smb2_compound_op()
399 trace_smb3_set_eof_enter(xid, tcon->tid, ses->Suid, full_path); in smb2_compound_op()
417 ses->Suid, full_path); in smb2_compound_op()
444 trace_smb3_rename_enter(xid, tcon->tid, ses->Suid, full_path); in smb2_compound_op()
470 trace_smb3_hardlink_enter(xid, tcon->tid, ses->Suid, full_path); in smb2_compound_op()
[all …]
H A Dsmb2misc.c194 struct cifs_ses *ses = NULL; in smb2_check_message() local
201 ses = iter; in smb2_check_message()
206 if (!ses) { in smb2_check_message()
655 struct cifs_ses *ses; in smb2_is_valid_lease_break() local
675 list_for_each_entry(ses, &pserver->smb_ses_list, smb_ses_list) { in smb2_is_valid_lease_break()
676 if (cifs_ses_exiting(ses)) in smb2_is_valid_lease_break()
678 list_for_each_entry(tcon, &ses->tcon_list, tcon_list) { in smb2_is_valid_lease_break()
729 struct cifs_ses *ses; in smb2_is_valid_oplock_break() local
754 list_for_each_entry(ses, &pserver->smb_ses_list, smb_ses_list) { in smb2_is_valid_oplock_break()
755 if (cifs_ses_exiting(ses)) in smb2_is_valid_oplock_break()
[all …]
H A Dsmb2ops.c469 struct cifs_ses *ses, in smb2_negotiate() argument
477 rc = SMB2_negotiate(xid, ses, server); in smb2_negotiate()
495 struct TCP_Server_Info *server = tcon->ses->server; in smb2_negotiate_wsize()
510 struct TCP_Server_Info *server = tcon->ses->server; in smb3_negotiate_wsize()
545 struct TCP_Server_Info *server = tcon->ses->server; in smb2_negotiate_rsize()
561 struct TCP_Server_Info *server = tcon->ses->server; in smb3_negotiate_rsize()
633 size_t buf_len, struct cifs_ses *ses, bool in_mount) in parse_server_interfaces() argument
651 spin_lock(&ses->iface_lock); in parse_server_interfaces()
656 list_for_each_entry_safe(iface, niface, &ses->iface_list, in parse_server_interfaces()
660 spin_unlock(&ses in parse_server_interfaces()
834 struct cifs_ses *ses = tcon->ses; SMB3_request_interfaces() local
1196 struct cifs_ses *ses = tcon->ses; smb2_set_ea() local
1595 struct cifs_ses *ses = tcon->ses; smb2_ioctl_query_info() local
2801 struct cifs_ses *ses; smb2_is_network_name_deleted() local
2881 struct cifs_ses *ses = tcon->ses; smb2_set_next_command() local
2962 struct cifs_ses *ses = tcon->ses; smb2_query_info_compound() local
3227 smb2_get_dfs_refer(const unsigned int xid,struct cifs_ses * ses,const char * search_name,struct dfs_info3_param ** target_nodes,unsigned int * num_of_nodes,const struct nls_table * nls_codepage,int remap) smb2_get_dfs_refer() argument
3527 struct cifs_ses *ses = tcon->ses; smb3_zero_range() local
4726 struct cifs_ses *ses; smb2_get_enc_key() local
[all...]
H A Dmisc.c899 if ((t1->ses == t2->ses || in tcon_super_cb()
900 t1->ses->dfs_root_ses == t2->ses->dfs_root_ses) && in tcon_super_cb()
901 t1->ses->server == t2->ses->server && in tcon_super_cb()
1014 struct TCP_Server_Info *server = tcon->ses->server; in cifs_inval_name_dfs_link_error()
1015 struct cifs_ses *ses = tcon->ses; in cifs_inval_name_dfs_link_error() local
1065 ses = CIFS_DFS_ROOT_SES(ses); in cifs_inval_name_dfs_link_error()
1066 if (ses->server->ops->get_dfs_refer && in cifs_inval_name_dfs_link_error()
1067 !ses->server->ops->get_dfs_refer(xid, ses, ref_path, &refs, in cifs_inval_name_dfs_link_error()
H A Dfile.c63 server = cifs_pick_channel(tlink_tcon(open_file->tlink)->ses); in cifs_prepare_write()
168 server = cifs_pick_channel(tlink_tcon(req->cfile->tlink)->ses); in cifs_prepare_read()
561 struct TCP_Server_Info *server = tcon->ses->server; in cifs_nt_open()
679 struct TCP_Server_Info *server = tcon->ses->server; in cifs_new_fileinfo()
812 struct TCP_Server_Info *server = tcon->ses->server; in serverclose_work()
872 struct TCP_Server_Info *server = tcon->ses->server; in _cifsFileInfo_put()
933 struct TCP_Server_Info *server = tcon->ses->server; in _cifsFileInfo_put()
979 return tcon->ses->server->ops->flush(xid, tcon, in cifs_file_flush()
985 rc = tcon->ses->server->ops->flush(xid, tcon, &cfile->fid); in cifs_file_flush()
1025 server = tcon->ses in cifs_do_truncate()
[all...]
H A Dlink.c152 if (tcon->ses->server->ops->create_mf_symlink) in create_mf_symlink()
153 rc = tcon->ses->server->ops->create_mf_symlink(xid, tcon, in create_mf_symlink()
188 if (tcon->ses->server->ops->query_mf_symlink) in check_mf_symlink()
189 rc = tcon->ses->server->ops->query_mf_symlink(xid, tcon, in check_mf_symlink()
249 rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, &query_data); in cifs_query_mf_symlink()
292 rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, NULL); in cifs_create_mf_symlink()
477 server = tcon->ses->server;
H A Dinode.c86 if (tcon->ses->server->max_read < PAGE_SIZE + MAX_CIFS_HDR_SIZE) in cifs_set_ops()
91 if (tcon->ses->server->sign) in cifs_set_ops()
467 server = tcon->ses->server; in cifs_get_unix_fattr()
586 if (tcon->ses->server->oplocks) in cifs_sfu_type()
590 rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, NULL); in cifs_sfu_type()
604 rc = tcon->ses->server->ops->sync_read(xid, &fid, &io_parms, in cifs_sfu_type()
667 rc = tcon->ses->server->ops->sync_read(xid, &fid, &io_parms, in cifs_sfu_type()
713 tcon->ses->server->ops->close(xid, tcon, &fid); in cifs_sfu_type()
740 if (tcon->ses->server->ops->query_all_EAs == NULL) { in cifs_sfu_mode()
745 rc = tcon->ses in cifs_sfu_mode()
[all...]
H A Dsmb2proto.h43 struct mid_q_entry *smb2_setup_request(struct cifs_ses *ses,
129 int SMB2_negotiate(const unsigned int xid, struct cifs_ses *ses,
131 int SMB2_sess_setup(const unsigned int xid, struct cifs_ses *ses,
134 int SMB2_logoff(const unsigned int xid, struct cifs_ses *ses);
135 int SMB2_tcon(const unsigned int xid, struct cifs_ses *ses, const char *tree,
264 void smb311_update_preauth_hash(struct cifs_ses *ses,
/linux/fs/nfsd/
H A Dnfs4callback.c412 static u32 highest_slotid(struct nfsd4_session *ses) in highest_slotid() argument
416 spin_lock(&ses->se_lock); in highest_slotid()
417 idx = fls(~ses->se_cb_slot_avail); in highest_slotid()
420 idx = max(idx, ses->se_cb_highest_slot); in highest_slotid()
421 spin_unlock(&ses->se_lock); in highest_slotid()
496 static void update_cb_slot_table(struct nfsd4_session *ses, u32 target) in update_cb_slot_table() argument
499 if (likely(target == READ_ONCE(ses->se_cb_highest_slot))) in update_cb_slot_table()
502 spin_lock(&ses->se_lock); in update_cb_slot_table()
503 if (target > ses->se_cb_highest_slot) { in update_cb_slot_table()
514 for (i = ses->se_cb_highest_slot + 1; i <= target; ++i) in update_cb_slot_table()
[all …]
H A Dnfs4state.c151 static bool is_session_dead(struct nfsd4_session *ses) in is_session_dead() argument
153 return ses->se_dead; in is_session_dead()
156 static __be32 mark_session_dead_locked(struct nfsd4_session *ses, int ref_held_by_me) in mark_session_dead_locked() argument
158 if (atomic_read(&ses->se_ref) > ref_held_by_me) in mark_session_dead_locked()
160 ses->se_dead = true; in mark_session_dead_locked()
265 static __be32 nfsd4_get_session_locked(struct nfsd4_session *ses) in nfsd4_get_session_locked() argument
269 if (is_session_dead(ses)) in nfsd4_get_session_locked()
271 status = get_client_locked(ses->se_client); in nfsd4_get_session_locked()
274 atomic_inc(&ses->se_ref); in nfsd4_get_session_locked()
278 static void nfsd4_put_session_locked(struct nfsd4_session *ses) in nfsd4_put_session_locked() argument
[all …]
/linux/drivers/scsi/
H A Dscsi_error.c1091 void scsi_eh_prep_cmnd(struct scsi_cmnd *scmd, struct scsi_eh_save *ses, in scsi_eh_prep_cmnd() argument
1106 ses->cmd_len = scmd->cmd_len; in scsi_eh_prep_cmnd()
1107 ses->data_direction = scmd->sc_data_direction; in scsi_eh_prep_cmnd()
1108 ses->sdb = scmd->sdb; in scsi_eh_prep_cmnd()
1109 ses->result = scmd->result; in scsi_eh_prep_cmnd()
1110 ses->resid_len = scmd->resid_len; in scsi_eh_prep_cmnd()
1111 ses->underflow = scmd->underflow; in scsi_eh_prep_cmnd()
1112 ses->prot_op = scmd->prot_op; in scsi_eh_prep_cmnd()
1113 ses->eh_eflags = scmd->eh_eflags; in scsi_eh_prep_cmnd()
1117 memcpy(ses->cmnd, scmd->cmnd, sizeof(ses->cmnd)); in scsi_eh_prep_cmnd()
[all …]
/linux/fs/nfs/
H A Dnfs4session.c534 int nfs4_setup_session_slot_tables(struct nfs4_session *ses) in nfs4_setup_session_slot_tables() argument
541 tbl = &ses->fc_slot_table; in nfs4_setup_session_slot_tables()
542 tbl->session = ses; in nfs4_setup_session_slot_tables()
543 status = nfs4_realloc_slot_table(tbl, ses->fc_attrs.max_reqs, 1); in nfs4_setup_session_slot_tables()
544 if (status || !(ses->flags & SESSION4_BACK_CHAN)) /* -ENOMEM */ in nfs4_setup_session_slot_tables()
547 tbl = &ses->bc_slot_table; in nfs4_setup_session_slot_tables()
548 tbl->session = ses; in nfs4_setup_session_slot_tables()
549 status = nfs4_realloc_slot_table(tbl, ses->bc_attrs.max_reqs, 0); in nfs4_setup_session_slot_tables()
553 nfs4_release_session_slot_tables(ses); in nfs4_setup_session_slot_tables()
/linux/include/scsi/
H A Dscsi_eh.h53 struct scsi_eh_save *ses, unsigned char *cmnd,
57 struct scsi_eh_save *ses);

12