/linux-master/fs/smb/client/ |
H A D | cifs_swn.h | 27 static inline bool cifs_swn_set_server_dstaddr(struct TCP_Server_Info *server) argument 29 if (server->use_swn_dstaddr) { 30 server->dstaddr = server->swn_dstaddr; 36 static inline void cifs_swn_reset_server_dstaddr(struct TCP_Server_Info *server) argument 38 server->use_swn_dstaddr = false; 48 static inline bool cifs_swn_set_server_dstaddr(struct TCP_Server_Info *server) { return false; } argument 49 static inline void cifs_swn_reset_server_dstaddr(struct TCP_Server_Info *server) {} argument
|
H A D | transport.c | 44 alloc_mid(const struct smb_hdr *smb_buffer, struct TCP_Server_Info *server) argument 48 if (server == NULL) { 63 temp->server = server; 84 __le16 command = midEntry->server->vals->lock_cmd; 89 struct TCP_Server_Info *server = midEntry->server; local 94 server->ops->handle_cancelled_mid) 95 server->ops->handle_cancelled_mid(midEntry, server); 182 smb_send_kvec(struct TCP_Server_Info *server, struct msghdr *smb_msg, size_t *sent) argument 247 smb_rqst_len(struct TCP_Server_Info *server, struct smb_rqst *rqst) argument 272 __smb_send_rqst(struct TCP_Server_Info *server, int num_rqst, struct smb_rqst *rqst) argument 427 smb_send_rqst(struct TCP_Server_Info *server, int num_rqst, struct smb_rqst *rqst, int flags) argument 470 smb_send(struct TCP_Server_Info *server, struct smb_hdr *smb_buffer, unsigned int smb_buf_length) argument 486 wait_for_free_credits(struct TCP_Server_Info *server, const int num_credits, const int timeout, const int flags, unsigned int *instance) argument 640 wait_for_free_request(struct TCP_Server_Info *server, const int flags, unsigned int *instance) argument 648 wait_for_compound_request(struct TCP_Server_Info *server, int num, const int flags, unsigned int *instance) argument 694 cifs_wait_mtu_credits(struct TCP_Server_Info *server, unsigned int size, unsigned int *num, struct cifs_credits *credits) argument 736 wait_for_response(struct TCP_Server_Info *server, struct mid_q_entry *midQ) argument 751 cifs_setup_async_request(struct TCP_Server_Info *server, struct smb_rqst *rqst) argument 783 cifs_call_async(struct TCP_Server_Info *server, struct smb_rqst *rqst, mid_receive_t *receive, mid_callback_t *callback, mid_handle_t *handle, void *cbdata, const int flags, const struct cifs_credits *exist_credits) argument 886 cifs_sync_mid_result(struct mid_q_entry *mid, struct TCP_Server_Info *server) argument 923 send_cancel(struct TCP_Server_Info *server, struct smb_rqst *rqst, struct mid_q_entry *mid) argument 931 cifs_check_receive(struct mid_q_entry *mid, struct TCP_Server_Info *server, bool log_error) argument 987 struct TCP_Server_Info *server = mid->server; local 1024 struct TCP_Server_Info *server = NULL; local 1066 compound_send_recv(const unsigned int xid, struct cifs_ses *ses, struct TCP_Server_Info *server, const int flags, const int num_rqst, struct smb_rqst *rqst, int *resp_buf_type, struct kvec *resp_iov) argument 1300 cifs_send_recv(const unsigned int xid, struct cifs_ses *ses, struct TCP_Server_Info *server, struct smb_rqst *rqst, int *resp_buf_type, const int flags, struct kvec *resp_iov) argument 1359 struct TCP_Server_Info *server; local 1501 struct TCP_Server_Info *server; local 1653 cifs_discard_remaining_data(struct TCP_Server_Info *server) argument 1675 __cifs_readv_discard(struct TCP_Server_Info *server, struct mid_q_entry *mid, bool malformed) argument 1688 cifs_readv_discard(struct TCP_Server_Info *server, struct mid_q_entry *mid) argument 1696 cifs_readv_receive(struct TCP_Server_Info *server, struct mid_q_entry *mid) argument [all...] |
H A D | connect.c | 59 /* Drop the connection to not overload the server */ 62 static int ip_connect(struct TCP_Server_Info *server); 63 static int generic_ip_connect(struct TCP_Server_Info *server); 71 * This should be called with server->srv_mutex held. 73 static int reconn_set_ipaddr_from_hostname(struct TCP_Server_Info *server) argument 80 if (!server->hostname) 83 /* if server hostname isn't populated, there's nothing to do here */ 84 if (server->hostname[0] == '\0') 87 len = strlen(server->hostname) + 3; 94 scnprintf(unc, len, "\\\\%s", server 123 struct TCP_Server_Info *server = tcon->ses->server; local 157 cifs_signal_cifsd_for_reconnect(struct TCP_Server_Info *server, bool all_channels) argument 206 cifs_mark_tcp_ses_conns_for_reconnect(struct TCP_Server_Info *server, bool mark_smb_session) argument 300 cifs_abort_connection(struct TCP_Server_Info *server) argument 355 cifs_tcp_ses_needs_reconnect(struct TCP_Server_Info *server, int num_targets) argument 388 __cifs_reconnect(struct TCP_Server_Info *server, bool mark_smb_session) argument 441 __reconnect_target_unlocked(struct TCP_Server_Info *server, const char *target) argument 474 reconnect_target_unlocked(struct TCP_Server_Info *server, struct dfs_cache_tgt_list *tl, struct dfs_cache_tgt_iterator **target_hint) argument 498 reconnect_dfs_server(struct TCP_Server_Info *server) argument 576 cifs_reconnect(struct TCP_Server_Info *server, bool mark_smb_session) argument 588 cifs_reconnect(struct TCP_Server_Info *server, bool mark_smb_session) argument 598 struct TCP_Server_Info *server = container_of(work, local 624 allocate_buffers(struct TCP_Server_Info *server) argument 657 server_unresponsive(struct TCP_Server_Info *server) argument 687 zero_credits(struct TCP_Server_Info *server) argument 702 cifs_readv_from_socket(struct TCP_Server_Info *server, struct msghdr *smb_msg) argument 759 cifs_read_from_socket(struct TCP_Server_Info *server, char *buf, unsigned int to_read) argument 771 cifs_discard_from_socket(struct TCP_Server_Info *server, size_t to_read) argument 786 cifs_read_page_from_socket(struct TCP_Server_Info *server, struct page *page, unsigned int page_offset, unsigned int to_read) argument 798 cifs_read_iter_from_socket(struct TCP_Server_Info *server, struct iov_iter *iter, unsigned int to_read) argument 812 is_smb_response(struct TCP_Server_Info *server, unsigned char type) argument 880 smb2_get_credits_from_hdr(char *buffer, struct TCP_Server_Info *server) argument 894 handle_mid(struct mid_q_entry *mid, struct TCP_Server_Info *server, char *buf, int malformed) argument 915 cifs_enable_signing(struct TCP_Server_Info *server, bool mnt_sign_required) argument 961 clean_demultiplex_info(struct TCP_Server_Info *server) argument 1054 standard_receive3(struct TCP_Server_Info *server, struct mid_q_entry *mid) argument 1089 cifs_handle_standard(struct TCP_Server_Info *server, struct mid_q_entry *mid) argument 1125 smb2_add_credits_from_hdr(char *buffer, struct TCP_Server_Info *server) argument 1158 struct TCP_Server_Info *server = p; local 1442 match_port(struct TCP_Server_Info *server, struct sockaddr *addr) argument 1475 match_server_address(struct TCP_Server_Info *server, struct sockaddr *addr) argument 1484 match_security(struct TCP_Server_Info *server, struct smb3_fs_context *ctx) argument 1507 match_server(struct TCP_Server_Info *server, struct smb3_fs_context *ctx, bool match_super) argument 1601 struct TCP_Server_Info *server; local 1627 cifs_put_tcp_session(struct TCP_Server_Info *server, int from_reconnect) argument 1929 struct TCP_Server_Info *server = ses->server; local 1978 cifs_find_smb_ses(struct TCP_Server_Info *server, struct smb3_fs_context *ctx) argument 2007 struct TCP_Server_Info *server = ses->server; local 2095 struct TCP_Server_Info *server = ses->server; local 2245 cifs_get_smb_ses(struct TCP_Server_Info *server, struct smb3_fs_context *ctx) argument 2395 struct TCP_Server_Info *server = tcon->ses->server; local 2943 bind_socket(struct TCP_Server_Info *server) argument 2972 ip_rfc1001_connect(struct TCP_Server_Info *server) argument 3027 generic_ip_connect(struct TCP_Server_Info *server) argument 3127 ip_connect(struct TCP_Server_Info *server) argument 3336 struct TCP_Server_Info *server = NULL; local 3383 struct TCP_Server_Info *server; local 3507 cifs_are_all_path_components_accessible(struct TCP_Server_Info *server, unsigned int xid, struct cifs_tcon *tcon, struct cifs_sb_info *cifs_sb, char *full_path, int added_treename) argument 3562 struct TCP_Server_Info *server = mnt_ctx->server; local 3849 cifs_negotiate_protocol(const unsigned int xid, struct cifs_ses *ses, struct TCP_Server_Info *server) argument 3894 cifs_setup_session(const unsigned int xid, struct cifs_ses *ses, struct TCP_Server_Info *server, struct nls_table *nls_info) argument [all...] |
H A D | cifs_debug.c | 38 void cifs_dump_detail(void *buf, struct TCP_Server_Info *server) argument 46 if (!server->ops->check_message(buf, server->total_read, server)) { 48 server->ops->calc_smb_size(smb)); 53 void cifs_dump_mids(struct TCP_Server_Info *server) argument 58 if (server == NULL) 62 spin_lock(&server->mid_lock); 63 list_for_each_entry(mid_entry, &server->pending_mid_q, qhead) { 80 cifs_dump_detail(mid_entry->resp_buf, server); 139 struct TCP_Server_Info *server = chan->server; local 237 struct TCP_Server_Info *server; local 304 struct TCP_Server_Info *server; local 649 struct TCP_Server_Info *server; local 709 struct TCP_Server_Info *server; local [all...] |
H A D | smb2transport.c | 30 smb3_crypto_shash_allocate(struct TCP_Server_Info *server) argument 32 struct cifs_secmech *p = &server->secmech; 50 smb311_crypto_shash_allocate(struct TCP_Server_Info *server) argument 52 struct cifs_secmech *p = &server->secmech; 77 int smb2_get_sign_key(__u64 ses_id, struct TCP_Server_Info *server, u8 *key) argument 88 /* If server is a channel, select the primary channel */ 89 pserver = SERVER_IS_CHAN(server) ? server->primary_server : server; 105 is_binding = (cifs_chan_needs_reconnect(ses, server) 146 smb2_find_smb_ses_unlocked(struct TCP_Server_Info *server, __u64 ses_id) argument 172 smb2_find_smb_ses(struct TCP_Server_Info *server, __u64 ses_id) argument 204 smb2_find_smb_tcon(struct TCP_Server_Info *server, __u64 ses_id, __u32 tid) argument 229 smb2_calc_signature(struct smb_rqst *rqst, struct TCP_Server_Info *server, bool allocate_crypto) argument 319 struct TCP_Server_Info *server = ses->server; local 402 generate_smb3signingkey(struct cifs_ses *ses, struct TCP_Server_Info *server, const struct derivation_triplet *ptriplet) argument 501 generate_smb30signingkey(struct cifs_ses *ses, struct TCP_Server_Info *server) argument 530 generate_smb311signingkey(struct cifs_ses *ses, struct TCP_Server_Info *server) argument 559 smb3_calc_signature(struct smb_rqst *rqst, struct TCP_Server_Info *server, bool allocate_crypto) argument 637 smb2_sign_rqst(struct smb_rqst *rqst, struct TCP_Server_Info *server) argument 672 smb2_verify_signature(struct smb_rqst *rqst, struct TCP_Server_Info *server) argument 722 smb2_seq_num_into_buf(struct TCP_Server_Info *server, struct smb2_hdr *shdr) argument 734 smb2_mid_entry_alloc(const struct smb2_hdr *shdr, struct TCP_Server_Info *server) argument 773 smb2_get_mid_entry(struct cifs_ses *ses, struct TCP_Server_Info *server, struct smb2_hdr *shdr, struct mid_q_entry **mid) argument 825 smb2_check_receive(struct mid_q_entry *mid, struct TCP_Server_Info *server, bool log_error) argument 851 smb2_setup_request(struct cifs_ses *ses, struct TCP_Server_Info *server, struct smb_rqst *rqst) argument 878 smb2_setup_async_request(struct TCP_Server_Info *server, struct smb_rqst *rqst) argument 912 smb3_crypto_aead_allocate(struct TCP_Server_Info *server) argument [all...] |
H A D | asn1.c | 13 struct TCP_Server_Info *server) 15 if (asn1_ber_decoder(&cifs_spnego_negtokeninit_decoder, server, 43 struct TCP_Server_Info *server = context; local 48 server->sec_mskerberos = true; 50 server->sec_kerberosu2u = true; 52 server->sec_kerberos = true; 54 server->sec_ntlmssp = true; 12 decode_negTokenInit(unsigned char *security_blob, int length, struct TCP_Server_Info *server) argument
|
H A D | smb2pdu.c | 81 (tcon->ses->server->capabilities & SMB2_GLOBAL_CAP_ENCRYPTION)) 89 struct TCP_Server_Info *server) 97 if (server) { 99 if (server->dialect >= SMB30_PROT_ID) { 105 if (SERVER_IS_CHAN(server)) 107 cpu_to_le16(server->primary_server->channel_sequence_num); 110 cpu_to_le16(server->channel_sequence_num); 112 spin_lock(&server->req_lock); 114 if (server->credits >= server 87 smb2_hdr_assemble(struct smb2_hdr *shdr, __le16 smb2_cmd, const struct cifs_tcon *tcon, struct TCP_Server_Info *server) argument 161 cifs_chan_skip_or_disable(struct cifs_ses *ses, struct TCP_Server_Info *server, bool from_reconnect) argument 210 smb2_reconnect(__le16 smb2_command, struct cifs_tcon *tcon, struct TCP_Server_Info *server, bool from_reconnect) argument 498 fill_small_buf(__le16 smb2_command, struct cifs_tcon *tcon, struct TCP_Server_Info *server, void *buf, unsigned int *total_len) argument 524 __smb2_plain_req_init(__le16 smb2_command, struct cifs_tcon *tcon, struct TCP_Server_Info *server, void **request_buf, unsigned int *total_len) argument 556 smb2_plain_req_init(__le16 smb2_command, struct cifs_tcon *tcon, struct TCP_Server_Info *server, void **request_buf, unsigned int *total_len) argument 570 smb2_ioctl_req_init(u32 opcode, struct cifs_tcon *tcon, struct TCP_Server_Info *server, void **request_buf, unsigned int *total_len) argument 691 assemble_neg_contexts(struct smb2_negotiate_req *req, struct TCP_Server_Info *server, unsigned int *total_len) argument 790 decode_compress_ctx(struct TCP_Server_Info *server, struct smb2_compression_capabilities_context *ctxt) argument 825 decode_encrypt_ctx(struct TCP_Server_Info *server, struct smb2_encryption_neg_context *ctxt) argument 877 decode_signing_ctx(struct TCP_Server_Info *server, struct smb2_signing_capabilities *pctxt) argument 907 smb311_decode_neg_context(struct smb2_negotiate_rsp *rsp, struct TCP_Server_Info *server, unsigned int len_of_smb) argument 1041 SMB2_negotiate(const unsigned int xid, struct cifs_ses *ses, struct TCP_Server_Info *server) argument 1275 struct TCP_Server_Info *server = tcon->ses->server; local 1408 smb2_select_sectype(struct TCP_Server_Info *server, enum securityEnum requested) argument 1432 struct TCP_Server_Info *server; member in struct:SMB2_sess_data 1454 struct TCP_Server_Info *server = sess_data->server; local 1576 struct TCP_Server_Info *server = sess_data->server; local 1604 struct TCP_Server_Info *server = sess_data->server; local 1699 struct TCP_Server_Info *server = sess_data->server; local 1791 struct TCP_Server_Info *server = sess_data->server; local 1869 struct TCP_Server_Info *server = sess_data->server; local 1894 SMB2_sess_setup(const unsigned int xid, struct cifs_ses *ses, struct TCP_Server_Info *server, const struct nls_table *nls_cp) argument 1946 struct TCP_Server_Info *server; local 2032 struct TCP_Server_Info *server = cifs_pick_channel(ses); local 2165 struct TCP_Server_Info *server = cifs_pick_channel(ses); local 2312 smb2_parse_contexts(struct TCP_Server_Info *server, struct kvec *rsp_iov, unsigned int *epoch, char *lease_key, __u8 *oplock, struct smb2_file_all_info *buf, struct create_posix_rsp *posix) argument 2392 add_lease_context(struct TCP_Server_Info *server, struct smb2_create_req *req, struct kvec *iov, unsigned int *num_iovec, u8 *lease_key, __u8 *oplock) argument 2824 struct TCP_Server_Info *server; local 2985 SMB2_open_init(struct cifs_tcon *tcon, struct TCP_Server_Info *server, struct smb_rqst *rqst, __u8 *oplock, struct cifs_open_parms *oparms, __le16 *path) argument 3177 struct TCP_Server_Info *server; local 3276 SMB2_ioctl_init(struct cifs_tcon *tcon, struct TCP_Server_Info *server, struct smb_rqst *rqst, u64 persistent_fid, u64 volatile_fid, u32 opcode, char *in_data, u32 indatalen, __u32 max_response_size) argument 3390 struct TCP_Server_Info *server; local 3543 SMB2_close_init(struct cifs_tcon *tcon, struct TCP_Server_Info *server, struct smb_rqst *rqst, u64 persistent_fid, u64 volatile_fid, bool query_attrs) argument 3584 struct TCP_Server_Info *server; local 3730 SMB2_query_info_init(struct cifs_tcon *tcon, struct TCP_Server_Info *server, struct smb_rqst *rqst, u64 persistent_fid, u64 volatile_fid, u8 info_class, u8 info_type, u32 additional_info, size_t output_len, size_t input_len, void *input) argument 3791 struct TCP_Server_Info *server; local 3939 SMB2_notify_init(const unsigned int xid, struct smb_rqst *rqst, struct cifs_tcon *tcon, struct TCP_Server_Info *server, u64 persistent_fid, u64 volatile_fid, u32 completion_filter, bool watch_tree) argument 3978 struct TCP_Server_Info *server; local 4074 struct TCP_Server_Info *server = mid->callback_data; local 4090 struct TCP_Server_Info *server = container_of(work, local 4222 SMB2_echo(struct TCP_Server_Info *server) argument 4270 SMB2_flush_init(const unsigned int xid, struct smb_rqst *rqst, struct cifs_tcon *tcon, struct TCP_Server_Info *server, u64 persistent_fid, u64 volatile_fid) argument 4301 struct TCP_Server_Info *server; local 4359 struct TCP_Server_Info *server = io_parms->server; local 4398 struct TCP_Server_Info *server = io_parms->server; local 4486 struct TCP_Server_Info *server = rdata->server; local 4579 struct TCP_Server_Info *server; local 4738 struct TCP_Server_Info *server = wdata->server; local 4824 struct TCP_Server_Info *server = wdata->server; local 4991 struct TCP_Server_Info *server; local 5222 SMB2_query_directory_init(const unsigned int xid, struct cifs_tcon *tcon, struct TCP_Server_Info *server, struct smb_rqst *rqst, u64 persistent_fid, u64 volatile_fid, int index, int info_level) argument 5389 struct TCP_Server_Info *server; local 5462 SMB2_set_info_init(struct cifs_tcon *tcon, struct TCP_Server_Info *server, struct smb_rqst *rqst, u64 persistent_fid, u64 volatile_fid, u32 pid, u8 info_class, u8 info_type, u32 additional_info, void **data, unsigned int *size) argument 5524 struct TCP_Server_Info *server; local 5633 struct TCP_Server_Info *server; local 5719 build_qfs_info_req(struct kvec *iov, struct cifs_tcon *tcon, struct TCP_Server_Info *server, int level, int outbuf_len, u64 persistent_fid, u64 volatile_fid) argument 5769 struct TCP_Server_Info *server; local 5834 struct TCP_Server_Info *server; local 5899 struct TCP_Server_Info *server; local 6001 struct TCP_Server_Info *server; local 6091 struct TCP_Server_Info *server = cifs_pick_channel(tcon->ses); local [all...] |
H A D | smb2ops.c | 35 change_conf(struct TCP_Server_Info *server) argument 37 server->credits += server->echo_credits + server->oplock_credits; 38 if (server->credits > server->max_credits) 39 server->credits = server->max_credits; 40 server->oplock_credits = server 68 smb2_add_credits(struct TCP_Server_Info *server, const struct cifs_credits *credits, const int optype) argument 170 smb2_set_credits(struct TCP_Server_Info *server, const int val) argument 201 smb2_get_credits_field(struct TCP_Server_Info *server, const int optype) argument 220 smb2_wait_mtu_credits(struct TCP_Server_Info *server, unsigned int size, unsigned int *num, struct cifs_credits *credits) argument 285 smb2_adjust_credits(struct TCP_Server_Info *server, struct cifs_credits *credits, const unsigned int payload_size) argument 337 smb2_get_next_mid(struct TCP_Server_Info *server) argument 348 smb2_revert_current_mid(struct TCP_Server_Info *server, const unsigned int val) argument 357 __smb2_find_mid(struct TCP_Server_Info *server, char *buf, bool dequeue) argument 387 smb2_find_mid(struct TCP_Server_Info *server, char *buf) argument 393 smb2_find_dequeue_mid(struct TCP_Server_Info *server, char *buf) argument 399 smb2_dump_detail(void *buf, struct TCP_Server_Info *server) argument 415 smb2_need_neg(struct TCP_Server_Info *server) argument 421 smb2_negotiate(const unsigned int xid, struct cifs_ses *ses, struct TCP_Server_Info *server) argument 440 struct TCP_Server_Info *server = tcon->ses->server; local 455 struct TCP_Server_Info *server = tcon->ses->server; local 487 struct TCP_Server_Info *server = tcon->ses->server; local 503 struct TCP_Server_Info *server = tcon->ses->server; local 1112 struct TCP_Server_Info *server; local 1288 smb2_can_echo(struct TCP_Server_Info *server) argument 1401 struct TCP_Server_Info *server = tlink_tcon(cfile->tlink)->ses->server; local 1508 struct TCP_Server_Info *server; local 2270 struct TCP_Server_Info *server; local 2413 smb2_is_status_pending(char *buf, struct TCP_Server_Info *server) argument 2469 smb2_is_network_name_deleted(char *buf, struct TCP_Server_Info *server) argument 2516 smb2_set_replay(struct TCP_Server_Info *server, struct smb_rqst *rqst) argument 2551 struct TCP_Server_Info *server = ses->server; local 2637 struct TCP_Server_Info *server; local 3830 smb2_downgrade_oplock(struct TCP_Server_Info *server, struct cifsInodeInfo *cinode, __u32 oplock, unsigned int epoch, bool *purge_cache) argument 3842 smb3_downgrade_oplock(struct TCP_Server_Info *server, struct cifsInodeInfo *cinode, __u32 oplock, unsigned int epoch, bool *purge_cache) argument 4181 smb2_get_enc_key(struct TCP_Server_Info *server, __u64 ses_id, int enc, u8 *key) argument 4216 crypt_message(struct TCP_Server_Info *server, int num_rqst, struct smb_rqst *rqst, int enc) argument 4342 smb3_init_transform_rq(struct TCP_Server_Info *server, int num_rqst, struct smb_rqst *new_rq, struct smb_rqst *old_rq) argument 4420 decrypt_raw_data(struct TCP_Server_Info *server, char *buf, unsigned int buf_data_size, struct iov_iter *iter, bool is_offloaded) argument 4479 handle_read_data(struct TCP_Server_Info *server, struct mid_q_entry *mid, char *buf, unsigned int buf_len, struct xarray *pages, unsigned int pages_len, bool is_offloaded) argument 4628 struct TCP_Server_Info *server; member in struct:smb2_decrypt_work 4699 receive_encrypted_read(struct TCP_Server_Info *server, struct mid_q_entry **mid, int *num_mids) argument 4815 receive_encrypted_standard(struct TCP_Server_Info *server, struct mid_q_entry **mids, char **bufs, int *num_mids) argument 4910 smb3_receive_transform(struct TCP_Server_Info *server, struct mid_q_entry **mids, char **bufs, int *num_mids) argument 4941 smb3_handle_read_data(struct TCP_Server_Info *server, struct mid_q_entry *mid) argument 4949 smb2_next_header(struct TCP_Server_Info *server, char *buf, unsigned int *noff) argument 4971 struct TCP_Server_Info *server = tcon->ses->server; local [all...] |
H A D | cifsencrypt.c | 172 struct TCP_Server_Info *server, char *signature, 181 if (!is_smb1(server)) { 224 * should be called with the server->srv_mutex held. 227 struct TCP_Server_Info *server, char *signature) 231 if (!rqst->rq_iov || !signature || !server) 234 rc = cifs_alloc_hash("md5", &server->secmech.md5); 238 rc = crypto_shash_init(server->secmech.md5); 244 rc = crypto_shash_update(server->secmech.md5, 245 server->session_key.response, server 171 __cifs_calc_signature(struct smb_rqst *rqst, struct TCP_Server_Info *server, char *signature, struct shash_desc *shash) argument 226 cifs_calc_signature(struct smb_rqst *rqst, struct TCP_Server_Info *server, char *signature) argument 255 cifs_sign_rqst(struct smb_rqst *rqst, struct TCP_Server_Info *server, __u32 *pexpected_response_sequence_number) argument 298 cifs_sign_smbv(struct kvec *iov, int n_vec, struct TCP_Server_Info *server, __u32 *pexpected_response_sequence) argument 308 cifs_sign_smb(struct smb_hdr *cifs_pdu, struct TCP_Server_Info *server, __u32 *pexpected_response_sequence_number) argument 322 cifs_verify_signature(struct smb_rqst *rqst, struct TCP_Server_Info *server, __u32 expected_sequence_number) argument 540 wchar_t *server; local 844 cifs_crypto_secmech_release(struct TCP_Server_Info *server) argument [all...] |
H A D | sess.c | 31 is_server_using_iface(struct TCP_Server_Info *server, argument 36 struct sockaddr_in *s4 = (struct sockaddr_in *)&server->dstaddr; 37 struct sockaddr_in6 *s6 = (struct sockaddr_in6 *)&server->dstaddr; 39 if (server->dstaddr.ss_family != iface->sockaddr.ss_family) 41 if (server->dstaddr.ss_family == AF_INET) { 44 } else if (server->dstaddr.ss_family == AF_INET6) { 74 struct TCP_Server_Info *server) 79 if (server && server->terminate) 83 if (ses->chans[i].server 73 cifs_ses_get_chan_index(struct cifs_ses *ses, struct TCP_Server_Info *server) argument 95 cifs_chan_set_in_reconnect(struct cifs_ses *ses, struct TCP_Server_Info *server) argument 107 cifs_chan_clear_in_reconnect(struct cifs_ses *ses, struct TCP_Server_Info *server) argument 119 cifs_chan_in_reconnect(struct cifs_ses *ses, struct TCP_Server_Info *server) argument 131 cifs_chan_set_need_reconnect(struct cifs_ses *ses, struct TCP_Server_Info *server) argument 145 cifs_chan_clear_need_reconnect(struct cifs_ses *ses, struct TCP_Server_Info *server) argument 159 cifs_chan_needs_reconnect(struct cifs_ses *ses, struct TCP_Server_Info *server) argument 171 cifs_chan_is_iface_active(struct cifs_ses *ses, struct TCP_Server_Info *server) argument 186 struct TCP_Server_Info *server = ses->server; local 313 struct TCP_Server_Info *server; local 367 cifs_chan_update_iface(struct cifs_ses *ses, struct TCP_Server_Info *server) argument 495 cifs_ses_find_chan(struct cifs_ses *ses, struct TCP_Server_Info *server) argument 666 cifs_ssetup_hdr(struct cifs_ses *ses, struct TCP_Server_Info *server, SESSION_SETUP_ANDX *pSMB) argument 1057 build_ntlmssp_negotiate_blob(unsigned char **pbuffer, u16 *buflen, struct cifs_ses *ses, struct TCP_Server_Info *server, const struct nls_table *nls_cp) argument 1119 build_ntlmssp_smb3_negotiate_blob(unsigned char **pbuffer, u16 *buflen, struct cifs_ses *ses, struct TCP_Server_Info *server, const struct nls_table *nls_cp) argument 1183 build_ntlmssp_auth_blob(unsigned char **pbuffer, u16 *buflen, struct cifs_ses *ses, struct TCP_Server_Info *server, const struct nls_table *nls_cp) argument 1291 cifs_select_sectype(struct TCP_Server_Info *server, enum securityEnum requested) argument 1330 struct TCP_Server_Info *server; member in struct:sess_data 1406 struct TCP_Server_Info *server = sess_data->server; local 1460 struct TCP_Server_Info *server = sess_data->server; local 1570 struct TCP_Server_Info *server = sess_data->server; local 1711 struct TCP_Server_Info *server = sess_data->server; local 1751 struct TCP_Server_Info *server = sess_data->server; local 1857 struct TCP_Server_Info *server = sess_data->server; local 1963 struct TCP_Server_Info *server = sess_data->server; local 1995 CIFS_SessSetup(const unsigned int xid, struct cifs_ses *ses, struct TCP_Server_Info *server, const struct nls_table *nls_cp) argument [all...] |
H A D | dfs.c | 232 if (WARN_ON(!mnt_ctx->server)) 264 * server from where we'll start following any referrals. Otherwise rely on the 328 static int update_server_fullpath(struct TCP_Server_Info *server, struct cifs_sb_info *cifs_sb, argument 360 mutex_lock(&server->refpath_lock); 361 spin_lock(&server->srv_lock); 362 kfree(server->leaf_fullpath); 363 server->leaf_fullpath = npath; 364 spin_unlock(&server->srv_lock); 365 mutex_unlock(&server->refpath_lock); 370 static int target_share_matches_server(struct TCP_Server_Info *server, cha argument 398 struct TCP_Server_Info *server = ses->server; local 447 struct TCP_Server_Info *server = tcon->ses->server; local 533 struct TCP_Server_Info *server = tcon->ses->server; local 555 struct TCP_Server_Info *server = tcon->ses->server; local [all...] |
/linux-master/fs/afs/ |
H A D | server.c | 2 /* AFS server record management 22 * Find a server by one of its addresses. 28 struct afs_server *server = NULL; local 35 if (server) 36 afs_unuse_server_notime(net, server, afs_server_trace_put_find_rsq); 37 server = NULL; 41 hlist_for_each_entry_rcu(server, &net->fs_addresses, addr_link) { 42 estate = rcu_dereference(server->endpoint_state); 49 server = NULL; 52 server 67 struct afs_server *server = NULL; local 118 struct afs_server *server, *next; local 199 struct afs_server *server; local 280 struct afs_server *server, *candidate; local 345 afs_get_server(struct afs_server *server, enum afs_server_trace reason) argument 360 afs_maybe_use_server(struct afs_server *server, enum afs_server_trace reason) argument 377 afs_use_server(struct afs_server *server, enum afs_server_trace reason) argument 392 afs_put_server(struct afs_net *net, struct afs_server *server, enum afs_server_trace reason) argument 413 afs_unuse_server_notime(struct afs_net *net, struct afs_server *server, enum afs_server_trace reason) argument 428 afs_unuse_server(struct afs_net *net, struct afs_server *server, enum afs_server_trace reason) argument 439 struct afs_server *server = container_of(rcu, struct afs_server, rcu); local 448 __afs_put_server(struct afs_net *net, struct afs_server *server) argument 454 afs_give_up_callbacks(struct afs_net *net, struct afs_server *server) argument 465 afs_destroy_server(struct afs_net *net, struct afs_server *server) argument 478 struct afs_server *server, *next, *prev; local 545 struct afs_server *server = local 625 afs_update_server_record(struct afs_operation *op, struct afs_server *server, struct key *key) argument 669 afs_check_server_record(struct afs_operation *op, struct afs_server *server, struct key *key) argument [all...] |
H A D | vl_probe.c | 18 static void afs_finished_vl_probe(struct afs_vlserver *server) argument 20 if (!(server->probe.flags & AFS_VLSERVER_PROBE_RESPONDED)) { 21 server->rtt = UINT_MAX; 22 clear_bit(AFS_VLSERVER_FL_RESPONDING, &server->flags); 25 clear_bit_unlock(AFS_VLSERVER_FL_PROBING, &server->flags); 26 wake_up_bit(&server->flags, AFS_VLSERVER_FL_PROBING); 32 static void afs_done_one_vl_probe(struct afs_vlserver *server, bool wake_up) argument 34 if (atomic_dec_and_test(&server->probe_outstanding)) { 35 afs_finished_vl_probe(server); 40 wake_up_all(&server 50 struct afs_vlserver *server = call->vlserver; local 146 afs_do_probe_vlserver(struct afs_net *net, struct afs_vlserver *server, struct key *key, unsigned int server_index, struct afs_error *_e) argument 207 struct afs_vlserver *server; local 232 struct afs_vlserver *server; local [all...] |
H A D | fs_probe.c | 56 * outstanding server count. 59 struct afs_server *server, bool fast) 66 atj = server->probed_at; 77 static void afs_finished_fs_probe(struct afs_net *net, struct afs_server *server, argument 84 list_add_tail(&server->probe_link, &net->fs_probe_slow); 86 server->rtt = UINT_MAX; 87 clear_bit(AFS_SERVER_FL_RESPONDING, &server->flags); 88 list_add_tail(&server->probe_link, &net->fs_probe_fast); 93 afs_schedule_fs_probe(net, server, !responded); 99 static void afs_done_one_fs_probe(struct afs_net *net, struct afs_server *server, argument 58 afs_schedule_fs_probe(struct afs_net *net, struct afs_server *server, bool fast) argument 114 afs_fs_probe_not_done(struct afs_net *net, struct afs_server *server, struct afs_endpoint_state *estate, int index) argument 143 struct afs_server *server = call->server; local 238 afs_fs_probe_fileserver(struct afs_net *net, struct afs_server *server, struct afs_addr_list *new_alist, struct key *key) argument 396 afs_probe_fileserver(struct afs_net *net, struct afs_server *server) argument 410 struct afs_server *fast, *slow, *server; local 484 afs_wait_for_one_fs_probe(struct afs_server *server, struct afs_endpoint_state *estate, unsigned long exclude, bool is_intr) argument [all...] |
H A D | server_list.c | 18 afs_unuse_server(net, slist->servers[i].server, 25 * Build a server list from a VLDB record. 32 struct afs_server *server; local 70 /* Make sure a records exists for each server in the list. */ 82 server = afs_lookup_server(volume->cell, key, &vldb->fs_server[i], 84 if (IS_ERR(server)) { 85 ret = PTR_ERR(server); 94 if (memcmp(&slist->servers[j].server->uuid, 95 &server->uuid, 96 sizeof(server 160 struct afs_server *server; local [all...] |
/linux-master/fs/smb/ |
H A D | Makefile | 5 obj-$(CONFIG_SMB_SERVER) += server/
|
/linux-master/fs/nfs/ |
H A D | nfs3client.c | 27 static void nfs_init_server_aclclient(struct nfs_server *server) argument 29 if (server->flags & NFS_MOUNT_NOACL) 32 server->client_acl = rpc_bind_new_program(server->client, &nfsacl_program, 3); 33 if (IS_ERR(server->client_acl)) 36 nfs_sysfs_link_rpc_client(server, server->client_acl, NULL); 39 server->caps |= NFS_CAP_ACLS; 43 server->caps &= ~NFS_CAP_ACLS; 46 static inline void nfs_init_server_aclclient(struct nfs_server *server) argument 55 struct nfs_server *server = nfs_create_server(fc); local 68 struct nfs_server *server = nfs_clone_server(source, fh, fattr, flavor); local [all...] |
H A D | client.c | 211 static void pnfs_init_server(struct nfs_server *server) argument 213 rpc_init_wait_queue(&server->roc_rpcwaitq, "pNFS ROC"); 225 static void pnfs_init_server(struct nfs_server *server) argument 440 * Mark a server as ready or failed 554 static void nfs_destroy_server(struct nfs_server *server) argument 556 if (server->nlm_host) 557 nlmclnt_done(server->nlm_host); 563 static int nfs_start_lockd(struct nfs_server *server) argument 566 struct nfs_client *clp = server->nfs_client; 572 .noresvport = server 608 nfs_init_server_rpcclient(struct nfs_server *server, const struct rpc_timeout *timeo, rpc_authflavor_t pseudoflavour) argument 670 nfs_init_server(struct nfs_server *server, const struct fs_context *fc) argument 766 nfs_server_set_fsinfo(struct nfs_server *server, struct nfs_fsinfo *fsinfo) argument 839 nfs_probe_fsinfo(struct nfs_server *server, struct nfs_fh *mntfh, struct nfs_fattr *fattr) argument 888 nfs_probe_server(struct nfs_server *server, struct nfs_fh *mntfh) argument 925 nfs_server_insert_lists(struct nfs_server *server) argument 939 nfs_server_remove_lists(struct nfs_server *server) argument 965 struct nfs_server *server; local 1008 struct nfs_server *server = container_of(p, struct nfs_server, rcu); local 1017 nfs_free_server(struct nfs_server *server) argument 1052 struct nfs_server *server; local 1120 struct nfs_server *server; local 1329 struct nfs_server *server; local [all...] |
H A D | nfs4getroot.c | 13 int nfs4_get_rootfh(struct nfs_server *server, struct nfs_fh *mntfh, bool auth_probe) argument 22 /* Start by getting the root filehandle from the server */ 23 ret = nfs4_proc_get_rootfh(server, mntfh, &fsinfo, auth_probe); 37 memcpy(&server->fsid, &fsinfo.fattr->fsid, sizeof(server->fsid));
|
H A D | iostat.h | 23 static inline void nfs_inc_server_stats(const struct nfs_server *server, argument 26 this_cpu_inc(server->io_stats->events[stat]); 35 static inline void nfs_add_server_stats(const struct nfs_server *server, argument 39 this_cpu_add(server->io_stats->bytes[stat], addend);
|
H A D | sysfs.c | 235 struct nfs_server *server = container_of(kobj, struct nfs_server, kobj); local 236 bool shutdown = server->flags & NFS_MOUNT_SHUTDOWN; 244 struct nfs_server *server; local 247 server = container_of(kobj, struct nfs_server, kobj); 257 if (server->flags & NFS_MOUNT_SHUTDOWN) 260 server->flags |= NFS_MOUNT_SHUTDOWN; 261 shutdown_client(server->client); 262 shutdown_client(server->nfs_client->cl_rpcclient); 264 if (!IS_ERR(server->client_acl)) 265 shutdown_client(server 277 nfs_sysfs_link_rpc_client(struct nfs_server *server, struct rpc_clnt *clnt, const char *uniq) argument 312 nfs_sysfs_add_server(struct nfs_server *server) argument 333 struct nfs_server *server = s->s_fs_info; local 342 nfs_sysfs_move_sb_to_server(struct nfs_server *server) argument 358 nfs_sysfs_remove_server(struct nfs_server *server) argument [all...] |
H A D | nfs4client.c | 48 * Per auth flavor data server rpc clients 129 * Find or create a DS rpc client with th MDS server rpc client auth flavor 238 * Set up the connection to the server before we add add to the 385 * The create session reply races with the server back 487 * "drop," but server trunking discovery claims "drop" and "keep" are 488 * actually the same server. Swap the callback IDs so that "keep" 489 * will continue to use the callback ident the server now knows about, 574 * nfs40_walk_client_list - Find server that recognizes a client ID 611 * caused the server to return a new cl_confirm. So if 613 * server tha 796 nfs4_destroy_server(struct nfs_server *server) argument 896 nfs4_set_client(struct nfs_server *server, const char *hostname, const struct sockaddr_storage *addr, const size_t addrlen, const char *ip_addr, int proto, const struct rpc_timeout *timeparms, u32 minorversion, unsigned int nconnect, unsigned int max_connect, struct net *net, struct xprtsec_parms *xprtsec) argument 1034 nfs4_session_limit_rwsize(struct nfs_server *server) argument 1059 nfs4_session_limit_xasize(struct nfs_server *server) argument 1086 nfs4_server_set_init_caps(struct nfs_server *server) argument 1104 nfs4_server_common_setup(struct nfs_server *server, struct nfs_fh *mntfh, bool auth_probe) argument 1150 nfs4_init_server(struct nfs_server *server, struct fs_context *fc) argument 1210 struct nfs_server *server; local 1245 struct nfs_server *server, *parent_server; local 1335 nfs4_update_server(struct nfs_server *server, const char *hostname, struct sockaddr_storage *sap, size_t salen, struct net *net) argument [all...] |
H A D | pnfs_dev.c | 42 * Device ID RCU cache. A device ID is unique per server and layout type. 97 nfs4_get_device_info(struct nfs_server *server, argument 112 max_resp_sz = server->nfs_client->cl_session->fc_attrs.max_resp_sz; 113 if (server->pnfs_curr_ld->max_deviceinfo_size && 114 server->pnfs_curr_ld->max_deviceinfo_size < max_resp_sz) 115 max_resp_sz = server->pnfs_curr_ld->max_deviceinfo_size; 117 dprintk("%s: server %p max_resp_sz %u max_pages %d\n", 118 __func__, server, max_resp_sz, max_pages); 135 pdev->layout_type = server->pnfs_curr_ld->id; 142 rc = nfs4_proc_getdeviceinfo(server, pde 173 __nfs4_find_get_deviceid(struct nfs_server *server, const struct nfs4_deviceid *id, long hash) argument 188 nfs4_find_get_deviceid(struct nfs_server *server, const struct nfs4_deviceid *id, const struct cred *cred, gfp_t gfp_mask) argument 254 nfs4_init_deviceid_node(struct nfs4_deviceid_node *d, struct nfs_server *server, const struct nfs4_deviceid *id) argument [all...] |
/linux-master/arch/powerpc/sysdev/xics/ |
H A D | ics-opal.c | 29 static int ics_opal_mangle_server(int server) argument 32 return server << 2; 35 static int ics_opal_unmangle_server(int server) argument 38 return server >> 2; 45 int server; local 52 server = xics_get_irq_server(d->irq, irq_data_get_affinity_mask(d), 0); 53 server = ics_opal_mangle_server(server); 55 rc = opal_set_xive(hw_irq, server, DEFAULT_PRIORITY); 57 pr_err("%s: opal_set_xive(irq=%d [hw 0x%x] server 70 int server = ics_opal_mangle_server(xics_default_server); local 100 int16_t server; local 155 __be16 server; local 172 __be16 server; local 186 __be16 server; local [all...] |
/linux-master/drivers/block/rnbd/ |
H A D | Makefile | 10 rnbd-server-y := rnbd-srv.o \ 15 obj-$(CONFIG_BLK_DEV_RNBD_SERVER) += rnbd-server.o
|