Home
last modified time | relevance | path

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

/linux-4.4.14/fs/cifs/
Dsess.c35 static __u32 cifs_ssetup_hdr(struct cifs_ses *ses, SESSION_SETUP_ANDX *pSMB) in cifs_ssetup_hdr() argument
48 pSMB->req.MaxMpxCount = cpu_to_le16(ses->server->maxReq); in cifs_ssetup_hdr()
59 if (ses->server->sign) in cifs_ssetup_hdr()
62 if (ses->capabilities & CAP_UNICODE) { in cifs_ssetup_hdr()
66 if (ses->capabilities & CAP_STATUS32) { in cifs_ssetup_hdr()
70 if (ses->capabilities & CAP_DFS) { in cifs_ssetup_hdr()
74 if (ses->capabilities & CAP_UNIX) in cifs_ssetup_hdr()
103 static void unicode_domain_string(char **pbcc_area, struct cifs_ses *ses, in unicode_domain_string() argument
110 if (ses->domainName == NULL) { in unicode_domain_string()
117 bytes_ret = cifs_strtoUTF16((__le16 *) bcc_ptr, ses->domainName, in unicode_domain_string()
[all …]
Dcifsencrypt.c265 int setup_ntlm_response(struct cifs_ses *ses, const struct nls_table *nls_cp) in setup_ntlm_response() argument
271 if (!ses) in setup_ntlm_response()
274 ses->auth_key.response = kmalloc(temp_len, GFP_KERNEL); in setup_ntlm_response()
275 if (!ses->auth_key.response) in setup_ntlm_response()
278 ses->auth_key.len = temp_len; in setup_ntlm_response()
280 rc = SMBNTencrypt(ses->password, ses->server->cryptkey, in setup_ntlm_response()
281 ses->auth_key.response + CIFS_SESS_KEY_SIZE, nls_cp); in setup_ntlm_response()
288 rc = E_md4hash(ses->password, temp_key, nls_cp); in setup_ntlm_response()
295 rc = mdfour(ses->auth_key.response, temp_key, CIFS_SESS_KEY_SIZE); in setup_ntlm_response()
347 build_avpair_blob(struct cifs_ses *ses, const struct nls_table *nls_cp) in build_avpair_blob() argument
[all …]
Dtransport.c460 static int allocate_mid(struct cifs_ses *ses, struct smb_hdr *in_buf, in allocate_mid() argument
463 if (ses->server->tcpStatus == CifsExiting) { in allocate_mid()
467 if (ses->server->tcpStatus == CifsNeedReconnect) { in allocate_mid()
472 if (ses->status == CifsNew) { in allocate_mid()
479 if (ses->status == CifsExiting) { in allocate_mid()
486 *ppmidQ = AllocMidQEntry(in_buf, ses->server); in allocate_mid()
490 list_add_tail(&(*ppmidQ)->qhead, &ses->server->pending_mid_q); in allocate_mid()
603 SendReceiveNoRsp(const unsigned int xid, struct cifs_ses *ses, in SendReceiveNoRsp() argument
613 rc = SendReceive2(xid, ses, iov, 1, &resp_buf_type, flags); in SendReceiveNoRsp()
692 cifs_setup_request(struct cifs_ses *ses, struct smb_rqst *rqst) in cifs_setup_request() argument
[all …]
Dsmb2pdu.c114 if ((tcon->ses) && (tcon->ses->server) && in smb2_hdr_assemble()
115 (tcon->ses->server->capabilities & SMB2_GLOBAL_CAP_LARGE_MTU)) in smb2_hdr_assemble()
121 if (tcon->ses) in smb2_hdr_assemble()
122 hdr->SessionId = tcon->ses->Suid; in smb2_hdr_assemble()
137 if (tcon->ses && tcon->ses->server && tcon->ses->server->sign) in smb2_hdr_assemble()
149 struct cifs_ses *ses; in smb2_reconnect() local
177 if ((!tcon->ses) || (tcon->ses->status == CifsExiting) || in smb2_reconnect()
178 (!tcon->ses->server)) in smb2_reconnect()
181 ses = tcon->ses; in smb2_reconnect()
182 server = ses->server; in smb2_reconnect()
[all …]
Dsmb2transport.c120 struct cifs_ses *ses; in smb2_find_smb_ses() local
123 list_for_each_entry(ses, &server->smb_ses_list, smb_ses_list) { in smb2_find_smb_ses()
124 if (ses->Suid != smb2hdr->SessionId) in smb2_find_smb_ses()
127 return ses; in smb2_find_smb_ses()
144 struct cifs_ses *ses; in smb2_calc_signature() local
146 ses = smb2_find_smb_ses(smb2_pdu, server); in smb2_calc_signature()
147 if (!ses) { in smb2_calc_signature()
162 ses->auth_key.response, SMB2_NTLMV2_SESSKEY_SIZE); in smb2_calc_signature()
226 generate_smb3signingkey(struct cifs_ses *ses) in generate_smb3signingkey() argument
236 memset(ses->smb3signingkey, 0x0, SMB3_SIGNKEY_SIZE); in generate_smb3signingkey()
[all …]
Dconnect.c316 struct cifs_ses *ses; in cifs_reconnect() local
343 ses = list_entry(tmp, struct cifs_ses, smb_ses_list); in cifs_reconnect()
344 ses->need_reconnect = true; in cifs_reconnect()
345 ses->ipc_tid = 0; in cifs_reconnect()
346 list_for_each(tmp2, &ses->tcon_list) { in cifs_reconnect()
2260 static int match_session(struct cifs_ses *ses, struct smb_vol *vol) in match_session() argument
2263 vol->sectype != ses->sectype) in match_session()
2266 switch (ses->sectype) { in match_session()
2268 if (!uid_eq(vol->cred_uid, ses->cred_uid)) in match_session()
2273 if (ses->user_name == NULL) { in match_session()
[all …]
Dxattr.c87 if (pTcon->ses->server->ops->set_EA) in cifs_removexattr()
88 rc = pTcon->ses->server->ops->set_EA(xid, pTcon, in cifs_removexattr()
155 if (pTcon->ses->server->ops->set_EA) in cifs_setxattr()
156 rc = pTcon->ses->server->ops->set_EA(xid, pTcon, in cifs_setxattr()
165 if (pTcon->ses->server->ops->set_EA) in cifs_setxattr()
166 rc = pTcon->ses->server->ops->set_EA(xid, pTcon, in cifs_setxattr()
178 if (pTcon->ses->server->ops->set_acl) in cifs_setxattr()
179 rc = pTcon->ses->server->ops->set_acl(pacl, in cifs_setxattr()
282 if (pTcon->ses->server->ops->query_all_EAs) in cifs_getxattr()
283 rc = pTcon->ses->server->ops->query_all_EAs(xid, pTcon, in cifs_getxattr()
[all …]
Dioctl.c94 if (!dup_extents && (src_tcon->ses != target_tcon->ses)) { in cifs_ioctl_clone()
123 if (dup_extents && target_tcon->ses->server->ops->duplicate_extents) in cifs_ioctl_clone()
124 rc = target_tcon->ses->server->ops->duplicate_extents(xid, in cifs_ioctl_clone()
126 else if (!dup_extents && target_tcon->ses->server->ops->clone_range) in cifs_ioctl_clone()
127 rc = target_tcon->ses->server->ops->clone_range(xid, in cifs_ioctl_clone()
157 fsinf->protocol_id = tcon->ses->server->vals->protocol_id; in smb_mnt_get_fsinfo()
252 if (tcon->ses->server->ops->set_compression) { in cifs_ioctl()
253 rc = tcon->ses->server->ops->set_compression( in cifs_ioctl()
268 if (tcon->ses->server->ops->set_integrity) in cifs_ioctl()
269 rc = tcon->ses->server->ops->set_integrity(xid, in cifs_ioctl()
Dcifs_debug.c115 struct cifs_ses *ses; in cifs_debug_data_proc_show() local
157 ses = list_entry(tmp2, struct cifs_ses, in cifs_debug_data_proc_show()
159 if ((ses->serverDomain == NULL) || in cifs_debug_data_proc_show()
160 (ses->serverOS == NULL) || in cifs_debug_data_proc_show()
161 (ses->serverNOS == NULL)) { in cifs_debug_data_proc_show()
163 "displayed\n\t", i, ses->serverName); in cifs_debug_data_proc_show()
169 i, ses->serverName, ses->serverDomain, in cifs_debug_data_proc_show()
170 ses->ses_count, ses->serverOS, ses->serverNOS, in cifs_debug_data_proc_show()
171 ses->capabilities, ses->status); in cifs_debug_data_proc_show()
186 list_for_each(tmp3, &ses->tcon_list) { in cifs_debug_data_proc_show()
[all …]
Dcifssmb.c119 struct cifs_ses *ses; in cifs_reconnect_tcon() local
131 ses = tcon->ses; in cifs_reconnect_tcon()
132 server = ses->server; in cifs_reconnect_tcon()
171 if (!ses->need_reconnect && !tcon->need_reconnect) in cifs_reconnect_tcon()
180 mutex_lock(&ses->session_mutex); in cifs_reconnect_tcon()
181 rc = cifs_negotiate_protocol(0, ses); in cifs_reconnect_tcon()
182 if (rc == 0 && ses->need_reconnect) in cifs_reconnect_tcon()
183 rc = cifs_setup_session(0, ses, nls_codepage); in cifs_reconnect_tcon()
187 mutex_unlock(&ses->session_mutex); in cifs_reconnect_tcon()
192 rc = CIFSTCon(0, ses, tcon->treeName, tcon, nls_codepage); in cifs_reconnect_tcon()
[all …]
Dcifsfs.c128 if (tcon->ses->capabilities & tcon->ses->server->vals->cap_large_files) in cifs_read_super()
186 struct TCP_Server_Info *server = tcon->ses->server; in cifs_statfs()
214 struct TCP_Server_Info *server = tcon->ses->server; in cifs_fallocate()
326 cifs_show_security(struct seq_file *s, struct cifs_ses *ses) in cifs_show_security() argument
328 if (ses->sectype == Unspecified) { in cifs_show_security()
329 if (ses->user_name == NULL) in cifs_show_security()
336 switch (ses->sectype) { in cifs_show_security()
358 if (ses->sign) in cifs_show_security()
398 srcaddr = (struct sockaddr *)&tcon->ses->server->srcaddr; in cifs_show_options()
400 seq_show_option(s, "vers", tcon->ses->server->vals->version_string); in cifs_show_options()
[all …]
Dmisc.c265 if (treeCon->ses) { in header_assemble()
266 if (treeCon->ses->capabilities & CAP_UNICODE) in header_assemble()
268 if (treeCon->ses->capabilities & CAP_STATUS32) in header_assemble()
272 buffer->Uid = treeCon->ses->Suid; in header_assemble()
273 buffer->Mid = get_next_mid(treeCon->ses->server); in header_assemble()
279 if ((treeCon->ses) && (treeCon->ses->server)) in header_assemble()
280 if (treeCon->ses->server->sign) in header_assemble()
402 struct cifs_ses *ses; in is_valid_oplock_break() local
461 ses = list_entry(tmp, struct cifs_ses, smb_ses_list); in is_valid_oplock_break()
462 list_for_each(tmp1, &ses->tcon_list) { in is_valid_oplock_break()
Dntlmssp.h134 int decode_ntlmssp_challenge(char *bcc_ptr, int blob_len, struct cifs_ses *ses);
135 void build_ntlmssp_negotiate_blob(unsigned char *pbuffer, struct cifs_ses *ses);
137 struct cifs_ses *ses,
Dsmb2proto.h46 extern struct mid_q_entry *smb2_setup_request(struct cifs_ses *ses,
103 extern int SMB2_negotiate(const unsigned int xid, struct cifs_ses *ses);
104 extern int SMB2_sess_setup(const unsigned int xid, struct cifs_ses *ses,
106 extern int SMB2_logoff(const unsigned int xid, struct cifs_ses *ses);
107 extern int SMB2_tcon(const unsigned int xid, struct cifs_ses *ses,
Dcifsproto.h85 extern int SendReceiveNoRsp(const unsigned int xid, struct cifs_ses *ses,
123 struct cifs_ses *ses,
127 extern int CIFS_SessSetup(const unsigned int xid, struct cifs_ses *ses,
223 struct cifs_ses *ses);
224 extern int cifs_setup_session(const unsigned int xid, struct cifs_ses *ses,
227 extern int CIFSSMBNegotiate(const unsigned int xid, struct cifs_ses *ses);
229 extern int CIFSTCon(const unsigned int xid, struct cifs_ses *ses,
264 extern int CIFSGetDFSRefer(const unsigned int xid, struct cifs_ses *ses,
270 extern int get_dfs_path(const unsigned int xid, struct cifs_ses *ses,
421 extern int CIFSSMBLogoff(const unsigned int xid, struct cifs_ses *ses);
Dfile.c184 struct TCP_Server_Info *server = tcon->ses->server; in cifs_nt_open()
280 struct TCP_Server_Info *server = tcon->ses->server; in cifs_new_fileinfo()
361 struct TCP_Server_Info *server = tcon->ses->server; in cifsFileInfo_put()
403 struct TCP_Server_Info *server = tcon->ses->server; in cifsFileInfo_put()
462 server = tcon->ses->server; in cifs_open()
487 cap_unix(tcon->ses) && (CIFS_UNIX_POSIX_PATH_OPS_CAP & in cifs_open()
497 if (tcon->ses->serverNOS) in cifs_open()
499 tcon->ses->serverName, in cifs_open()
500 tcon->ses->serverNOS); in cifs_open()
585 if (cap_unix(tcon->ses) && in cifs_relock_file()
[all …]
Dsmb2misc.c446 struct TCP_Server_Info *server = tcon->ses->server; in smb2_tcon_has_lease()
507 struct cifs_ses *ses; in smb2_is_valid_lease_break() local
526 ses = list_entry(tmp1, struct cifs_ses, smb_ses_list); in smb2_is_valid_lease_break()
529 list_for_each(tmp2, &ses->tcon_list) { in smb2_is_valid_lease_break()
554 struct cifs_ses *ses; in smb2_is_valid_oplock_break() local
577 ses = list_entry(tmp, struct cifs_ses, smb_ses_list); in smb2_is_valid_oplock_break()
578 list_for_each(tmp1, &ses->tcon_list) { in smb2_is_valid_oplock_break()
Ddir.c207 struct TCP_Server_Info *server = tcon->ses->server; in cifs_do_create()
211 if (tcon->ses->server->oplocks) in cifs_do_create()
220 if (tcon->unix_ext && cap_unix(tcon->ses) && !tcon->broken_posix_open && in cifs_do_create()
474 server = tcon->ses->server; in cifs_atomic_open()
552 server = tcon->ses->server; in cifs_create()
661 if (tcon->ses->server->oplocks) in cifs_mknod()
665 rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, buf); in cifs_mknod()
685 rc = tcon->ses->server->ops->sync_write(xid, &fid, &io_parms, in cifs_mknod()
691 rc = tcon->ses->server->ops->sync_write(xid, &fid, &io_parms, in cifs_mknod()
694 tcon->ses->server->ops->close(xid, tcon, &fid); in cifs_mknod()
Dlink.c220 if (tcon->ses->server->ops->create_mf_symlink) in create_mf_symlink()
221 rc = tcon->ses->server->ops->create_mf_symlink(xid, tcon, in create_mf_symlink()
250 if (tcon->ses->server->ops->query_mf_symlink) in query_mf_symlink()
251 rc = tcon->ses->server->ops->query_mf_symlink(xid, tcon, in query_mf_symlink()
288 if (tcon->ses->server->ops->query_mf_symlink) in check_mf_symlink()
289 rc = tcon->ses->server->ops->query_mf_symlink(xid, tcon, in check_mf_symlink()
572 server = tcon->ses->server; in cifs_hardlink()
650 server = tcon->ses->server; in cifs_follow_link()
Dcifs_dfs_ref.c283 struct cifs_ses *ses; in cifs_dfs_do_automount() local
311 ses = tlink_tcon(tlink)->ses; in cifs_dfs_do_automount()
314 rc = get_dfs_path(xid, ses, full_path + 1, cifs_sb->local_nls, in cifs_dfs_do_automount()
Dsmb1ops.c424 cifs_negotiate(const unsigned int xid, struct cifs_ses *ses) in cifs_negotiate() argument
427 rc = CIFSSMBNegotiate(xid, ses); in cifs_negotiate()
430 set_credits(ses->server, 1); in cifs_negotiate()
431 rc = CIFSSMBNegotiate(xid, ses); in cifs_negotiate()
442 struct TCP_Server_Info *server = tcon->ses->server; in cifs_negotiate_wsize()
477 struct TCP_Server_Info *server = tcon->ses->server; in cifs_negotiate_rsize()
711 if (!(oparms->tcon->ses->capabilities & CAP_NT_SMBS)) in cifs_open_file()
891 if ((tcon->ses->capabilities & CAP_UNIX) && in cifs_queryfs()
899 if (rc && (tcon->ses->capabilities & CAP_NT_SMBS)) in cifs_queryfs()
931 rc = get_dfs_path(xid, tcon->ses, searchName, nls_codepage, in cifs_unix_dfs_readlink()
[all …]
Dinode.c61 if (cifs_sb_master_tcon(cifs_sb)->ses->server->maxBuf <
470 if (tcon->ses->server->oplocks)
474 rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, NULL);
488 rc = tcon->ses->server->ops->sync_read(xid, &fid, &io_parms,
530 tcon->ses->server->ops->close(xid, tcon, &fid);
557 if (tcon->ses->server->ops->query_all_EAs == NULL) {
562 rc = tcon->ses->server->ops->query_all_EAs(xid, tcon, path,
606 fattr->cf_ctime.tv_sec += tcon->ses->server->timeAdj;
607 fattr->cf_mtime.tv_sec += tcon->ses->server->timeAdj;
663 struct TCP_Server_Info *server = tcon->ses->server;
[all …]
Dsmb2file.c64 if (oparms->tcon->ses->server->capabilities & SMB2_GLOBAL_CAP_LEASING) in smb2_open_file()
128 max_buf = tcon->ses->server->maxBuf; in smb2_unlock_range()
262 max_buf = tlink_tcon(cfile->tlink)->ses->server->maxBuf; in smb2_push_mandatory_locks()
Dreaddir.c214 int offset = cifs_sb_master_tcon(cifs_sb)->ses->server->timeAdj; in cifs_std_info_to_fattr()
293 server = tcon->ses->server; in initiate_cifs_search()
317 else if ((tcon->ses->capabilities & in initiate_cifs_search()
318 tcon->ses->server->vals->cap_nt_find) == 0) { in initiate_cifs_search()
571 struct TCP_Server_Info *server = tcon->ses->server; in find_cifs_entry()
829 max_len = tcon->ses->server->ops->calc_smb_size( in cifs_readdir()
Dcifsacl.c1023 if (pfid && (tcon->ses->server->ops->get_acl_by_fid)) in cifs_acl_to_fattr()
1024 pntsd = tcon->ses->server->ops->get_acl_by_fid(cifs_sb, pfid, in cifs_acl_to_fattr()
1026 else if (tcon->ses->server->ops->get_acl) in cifs_acl_to_fattr()
1027 pntsd = tcon->ses->server->ops->get_acl(cifs_sb, inode, path, in cifs_acl_to_fattr()
1071 if (tcon->ses->server->ops->get_acl == NULL) { in id_mode_to_cifs_acl()
1076 pntsd = tcon->ses->server->ops->get_acl(cifs_sb, inode, path, in id_mode_to_cifs_acl()
1104 if (tcon->ses->server->ops->set_acl == NULL) in id_mode_to_cifs_acl()
1109 rc = tcon->ses->server->ops->set_acl(pnntsd, secdesclen, inode, in id_mode_to_cifs_acl()
Dcifsglob.h817 cap_unix(struct cifs_ses *ses) in cap_unix() argument
819 return ses->server->vals->cap_unix & ses->capabilities; in cap_unix()
830 struct cifs_ses *ses; /* pointer to session associated with */ member
Dsmb2ops.c218 smb2_negotiate(const unsigned int xid, struct cifs_ses *ses) in smb2_negotiate() argument
221 ses->server->CurrentMid = 0; in smb2_negotiate()
222 rc = SMB2_negotiate(xid, ses); in smb2_negotiate()
232 struct TCP_Server_Info *server = tcon->ses->server; in smb2_negotiate_wsize()
248 struct TCP_Server_Info *server = tcon->ses->server; in smb2_negotiate_rsize()
532 struct TCP_Server_Info *server = tlink_tcon(cfile->tlink)->ses->server; in smb2_set_fid()
970 if (tcon->ses->server->capabilities & SMB2_GLOBAL_CAP_LEASING) in smb2_oplock_response()
Dfscache.c45 struct TCP_Server_Info *server = tcon->ses->server; in cifs_fscache_get_super_cookie()
/linux-4.4.14/fs/nfs/
Dnfs4session.c443 int nfs4_setup_session_slot_tables(struct nfs4_session *ses) in nfs4_setup_session_slot_tables() argument
450 tbl = &ses->fc_slot_table; in nfs4_setup_session_slot_tables()
451 tbl->session = ses; in nfs4_setup_session_slot_tables()
452 status = nfs4_realloc_slot_table(tbl, ses->fc_attrs.max_reqs, 1); in nfs4_setup_session_slot_tables()
453 if (status || !(ses->flags & SESSION4_BACK_CHAN)) /* -ENOMEM */ in nfs4_setup_session_slot_tables()
456 tbl = &ses->bc_slot_table; in nfs4_setup_session_slot_tables()
457 tbl->session = ses; in nfs4_setup_session_slot_tables()
458 status = nfs4_realloc_slot_table(tbl, ses->bc_attrs.max_reqs, 0); in nfs4_setup_session_slot_tables()
462 nfs4_release_session_slot_tables(ses); in nfs4_setup_session_slot_tables()
Dnfs4session.h98 extern int nfs4_setup_session_slot_tables(struct nfs4_session *ses);
Dnfs4state.c229 struct nfs4_session *ses = clp->cl_session; in nfs4_end_drain_session() local
236 if (ses != NULL) { in nfs4_end_drain_session()
237 nfs4_end_drain_slot_table(&ses->bc_slot_table); in nfs4_end_drain_session()
238 nfs4_end_drain_slot_table(&ses->fc_slot_table); in nfs4_end_drain_session()
257 struct nfs4_session *ses = clp->cl_session; in nfs4_begin_drain_session() local
264 ret = nfs4_drain_slot_tbl(&ses->bc_slot_table); in nfs4_begin_drain_session()
268 return nfs4_drain_slot_tbl(&ses->fc_slot_table); in nfs4_begin_drain_session()
/linux-4.4.14/drivers/scsi/
Dscsi_error.c915 void scsi_eh_prep_cmnd(struct scsi_cmnd *scmd, struct scsi_eh_save *ses, in scsi_eh_prep_cmnd() argument
927 ses->cmd_len = scmd->cmd_len; in scsi_eh_prep_cmnd()
928 ses->cmnd = scmd->cmnd; in scsi_eh_prep_cmnd()
929 ses->data_direction = scmd->sc_data_direction; in scsi_eh_prep_cmnd()
930 ses->sdb = scmd->sdb; in scsi_eh_prep_cmnd()
931 ses->next_rq = scmd->request->next_rq; in scsi_eh_prep_cmnd()
932 ses->result = scmd->result; in scsi_eh_prep_cmnd()
933 ses->underflow = scmd->underflow; in scsi_eh_prep_cmnd()
934 ses->prot_op = scmd->prot_op; in scsi_eh_prep_cmnd()
938 scmd->cmnd = ses->eh_cmnd; in scsi_eh_prep_cmnd()
[all …]
Daha1740.h109 :2, ses:1, /* Suppress Underrun error */
DNCR5380.h281 struct scsi_eh_save ses; member
DNCR5380.c2190 hostdata->ses.cmd_len) {
2191 scsi_eh_restore_cmnd(cmd, &hostdata->ses);
2192 hostdata->ses.cmd_len = 0 ;
2196 scsi_eh_prep_cmnd(cmd, &hostdata->ses, NULL, 0, ~0);
DMakefile157 obj-$(CONFIG_SCSI_ENCLOSURE) += ses.o
Datari_NCR5380.c2218 hostdata->ses.cmd_len) { in NCR5380_information_transfer()
2219 scsi_eh_restore_cmnd(cmd, &hostdata->ses); in NCR5380_information_transfer()
2220 hostdata->ses.cmd_len = 0 ; in NCR5380_information_transfer()
2225 scsi_eh_prep_cmnd(cmd, &hostdata->ses, NULL, 0, ~0); in NCR5380_information_transfer()
Daha1740.c421 host->ecb[ecbno].ses = 1; /* Suppress underrun errors */ in aha1740_queuecommand_lck()
Daha152x.c515 struct scsi_eh_save ses; member
1431 scsi_eh_restore_cmnd(cmd, &sc->ses); in busfree_run()
1451 scsi_eh_prep_cmnd(ptr, &sc->ses, NULL, 0, ~0); in busfree_run()
/linux-4.4.14/include/scsi/
Dscsi_eh.h46 struct scsi_eh_save *ses, unsigned char *cmnd,
50 struct scsi_eh_save *ses);
/linux-4.4.14/drivers/usb/storage/
Dcypress_atacb.c173 struct scsi_eh_save ses; in cypress_atacb_passthrough() local
181 scsi_eh_prep_cmnd(srb, &ses, NULL, 0, sizeof(regs)); in cypress_atacb_passthrough()
188 srb->cmnd = ses.cmnd; in cypress_atacb_passthrough()
194 scsi_eh_restore_cmnd(srb, &ses); in cypress_atacb_passthrough()
Dtransport.c691 struct scsi_eh_save ses; in usb_stor_invoke_transport() local
703 scsi_eh_prep_cmnd(srb, &ses, NULL, 0, sense_size); in usb_stor_invoke_transport()
717 scsi_eh_restore_cmnd(srb, &ses); in usb_stor_invoke_transport()
/linux-4.4.14/fs/f2fs/
Dsegment.c1800 struct sit_entry_set *ses = in grab_sit_entry_set() local
1803 ses->entry_cnt = 0; in grab_sit_entry_set()
1804 INIT_LIST_HEAD(&ses->set_list); in grab_sit_entry_set()
1805 return ses; in grab_sit_entry_set()
1808 static void release_sit_entry_set(struct sit_entry_set *ses) in release_sit_entry_set() argument
1810 list_del(&ses->set_list); in release_sit_entry_set()
1811 kmem_cache_free(sit_entry_set_slab, ses); in release_sit_entry_set()
1814 static void adjust_sit_entry_set(struct sit_entry_set *ses, in adjust_sit_entry_set() argument
1817 struct sit_entry_set *next = ses; in adjust_sit_entry_set()
1819 if (list_is_last(&ses->set_list, head)) in adjust_sit_entry_set()
[all …]
/linux-4.4.14/fs/nfsd/
Dnfs4callback.c699 … *get_backchannel_cred(struct nfs4_client *clp, struct rpc_clnt *client, struct nfsd4_session *ses) in get_backchannel_cred() argument
707 acred.uid = ses->se_cb_sec.uid; in get_backchannel_cred()
708 acred.gid = ses->se_cb_sec.gid; in get_backchannel_cred()
729 …etup_callback_client(struct nfs4_client *clp, struct nfs4_cb_conn *conn, struct nfsd4_session *ses) in setup_callback_client() argument
763 clp->cl_cb_session = ses; in setup_callback_client()
768 args.authflavor = ses->se_cb_sec.flavor; in setup_callback_client()
777 cred = get_backchannel_cred(clp, client, ses); in setup_callback_client()
1063 struct nfsd4_session *ses = NULL; in nfsd4_process_cb_update() local
1095 ses = c->cn_session; in nfsd4_process_cb_update()
1099 err = setup_callback_client(clp, &conn, ses); in nfsd4_process_cb_update()
Dnfs4state.c103 static bool is_session_dead(struct nfsd4_session *ses) in is_session_dead() argument
105 return ses->se_flags & NFS4_SESSION_DEAD; in is_session_dead()
108 static __be32 mark_session_dead_locked(struct nfsd4_session *ses, int ref_held_by_me) in mark_session_dead_locked() argument
110 if (atomic_read(&ses->se_ref) > ref_held_by_me) in mark_session_dead_locked()
112 ses->se_flags |= NFS4_SESSION_DEAD; in mark_session_dead_locked()
178 static __be32 nfsd4_get_session_locked(struct nfsd4_session *ses) in nfsd4_get_session_locked() argument
182 if (is_session_dead(ses)) in nfsd4_get_session_locked()
184 status = get_client_locked(ses->se_client); in nfsd4_get_session_locked()
187 atomic_inc(&ses->se_ref); in nfsd4_get_session_locked()
191 static void nfsd4_put_session_locked(struct nfsd4_session *ses) in nfsd4_put_session_locked() argument
[all …]
/linux-4.4.14/drivers/staging/lustre/lustre/osc/
Dosc_cl_internal.h481 struct osc_session *ses; in osc_env_session() local
483 ses = lu_context_key_get(env->le_ses, &osc_session_key); in osc_env_session()
484 LASSERT(ses != NULL); in osc_env_session()
485 return ses; in osc_env_session()
/linux-4.4.14/drivers/staging/lustre/lustre/include/
Dlclient.h156 struct ccc_session *ses; in ccc_env_session() local
158 ses = lu_context_key_get(env->le_ses, &ccc_session_key); in ccc_env_session()
159 LASSERT(ses != NULL); in ccc_env_session()
160 return ses; in ccc_env_session()
/linux-4.4.14/drivers/staging/lustre/lustre/lov/
Dlov_cl_internal.h651 struct lov_session *ses; in lov_env_session() local
653 ses = lu_context_key_get(env->le_ses, &lov_session_key); in lov_env_session()
654 LASSERT(ses != NULL); in lov_env_session()
655 return ses; in lov_env_session()
/linux-4.4.14/drivers/scsi/arm/
Dfas216.h312 struct scsi_eh_save ses; /* holds request sense restore info */ member
Dfas216.c2021 scsi_eh_restore_cmnd(SCpnt, &info->ses); in fas216_rq_sns_done()
2105 scsi_eh_prep_cmnd(SCpnt, &info->ses, NULL, 0, ~0); in fas216_std_done()
/linux-4.4.14/drivers/staging/lustre/lustre/llite/
Dllite_internal.h939 struct vvp_session *ses; in vvp_env_session() local
941 ses = lu_context_key_get(env->le_ses, &vvp_session_key); in vvp_env_session()
942 LASSERT(ses != NULL); in vvp_env_session()
943 return ses; in vvp_env_session()
/linux-4.4.14/include/net/
Dxfrm.h714 const unsigned int ses = task_valid ? audit_get_sessionid(current) : in xfrm_audit_helper_usrinfo() local
717 audit_log_format(audit_buf, " auid=%u ses=%u", auid, ses); in xfrm_audit_helper_usrinfo()