Lines Matching refs:server

81 	    (tcon->ses->server->capabilities & SMB2_GLOBAL_CAP_ENCRYPTION))  in smb3_encryption_required()
89 struct TCP_Server_Info *server) in smb2_hdr_assemble() argument
97 if (server) { in smb2_hdr_assemble()
99 if (server->dialect >= SMB30_PROT_ID) { in smb2_hdr_assemble()
105 if (SERVER_IS_CHAN(server)) in smb2_hdr_assemble()
107 cpu_to_le16(server->primary_server->channel_sequence_num); in smb2_hdr_assemble()
110 cpu_to_le16(server->channel_sequence_num); in smb2_hdr_assemble()
112 spin_lock(&server->req_lock); in smb2_hdr_assemble()
114 if (server->credits >= server->max_credits) in smb2_hdr_assemble()
118 min_t(int, server->max_credits - in smb2_hdr_assemble()
119 server->credits, 10)); in smb2_hdr_assemble()
120 spin_unlock(&server->req_lock); in smb2_hdr_assemble()
131 if (server && (server->capabilities & SMB2_GLOBAL_CAP_LARGE_MTU)) in smb2_hdr_assemble()
153 if (server && server->sign && !smb3_encryption_required(tcon)) in smb2_hdr_assemble()
161 struct TCP_Server_Info *server) in smb2_reconnect() argument
205 if (!ses->server || !server) in smb2_reconnect()
208 spin_lock(&server->srv_lock); in smb2_reconnect()
209 if (server->tcpStatus == CifsNeedReconnect) { in smb2_reconnect()
222 spin_unlock(&server->srv_lock); in smb2_reconnect()
226 spin_unlock(&server->srv_lock); in smb2_reconnect()
229 rc = cifs_wait_for_server_reconnect(server, tcon->retry); in smb2_reconnect()
234 if (!cifs_chan_needs_reconnect(ses, server) && !tcon->need_reconnect) { in smb2_reconnect()
249 spin_lock(&server->srv_lock); in smb2_reconnect()
250 if (server->tcpStatus == CifsNeedReconnect) { in smb2_reconnect()
251 spin_unlock(&server->srv_lock); in smb2_reconnect()
260 spin_unlock(&server->srv_lock); in smb2_reconnect()
270 if (!cifs_chan_needs_reconnect(ses, server) && in smb2_reconnect()
284 rc = cifs_negotiate_protocol(0, ses, server); in smb2_reconnect()
286 rc = cifs_setup_session(0, ses, server, nls_codepage); in smb2_reconnect()
320 mod_delayed_work(cifsiod_wq, &server->reconnect, 0); in smb2_reconnect()
349 struct TCP_Server_Info *server, in fill_small_buf() argument
363 smb2_hdr_assemble(&spdu->hdr, smb2_command, tcon, server); in fill_small_buf()
375 struct TCP_Server_Info *server, in __smb2_plain_req_init() argument
388 fill_small_buf(smb2_command, tcon, server, in __smb2_plain_req_init()
402 struct TCP_Server_Info *server, in smb2_plain_req_init() argument
407 rc = smb2_reconnect(smb2_command, tcon, server); in smb2_plain_req_init()
411 return __smb2_plain_req_init(smb2_command, tcon, server, request_buf, in smb2_plain_req_init()
416 struct TCP_Server_Info *server, in smb2_ioctl_req_init() argument
421 return __smb2_plain_req_init(SMB2_IOCTL, tcon, server, in smb2_ioctl_req_init()
424 return smb2_plain_req_init(SMB2_IOCTL, tcon, server, in smb2_ioctl_req_init()
537 struct TCP_Server_Info *server, unsigned int *total_len) in assemble_neg_contexts() argument
573 pserver = SERVER_IS_CHAN(server) ? server->primary_server : server; in assemble_neg_contexts()
591 if (server->compress_algorithm) { in assemble_neg_contexts()
635 static void decode_compress_ctx(struct TCP_Server_Info *server, in decode_compress_ctx() argument
657 server->compress_algorithm = ctxt->CompressionAlgorithms[0]; in decode_compress_ctx()
660 static int decode_encrypt_ctx(struct TCP_Server_Info *server, in decode_encrypt_ctx() argument
696 server->cipher_type = 0; in decode_encrypt_ctx()
697 server->capabilities &= ~SMB2_GLOBAL_CAP_ENCRYPTION; in decode_encrypt_ctx()
707 server->cipher_type = ctxt->Ciphers[0]; in decode_encrypt_ctx()
708 server->capabilities |= SMB2_GLOBAL_CAP_ENCRYPTION; in decode_encrypt_ctx()
712 static void decode_signing_ctx(struct TCP_Server_Info *server, in decode_signing_ctx() argument
735 server->signing_negotiated = true; in decode_signing_ctx()
736 server->signing_algorithm = le16_to_cpu(pctxt->SigningAlgorithms[0]); in decode_signing_ctx()
738 server->signing_algorithm); in decode_signing_ctx()
743 struct TCP_Server_Info *server, in smb311_decode_neg_context() argument
783 rc = decode_encrypt_ctx(server, in smb311_decode_neg_context()
786 decode_compress_ctx(server, in smb311_decode_neg_context()
789 server->posix_ext_supported = true; in smb311_decode_neg_context()
791 decode_signing_ctx(server, in smb311_decode_neg_context()
878 struct TCP_Server_Info *server) in SMB2_negotiate() argument
894 if (!server) { in SMB2_negotiate()
899 rc = smb2_plain_req_init(SMB2_NEGOTIATE, NULL, server, in SMB2_negotiate()
906 memset(server->preauth_sha_hash, 0, SMB2_PREAUTH_HASH_SIZE); in SMB2_negotiate()
909 if (strcmp(server->vals->version_string, in SMB2_negotiate()
916 } else if (strcmp(server->vals->version_string, in SMB2_negotiate()
926 req->Dialects[0] = cpu_to_le16(server->vals->protocol_id); in SMB2_negotiate()
939 req->Capabilities = cpu_to_le32(server->vals->req_capabilities); in SMB2_negotiate()
944 if (server->vals->protocol_id == SMB20_PROT_ID) in SMB2_negotiate()
947 memcpy(req->ClientGUID, server->client_guid, in SMB2_negotiate()
949 if ((server->vals->protocol_id == SMB311_PROT_ID) || in SMB2_negotiate()
950 (strcmp(server->vals->version_string, in SMB2_negotiate()
952 (strcmp(server->vals->version_string, in SMB2_negotiate()
954 assemble_neg_contexts(req, server, &total_len); in SMB2_negotiate()
963 rc = cifs_send_recv(xid, ses, server, in SMB2_negotiate()
978 if (strcmp(server->vals->version_string, in SMB2_negotiate()
990 server->ops = &smb311_operations; in SMB2_negotiate()
991 server->vals = &smb311_values; in SMB2_negotiate()
993 } else if (strcmp(server->vals->version_string, in SMB2_negotiate()
1001 server->ops = &smb21_operations; in SMB2_negotiate()
1002 server->vals = &smb21_values; in SMB2_negotiate()
1004 server->ops = &smb311_operations; in SMB2_negotiate()
1005 server->vals = &smb311_values; in SMB2_negotiate()
1008 server->vals->protocol_id) { in SMB2_negotiate()
1034 server->dialect = le16_to_cpu(rsp->DialectRevision); in SMB2_negotiate()
1041 memcpy(server->preauth_sha_hash, ses->preauth_sha_hash, in SMB2_negotiate()
1045 server->negflavor = CIFS_NEGFLAVOR_EXTENDED; in SMB2_negotiate()
1047 server->maxBuf = min_t(unsigned int, le32_to_cpu(rsp->MaxTransactSize), in SMB2_negotiate()
1049 server->max_read = le32_to_cpu(rsp->MaxReadSize); in SMB2_negotiate()
1050 server->max_write = le32_to_cpu(rsp->MaxWriteSize); in SMB2_negotiate()
1051 server->sec_mode = le16_to_cpu(rsp->SecurityMode); in SMB2_negotiate()
1052 if ((server->sec_mode & SMB2_SEC_MODE_FLAGS_ALL) != server->sec_mode) in SMB2_negotiate()
1054 server->sec_mode); in SMB2_negotiate()
1055 server->capabilities = le32_to_cpu(rsp->Capabilities); in SMB2_negotiate()
1057 server->capabilities |= SMB2_NT_FIND | SMB2_LARGE_FILES; in SMB2_negotiate()
1063 if (server->dialect == SMB30_PROT_ID && (server->capabilities & SMB2_GLOBAL_CAP_ENCRYPTION)) in SMB2_negotiate()
1064 server->cipher_type = SMB2_ENCRYPTION_AES128_CCM; in SMB2_negotiate()
1077 server->sec_ntlmssp = true; in SMB2_negotiate()
1080 rc = cifs_enable_signing(server, ses->sign); in SMB2_negotiate()
1084 rc = decode_negTokenInit(security_blob, blob_length, server); in SMB2_negotiate()
1093 rc = smb311_decode_neg_context(rsp, server, in SMB2_negotiate()
1110 struct TCP_Server_Info *server = tcon->ses->server; in smb3_validate_negotiate() local
1115 if (server->dialect == SMB311_PROT_ID) in smb3_validate_negotiate()
1141 cpu_to_le32(server->vals->req_capabilities); in smb3_validate_negotiate()
1145 memcpy(pneg_inbuf->Guid, server->client_guid, in smb3_validate_negotiate()
1158 if (strcmp(server->vals->version_string, in smb3_validate_negotiate()
1167 } else if (strcmp(server->vals->version_string, in smb3_validate_negotiate()
1179 cpu_to_le16(server->vals->protocol_id); in smb3_validate_negotiate()
1216 if (pneg_rsp->Dialect != cpu_to_le16(server->dialect)) in smb3_validate_negotiate()
1219 if (pneg_rsp->SecurityMode != cpu_to_le16(server->sec_mode)) in smb3_validate_negotiate()
1225 SMB2_LARGE_FILES) != server->capabilities) in smb3_validate_negotiate()
1243 smb2_select_sectype(struct TCP_Server_Info *server, enum securityEnum requested) in smb2_select_sectype() argument
1252 if (server->sec_ntlmssp && in smb2_select_sectype()
1255 if ((server->sec_kerberos || server->sec_mskerberos) && in smb2_select_sectype()
1267 struct TCP_Server_Info *server; member
1289 struct TCP_Server_Info *server = sess_data->server; in SMB2_sess_alloc_buffer() local
1294 rc = smb2_plain_req_init(SMB2_SESSION_SETUP, NULL, server, in SMB2_sess_alloc_buffer()
1324 if (server->credits >= server->max_credits) in SMB2_sess_alloc_buffer()
1328 min_t(int, server->max_credits - in SMB2_sess_alloc_buffer()
1329 server->credits, 130)); in SMB2_sess_alloc_buffer()
1332 if (server->sign) in SMB2_sess_alloc_buffer()
1391 sess_data->server, in SMB2_sess_sendreceive()
1406 struct TCP_Server_Info *server = sess_data->server; in SMB2_sess_establish_session() local
1408 cifs_server_lock(server); in SMB2_sess_establish_session()
1409 if (server->ops->generate_signingkey) { in SMB2_sess_establish_session()
1410 rc = server->ops->generate_signingkey(ses, server); in SMB2_sess_establish_session()
1414 cifs_server_unlock(server); in SMB2_sess_establish_session()
1418 if (!server->session_estab) { in SMB2_sess_establish_session()
1419 server->sequence_number = 0x2; in SMB2_sess_establish_session()
1420 server->session_estab = true; in SMB2_sess_establish_session()
1422 cifs_server_unlock(server); in SMB2_sess_establish_session()
1434 struct TCP_Server_Info *server = sess_data->server; in SMB2_auth_kerberos() local
1444 spnego_key = cifs_get_spnego_key(ses, server); in SMB2_auth_kerberos()
1529 struct TCP_Server_Info *server = sess_data->server; in SMB2_sess_auth_rawntlmssp_negotiate() local
1552 &blob_length, ses, server, in SMB2_sess_auth_rawntlmssp_negotiate()
1621 struct TCP_Server_Info *server = sess_data->server; in SMB2_sess_auth_rawntlmssp_authenticate() local
1637 ses, server, in SMB2_sess_auth_rawntlmssp_authenticate()
1671 if (ses->server->dialect < SMB30_PROT_ID) { in SMB2_sess_auth_rawntlmssp_authenticate()
1699 struct TCP_Server_Info *server = sess_data->server; in SMB2_select_sec() local
1701 type = smb2_select_sectype(server, ses->sectype); in SMB2_select_sec()
1725 struct TCP_Server_Info *server, in SMB2_sess_setup() argument
1733 if (!server) { in SMB2_sess_setup()
1744 sess_data->server = server; in SMB2_sess_setup()
1756 memcpy(ses->preauth_sha_hash, server->preauth_sha_hash, in SMB2_sess_setup()
1776 struct TCP_Server_Info *server; in SMB2_logoff() local
1785 if (ses && (ses->server)) in SMB2_logoff()
1786 server = ses->server; in SMB2_logoff()
1798 rc = smb2_plain_req_init(SMB2_LOGOFF, NULL, ses->server, in SMB2_logoff()
1808 else if (server->sign) in SMB2_logoff()
1820 rc = cifs_send_recv(xid, ses, ses->server, in SMB2_logoff()
1862 struct TCP_Server_Info *server; in SMB2_tcon() local
1865 server = ses->server; in SMB2_tcon()
1869 if (!server || !tree) in SMB2_tcon()
1886 rc = smb2_plain_req_init(SMB2_TREE_CONNECT, tcon, server, in SMB2_tcon()
1911 if ((server->dialect == SMB311_PROT_ID) && in SMB2_tcon()
1923 if (server->credits >= server->max_credits) in SMB2_tcon()
1927 min_t(int, server->max_credits - in SMB2_tcon()
1928 server->credits, 64)); in SMB2_tcon()
1930 rc = cifs_send_recv(xid, ses, server, in SMB2_tcon()
1970 !(server->capabilities & SMB2_GLOBAL_CAP_ENCRYPTION)) in SMB2_tcon()
1974 if (server->ops->validate_negotiate) in SMB2_tcon()
1975 rc = server->ops->validate_negotiate(xid, tcon); in SMB2_tcon()
1978 server->nosharesock = true; in SMB2_tcon()
2006 if (!ses || !(ses->server)) in SMB2_tdis()
2020 rc = smb2_plain_req_init(SMB2_TREE_DISCONNECT, tcon, ses->server, in SMB2_tdis()
2038 rc = cifs_send_recv(xid, ses, ses->server, in SMB2_tdis()
2145 smb2_parse_contexts(struct TCP_Server_Info *server, in smb2_parse_contexts() argument
2175 *oplock = server->ops->parse_lease_buf(cc, epoch, in smb2_parse_contexts()
2205 add_lease_context(struct TCP_Server_Info *server, in add_lease_context() argument
2212 iov[num].iov_base = server->ops->create_lease_buf(lease_key, *oplock); in add_lease_context()
2215 iov[num].iov_len = server->vals->create_lease_size; in add_lease_context()
2621 struct TCP_Server_Info *server = cifs_pick_channel(ses); in smb311_posix_mkdir() local
2630 if (!ses || !server) { in smb311_posix_mkdir()
2636 rc = smb2_plain_req_init(SMB2_CREATE, tcon, server, in smb311_posix_mkdir()
2726 rc = cifs_send_recv(xid, ses, server, in smb311_posix_mkdir()
2766 SMB2_open_init(struct cifs_tcon *tcon, struct TCP_Server_Info *server, in SMB2_open_init() argument
2780 rc = smb2_plain_req_init(SMB2_CREATE, tcon, server, in SMB2_open_init()
2841 if ((!server->oplocks) || (tcon->no_lease)) in SMB2_open_init()
2844 if (!(server->capabilities & SMB2_GLOBAL_CAP_LEASING) || in SMB2_open_init()
2847 else if (!(server->capabilities & SMB2_GLOBAL_CAP_DIRECTORY_LEASING) && in SMB2_open_init()
2851 rc = add_lease_context(server, req, iov, &n_iov, in SMB2_open_init()
2957 struct TCP_Server_Info *server = cifs_pick_channel(ses); in SMB2_open() local
2965 if (!ses || !server) in SMB2_open()
2976 rc = SMB2_open_init(tcon, server, in SMB2_open()
2984 rc = cifs_send_recv(xid, ses, server, in SMB2_open()
3032 smb2_parse_contexts(server, rsp, &oparms->fid->epoch, in SMB2_open()
3041 SMB2_ioctl_init(struct cifs_tcon *tcon, struct TCP_Server_Info *server, in SMB2_ioctl_init() argument
3053 rc = smb2_ioctl_req_init(opcode, tcon, server, in SMB2_ioctl_init()
3155 struct TCP_Server_Info *server; in SMB2_ioctl() local
3178 server = cifs_pick_channel(ses); in SMB2_ioctl()
3179 if (!server) in SMB2_ioctl()
3190 rc = SMB2_ioctl_init(tcon, server, in SMB2_ioctl()
3196 rc = cifs_send_recv(xid, ses, server, in SMB2_ioctl()
3295 SMB2_close_init(struct cifs_tcon *tcon, struct TCP_Server_Info *server, in SMB2_close_init() argument
3304 rc = smb2_plain_req_init(SMB2_CLOSE, tcon, server, in SMB2_close_init()
3336 struct TCP_Server_Info *server = cifs_pick_channel(ses); in __SMB2_close() local
3346 if (!ses || !server) in __SMB2_close()
3362 rc = SMB2_close_init(tcon, server, in __SMB2_close()
3368 rc = cifs_send_recv(xid, ses, server, in __SMB2_close()
3469 SMB2_query_info_init(struct cifs_tcon *tcon, struct TCP_Server_Info *server, in SMB2_query_info_init() argument
3480 rc = smb2_plain_req_init(SMB2_QUERY_INFO, tcon, server, in SMB2_query_info_init()
3525 struct TCP_Server_Info *server; in query_info() local
3533 server = cifs_pick_channel(ses); in query_info()
3534 if (!server) in query_info()
3545 rc = SMB2_query_info_init(tcon, server, in query_info()
3555 rc = cifs_send_recv(xid, ses, server, in query_info()
3659 struct cifs_tcon *tcon, struct TCP_Server_Info *server, in SMB2_notify_init() argument
3668 rc = smb2_plain_req_init(SMB2_CHANGE_NOTIFY, tcon, server, in SMB2_notify_init()
3697 struct TCP_Server_Info *server = cifs_pick_channel(ses); in SMB2_change_notify() local
3707 if (!ses || !server) in SMB2_change_notify()
3721 rc = SMB2_notify_init(xid, &rqst, tcon, server, in SMB2_change_notify()
3729 rc = cifs_send_recv(xid, ses, server, in SMB2_change_notify()
3778 struct TCP_Server_Info *server = mid->callback_data; in smb2_echo_callback() local
3785 credits.instance = server->reconnect_instance; in smb2_echo_callback()
3789 add_credits(server, &credits, CIFS_ECHO_OP); in smb2_echo_callback()
3794 struct TCP_Server_Info *server = container_of(work, in smb2_reconnect_server() local
3806 pserver = SERVER_IS_CHAN(server) ? server->primary_server : server; in smb2_reconnect_server()
3848 if (!tcon_selected && cifs_chan_needs_reconnect(ses, server)) { in smb2_reconnect_server()
3860 server->srv_count++; in smb2_reconnect_server()
3865 rc = smb2_reconnect(SMB2_INTERNAL_CMD, tcon, server); in smb2_reconnect_server()
3898 rc = smb2_reconnect(SMB2_INTERNAL_CMD, tcon, server); in smb2_reconnect_server()
3909 queue_delayed_work(cifsiod_wq, &server->reconnect, 2 * HZ); in smb2_reconnect_server()
3914 cifs_put_tcp_session(server, 1); in smb2_reconnect_server()
3918 SMB2_echo(struct TCP_Server_Info *server) in SMB2_echo() argument
3927 cifs_dbg(FYI, "In echo request for conn_id %lld\n", server->conn_id); in SMB2_echo()
3929 spin_lock(&server->srv_lock); in SMB2_echo()
3930 if (server->ops->need_neg && in SMB2_echo()
3931 server->ops->need_neg(server)) { in SMB2_echo()
3932 spin_unlock(&server->srv_lock); in SMB2_echo()
3934 mod_delayed_work(cifsiod_wq, &server->reconnect, 0); in SMB2_echo()
3937 spin_unlock(&server->srv_lock); in SMB2_echo()
3939 rc = smb2_plain_req_init(SMB2_ECHO, NULL, server, in SMB2_echo()
3949 rc = cifs_call_async(server, &rqst, NULL, smb2_echo_callback, NULL, in SMB2_echo()
3950 server, CIFS_ECHO_OP, NULL); in SMB2_echo()
3967 struct cifs_tcon *tcon, struct TCP_Server_Info *server, in SMB2_flush_init() argument
3975 rc = smb2_plain_req_init(SMB2_FLUSH, tcon, server, in SMB2_flush_init()
3997 struct TCP_Server_Info *server = cifs_pick_channel(ses); in SMB2_flush() local
4003 if (!ses || !(ses->server)) in SMB2_flush()
4014 rc = SMB2_flush_init(xid, &rqst, tcon, server, in SMB2_flush()
4020 rc = cifs_send_recv(xid, ses, server, in SMB2_flush()
4040 struct TCP_Server_Info *server = io_parms->server; in smb3_use_rdma_offload() local
4044 if (!server || !tcon) in smb3_use_rdma_offload()
4048 if (!server->rdma || !server->smbd_conn) in smb3_use_rdma_offload()
4052 if (server->sign) in smb3_use_rdma_offload()
4060 if (io_parms->length < server->smbd_conn->rdma_readwrite_threshold) in smb3_use_rdma_offload()
4079 struct TCP_Server_Info *server = io_parms->server; in smb2_new_read_req() local
4081 rc = smb2_plain_req_init(SMB2_READ, io_parms->tcon, server, in smb2_new_read_req()
4086 if (server == NULL) in smb2_new_read_req()
4112 bool need_invalidate = server->dialect == SMB30_PROT_ID; in smb2_new_read_req()
4114 rdata->mr = smbd_register_mr(server->smbd_conn, &rdata->iter, in smb2_new_read_req()
4167 struct TCP_Server_Info *server = rdata->server; in smb2_readv_callback() local
4178 WARN_ONCE(rdata->server != mid->server, in smb2_readv_callback()
4180 rdata->server, mid->server); in smb2_readv_callback()
4189 credits.instance = server->reconnect_instance; in smb2_readv_callback()
4191 if (server->sign && !mid->decrypted) { in smb2_readv_callback()
4196 rc = smb2_verify_signature(&rqst, server); in smb2_readv_callback()
4208 if (server->sign && rdata->got_bytes) in smb2_readv_callback()
4217 credits.instance = server->reconnect_instance; in smb2_readv_callback()
4247 add_credits(server, &credits, 0); in smb2_readv_callback()
4260 struct TCP_Server_Info *server; in smb2_async_readv() local
4268 if (!rdata->server) in smb2_async_readv()
4269 rdata->server = cifs_pick_channel(tcon->ses); in smb2_async_readv()
4272 io_parms.server = server = rdata->server; in smb2_async_readv()
4296 if (server->credits >= server->max_credits) in smb2_async_readv()
4300 min_t(int, server->max_credits - in smb2_async_readv()
4301 server->credits, credit_request)); in smb2_async_readv()
4303 rc = adjust_credits(server, &rdata->credits, rdata->bytes); in smb2_async_readv()
4311 rc = cifs_call_async(server, &rqst, in smb2_async_readv()
4343 if (!io_parms->server) in SMB2_read()
4344 io_parms->server = cifs_pick_channel(io_parms->tcon->ses); in SMB2_read()
4361 rc = cifs_send_recv(xid, ses, io_parms->server, in SMB2_read()
4419 struct TCP_Server_Info *server = wdata->server; in smb2_writev_callback() local
4424 WARN_ONCE(wdata->server != mid->server, in smb2_writev_callback()
4426 wdata->server, mid->server); in smb2_writev_callback()
4431 credits.instance = server->reconnect_instance; in smb2_writev_callback()
4432 wdata->result = smb2_check_receive(mid, server, 0); in smb2_writev_callback()
4457 credits.instance = server->reconnect_instance; in smb2_writev_callback()
4493 add_credits(server, &credits, 0); in smb2_writev_callback()
4505 struct TCP_Server_Info *server = wdata->server; in smb2_async_writev() local
4513 if (!wdata->server) in smb2_async_writev()
4514 server = wdata->server = cifs_pick_channel(tcon->ses); in smb2_async_writev()
4522 .server = server, in smb2_async_writev()
4531 rc = smb2_plain_req_init(SMB2_WRITE, tcon, server, in smb2_async_writev()
4567 bool need_invalidate = server->dialect == SMB30_PROT_ID; in smb2_async_writev()
4569 wdata->mr = smbd_register_mr(server->smbd_conn, &wdata->iter, in smb2_async_writev()
4617 if (server->credits >= server->max_credits) in smb2_async_writev()
4621 min_t(int, server->max_credits - in smb2_async_writev()
4622 server->credits, credit_request)); in smb2_async_writev()
4624 rc = adjust_credits(server, &wdata->credits, io_parms->length); in smb2_async_writev()
4632 rc = cifs_call_async(server, &rqst, NULL, smb2_writev_callback, NULL, in smb2_async_writev()
4670 struct TCP_Server_Info *server; in SMB2_write() local
4677 if (!io_parms->server) in SMB2_write()
4678 io_parms->server = cifs_pick_channel(io_parms->tcon->ses); in SMB2_write()
4679 server = io_parms->server; in SMB2_write()
4680 if (server == NULL) in SMB2_write()
4683 rc = smb2_plain_req_init(SMB2_WRITE, io_parms->tcon, server, in SMB2_write()
4716 rc = cifs_send_recv(xid, io_parms->tcon->ses, server, in SMB2_write()
4892 struct TCP_Server_Info *server, in SMB2_query_directory_init() argument
4907 rc = smb2_plain_req_init(SMB2_QUERY_DIRECTORY, tcon, server, in SMB2_query_directory_init()
4943 output_size = min_t(unsigned int, output_size, server->maxBuf); in SMB2_query_directory_init()
5051 struct TCP_Server_Info *server = cifs_pick_channel(ses); in SMB2_query_directory() local
5054 if (!ses || !(ses->server)) in SMB2_query_directory()
5065 rc = SMB2_query_directory_init(xid, tcon, server, in SMB2_query_directory()
5072 rc = cifs_send_recv(xid, ses, server, in SMB2_query_directory()
5110 SMB2_set_info_init(struct cifs_tcon *tcon, struct TCP_Server_Info *server, in SMB2_set_info_init() argument
5121 rc = smb2_plain_req_init(SMB2_SET_INFO, tcon, server, in SMB2_set_info_init()
5172 struct TCP_Server_Info *server = cifs_pick_channel(ses); in send_set_info() local
5175 if (!ses || !server) in send_set_info()
5192 rc = SMB2_set_info_init(tcon, server, in send_set_info()
5202 rc = cifs_send_recv(xid, ses, server, in send_set_info()
5268 struct TCP_Server_Info *server = cifs_pick_channel(ses); in SMB2_oplock_break() local
5276 rc = smb2_plain_req_init(SMB2_OPLOCK_BREAK, tcon, server, in SMB2_oplock_break()
5298 rc = cifs_send_recv(xid, ses, server, in SMB2_oplock_break()
5343 struct TCP_Server_Info *server, in build_qfs_info_req() argument
5353 if ((tcon->ses == NULL) || server == NULL) in build_qfs_info_req()
5356 rc = smb2_plain_req_init(SMB2_QUERY_INFO, tcon, server, in build_qfs_info_req()
5387 struct TCP_Server_Info *server = cifs_pick_channel(ses); in SMB311_posix_qfs_info() local
5391 rc = build_qfs_info_req(&iov, tcon, server, in SMB311_posix_qfs_info()
5405 rc = cifs_send_recv(xid, ses, server, in SMB311_posix_qfs_info()
5438 struct TCP_Server_Info *server = cifs_pick_channel(ses); in SMB2_QFS_info() local
5442 rc = build_qfs_info_req(&iov, tcon, server, in SMB2_QFS_info()
5456 rc = cifs_send_recv(xid, ses, server, in SMB2_QFS_info()
5489 struct TCP_Server_Info *server = cifs_pick_channel(ses); in SMB2_QFS_attr() local
5510 rc = build_qfs_info_req(&iov, tcon, server, in SMB2_QFS_attr()
5523 rc = cifs_send_recv(xid, ses, server, in SMB2_QFS_attr()
5577 struct TCP_Server_Info *server = cifs_pick_channel(tcon->ses); in smb2_lockv() local
5581 rc = smb2_plain_req_init(SMB2_LOCK, tcon, server, in smb2_lockv()
5608 rc = cifs_send_recv(xid, tcon->ses, server, in smb2_lockv()
5654 struct TCP_Server_Info *server = cifs_pick_channel(tcon->ses); in SMB2_lease_break() local
5657 rc = smb2_plain_req_init(SMB2_OPLOCK_BREAK, tcon, server, in SMB2_lease_break()
5681 rc = cifs_send_recv(xid, ses, server, in SMB2_lease_break()