/kernel/linux/linux-6.6/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; in afs_find_server() local 35 if (server) in afs_find_server() 36 afs_unuse_server_notime(net, server, afs_server_trace_put_find_rsq); in afs_find_server() 37 server = NULL; in afs_find_server() 43 hlist_for_each_entry_rcu(server, &net->fs_addresses6, addr6_link) { in afs_find_server() 44 alist = rcu_dereference(server->addresses); in afs_find_server() 59 hlist_for_each_entry_rcu(server, &net->fs_addresses4, addr4_link) { in afs_find_server() 60 alist = rcu_dereference(server in afs_find_server() 92 struct afs_server *server = NULL; afs_find_server_by_uuid() local 142 struct afs_server *server, *next; afs_install_server() local 223 struct afs_server *server; afs_alloc_server() local 288 struct afs_server *server, *candidate; afs_lookup_server() local 353 afs_get_server(struct afs_server *server, enum afs_server_trace reason) afs_get_server() argument 368 afs_maybe_use_server(struct afs_server *server, enum afs_server_trace reason) afs_maybe_use_server() argument 385 afs_use_server(struct afs_server *server, enum afs_server_trace reason) afs_use_server() argument 400 afs_put_server(struct afs_net *net, struct afs_server *server, enum afs_server_trace reason) afs_put_server() argument 421 afs_unuse_server_notime(struct afs_net *net, struct afs_server *server, enum afs_server_trace reason) afs_unuse_server_notime() argument 436 afs_unuse_server(struct afs_net *net, struct afs_server *server, enum afs_server_trace reason) afs_unuse_server() argument 447 struct afs_server *server = container_of(rcu, struct afs_server, rcu); afs_server_rcu() local 455 __afs_put_server(struct afs_net *net, struct afs_server *server) __afs_put_server() argument 461 afs_give_up_callbacks(struct afs_net *net, struct afs_server *server) afs_give_up_callbacks() argument 476 afs_destroy_server(struct afs_net *net, struct afs_server *server) afs_destroy_server() argument 490 struct afs_server *server, *next, *prev; afs_gc_servers() local 559 struct afs_server *server = afs_manage_servers() local 639 afs_update_server_record(struct afs_operation *op, struct afs_server *server) afs_update_server_record() argument 682 afs_check_server_record(struct afs_operation *op, struct afs_server *server) afs_check_server_record() argument [all...] |
H A D | fs_probe.c | 20 * outstanding server count. 23 struct afs_server *server, bool fast) in afs_schedule_fs_probe() 30 atj = server->probed_at; in afs_schedule_fs_probe() 41 static void afs_finished_fs_probe(struct afs_net *net, struct afs_server *server) in afs_finished_fs_probe() argument 43 bool responded = server->probe.responded; in afs_finished_fs_probe() 47 list_add_tail(&server->probe_link, &net->fs_probe_slow); in afs_finished_fs_probe() 49 server->rtt = UINT_MAX; in afs_finished_fs_probe() 50 clear_bit(AFS_SERVER_FL_RESPONDING, &server->flags); in afs_finished_fs_probe() 51 list_add_tail(&server->probe_link, &net->fs_probe_fast); in afs_finished_fs_probe() 55 afs_schedule_fs_probe(net, server, !responde in afs_finished_fs_probe() 22 afs_schedule_fs_probe(struct afs_net *net, struct afs_server *server, bool fast) afs_schedule_fs_probe() argument 61 afs_done_one_fs_probe(struct afs_net *net, struct afs_server *server) afs_done_one_fs_probe() argument 75 afs_fs_probe_not_done(struct afs_net *net, struct afs_server *server, struct afs_addr_cursor *ac) afs_fs_probe_not_done() argument 104 struct afs_server *server = call->server; afs_fileserver_probe_result() local 195 afs_fs_probe_fileserver(struct afs_net *net, struct afs_server *server, struct key *key, bool all) afs_fs_probe_fileserver() argument 237 struct afs_server *server; afs_wait_for_fs_probes() local 351 afs_probe_fileserver(struct afs_net *net, struct afs_server *server) afs_probe_fileserver() argument 365 struct afs_server *fast, *slow, *server; afs_fs_probe_dispatcher() local 439 afs_wait_for_one_fs_probe(struct afs_server *server, bool is_intr) afs_wait_for_one_fs_probe() argument [all...] |
H A D | vl_probe.c | 18 static void afs_finished_vl_probe(struct afs_vlserver *server) in afs_finished_vl_probe() argument 20 if (!(server->probe.flags & AFS_VLSERVER_PROBE_RESPONDED)) { in afs_finished_vl_probe() 21 server->rtt = UINT_MAX; in afs_finished_vl_probe() 22 clear_bit(AFS_VLSERVER_FL_RESPONDING, &server->flags); in afs_finished_vl_probe() 25 clear_bit_unlock(AFS_VLSERVER_FL_PROBING, &server->flags); in afs_finished_vl_probe() 26 wake_up_bit(&server->flags, AFS_VLSERVER_FL_PROBING); in afs_finished_vl_probe() 32 static void afs_done_one_vl_probe(struct afs_vlserver *server, bool wake_up) in afs_done_one_vl_probe() argument 34 if (atomic_dec_and_test(&server->probe_outstanding)) { in afs_done_one_vl_probe() 35 afs_finished_vl_probe(server); in afs_done_one_vl_probe() 40 wake_up_all(&server in afs_done_one_vl_probe() 50 struct afs_vlserver *server = call->vlserver; afs_vlserver_probe_result() local 143 afs_do_probe_vlserver(struct afs_net *net, struct afs_vlserver *server, struct key *key, unsigned int server_index, struct afs_error *_e) afs_do_probe_vlserver() argument 187 struct afs_vlserver *server; afs_send_vl_probes() local 214 struct afs_vlserver *server; afs_wait_for_vl_probes() local [all...] |
/kernel/linux/linux-5.10/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; in afs_find_server() local 35 if (server) in afs_find_server() 36 afs_unuse_server_notime(net, server, afs_server_trace_put_find_rsq); in afs_find_server() 37 server = NULL; in afs_find_server() 43 hlist_for_each_entry_rcu(server, &net->fs_addresses6, addr6_link) { in afs_find_server() 44 alist = rcu_dereference(server->addresses); in afs_find_server() 59 hlist_for_each_entry_rcu(server, &net->fs_addresses4, addr4_link) { in afs_find_server() 60 alist = rcu_dereference(server in afs_find_server() 92 struct afs_server *server = NULL; afs_find_server_by_uuid() local 142 struct afs_server *server, *next; afs_install_server() local 223 struct afs_server *server; afs_alloc_server() local 287 struct afs_server *server, *candidate; afs_lookup_server() local 352 afs_get_server(struct afs_server *server, enum afs_server_trace reason) afs_get_server() argument 364 afs_maybe_use_server(struct afs_server *server, enum afs_server_trace reason) afs_maybe_use_server() argument 381 afs_use_server(struct afs_server *server, enum afs_server_trace reason) afs_use_server() argument 393 afs_put_server(struct afs_net *net, struct afs_server *server, enum afs_server_trace reason) afs_put_server() argument 411 afs_unuse_server_notime(struct afs_net *net, struct afs_server *server, enum afs_server_trace reason) afs_unuse_server_notime() argument 426 afs_unuse_server(struct afs_net *net, struct afs_server *server, enum afs_server_trace reason) afs_unuse_server() argument 437 struct afs_server *server = container_of(rcu, struct afs_server, rcu); afs_server_rcu() local 445 __afs_put_server(struct afs_net *net, struct afs_server *server) __afs_put_server() argument 451 afs_give_up_callbacks(struct afs_net *net, struct afs_server *server) afs_give_up_callbacks() argument 466 afs_destroy_server(struct afs_net *net, struct afs_server *server) afs_destroy_server() argument 479 struct afs_server *server, *next, *prev; afs_gc_servers() local 548 struct afs_server *server = afs_manage_servers() local 628 afs_update_server_record(struct afs_operation *op, struct afs_server *server) afs_update_server_record() argument 670 afs_check_server_record(struct afs_operation *op, struct afs_server *server) afs_check_server_record() argument [all...] |
H A D | fs_probe.c | 19 * outstanding server count. 22 struct afs_server *server, bool fast) in afs_schedule_fs_probe() 29 atj = server->probed_at; in afs_schedule_fs_probe() 40 static void afs_finished_fs_probe(struct afs_net *net, struct afs_server *server) in afs_finished_fs_probe() argument 42 bool responded = server->probe.responded; in afs_finished_fs_probe() 46 list_add_tail(&server->probe_link, &net->fs_probe_slow); in afs_finished_fs_probe() 48 server->rtt = UINT_MAX; in afs_finished_fs_probe() 49 clear_bit(AFS_SERVER_FL_RESPONDING, &server->flags); in afs_finished_fs_probe() 50 list_add_tail(&server->probe_link, &net->fs_probe_fast); in afs_finished_fs_probe() 54 afs_schedule_fs_probe(net, server, !responde in afs_finished_fs_probe() 21 afs_schedule_fs_probe(struct afs_net *net, struct afs_server *server, bool fast) afs_schedule_fs_probe() argument 60 afs_done_one_fs_probe(struct afs_net *net, struct afs_server *server) afs_done_one_fs_probe() argument 74 afs_fs_probe_not_done(struct afs_net *net, struct afs_server *server, struct afs_addr_cursor *ac) afs_fs_probe_not_done() argument 103 struct afs_server *server = call->server; afs_fileserver_probe_result() local 189 afs_fs_probe_fileserver(struct afs_net *net, struct afs_server *server, struct key *key, bool all) afs_fs_probe_fileserver() argument 231 struct afs_server *server; afs_wait_for_fs_probes() local 345 afs_probe_fileserver(struct afs_net *net, struct afs_server *server) afs_probe_fileserver() argument 359 struct afs_server *fast, *slow, *server; afs_fs_probe_dispatcher() local 433 afs_wait_for_one_fs_probe(struct afs_server *server, bool is_intr) afs_wait_for_one_fs_probe() argument [all...] |
H A D | vl_probe.c | 18 static void afs_finished_vl_probe(struct afs_vlserver *server) in afs_finished_vl_probe() argument 20 if (!(server->probe.flags & AFS_VLSERVER_PROBE_RESPONDED)) { in afs_finished_vl_probe() 21 server->rtt = UINT_MAX; in afs_finished_vl_probe() 22 clear_bit(AFS_VLSERVER_FL_RESPONDING, &server->flags); in afs_finished_vl_probe() 25 clear_bit_unlock(AFS_VLSERVER_FL_PROBING, &server->flags); in afs_finished_vl_probe() 26 wake_up_bit(&server->flags, AFS_VLSERVER_FL_PROBING); in afs_finished_vl_probe() 32 static void afs_done_one_vl_probe(struct afs_vlserver *server, bool wake_up) in afs_done_one_vl_probe() argument 34 if (atomic_dec_and_test(&server->probe_outstanding)) { in afs_done_one_vl_probe() 35 afs_finished_vl_probe(server); in afs_done_one_vl_probe() 40 wake_up_all(&server in afs_done_one_vl_probe() 50 struct afs_vlserver *server = call->vlserver; afs_vlserver_probe_result() local 143 afs_do_probe_vlserver(struct afs_net *net, struct afs_vlserver *server, struct key *key, unsigned int server_index, struct afs_error *_e) afs_do_probe_vlserver() argument 187 struct afs_vlserver *server; afs_send_vl_probes() local 214 struct afs_vlserver *server; afs_wait_for_vl_probes() local [all...] |
/kernel/linux/linux-6.6/fs/smb/client/ |
H A D | connect.c | 62 /* Drop the connection to not overload the server */ 65 static int ip_connect(struct TCP_Server_Info *server); 66 static int generic_ip_connect(struct TCP_Server_Info *server); 74 * This should be called with server->srv_mutex held. 76 static int reconn_set_ipaddr_from_hostname(struct TCP_Server_Info *server) in reconn_set_ipaddr_from_hostname() argument 83 if (!server->hostname) in reconn_set_ipaddr_from_hostname() 86 /* if server hostname isn't populated, there's nothing to do here */ in reconn_set_ipaddr_from_hostname() 87 if (server->hostname[0] == '\0') in reconn_set_ipaddr_from_hostname() 90 len = strlen(server->hostname) + 3; in reconn_set_ipaddr_from_hostname() 97 scnprintf(unc, len, "\\\\%s", server in reconn_set_ipaddr_from_hostname() 152 cifs_signal_cifsd_for_reconnect(struct TCP_Server_Info *server, bool all_channels) cifs_signal_cifsd_for_reconnect() argument 199 cifs_mark_tcp_ses_conns_for_reconnect(struct TCP_Server_Info *server, bool mark_smb_session) cifs_mark_tcp_ses_conns_for_reconnect() argument 287 cifs_abort_connection(struct TCP_Server_Info *server) cifs_abort_connection() argument 342 cifs_tcp_ses_needs_reconnect(struct TCP_Server_Info *server, int num_targets) cifs_tcp_ses_needs_reconnect() argument 375 __cifs_reconnect(struct TCP_Server_Info *server, bool mark_smb_session) __cifs_reconnect() argument 428 __reconnect_target_unlocked(struct TCP_Server_Info *server, const char *target) __reconnect_target_unlocked() argument 461 reconnect_target_unlocked(struct TCP_Server_Info *server, struct dfs_cache_tgt_list *tl, struct dfs_cache_tgt_iterator **target_hint) reconnect_target_unlocked() argument 485 reconnect_dfs_server(struct TCP_Server_Info *server) reconnect_dfs_server() argument 562 cifs_reconnect(struct TCP_Server_Info *server, bool mark_smb_session) cifs_reconnect() argument 574 cifs_reconnect(struct TCP_Server_Info *server, bool mark_smb_session) cifs_reconnect() argument 584 struct TCP_Server_Info *server = container_of(work, cifs_echo_request() local 610 allocate_buffers(struct TCP_Server_Info *server) allocate_buffers() argument 643 server_unresponsive(struct TCP_Server_Info *server) server_unresponsive() argument 673 zero_credits(struct TCP_Server_Info *server) zero_credits() argument 688 cifs_readv_from_socket(struct TCP_Server_Info *server, struct msghdr *smb_msg) cifs_readv_from_socket() argument 745 cifs_read_from_socket(struct TCP_Server_Info *server, char *buf, unsigned int to_read) cifs_read_from_socket() argument 756 cifs_discard_from_socket(struct TCP_Server_Info *server, size_t to_read) cifs_discard_from_socket() argument 771 cifs_read_page_from_socket(struct TCP_Server_Info *server, struct page *page, unsigned int page_offset, unsigned int to_read) cifs_read_page_from_socket() argument 783 cifs_read_iter_from_socket(struct TCP_Server_Info *server, struct iov_iter *iter, unsigned int to_read) cifs_read_iter_from_socket() argument 797 is_smb_response(struct TCP_Server_Info *server, unsigned char type) is_smb_response() argument 865 smb2_get_credits_from_hdr(char *buffer, struct TCP_Server_Info *server) smb2_get_credits_from_hdr() argument 879 handle_mid(struct mid_q_entry *mid, struct TCP_Server_Info *server, char *buf, int malformed) handle_mid() argument 900 cifs_enable_signing(struct TCP_Server_Info *server, bool mnt_sign_required) cifs_enable_signing() argument 946 clean_demultiplex_info(struct TCP_Server_Info *server) clean_demultiplex_info() argument 1039 standard_receive3(struct TCP_Server_Info *server, struct mid_q_entry *mid) standard_receive3() argument 1074 cifs_handle_standard(struct TCP_Server_Info *server, struct mid_q_entry *mid) cifs_handle_standard() argument 1110 smb2_add_credits_from_hdr(char *buffer, struct TCP_Server_Info *server) smb2_add_credits_from_hdr() argument 1143 struct TCP_Server_Info *server = p; cifs_demultiplex_thread() local 1425 match_port(struct TCP_Server_Info *server, struct sockaddr *addr) match_port() argument 1458 match_server_address(struct TCP_Server_Info *server, struct sockaddr *addr) match_server_address() argument 1467 match_security(struct TCP_Server_Info *server, struct smb3_fs_context *ctx) match_security() argument 1490 match_server(struct TCP_Server_Info *server, struct smb3_fs_context *ctx, bool match_super) match_server() argument 1581 struct TCP_Server_Info *server; cifs_find_tcp_session() local 1607 cifs_put_tcp_session(struct TCP_Server_Info *server, int from_reconnect) cifs_put_tcp_session() argument 1905 struct TCP_Server_Info *server = ses->server; cifs_setup_ipc() local 1979 cifs_find_smb_ses(struct TCP_Server_Info *server, struct smb3_fs_context *ctx) cifs_find_smb_ses() argument 2010 struct TCP_Server_Info *server = ses->server; __cifs_put_smb_ses() local 2097 struct TCP_Server_Info *server = ses->server; cifs_set_cifscreds() local 2245 cifs_get_smb_ses(struct TCP_Server_Info *server, struct smb3_fs_context *ctx) cifs_get_smb_ses() argument 2389 struct TCP_Server_Info *server = tcon->ses->server; match_tcon() local 2934 bind_socket(struct TCP_Server_Info *server) bind_socket() argument 2960 ip_rfc1001_connect(struct TCP_Server_Info *server) ip_rfc1001_connect() argument 3015 generic_ip_connect(struct TCP_Server_Info *server) generic_ip_connect() argument 3115 ip_connect(struct TCP_Server_Info *server) ip_connect() argument 3320 struct TCP_Server_Info *server = NULL; cifs_mount_get_session() local 3367 struct TCP_Server_Info *server; cifs_mount_get_tcon() local 3491 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) cifs_are_all_path_components_accessible() argument 3546 struct TCP_Server_Info *server = mnt_ctx->server; cifs_is_path_remote() local 3824 cifs_negotiate_protocol(const unsigned int xid, struct cifs_ses *ses, struct TCP_Server_Info *server) cifs_negotiate_protocol() argument 3869 cifs_setup_session(const unsigned int xid, struct cifs_ses *ses, struct TCP_Server_Info *server, struct nls_table *nls_info) cifs_setup_session() argument [all...] |
H A D | transport.c | 44 alloc_mid(const struct smb_hdr *smb_buffer, struct TCP_Server_Info *server) in alloc_mid() argument 48 if (server == NULL) { in alloc_mid() 63 temp->server = server; in alloc_mid() 84 __le16 command = midEntry->server->vals->lock_cmd; in __release_mid() 89 struct TCP_Server_Info *server = midEntry->server; in __release_mid() local 94 server->ops->handle_cancelled_mid) in __release_mid() 95 server->ops->handle_cancelled_mid(midEntry, server); in __release_mid() 182 smb_send_kvec(struct TCP_Server_Info *server, struct msghdr *smb_msg, size_t *sent) smb_send_kvec() argument 247 smb_rqst_len(struct TCP_Server_Info *server, struct smb_rqst *rqst) smb_rqst_len() argument 272 __smb_send_rqst(struct TCP_Server_Info *server, int num_rqst, struct smb_rqst *rqst) __smb_send_rqst() argument 427 smb_send_rqst(struct TCP_Server_Info *server, int num_rqst, struct smb_rqst *rqst, int flags) smb_send_rqst() argument 470 smb_send(struct TCP_Server_Info *server, struct smb_hdr *smb_buffer, unsigned int smb_buf_length) smb_send() argument 486 wait_for_free_credits(struct TCP_Server_Info *server, const int num_credits, const int timeout, const int flags, unsigned int *instance) wait_for_free_credits() argument 640 wait_for_free_request(struct TCP_Server_Info *server, const int flags, unsigned int *instance) wait_for_free_request() argument 648 wait_for_compound_request(struct TCP_Server_Info *server, int num, const int flags, unsigned int *instance) wait_for_compound_request() argument 694 cifs_wait_mtu_credits(struct TCP_Server_Info *server, unsigned int size, unsigned int *num, struct cifs_credits *credits) cifs_wait_mtu_credits() argument 736 wait_for_response(struct TCP_Server_Info *server, struct mid_q_entry *midQ) wait_for_response() argument 751 cifs_setup_async_request(struct TCP_Server_Info *server, struct smb_rqst *rqst) cifs_setup_async_request() 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) cifs_call_async() argument 886 cifs_sync_mid_result(struct mid_q_entry *mid, struct TCP_Server_Info *server) cifs_sync_mid_result() argument 923 send_cancel(struct TCP_Server_Info *server, struct smb_rqst *rqst, struct mid_q_entry *mid) send_cancel() argument 931 cifs_check_receive(struct mid_q_entry *mid, struct TCP_Server_Info *server, bool log_error) cifs_check_receive() argument 987 struct TCP_Server_Info *server = mid->server; cifs_compound_callback() local 1024 struct TCP_Server_Info *server = NULL; cifs_pick_channel() 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) compound_send_recv() 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) cifs_send_recv() argument 1359 struct TCP_Server_Info *server; SendReceive() local 1501 struct TCP_Server_Info *server; SendReceiveBlockingLock() local 1653 cifs_discard_remaining_data(struct TCP_Server_Info *server) cifs_discard_remaining_data() argument 1675 __cifs_readv_discard(struct TCP_Server_Info *server, struct mid_q_entry *mid, bool malformed) __cifs_readv_discard() argument 1688 cifs_readv_discard(struct TCP_Server_Info *server, struct mid_q_entry *mid) cifs_readv_discard() argument 1696 cifs_readv_receive(struct TCP_Server_Info *server, struct mid_q_entry *mid) cifs_readv_receive() argument [all...] |
H A D | smb2transport.c | 30 smb3_crypto_shash_allocate(struct TCP_Server_Info *server) in smb3_crypto_shash_allocate() argument 32 struct cifs_secmech *p = &server->secmech; in smb3_crypto_shash_allocate() 50 smb311_crypto_shash_allocate(struct TCP_Server_Info *server) in smb311_crypto_shash_allocate() argument 52 struct cifs_secmech *p = &server->secmech; in smb311_crypto_shash_allocate() 77 int smb2_get_sign_key(__u64 ses_id, struct TCP_Server_Info *server, u8 *key) in smb2_get_sign_key() argument 88 /* If server is a channel, select the primary channel */ in smb2_get_sign_key() 89 pserver = SERVER_IS_CHAN(server) ? server->primary_server : server; in smb2_get_sign_key() 105 is_binding = (cifs_chan_needs_reconnect(ses, server) in smb2_get_sign_key() 146 smb2_find_smb_ses_unlocked(struct TCP_Server_Info *server, __u64 ses_id) smb2_find_smb_ses_unlocked() argument 172 smb2_find_smb_ses(struct TCP_Server_Info *server, __u64 ses_id) smb2_find_smb_ses() argument 204 smb2_find_smb_tcon(struct TCP_Server_Info *server, __u64 ses_id, __u32 tid) smb2_find_smb_tcon() argument 229 smb2_calc_signature(struct smb_rqst *rqst, struct TCP_Server_Info *server, bool allocate_crypto) smb2_calc_signature() argument 319 struct TCP_Server_Info *server = ses->server; generate_key() local 402 generate_smb3signingkey(struct cifs_ses *ses, struct TCP_Server_Info *server, const struct derivation_triplet *ptriplet) generate_smb3signingkey() argument 501 generate_smb30signingkey(struct cifs_ses *ses, struct TCP_Server_Info *server) generate_smb30signingkey() argument 530 generate_smb311signingkey(struct cifs_ses *ses, struct TCP_Server_Info *server) generate_smb311signingkey() argument 559 smb3_calc_signature(struct smb_rqst *rqst, struct TCP_Server_Info *server, bool allocate_crypto) smb3_calc_signature() argument 637 smb2_sign_rqst(struct smb_rqst *rqst, struct TCP_Server_Info *server) smb2_sign_rqst() argument 672 smb2_verify_signature(struct smb_rqst *rqst, struct TCP_Server_Info *server) smb2_verify_signature() argument 722 smb2_seq_num_into_buf(struct TCP_Server_Info *server, struct smb2_hdr *shdr) smb2_seq_num_into_buf() argument 734 smb2_mid_entry_alloc(const struct smb2_hdr *shdr, struct TCP_Server_Info *server) smb2_mid_entry_alloc() argument 773 smb2_get_mid_entry(struct cifs_ses *ses, struct TCP_Server_Info *server, struct smb2_hdr *shdr, struct mid_q_entry **mid) smb2_get_mid_entry() argument 825 smb2_check_receive(struct mid_q_entry *mid, struct TCP_Server_Info *server, bool log_error) smb2_check_receive() argument 851 smb2_setup_request(struct cifs_ses *ses, struct TCP_Server_Info *server, struct smb_rqst *rqst) smb2_setup_request() argument 878 smb2_setup_async_request(struct TCP_Server_Info *server, struct smb_rqst *rqst) smb2_setup_async_request() argument 912 smb3_crypto_aead_allocate(struct TCP_Server_Info *server) smb3_crypto_aead_allocate() argument [all...] |
H A D | cifs_debug.c | 38 void cifs_dump_detail(void *buf, struct TCP_Server_Info *server) in cifs_dump_detail() argument 46 if (!server->ops->check_message(buf, server->total_read, server)) { in cifs_dump_detail() 48 server->ops->calc_smb_size(smb)); in cifs_dump_detail() 53 void cifs_dump_mids(struct TCP_Server_Info *server) in cifs_dump_mids() argument 58 if (server == NULL) in cifs_dump_mids() 62 spin_lock(&server->mid_lock); in cifs_dump_mids() 63 list_for_each_entry(mid_entry, &server->pending_mid_q, qhead) { in cifs_dump_mids() 80 cifs_dump_detail(mid_entry->resp_buf, server); in cifs_dump_mids() 139 struct TCP_Server_Info *server = chan->server; cifs_dump_channel() local 237 struct TCP_Server_Info *server; cifs_debug_files_proc_show() local 284 struct TCP_Server_Info *server; cifs_debug_data_proc_show() local 625 struct TCP_Server_Info *server; cifs_stats_proc_write() local 682 struct TCP_Server_Info *server; cifs_stats_proc_show() local [all...] |
H A D | smb2pdu.c | 81 (tcon->ses->server->capabilities & SMB2_GLOBAL_CAP_ENCRYPTION)) in smb3_encryption_required() 89 struct TCP_Server_Info *server) in smb2_hdr_assemble() 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 in smb2_hdr_assemble() 87 smb2_hdr_assemble(struct smb2_hdr *shdr, __le16 smb2_cmd, const struct cifs_tcon *tcon, struct TCP_Server_Info *server) smb2_hdr_assemble() argument 161 cifs_chan_skip_or_disable(struct cifs_ses *ses, struct TCP_Server_Info *server, bool from_reconnect) cifs_chan_skip_or_disable() argument 210 smb2_reconnect(__le16 smb2_command, struct cifs_tcon *tcon, struct TCP_Server_Info *server, bool from_reconnect) smb2_reconnect() argument 486 fill_small_buf(__le16 smb2_command, struct cifs_tcon *tcon, struct TCP_Server_Info *server, void *buf, unsigned int *total_len) fill_small_buf() argument 512 __smb2_plain_req_init(__le16 smb2_command, struct cifs_tcon *tcon, struct TCP_Server_Info *server, void **request_buf, unsigned int *total_len) __smb2_plain_req_init() argument 544 smb2_plain_req_init(__le16 smb2_command, struct cifs_tcon *tcon, struct TCP_Server_Info *server, void **request_buf, unsigned int *total_len) smb2_plain_req_init() argument 558 smb2_ioctl_req_init(u32 opcode, struct cifs_tcon *tcon, struct TCP_Server_Info *server, void **request_buf, unsigned int *total_len) smb2_ioctl_req_init() argument 679 assemble_neg_contexts(struct smb2_negotiate_req *req, struct TCP_Server_Info *server, unsigned int *total_len) assemble_neg_contexts() argument 778 decode_compress_ctx(struct TCP_Server_Info *server, struct smb2_compression_capabilities_context *ctxt) decode_compress_ctx() argument 803 decode_encrypt_ctx(struct TCP_Server_Info *server, struct smb2_encryption_neg_context *ctxt) decode_encrypt_ctx() argument 855 decode_signing_ctx(struct TCP_Server_Info *server, struct smb2_signing_capabilities *pctxt) decode_signing_ctx() argument 885 smb311_decode_neg_context(struct smb2_negotiate_rsp *rsp, struct TCP_Server_Info *server, unsigned int len_of_smb) smb311_decode_neg_context() argument 1019 SMB2_negotiate(const unsigned int xid, struct cifs_ses *ses, struct TCP_Server_Info *server) SMB2_negotiate() argument 1253 struct TCP_Server_Info *server = tcon->ses->server; smb3_validate_negotiate() local 1386 smb2_select_sectype(struct TCP_Server_Info *server, enum securityEnum requested) smb2_select_sectype() argument 1410 struct TCP_Server_Info *server; global() member 1432 struct TCP_Server_Info *server = sess_data->server; SMB2_sess_alloc_buffer() local 1554 struct TCP_Server_Info *server = sess_data->server; SMB2_sess_establish_session() local 1582 struct TCP_Server_Info *server = sess_data->server; SMB2_auth_kerberos() local 1677 struct TCP_Server_Info *server = sess_data->server; SMB2_sess_auth_rawntlmssp_negotiate() local 1769 struct TCP_Server_Info *server = sess_data->server; SMB2_sess_auth_rawntlmssp_authenticate() local 1847 struct TCP_Server_Info *server = sess_data->server; SMB2_select_sec() local 1872 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 1924 struct TCP_Server_Info *server; SMB2_logoff() local 2010 struct TCP_Server_Info *server; SMB2_tcon() local 2292 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) smb2_parse_contexts() argument 2372 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) add_lease_context() argument 2788 struct TCP_Server_Info *server = cifs_pick_channel(ses); smb311_posix_mkdir() local 2933 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) SMB2_open_init() argument 3124 struct TCP_Server_Info *server = cifs_pick_channel(ses); SMB2_open() local 3208 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) SMB2_ioctl_init() argument 3322 struct TCP_Server_Info *server; SMB2_ioctl() local 3462 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) SMB2_close_init() argument 3503 struct TCP_Server_Info *server = cifs_pick_channel(ses); __SMB2_close() local 3634 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) SMB2_query_info_init() argument 3695 struct TCP_Server_Info *server; query_info() local 3828 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) SMB2_notify_init() argument 3867 struct TCP_Server_Info *server = cifs_pick_channel(ses); SMB2_change_notify() local 3948 struct TCP_Server_Info *server = mid->callback_data; smb2_echo_callback() local 3964 struct TCP_Server_Info *server = container_of(work, smb2_reconnect_server() local 4096 SMB2_echo(struct TCP_Server_Info *server) SMB2_echo() argument 4144 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) SMB2_flush_init() argument 4175 struct TCP_Server_Info *server = cifs_pick_channel(ses); SMB2_flush() local 4218 struct TCP_Server_Info *server = io_parms->server; smb3_use_rdma_offload() local 4257 struct TCP_Server_Info *server = io_parms->server; smb2_new_read_req() local 4345 struct TCP_Server_Info *server = rdata->server; smb2_readv_callback() local 4438 struct TCP_Server_Info *server; smb2_async_readv() local 4597 struct TCP_Server_Info *server = wdata->server; smb2_writev_callback() local 4683 struct TCP_Server_Info *server = wdata->server; smb2_async_writev() local 4848 struct TCP_Server_Info *server; SMB2_write() local 5068 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) SMB2_query_directory_init() argument 5235 struct TCP_Server_Info *server = cifs_pick_channel(ses); SMB2_query_directory() local 5294 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) SMB2_set_info_init() argument 5356 struct TCP_Server_Info *server = cifs_pick_channel(ses); send_set_info() local 5452 struct TCP_Server_Info *server = cifs_pick_channel(ses); SMB2_oplock_break() local 5526 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) build_qfs_info_req() argument 5576 struct TCP_Server_Info *server = cifs_pick_channel(ses); SMB311_posix_qfs_info() local 5627 struct TCP_Server_Info *server = cifs_pick_channel(ses); SMB2_QFS_info() local 5678 struct TCP_Server_Info *server = cifs_pick_channel(ses); SMB2_QFS_attr() local 5766 struct TCP_Server_Info *server = cifs_pick_channel(tcon->ses); smb2_lockv() local 5843 struct TCP_Server_Info *server = cifs_pick_channel(tcon->ses); SMB2_lease_break() local [all...] |
H A D | cifsencrypt.c | 172 struct TCP_Server_Info *server, char *signature, in __cifs_calc_signature() 181 if (!is_smb1(server)) { in __cifs_calc_signature() 224 * should be called with the server->srv_mutex held. 227 struct TCP_Server_Info *server, char *signature) in cifs_calc_signature() 231 if (!rqst->rq_iov || !signature || !server) in cifs_calc_signature() 234 rc = cifs_alloc_hash("md5", &server->secmech.md5); in cifs_calc_signature() 238 rc = crypto_shash_init(server->secmech.md5); in cifs_calc_signature() 244 rc = crypto_shash_update(server->secmech.md5, in cifs_calc_signature() 245 server->session_key.response, server in cifs_calc_signature() 171 __cifs_calc_signature(struct smb_rqst *rqst, struct TCP_Server_Info *server, char *signature, struct shash_desc *shash) __cifs_calc_signature() argument 226 cifs_calc_signature(struct smb_rqst *rqst, struct TCP_Server_Info *server, char *signature) cifs_calc_signature() argument 255 cifs_sign_rqst(struct smb_rqst *rqst, struct TCP_Server_Info *server, __u32 *pexpected_response_sequence_number) cifs_sign_rqst() argument 298 cifs_sign_smbv(struct kvec *iov, int n_vec, struct TCP_Server_Info *server, __u32 *pexpected_response_sequence) cifs_sign_smbv() argument 308 cifs_sign_smb(struct smb_hdr *cifs_pdu, struct TCP_Server_Info *server, __u32 *pexpected_response_sequence_number) cifs_sign_smb() argument 322 cifs_verify_signature(struct smb_rqst *rqst, struct TCP_Server_Info *server, __u32 expected_sequence_number) cifs_verify_signature() argument 540 wchar_t *server; calc_ntlmv2_hash() local 844 cifs_crypto_secmech_release(struct TCP_Server_Info *server) cifs_crypto_secmech_release() argument [all...] |
/kernel/linux/linux-6.6/fs/nfs/ |
H A D | client.c | 216 static void pnfs_init_server(struct nfs_server *server) in pnfs_init_server() argument 218 rpc_init_wait_queue(&server->roc_rpcwaitq, "pNFS ROC"); in pnfs_init_server() 230 static void pnfs_init_server(struct nfs_server *server) in pnfs_init_server() argument 445 * Mark a server as ready or failed 557 static void nfs_destroy_server(struct nfs_server *server) in nfs_destroy_server() argument 559 if (server->nlm_host) in nfs_destroy_server() 560 nlmclnt_done(server->nlm_host); in nfs_destroy_server() 566 static int nfs_start_lockd(struct nfs_server *server) in nfs_start_lockd() argument 569 struct nfs_client *clp = server->nfs_client; in nfs_start_lockd() 575 .noresvport = server in nfs_start_lockd() 611 nfs_init_server_rpcclient(struct nfs_server *server, const struct rpc_timeout *timeo, rpc_authflavor_t pseudoflavour) nfs_init_server_rpcclient() argument 673 nfs_init_server(struct nfs_server *server, const struct fs_context *fc) nfs_init_server() argument 769 nfs_server_set_fsinfo(struct nfs_server *server, struct nfs_fsinfo *fsinfo) nfs_server_set_fsinfo() argument 842 nfs_probe_fsinfo(struct nfs_server *server, struct nfs_fh *mntfh, struct nfs_fattr *fattr) nfs_probe_fsinfo() argument 891 nfs_probe_server(struct nfs_server *server, struct nfs_fh *mntfh) nfs_probe_server() argument 928 nfs_server_insert_lists(struct nfs_server *server) nfs_server_insert_lists() argument 942 nfs_server_remove_lists(struct nfs_server *server) nfs_server_remove_lists() argument 968 struct nfs_server *server; nfs_alloc_server() local 1012 nfs_free_server(struct nfs_server *server) nfs_free_server() argument 1048 struct nfs_server *server; nfs_create_server() local 1116 struct nfs_server *server; nfs_clone_server() local 1323 struct nfs_server *server; nfs_volume_list_show() local [all...] |
H A D | nfs3client.c | 27 static void nfs_init_server_aclclient(struct nfs_server *server) in nfs_init_server_aclclient() argument 29 if (server->flags & NFS_MOUNT_NOACL) in nfs_init_server_aclclient() 32 server->client_acl = rpc_bind_new_program(server->client, &nfsacl_program, 3); in nfs_init_server_aclclient() 33 if (IS_ERR(server->client_acl)) in nfs_init_server_aclclient() 36 nfs_sysfs_link_rpc_client(server, server->client_acl, NULL); in nfs_init_server_aclclient() 39 server->caps |= NFS_CAP_ACLS; in nfs_init_server_aclclient() 43 server->caps &= ~NFS_CAP_ACLS; in nfs_init_server_aclclient() 46 static inline void nfs_init_server_aclclient(struct nfs_server *server) in nfs_init_server_aclclient() argument 55 struct nfs_server *server = nfs_create_server(fc); nfs3_create_server() local 68 struct nfs_server *server = nfs_clone_server(source, fh, fattr, flavor); nfs3_clone_server() local [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 in nfs4_alloc_client() 385 * The create session reply races with the server back in nfs41_init_client() 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 in nfs40_walk_client_list() 613 * server tha in nfs40_walk_client_list() 796 nfs4_destroy_server(struct nfs_server *server) nfs4_destroy_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) nfs4_set_client() argument 1032 nfs4_session_limit_rwsize(struct nfs_server *server) nfs4_session_limit_rwsize() argument 1057 nfs4_session_limit_xasize(struct nfs_server *server) nfs4_session_limit_xasize() argument 1084 nfs4_server_set_init_caps(struct nfs_server *server) nfs4_server_set_init_caps() argument 1102 nfs4_server_common_setup(struct nfs_server *server, struct nfs_fh *mntfh, bool auth_probe) nfs4_server_common_setup() argument 1148 nfs4_init_server(struct nfs_server *server, struct fs_context *fc) nfs4_init_server() argument 1208 struct nfs_server *server; nfs4_create_server() local 1243 struct nfs_server *server, *parent_server; nfs4_create_referral_server() local 1333 nfs4_update_server(struct nfs_server *server, const char *hostname, struct sockaddr_storage *sap, size_t salen, struct net *net) nfs4_update_server() argument [all...] |
/kernel/linux/linux-5.10/fs/cifs/ |
H A D | transport.c | 54 AllocMidQEntry(const struct smb_hdr *smb_buffer, struct TCP_Server_Info *server) in AllocMidQEntry() argument 58 if (server == NULL) { in AllocMidQEntry() 73 temp->server = server; in AllocMidQEntry() 94 __le16 command = midEntry->server->vals->lock_cmd; in _cifs_mid_q_entry_release() 99 struct TCP_Server_Info *server = midEntry->server; in _cifs_mid_q_entry_release() local 103 server->ops->handle_cancelled_mid) in _cifs_mid_q_entry_release() 104 server->ops->handle_cancelled_mid(midEntry, server); in _cifs_mid_q_entry_release() 203 smb_send_kvec(struct TCP_Server_Info *server, struct msghdr *smb_msg, size_t *sent) smb_send_kvec() argument 268 smb_rqst_len(struct TCP_Server_Info *server, struct smb_rqst *rqst) smb_rqst_len() argument 312 __smb_send_rqst(struct TCP_Server_Info *server, int num_rqst, struct smb_rqst *rqst) __smb_send_rqst() argument 462 smb_send_rqst(struct TCP_Server_Info *server, int num_rqst, struct smb_rqst *rqst, int flags) smb_send_rqst() argument 507 smb_send(struct TCP_Server_Info *server, struct smb_hdr *smb_buffer, unsigned int smb_buf_length) smb_send() argument 523 wait_for_free_credits(struct TCP_Server_Info *server, const int num_credits, const int timeout, const int flags, unsigned int *instance) wait_for_free_credits() argument 641 wait_for_free_request(struct TCP_Server_Info *server, const int flags, unsigned int *instance) wait_for_free_request() argument 649 wait_for_compound_request(struct TCP_Server_Info *server, int num, const int flags, unsigned int *instance) wait_for_compound_request() argument 686 cifs_wait_mtu_credits(struct TCP_Server_Info *server, unsigned int size, unsigned int *num, struct cifs_credits *credits) cifs_wait_mtu_credits() argument 731 wait_for_response(struct TCP_Server_Info *server, struct mid_q_entry *midQ) wait_for_response() argument 744 cifs_setup_async_request(struct TCP_Server_Info *server, struct smb_rqst *rqst) cifs_setup_async_request() argument 776 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) cifs_call_async() argument 879 cifs_sync_mid_result(struct mid_q_entry *mid, struct TCP_Server_Info *server) cifs_sync_mid_result() argument 916 send_cancel(struct TCP_Server_Info *server, struct smb_rqst *rqst, struct mid_q_entry *mid) send_cancel() argument 924 cifs_check_receive(struct mid_q_entry *mid, struct TCP_Server_Info *server, bool log_error) cifs_check_receive() argument 980 struct TCP_Server_Info *server = mid->server; cifs_compound_callback() local 1030 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) compound_send_recv() argument 1250 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) cifs_send_recv() argument 1309 struct TCP_Server_Info *server; SendReceive() local 1446 struct TCP_Server_Info *server; SendReceiveBlockingLock() local [all...] |
H A D | cifs_debug.c | 35 void cifs_dump_detail(void *buf, struct TCP_Server_Info *server) in cifs_dump_detail() argument 44 server->ops->calc_smb_size(smb, server)); in cifs_dump_detail() 48 void cifs_dump_mids(struct TCP_Server_Info *server) in cifs_dump_mids() argument 54 if (server == NULL) in cifs_dump_mids() 59 list_for_each(tmp, &server->pending_mid_q) { in cifs_dump_mids() 77 cifs_dump_detail(mid_entry->resp_buf, server); in cifs_dump_mids() 116 if (tcon->ses->server->ops->dump_share_caps) in cifs_debug_tcon() 117 tcon->ses->server->ops->dump_share_caps(m, tcon); in cifs_debug_tcon() 127 struct TCP_Server_Info *server in cifs_dump_channel() local 167 struct TCP_Server_Info *server; cifs_debug_files_proc_show() local 220 struct TCP_Server_Info *server; cifs_debug_data_proc_show() local 475 struct TCP_Server_Info *server; cifs_stats_proc_write() local 540 struct TCP_Server_Info *server; cifs_stats_proc_show() local [all...] |
H A D | smb2transport.c | 44 smb3_crypto_shash_allocate(struct TCP_Server_Info *server) in smb3_crypto_shash_allocate() argument 46 struct cifs_secmech *p = &server->secmech; in smb3_crypto_shash_allocate() 66 smb311_crypto_shash_allocate(struct TCP_Server_Info *server) in smb311_crypto_shash_allocate() argument 68 struct cifs_secmech *p = &server->secmech; in smb311_crypto_shash_allocate() 95 int smb2_get_sign_key(__u64 ses_id, struct TCP_Server_Info *server, u8 *key) in smb2_get_sign_key() argument 133 if (chan->server == server) { in smb2_get_sign_key() 150 smb2_find_smb_ses_unlocked(struct TCP_Server_Info *server, __u64 ses_id) in smb2_find_smb_ses_unlocked() argument 154 list_for_each_entry(ses, &server->smb_ses_list, smb_ses_list) { in smb2_find_smb_ses_unlocked() 164 smb2_find_smb_ses(struct TCP_Server_Info *server, __u6 argument 196 smb2_find_smb_tcon(struct TCP_Server_Info *server, __u64 ses_id, __u32 tid) smb2_find_smb_tcon() argument 214 smb2_calc_signature(struct smb_rqst *rqst, struct TCP_Server_Info *server, bool allocate_crypto) smb2_calc_signature() argument 306 struct TCP_Server_Info *server = ses->server; generate_key() local 401 struct TCP_Server_Info *server = ses->server; generate_smb3signingkey() local 532 smb3_calc_signature(struct smb_rqst *rqst, struct TCP_Server_Info *server, bool allocate_crypto) smb3_calc_signature() argument 613 smb2_sign_rqst(struct smb_rqst *rqst, struct TCP_Server_Info *server) smb2_sign_rqst() argument 643 smb2_verify_signature(struct smb_rqst *rqst, struct TCP_Server_Info *server) smb2_verify_signature() argument 693 smb2_seq_num_into_buf(struct TCP_Server_Info *server, struct smb2_sync_hdr *shdr) smb2_seq_num_into_buf() argument 705 smb2_mid_entry_alloc(const struct smb2_sync_hdr *shdr, struct TCP_Server_Info *server) smb2_mid_entry_alloc() argument 743 smb2_get_mid_entry(struct cifs_ses *ses, struct TCP_Server_Info *server, struct smb2_sync_hdr *shdr, struct mid_q_entry **mid) smb2_get_mid_entry() argument 782 smb2_check_receive(struct mid_q_entry *mid, struct TCP_Server_Info *server, bool log_error) smb2_check_receive() argument 808 smb2_setup_request(struct cifs_ses *ses, struct TCP_Server_Info *server, struct smb_rqst *rqst) smb2_setup_request() argument 835 smb2_setup_async_request(struct TCP_Server_Info *server, struct smb_rqst *rqst) smb2_setup_async_request() argument 865 smb3_crypto_aead_allocate(struct TCP_Server_Info *server) smb3_crypto_aead_allocate() argument [all...] |
H A D | cifsencrypt.c | 41 struct TCP_Server_Info *server, char *signature, in __cifs_calc_signature() 48 int is_smb2 = server->vals->header_preamble_size == 0; in __cifs_calc_signature() 110 * should be called with the server->srv_mutex held. 113 struct TCP_Server_Info *server, char *signature) in cifs_calc_signature() 117 if (!rqst->rq_iov || !signature || !server) in cifs_calc_signature() 120 rc = cifs_alloc_hash("md5", &server->secmech.md5, in cifs_calc_signature() 121 &server->secmech.sdescmd5); in cifs_calc_signature() 125 rc = crypto_shash_init(&server->secmech.sdescmd5->shash); in cifs_calc_signature() 131 rc = crypto_shash_update(&server->secmech.sdescmd5->shash, in cifs_calc_signature() 132 server in cifs_calc_signature() 40 __cifs_calc_signature(struct smb_rqst *rqst, struct TCP_Server_Info *server, char *signature, struct shash_desc *shash) __cifs_calc_signature() argument 112 cifs_calc_signature(struct smb_rqst *rqst, struct TCP_Server_Info *server, char *signature) cifs_calc_signature() argument 143 cifs_sign_rqst(struct smb_rqst *rqst, struct TCP_Server_Info *server, __u32 *pexpected_response_sequence_number) cifs_sign_rqst() argument 182 cifs_sign_smbv(struct kvec *iov, int n_vec, struct TCP_Server_Info *server, __u32 *pexpected_response_sequence) cifs_sign_smbv() argument 192 cifs_sign_smb(struct smb_hdr *cifs_pdu, struct TCP_Server_Info *server, __u32 *pexpected_response_sequence_number) cifs_sign_smb() argument 206 cifs_verify_signature(struct smb_rqst *rqst, struct TCP_Server_Info *server, __u32 expected_sequence_number) cifs_verify_signature() argument 504 wchar_t *server; calc_ntlmv2_hash() local 805 cifs_crypto_secmech_release(struct TCP_Server_Info *server) cifs_crypto_secmech_release() argument [all...] |
H A D | connect.c | 73 /* Drop the connection to not overload the server */ 283 static int ip_connect(struct TCP_Server_Info *server); 284 static int generic_ip_connect(struct TCP_Server_Info *server); 293 * This should be called with server->srv_mutex held. 296 static int reconn_set_ipaddr(struct TCP_Server_Info *server) in reconn_set_ipaddr() argument 302 if (!server->hostname) in reconn_set_ipaddr() 305 len = strlen(server->hostname) + 3; in reconn_set_ipaddr() 312 scnprintf(unc, len, "\\\\%s", server->hostname); in reconn_set_ipaddr() 318 cifs_dbg(FYI, "%s: failed to resolve server part of %s to IP: %d\n", in reconn_set_ipaddr() 319 __func__, server in reconn_set_ipaddr() 332 reconn_set_ipaddr(struct TCP_Server_Info *server) reconn_set_ipaddr() argument 340 reconn_set_next_dfs_target(struct TCP_Server_Info *server, struct cifs_sb_info *cifs_sb, struct dfs_cache_tgt_list *tgt_list, struct dfs_cache_tgt_iterator **tgt_it) reconn_set_next_dfs_target() argument 390 cifs_reconnect(struct TCP_Server_Info *server) cifs_reconnect() argument 583 struct TCP_Server_Info *server = container_of(work, cifs_echo_request() local 618 allocate_buffers(struct TCP_Server_Info *server) allocate_buffers() argument 651 server_unresponsive(struct TCP_Server_Info *server) server_unresponsive() argument 678 zero_credits(struct TCP_Server_Info *server) zero_credits() argument 693 cifs_readv_from_socket(struct TCP_Server_Info *server, struct msghdr *smb_msg) cifs_readv_from_socket() argument 745 cifs_read_from_socket(struct TCP_Server_Info *server, char *buf, unsigned int to_read) cifs_read_from_socket() argument 756 cifs_discard_from_socket(struct TCP_Server_Info *server, size_t to_read) cifs_discard_from_socket() argument 771 cifs_read_page_from_socket(struct TCP_Server_Info *server, struct page *page, unsigned int page_offset, unsigned int to_read) cifs_read_page_from_socket() argument 782 is_smb_response(struct TCP_Server_Info *server, unsigned char type) is_smb_response() argument 849 smb2_get_credits_from_hdr(char *buffer, struct TCP_Server_Info *server) smb2_get_credits_from_hdr() argument 863 handle_mid(struct mid_q_entry *mid, struct TCP_Server_Info *server, char *buf, int malformed) handle_mid() argument 883 clean_demultiplex_info(struct TCP_Server_Info *server) clean_demultiplex_info() argument 976 standard_receive3(struct TCP_Server_Info *server, struct mid_q_entry *mid) standard_receive3() argument 1012 cifs_handle_standard(struct TCP_Server_Info *server, struct mid_q_entry *mid) cifs_handle_standard() argument 1049 smb2_add_credits_from_hdr(char *buffer, struct TCP_Server_Info *server) smb2_add_credits_from_hdr() argument 1072 struct TCP_Server_Info *server = p; cifs_demultiplex_thread() local 2322 match_port(struct TCP_Server_Info *server, struct sockaddr *addr) match_port() argument 2356 match_address(struct TCP_Server_Info *server, struct sockaddr *addr, struct sockaddr *srcaddr) match_address() argument 2393 match_security(struct TCP_Server_Info *server, struct smb_vol *vol) match_security() argument 2415 match_server(struct TCP_Server_Info *server, struct smb_vol *vol) match_server() argument 2464 struct TCP_Server_Info *server; cifs_find_tcp_session() local 2485 cifs_put_tcp_session(struct TCP_Server_Info *server, int from_reconnect) cifs_put_tcp_session() argument 2735 struct TCP_Server_Info *server = ses->server; cifs_setup_ipc() local 2810 cifs_find_smb_ses(struct TCP_Server_Info *server, struct smb_vol *vol) cifs_find_smb_ses() argument 2831 struct TCP_Server_Info *server = ses->server; cifs_put_smb_ses() local 2893 struct TCP_Server_Info *server = ses->server; cifs_set_cifscreds() local 3039 cifs_get_smb_ses(struct TCP_Server_Info *server, struct smb_vol *volume_info) cifs_get_smb_ses() argument 3595 bind_socket(struct TCP_Server_Info *server) bind_socket() argument 3621 ip_rfc1001_connect(struct TCP_Server_Info *server) ip_rfc1001_connect() argument 3693 generic_ip_connect(struct TCP_Server_Info *server) generic_ip_connect() argument 3790 ip_connect(struct TCP_Server_Info *server) ip_connect() argument 4061 mount_put_conns(struct cifs_sb_info *cifs_sb, unsigned int xid, struct TCP_Server_Info *server, struct cifs_ses *ses, struct cifs_tcon *tcon) mount_put_conns() argument 4085 struct TCP_Server_Info *server; mount_get_conns() local 4317 setup_dfs_tgt_conn(const char *path, const char *full_path, const struct dfs_cache_tgt_iterator *tgt_it, struct cifs_sb_info *cifs_sb, struct smb_vol *vol, unsigned int *xid, struct TCP_Server_Info **server, struct cifs_ses **ses, struct cifs_tcon **tcon) setup_dfs_tgt_conn() argument 4369 do_dfs_failover(const char *path, const char *full_path, struct cifs_sb_info *cifs_sb, struct smb_vol *vol, struct cifs_ses *root_ses, unsigned int *xid, struct TCP_Server_Info **server, struct cifs_ses **ses, struct cifs_tcon **tcon) do_dfs_failover() argument 4470 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) cifs_are_all_path_components_accessible() argument 4520 is_path_remote(struct cifs_sb_info *cifs_sb, struct smb_vol *vol, const unsigned int xid, struct TCP_Server_Info *server, struct cifs_tcon *tcon) is_path_remote() argument 4583 check_dfs_prepath(struct cifs_sb_info *cifs_sb, struct smb_vol *vol, const unsigned int xid, struct TCP_Server_Info *server, struct cifs_tcon *tcon, char **dfs_path) check_dfs_prepath() argument 4657 struct TCP_Server_Info *server = NULL; cifs_mount() local 4805 struct TCP_Server_Info *server; cifs_mount() local 5033 struct TCP_Server_Info *server = cifs_ses_server(ses); cifs_negotiate_protocol() local 5060 struct TCP_Server_Info *server = cifs_ses_server(ses); cifs_setup_session() local 5353 struct TCP_Server_Info *server = tcon->ses->server; cifs_tree_connect() local [all...] |
/kernel/linux/linux-5.10/fs/nfs/ |
H A D | client.c | 215 static void pnfs_init_server(struct nfs_server *server) in pnfs_init_server() argument 217 rpc_init_wait_queue(&server->roc_rpcwaitq, "pNFS ROC"); in pnfs_init_server() 229 static void pnfs_init_server(struct nfs_server *server) in pnfs_init_server() argument 442 * Mark a server as ready or failed 553 static void nfs_destroy_server(struct nfs_server *server) in nfs_destroy_server() argument 555 if (server->nlm_host) in nfs_destroy_server() 556 nlmclnt_done(server->nlm_host); in nfs_destroy_server() 562 static int nfs_start_lockd(struct nfs_server *server) in nfs_start_lockd() argument 565 struct nfs_client *clp = server->nfs_client; in nfs_start_lockd() 571 .noresvport = server in nfs_start_lockd() 606 nfs_init_server_rpcclient(struct nfs_server *server, const struct rpc_timeout *timeo, rpc_authflavor_t pseudoflavour) nfs_init_server_rpcclient() argument 667 nfs_init_server(struct nfs_server *server, const struct fs_context *fc) nfs_init_server() argument 751 nfs_server_set_fsinfo(struct nfs_server *server, struct nfs_fsinfo *fsinfo) nfs_server_set_fsinfo() argument 822 nfs_probe_fsinfo(struct nfs_server *server, struct nfs_fh *mntfh, struct nfs_fattr *fattr) nfs_probe_fsinfo() argument 877 nfs_server_insert_lists(struct nfs_server *server) nfs_server_insert_lists() argument 891 nfs_server_remove_lists(struct nfs_server *server) nfs_server_remove_lists() argument 915 struct nfs_server *server; nfs_alloc_server() local 951 nfs_free_server(struct nfs_server *server) nfs_free_server() argument 981 struct nfs_server *server; nfs_create_server() local 1049 struct nfs_server *server; nfs_clone_server() local 1261 struct nfs_server *server; nfs_volume_list_show() local [all...] |
H A D | nfs4client.c | 47 * Per auth flavor data server rpc clients 128 * Find or create a DS rpc client with th MDS server rpc client auth flavor 235 * Set up the connection to the server before we add add to the in nfs4_alloc_client() 382 * The create session reply races with the server back in nfs41_init_client() 453 * "drop," but server trunking discovery claims "drop" and "keep" are 454 * actually the same server. Swap the callback IDs so that "keep" 455 * will continue to use the callback ident the server now knows about, 540 * nfs40_walk_client_list - Find server that recognizes a client ID 577 * caused the server to return a new cl_confirm. So if in nfs40_walk_client_list() 579 * server tha in nfs40_walk_client_list() 761 nfs4_destroy_server(struct nfs_server *server) nfs4_destroy_server() argument 861 nfs4_set_client(struct nfs_server *server, const char *hostname, const struct sockaddr *addr, const size_t addrlen, const char *ip_addr, int proto, const struct rpc_timeout *timeparms, u32 minorversion, unsigned int nconnect, struct net *net) nfs4_set_client() argument 976 nfs4_session_limit_rwsize(struct nfs_server *server) nfs4_session_limit_rwsize() argument 1001 nfs4_session_limit_xasize(struct nfs_server *server) nfs4_session_limit_xasize() argument 1028 nfs4_server_common_setup(struct nfs_server *server, struct nfs_fh *mntfh, bool auth_probe) nfs4_server_common_setup() argument 1093 nfs4_init_server(struct nfs_server *server, struct fs_context *fc) nfs4_init_server() argument 1151 struct nfs_server *server; nfs4_create_server() local 1186 struct nfs_server *server, *parent_server; nfs4_create_referral_server() local 1260 nfs_probe_destination(struct nfs_server *server) nfs_probe_destination() argument 1293 nfs4_update_server(struct nfs_server *server, const char *hostname, struct sockaddr *sap, size_t salen, struct net *net) nfs4_update_server() argument [all...] |
H A D | nfs3client.c | 25 static void nfs_init_server_aclclient(struct nfs_server *server) in nfs_init_server_aclclient() argument 27 if (server->flags & NFS_MOUNT_NOACL) in nfs_init_server_aclclient() 30 server->client_acl = rpc_bind_new_program(server->client, &nfsacl_program, 3); in nfs_init_server_aclclient() 31 if (IS_ERR(server->client_acl)) in nfs_init_server_aclclient() 35 server->caps |= NFS_CAP_ACLS; in nfs_init_server_aclclient() 39 server->caps &= ~NFS_CAP_ACLS; in nfs_init_server_aclclient() 42 static inline void nfs_init_server_aclclient(struct nfs_server *server) in nfs_init_server_aclclient() argument 44 server->flags &= ~NFS_MOUNT_NOACL; in nfs_init_server_aclclient() 45 server in nfs_init_server_aclclient() 51 struct nfs_server *server = nfs_create_server(fc); nfs3_create_server() local 64 struct nfs_server *server = nfs_clone_server(source, fh, fattr, flavor); nfs3_clone_server() local [all...] |
/kernel/linux/linux-6.6/arch/powerpc/sysdev/xics/ |
H A D | ics-opal.c | 29 static int ics_opal_mangle_server(int server) in ics_opal_mangle_server() argument 32 return server << 2; in ics_opal_mangle_server() 35 static int ics_opal_unmangle_server(int server) in ics_opal_unmangle_server() argument 38 return server >> 2; in ics_opal_unmangle_server() 45 int server; in ics_opal_unmask_irq() local 52 server = xics_get_irq_server(d->irq, irq_data_get_affinity_mask(d), 0); in ics_opal_unmask_irq() 53 server = ics_opal_mangle_server(server); in ics_opal_unmask_irq() 55 rc = opal_set_xive(hw_irq, server, DEFAULT_PRIORITY); in ics_opal_unmask_irq() 57 pr_err("%s: opal_set_xive(irq=%d [hw 0x%x] server in ics_opal_unmask_irq() 70 int server = ics_opal_mangle_server(xics_default_server); ics_opal_mask_real_irq() local 100 int16_t server; ics_opal_set_affinity() local 155 __be16 server; ics_opal_check() local 172 __be16 server; ics_opal_mask_unknown() local 186 __be16 server; ics_opal_get_server() local [all...] |
/kernel/linux/linux-5.10/arch/powerpc/sysdev/xics/ |
H A D | ics-opal.c | 30 static int ics_opal_mangle_server(int server) in ics_opal_mangle_server() argument 33 return server << 2; in ics_opal_mangle_server() 36 static int ics_opal_unmangle_server(int server) in ics_opal_unmangle_server() argument 39 return server >> 2; in ics_opal_unmangle_server() 46 int server; in ics_opal_unmask_irq() local 53 server = xics_get_irq_server(d->irq, irq_data_get_affinity_mask(d), 0); in ics_opal_unmask_irq() 54 server = ics_opal_mangle_server(server); in ics_opal_unmask_irq() 56 rc = opal_set_xive(hw_irq, server, DEFAULT_PRIORITY); in ics_opal_unmask_irq() 58 pr_err("%s: opal_set_xive(irq=%d [hw 0x%x] server in ics_opal_unmask_irq() 82 int server = ics_opal_mangle_server(xics_default_server); ics_opal_mask_real_irq() local 112 int16_t server; ics_opal_set_affinity() local 181 __be16 server; ics_opal_map() local 201 __be16 server; ics_opal_mask_unknown() local 215 __be16 server; ics_opal_get_server() local [all...] |