| /linux/fs/afs/ |
| H A D | server.c | 2 /* AFS server record management 22 * Find a server by one of its addresses. 26 struct afs_server *server = (struct afs_server *)rxrpc_kernel_get_peer_data(peer); in afs_find_server() local 28 if (!server) in afs_find_server() 30 return afs_use_server(server, false, afs_server_trace_use_cm_call); in afs_find_server() 34 * Look up a server by its UUID and mark it active. The caller must hold 39 struct afs_server *server; in afs_find_server_by_uuid() local 47 server = rb_entry(p, struct afs_server, uuid_rb); in afs_find_server_by_uuid() 49 diff = memcmp(uuid, &server->uuid, sizeof(*uuid)); in afs_find_server_by_uuid() 55 if (test_bit(AFS_SERVER_FL_UNCREATED, &server in afs_find_server_by_uuid() 72 struct afs_server *server; afs_install_server() local 115 struct afs_server *server; afs_alloc_server() local 152 afs_vl_lookup_addrs(struct afs_server * server,struct key * key) afs_vl_lookup_addrs() argument 182 struct afs_server *server, *candidate = NULL; afs_lookup_server() local 288 afs_set_server_timer(struct afs_server * server,unsigned int delay_secs) afs_set_server_timer() argument 296 afs_get_server(struct afs_server * server,enum afs_server_trace reason) afs_get_server() argument 312 afs_use_server(struct afs_server * server,bool activate,enum afs_server_trace reason) afs_use_server() argument 331 afs_put_server(struct afs_net * net,struct afs_server * server,enum afs_server_trace reason) afs_put_server() argument 353 afs_unuse_server_notime(struct afs_net * net,struct afs_server * server,enum afs_server_trace reason) afs_unuse_server_notime() argument 371 afs_unuse_server(struct afs_net * net,struct afs_server * server,enum afs_server_trace reason) afs_unuse_server() argument 394 struct afs_server *server = container_of(rcu, struct afs_server, rcu); afs_server_rcu() local 405 __afs_put_server(struct afs_net * net,struct afs_server * server) __afs_put_server() argument 411 afs_give_up_callbacks(struct afs_net * net,struct afs_server * server) afs_give_up_callbacks() argument 422 afs_has_server_expired(const struct afs_server * server) afs_has_server_expired() argument 447 afs_remove_server_from_cell(struct afs_server * server) afs_remove_server_from_cell() argument 469 struct afs_server *server = container_of(work, struct afs_server, destroyer); afs_server_destroyer() local 502 struct afs_server *server = container_of(timer, struct afs_server, timer); afs_server_timer() local 514 struct afs_server *server; afs_purge_servers() local 543 afs_update_server_record(struct afs_operation * op,struct afs_server * server,struct key * key) afs_update_server_record() argument 586 afs_check_server_record(struct afs_operation * op,struct afs_server * server,struct key * key) afs_check_server_record() 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->probe_wq); in afs_done_one_vl_probe() [all …]
|
| H A D | fs_probe.c | 56 * outstanding server count. 59 struct afs_server *server, bool fast) in afs_schedule_fs_probe() argument 66 atj = server->probed_at; in afs_schedule_fs_probe() 77 static void afs_finished_fs_probe(struct afs_net *net, struct afs_server *server, in afs_finished_fs_probe() argument 84 list_add_tail(&server->probe_link, &net->fs_probe_slow); in afs_finished_fs_probe() 86 server->rtt = UINT_MAX; in afs_finished_fs_probe() 87 clear_bit(AFS_SERVER_FL_RESPONDING, &server->flags); in afs_finished_fs_probe() 88 list_add_tail(&server->probe_link, &net->fs_probe_fast); in afs_finished_fs_probe() 93 afs_schedule_fs_probe(net, server, !responded); in afs_finished_fs_probe() 99 static void afs_done_one_fs_probe(struct afs_net *net, struct afs_server *server, in afs_done_one_fs_probe() argument 115 afs_fs_probe_not_done(struct afs_net * net,struct afs_server * server,struct afs_endpoint_state * estate,int index) afs_fs_probe_not_done() argument 143 struct afs_server *server = call->server; afs_fileserver_probe_result() local 238 afs_fs_probe_fileserver(struct afs_net * net,struct afs_server * server,struct afs_addr_list * new_alist,struct key * key) afs_fs_probe_fileserver() argument 387 afs_dispatch_fs_probe(struct afs_net * net,struct afs_server * server) afs_dispatch_fs_probe() argument 408 afs_probe_fileserver(struct afs_net * net,struct afs_server * server) afs_probe_fileserver() argument 422 struct afs_server *fast, *slow, *server; afs_fs_probe_dispatcher() local 496 afs_wait_for_one_fs_probe(struct afs_server * server,struct afs_endpoint_state * estate,unsigned long exclude,bool is_intr) afs_wait_for_one_fs_probe() argument [all...] |
| H A D | server_list.c | 18 afs_unuse_server(net, slist->servers[i].server, in afs_put_serverlist() 32 struct afs_server *server; in afs_alloc_server_list() local 82 server = afs_lookup_server(volume->cell, key, &vldb->fs_server[i], in afs_alloc_server_list() 84 if (IS_ERR(server)) { in afs_alloc_server_list() 85 ret = PTR_ERR(server); in afs_alloc_server_list() 94 if (memcmp(&slist->servers[j].server->uuid, in afs_alloc_server_list() 95 &server->uuid, in afs_alloc_server_list() 96 sizeof(server->uuid)) >= 0) in afs_alloc_server_list() 99 if (slist->servers[j].server == server) { in afs_alloc_server_list() 100 afs_unuse_server_notime(volume->cell->net, server, in afs_alloc_server_list() [all …]
|
| H A D | vl_list.c | 70 afs_put_vlserver(net, vllist->servers[i].server); in afs_put_vlserverlist() 168 struct afs_vlserver *server; in afs_extract_vlserver_list() local 240 server = NULL; in afs_extract_vlserver_list() 242 struct afs_vlserver *p = previous->servers[i].server; in afs_extract_vlserver_list() 247 server = afs_get_vlserver(p); in afs_extract_vlserver_list() 252 if (!server) { in afs_extract_vlserver_list() 254 server = afs_alloc_vlserver(b, bs.name_len, bs.port); in afs_extract_vlserver_list() 255 if (!server) in afs_extract_vlserver_list() 273 afs_put_vlserver(cell->net, server); in afs_extract_vlserver_list() 282 if (!rcu_access_pointer(server->addresses)) { in afs_extract_vlserver_list() [all …]
|
| H A D | callback.c | 56 void afs_init_callback_state(struct afs_server *server) in afs_init_callback_state() argument 60 down_read(&server->cell->vs_lock); in afs_init_callback_state() 62 list_for_each_entry(se, &server->volumes, slink) { in afs_init_callback_state() 71 up_read(&server->cell->vs_lock); in afs_init_callback_state() 151 static void afs_break_volume_callback(struct afs_server *server, in afs_break_volume_callback() argument 161 if (slist->servers[i].server == server) in afs_break_volume_callback() 181 static void afs_break_one_callback(struct afs_server *server, in afs_break_one_callback() argument 206 static void afs_break_some_callbacks(struct afs_server *server, in afs_break_some_callbacks() argument 216 volume = afs_lookup_volume_rcu(server->cell, vid); in afs_break_some_callbacks() 222 afs_break_volume_callback(server, volume); in afs_break_some_callbacks() [all …]
|
| /linux/fs/smb/client/ |
| H A D | transport.c | 34 cifs_wake_up_task(struct TCP_Server_Info *server, struct mid_q_entry *mid) in cifs_wake_up_task() argument 41 void __release_mid(struct TCP_Server_Info *server, struct mid_q_entry *midEntry) in __release_mid() argument 44 __le16 command = server->vals->lock_cmd; in __release_mid() 53 server->ops->handle_cancelled_mid) in __release_mid() 54 server->ops->handle_cancelled_mid(midEntry, server); in __release_mid() 69 if (atomic_read(&server->num_cmds[smb_cmd]) == 0) { in __release_mid() 70 server->slowest_cmd[smb_cmd] = roundtrip_time; in __release_mid() 71 server->fastest_cmd[smb_cmd] = roundtrip_time; in __release_mid() 73 if (server->slowest_cmd[smb_cmd] < roundtrip_time) in __release_mid() 74 server->slowest_cmd[smb_cmd] = roundtrip_time; in __release_mid() [all …]
|
| H A D | connect.c | 58 /* Drop the connection to not overload the server */ 61 static int ip_connect(struct TCP_Server_Info *server); 62 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 81 if (!server->hostname) in reconn_set_ipaddr_from_hostname() 84 /* if server hostname isn't populated, there's nothing to do here */ in reconn_set_ipaddr_from_hostname() 85 if (server->hostname[0] == '\0') in reconn_set_ipaddr_from_hostname() 88 spin_lock(&server->srv_lock); in reconn_set_ipaddr_from_hostname() 89 ss = server in reconn_set_ipaddr_from_hostname() 110 struct TCP_Server_Info *server = tcon->ses->server; smb2_query_server_interfaces() local 130 set_need_reco(server) global() argument 148 cifs_signal_cifsd_for_reconnect(struct TCP_Server_Info * server,bool all_channels) cifs_signal_cifsd_for_reconnect() argument 203 cifs_mark_tcp_ses_conns_for_reconnect(struct TCP_Server_Info * server,bool mark_smb_session) cifs_mark_tcp_ses_conns_for_reconnect() argument 297 cifs_abort_connection(struct TCP_Server_Info * server) cifs_abort_connection() argument 348 cifs_tcp_ses_needs_reconnect(struct TCP_Server_Info * server,int num_targets) cifs_tcp_ses_needs_reconnect() argument 381 __cifs_reconnect(struct TCP_Server_Info * server,bool mark_smb_session,bool once) __cifs_reconnect() argument 445 __reconnect_target_locked(struct TCP_Server_Info * server,const char * target) __reconnect_target_locked() argument 479 reconnect_target_locked(struct TCP_Server_Info * server,struct dfs_cache_tgt_list * tl,struct dfs_cache_tgt_iterator ** target_hint) reconnect_target_locked() argument 512 reconnect_dfs_server(struct TCP_Server_Info * server) reconnect_dfs_server() argument 587 _cifs_reconnect(struct TCP_Server_Info * server,bool mark_smb_session,bool once) _cifs_reconnect() argument 595 _cifs_reconnect(struct TCP_Server_Info * server,bool mark_smb_session,bool once) _cifs_reconnect() argument 602 cifs_reconnect(struct TCP_Server_Info * server,bool mark_smb_session) cifs_reconnect() argument 608 cifs_reconnect_once(struct TCP_Server_Info * server) cifs_reconnect_once() argument 617 struct TCP_Server_Info *server = container_of(work, cifs_echo_request() local 643 allocate_buffers(struct TCP_Server_Info * server) allocate_buffers() argument 676 server_unresponsive(struct TCP_Server_Info * server) server_unresponsive() argument 718 zero_credits(struct TCP_Server_Info * server) zero_credits() argument 733 cifs_readv_from_socket(struct TCP_Server_Info * server,struct msghdr * smb_msg) cifs_readv_from_socket() argument 790 cifs_read_from_socket(struct TCP_Server_Info * server,char * buf,unsigned int to_read) cifs_read_from_socket() argument 802 cifs_discard_from_socket(struct TCP_Server_Info * server,size_t to_read) cifs_discard_from_socket() argument 817 cifs_read_iter_from_socket(struct TCP_Server_Info * server,struct iov_iter * iter,unsigned int to_read) cifs_read_iter_from_socket() argument 827 is_smb_response(struct TCP_Server_Info * server,unsigned char type) is_smb_response() argument 954 dequeue_mid(struct TCP_Server_Info * server,struct mid_q_entry * mid,bool malformed) dequeue_mid() argument 979 smb2_get_credits_from_hdr(char * buffer,struct TCP_Server_Info * server) smb2_get_credits_from_hdr() argument 993 handle_mid(struct mid_q_entry * mid,struct TCP_Server_Info * server,char * buf,int malformed) handle_mid() argument 1014 cifs_enable_signing(struct TCP_Server_Info * server,bool mnt_sign_required) cifs_enable_signing() argument 1060 clean_demultiplex_info(struct TCP_Server_Info * server) clean_demultiplex_info() argument 1154 standard_receive3(struct TCP_Server_Info * server,struct mid_q_entry * mid) standard_receive3() argument 1188 cifs_handle_standard(struct TCP_Server_Info * server,struct mid_q_entry * mid) cifs_handle_standard() argument 1225 smb2_add_credits_from_hdr(char * buffer,struct TCP_Server_Info * server) smb2_add_credits_from_hdr() argument 1258 struct TCP_Server_Info *server = p; cifs_demultiplex_thread() local 1540 match_port(struct TCP_Server_Info * server,struct sockaddr * addr) match_port() argument 1573 match_server_address(struct TCP_Server_Info * server,struct sockaddr * addr) match_server_address() argument 1582 match_security(struct TCP_Server_Info * server,struct smb3_fs_context * ctx) match_security() argument 1605 match_server(struct TCP_Server_Info * server,struct smb3_fs_context * ctx,bool match_super) match_server() argument 1670 struct TCP_Server_Info *server; cifs_find_tcp_session() local 1696 cifs_put_tcp_session(struct TCP_Server_Info * server,int from_reconnect) cifs_put_tcp_session() argument 1939 struct TCP_Server_Info *server = ses->server; match_session() local 2034 struct TCP_Server_Info *server = ses->server; cifs_setup_ipc() local 2076 cifs_find_smb_ses(struct TCP_Server_Info * server,struct smb3_fs_context * ctx) cifs_find_smb_ses() argument 2105 struct TCP_Server_Info *server = ses->server; __cifs_put_smb_ses() local 2190 struct TCP_Server_Info *server = ses->server; cifs_set_cifscreds() local 2341 cifs_get_smb_ses(struct TCP_Server_Info * server,struct smb3_fs_context * ctx) cifs_get_smb_ses() argument 2544 struct TCP_Server_Info *server = tcon->ses->server; match_tcon() local 3107 bind_socket(struct TCP_Server_Info * server) bind_socket() argument 3136 smb_recv_kvec(struct TCP_Server_Info * server,struct msghdr * msg,size_t * recv) smb_recv_kvec() argument 3174 ip_rfc1001_connect(struct TCP_Server_Info * server) ip_rfc1001_connect() argument 3334 generic_ip_connect(struct TCP_Server_Info * server) generic_ip_connect() argument 3449 ip_connect(struct TCP_Server_Info * server) ip_connect() argument 3555 struct TCP_Server_Info *server = NULL; cifs_mount_get_session() local 3602 struct TCP_Server_Info *server; cifs_mount_get_tcon() local 3719 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 3774 struct TCP_Server_Info *server = mnt_ctx->server; cifs_is_path_remote() local 4012 cifs_negotiate_protocol(const unsigned int xid,struct cifs_ses * ses,struct TCP_Server_Info * server) cifs_negotiate_protocol() argument 4068 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 | sess.c | 48 struct TCP_Server_Info *server) in cifs_ses_get_chan_index() argument 53 if (server && server->terminate) in cifs_ses_get_chan_index() 57 if (ses->chans[i].server == server) in cifs_ses_get_chan_index() 62 if (server) in cifs_ses_get_chan_index() 63 cifs_dbg(VFS, "unable to get chan index for server: 0x%llx", in cifs_ses_get_chan_index() 64 server->conn_id); in cifs_ses_get_chan_index() 70 struct TCP_Server_Info *server) in cifs_chan_set_in_reconnect() argument 72 int chan_index = cifs_ses_get_chan_index(ses, server); in cifs_chan_set_in_reconnect() 82 cifs_chan_clear_in_reconnect(struct cifs_ses * ses,struct TCP_Server_Info * server) cifs_chan_clear_in_reconnect() argument 94 cifs_chan_set_need_reconnect(struct cifs_ses * ses,struct TCP_Server_Info * server) cifs_chan_set_need_reconnect() argument 108 cifs_chan_clear_need_reconnect(struct cifs_ses * ses,struct TCP_Server_Info * server) cifs_chan_clear_need_reconnect() argument 122 cifs_chan_needs_reconnect(struct cifs_ses * ses,struct TCP_Server_Info * server) cifs_chan_needs_reconnect() argument 134 cifs_chan_is_iface_active(struct cifs_ses * ses,struct TCP_Server_Info * server) cifs_chan_is_iface_active() argument 148 struct TCP_Server_Info *server = ses->server; cifs_try_adding_channels() local 279 struct TCP_Server_Info *server; cifs_decrease_secondary_channels() local 343 cifs_chan_update_iface(struct cifs_ses * ses,struct TCP_Server_Info * server) cifs_chan_update_iface() argument 773 build_ntlmssp_negotiate_blob(unsigned char ** pbuffer,u16 * buflen,struct cifs_ses * ses,struct TCP_Server_Info * server,const struct nls_table * nls_cp) build_ntlmssp_negotiate_blob() argument 835 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) build_ntlmssp_smb3_negotiate_blob() argument 899 build_ntlmssp_auth_blob(unsigned char ** pbuffer,u16 * buflen,struct cifs_ses * ses,struct TCP_Server_Info * server,const struct nls_table * nls_cp) build_ntlmssp_auth_blob() argument 1004 cifs_select_sectype(struct TCP_Server_Info * server,enum securityEnum requested) cifs_select_sectype() argument [all...] |
| H A D | smb2pdu.c | 85 (tcon->ses->server->capabilities & SMB2_GLOBAL_CAP_ENCRYPTION)) in smb3_encryption_required() 88 (tcon->ses->server->capabilities & SMB2_GLOBAL_CAP_ENCRYPTION)) in smb3_encryption_required() 96 struct TCP_Server_Info *server) in smb2_hdr_assemble() argument 104 if (server) { in smb2_hdr_assemble() 106 if (server->dialect >= SMB30_PROT_ID) { in smb2_hdr_assemble() 112 if (SERVER_IS_CHAN(server)) in smb2_hdr_assemble() 114 cpu_to_le16(server->primary_server->channel_sequence_num); in smb2_hdr_assemble() 117 cpu_to_le16(server->channel_sequence_num); in smb2_hdr_assemble() 119 spin_lock(&server->req_lock); in smb2_hdr_assemble() 121 if (server in smb2_hdr_assemble() 169 cifs_chan_skip_or_disable(struct cifs_ses * ses,struct TCP_Server_Info * server,bool from_reconnect,bool disable_mchan) cifs_chan_skip_or_disable() argument 226 smb3_update_ses_channels(struct cifs_ses * ses,struct TCP_Server_Info * server,bool from_reconnect,bool disable_mchan) smb3_update_ses_channels() argument 250 smb2_reconnect(__le16 smb2_command,struct cifs_tcon * tcon,struct TCP_Server_Info * server,bool from_reconnect) smb2_reconnect() argument 528 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 554 __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 586 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 600 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 734 assemble_neg_contexts(struct smb2_negotiate_req * req,struct TCP_Server_Info * server,unsigned int * total_len) assemble_neg_contexts() argument 832 decode_compress_ctx(struct TCP_Server_Info * server,struct smb2_compression_capabilities_context * ctxt) decode_compress_ctx() argument 887 decode_encrypt_ctx(struct TCP_Server_Info * server,struct smb2_encryption_neg_context * ctxt) decode_encrypt_ctx() argument 939 decode_signing_ctx(struct TCP_Server_Info * server,struct smb2_signing_capabilities * pctxt) decode_signing_ctx() argument 970 smb311_decode_neg_context(struct smb2_negotiate_rsp * rsp,struct TCP_Server_Info * server,unsigned int len_of_smb) smb311_decode_neg_context() argument 1104 SMB2_negotiate(const unsigned int xid,struct cifs_ses * ses,struct TCP_Server_Info * server) SMB2_negotiate() argument 1360 struct TCP_Server_Info *server = tcon->ses->server; smb3_validate_negotiate() local 1507 smb2_select_sectype(struct TCP_Server_Info * server,enum securityEnum requested) smb2_select_sectype() argument 1531 struct TCP_Server_Info *server; global() member 1553 struct TCP_Server_Info *server = sess_data->server; SMB2_sess_alloc_buffer() local 1681 struct TCP_Server_Info *server = sess_data->server; SMB2_sess_establish_session() local 1709 struct TCP_Server_Info *server = sess_data->server; SMB2_auth_kerberos() local 1813 struct TCP_Server_Info *server = sess_data->server; SMB2_sess_auth_rawntlmssp_negotiate() local 1905 struct TCP_Server_Info *server = sess_data->server; SMB2_sess_auth_rawntlmssp_authenticate() local 1983 struct TCP_Server_Info *server = sess_data->server; SMB2_select_sec() local 2009 SMB2_sess_setup(const unsigned int xid,struct cifs_ses * ses,struct TCP_Server_Info * server,const struct nls_table * nls_cp) SMB2_sess_setup() argument 2060 struct TCP_Server_Info *server; SMB2_logoff() local 2145 struct TCP_Server_Info *server = cifs_pick_channel(ses); SMB2_tcon() local 2277 struct TCP_Server_Info *server = cifs_pick_channel(ses); SMB2_tdis() local 2423 smb2_parse_contexts(struct TCP_Server_Info * server,struct kvec * rsp_iov,__u16 * epoch,char * lease_key,__u8 * oplock,struct smb2_file_all_info * buf,struct create_posix_rsp * posix) smb2_parse_contexts() argument 2503 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,u8 * parent_lease_key,__le32 flags) add_lease_context() argument 2939 struct TCP_Server_Info *server; smb311_posix_mkdir() local 3107 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 3298 struct TCP_Server_Info *server; SMB2_open() local 3407 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 3521 struct TCP_Server_Info *server; SMB2_ioctl() local 3682 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 3723 struct TCP_Server_Info *server; __SMB2_close() local 3875 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 3936 struct TCP_Server_Info *server; query_info() local 4072 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 4110 struct TCP_Server_Info *server; SMB2_change_notify() local 4213 smb2_echo_callback(struct TCP_Server_Info * server,struct mid_q_entry * mid) smb2_echo_callback() argument 4228 cifs_renegotiate_iosize(struct TCP_Server_Info * server,struct cifs_tcon * tcon) cifs_renegotiate_iosize() argument 4244 struct TCP_Server_Info *server = container_of(work, smb2_reconnect_server() local 4379 SMB2_echo(struct TCP_Server_Info * server) SMB2_echo() argument 4428 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 4458 struct TCP_Server_Info *server; SMB2_flush() local 4522 struct TCP_Server_Info *server = io_parms->server; smb3_use_rdma_offload() local 4561 struct TCP_Server_Info *server = io_parms->server; smb2_new_read_req() local 4653 smb2_readv_callback(struct TCP_Server_Info * server,struct mid_q_entry * mid) smb2_readv_callback() argument 4814 struct TCP_Server_Info *server; smb2_async_readv() local 4993 smb2_writev_callback(struct TCP_Server_Info * server,struct mid_q_entry * mid) smb2_writev_callback() argument 5132 struct TCP_Server_Info *server = wdata->server; smb2_async_writev() local 5323 struct TCP_Server_Info *server; SMB2_write() local 5564 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 5737 struct TCP_Server_Info *server; SMB2_query_directory() local 5816 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 5878 struct TCP_Server_Info *server; send_set_info() local 6010 struct TCP_Server_Info *server; SMB2_oplock_break() local 6101 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 6150 struct TCP_Server_Info *server; SMB311_posix_qfs_info() local 6219 struct TCP_Server_Info *server; SMB2_QFS_attr() local 6325 struct TCP_Server_Info *server; smb2_lockv() local 6432 struct TCP_Server_Info *server = cifs_pick_channel(tcon->ses); SMB2_lease_break() local [all...] |
| H A D | smb2ops.c | 36 change_conf(struct TCP_Server_Info *server) in change_conf() argument 38 server->credits += server->echo_credits + server->oplock_credits; in change_conf() 39 if (server->credits > server->max_credits) in change_conf() 40 server->credits = server->max_credits; in change_conf() 41 server->oplock_credits = server in change_conf() 69 smb2_add_credits(struct TCP_Server_Info * server,struct cifs_credits * credits,const int optype) smb2_add_credits() argument 196 smb2_set_credits(struct TCP_Server_Info * server,const int val) smb2_set_credits() argument 227 smb2_get_credits_field(struct TCP_Server_Info * server,const int optype) smb2_get_credits_field() argument 246 smb2_wait_mtu_credits(struct TCP_Server_Info * server,size_t size,size_t * num,struct cifs_credits * credits) smb2_wait_mtu_credits() argument 311 smb2_adjust_credits(struct TCP_Server_Info * server,struct cifs_io_subrequest * subreq,unsigned int trace) smb2_adjust_credits() argument 384 smb2_get_next_mid(struct TCP_Server_Info * server) smb2_get_next_mid() argument 395 smb2_revert_current_mid(struct TCP_Server_Info * server,const unsigned int val) smb2_revert_current_mid() argument 404 __smb2_find_mid(struct TCP_Server_Info * server,char * buf,bool dequeue) __smb2_find_mid() argument 434 smb2_find_mid(struct TCP_Server_Info * server,char * buf) smb2_find_mid() argument 440 smb2_find_dequeue_mid(struct TCP_Server_Info * server,char * buf) smb2_find_dequeue_mid() argument 446 smb2_dump_detail(void * buf,size_t buf_len,struct TCP_Server_Info * server) smb2_dump_detail() argument 462 smb2_need_neg(struct TCP_Server_Info * server) smb2_need_neg() argument 470 smb2_negotiate(const unsigned int xid,struct cifs_ses * ses,struct TCP_Server_Info * server) smb2_negotiate() argument 495 struct TCP_Server_Info *server = tcon->ses->server; smb2_negotiate_wsize() local 510 struct TCP_Server_Info *server = tcon->ses->server; smb3_negotiate_wsize() local 545 struct TCP_Server_Info *server = tcon->ses->server; smb2_negotiate_rsize() local 561 struct TCP_Server_Info *server = tcon->ses->server; smb3_negotiate_rsize() local 1188 struct TCP_Server_Info *server; smb2_set_ea() local 1369 smb2_can_echo(struct TCP_Server_Info * server) smb2_can_echo() argument 1482 struct TCP_Server_Info *server = tlink_tcon(cfile->tlink)->ses->server; smb2_set_fid() local 1587 struct TCP_Server_Info *server; smb2_ioctl_query_info() local 2580 struct TCP_Server_Info *server; smb2_query_dir_first() local 2726 smb2_is_status_pending(char * buf,struct TCP_Server_Info * server) smb2_is_status_pending() argument 2782 smb2_is_network_name_deleted(char * buf,struct TCP_Server_Info * server) smb2_is_network_name_deleted() argument 2832 smb2_set_replay(struct TCP_Server_Info * server,struct smb_rqst * rqst) smb2_set_replay() argument 2867 struct TCP_Server_Info *server = ses->server; smb2_set_next_command() local 2948 struct TCP_Server_Info *server; smb2_query_info_compound() local 4340 smb2_downgrade_oplock(struct TCP_Server_Info * server,struct cifsInodeInfo * cinode,__u32 oplock,__u16 epoch,bool * purge_cache) smb2_downgrade_oplock() argument 4353 smb3_downgrade_oplock(struct TCP_Server_Info * server,struct cifsInodeInfo * cinode,__u32 oplock,__u16 epoch,bool * purge_cache) smb3_downgrade_oplock() argument 4696 smb2_get_enc_key(struct TCP_Server_Info * server,__u64 ses_id,int enc,u8 * key) smb2_get_enc_key() argument 4731 crypt_message(struct TCP_Server_Info * server,int num_rqst,struct smb_rqst * rqst,int enc,struct crypto_aead * tfm) crypt_message() argument 4847 smb3_init_transform_rq(struct TCP_Server_Info * server,int num_rqst,struct smb_rqst * new_rq,struct smb_rqst * old_rq) smb3_init_transform_rq() argument 4906 decrypt_raw_data(struct TCP_Server_Info * server,char * buf,unsigned int buf_data_size,struct iov_iter * iter,bool is_offloaded) decrypt_raw_data() argument 5001 handle_read_data(struct TCP_Server_Info * server,struct mid_q_entry * mid,char * buf,unsigned int buf_len,struct folio_queue * buffer,unsigned int buffer_len,bool is_offloaded) handle_read_data() argument 5151 struct TCP_Server_Info *server; global() member 5222 receive_encrypted_read(struct TCP_Server_Info * server,struct mid_q_entry ** mid,int * num_mids) receive_encrypted_read() argument 5334 receive_encrypted_standard(struct TCP_Server_Info * server,struct mid_q_entry ** mids,char ** bufs,int * num_mids) receive_encrypted_standard() argument 5435 smb3_receive_transform(struct TCP_Server_Info * server,struct mid_q_entry ** mids,char ** bufs,int * num_mids) smb3_receive_transform() argument 5466 smb3_handle_read_data(struct TCP_Server_Info * server,struct mid_q_entry * mid) smb3_handle_read_data() argument 5474 smb2_next_header(struct TCP_Server_Info * server,char * buf,unsigned int * noff) smb2_next_header() argument 5497 struct TCP_Server_Info *server = tcon->ses->server; __cifs_sfu_make_node() local [all...] |
| H A D | smbdirect.h | 11 #define cifs_rdma_enabled(server) ((server)->rdma) argument 32 struct TCP_Server_Info *server, struct sockaddr *dstaddr); 37 int smbd_reconnect(struct TCP_Server_Info *server); 39 void smbd_destroy(struct TCP_Server_Info *server); 43 int smbd_send(struct TCP_Server_Info *server, 54 void smbd_debug_proc_show(struct TCP_Server_Info *server, struct seq_file *m); 57 #define cifs_rdma_enabled(server) 0 argument 60 struct TCP_Server_Info *server, struct sockaddr *dstaddr) {return NULL;} in smbd_get_connection() argument 61 static inline int smbd_reconnect(struct TCP_Server_Info *server) {return -1; } in smbd_reconnect() argument 62 static inline void smbd_destroy(struct TCP_Server_Info *server) {} in smbd_destroy() argument [all …]
|
| H A D | cifsproto.h | 35 int smb_send_kvec(struct TCP_Server_Info *server, struct msghdr *smb_msg, 84 void delete_mid(struct TCP_Server_Info *server, struct mid_q_entry *mid); 85 void __release_mid(struct TCP_Server_Info *server, 87 void cifs_wake_up_task(struct TCP_Server_Info *server, 89 int cifs_handle_standard(struct TCP_Server_Info *server, 95 int cifs_discard_remaining_data(struct TCP_Server_Info *server); 96 int cifs_call_async(struct TCP_Server_Info *server, struct smb_rqst *rqst, 102 struct TCP_Server_Info *server, struct smb_rqst *rqst, 105 struct TCP_Server_Info *server, const int flags, 109 struct TCP_Server_Info *server); [all …]
|
| H A D | smbdirect.c | 202 void smbd_destroy(struct TCP_Server_Info *server) in smbd_destroy() argument 204 struct smbd_connection *info = server->smbd_conn; in smbd_destroy() 214 server->smbd_conn = NULL; in smbd_destroy() 221 int smbd_reconnect(struct TCP_Server_Info *server) in smbd_reconnect() argument 225 if (!server->smbd_conn) { in smbd_reconnect() 235 smbd_destroy(server); in smbd_reconnect() 239 server->smbd_conn = smbd_get_connection( in smbd_reconnect() 240 server, (struct sockaddr *) &server->dstaddr); in smbd_reconnect() 242 if (server->smbd_conn) { in smbd_reconnect() 244 trace_smb3_smbd_connect_done(server->hostname, server->conn_id, &server->dstaddr); in smbd_reconnect() [all …]
|
| H A D | cifsglob.h | 312 int (*send_cancel)(struct cifs_ses *ses, struct TCP_Server_Info *server, 326 void (*add_credits)(struct TCP_Server_Info *server, 333 void (*revert_current_mid)(struct TCP_Server_Info *server, 348 struct mid_q_entry *(*find_mid)(struct TCP_Server_Info *server, char *buf); 355 struct TCP_Server_Info *server); 358 void (*downgrade_oplock)(struct TCP_Server_Info *server, 369 struct TCP_Server_Info *server); 376 struct TCP_Server_Info *server, 513 bool (*is_status_pending)(char *buf, struct TCP_Server_Info *server); 539 struct TCP_Server_Info *server); [all …]
|
| H A D | asn1.c | 13 struct TCP_Server_Info *server) in decode_negTokenInit() argument 15 if (asn1_ber_decoder(&cifs_spnego_negtokeninit_decoder, server, in decode_negTokenInit() 43 struct TCP_Server_Info *server = context; in cifs_neg_token_init_mech_type() local 48 server->sec_mskerberos = true; in cifs_neg_token_init_mech_type() 50 server->sec_kerberosu2u = true; in cifs_neg_token_init_mech_type() 52 server->sec_kerberos = true; in cifs_neg_token_init_mech_type() 54 server->sec_ntlmssp = true; in cifs_neg_token_init_mech_type() 56 server->sec_iakerb = true; in cifs_neg_token_init_mech_type()
|
| /linux/fs/nfs/ |
| H A D | client.c | 234 static void pnfs_init_server(struct nfs_server *server) in pnfs_init_server() argument 236 rpc_init_wait_queue(&server->roc_rpcwaitq, "pNFS ROC"); in pnfs_init_server() 248 static void pnfs_init_server(struct nfs_server *server) in pnfs_init_server() argument 592 static void nfs_destroy_server(struct nfs_server *server) in nfs_destroy_server() argument 594 if (server->nlm_host) in nfs_destroy_server() 595 nlmclnt_done(server->nlm_host); in nfs_destroy_server() 601 static int nfs_start_lockd(struct nfs_server *server) in nfs_start_lockd() argument 604 struct nfs_client *clp = server->nfs_client; in nfs_start_lockd() 610 .noresvport = server->flags & NFS_MOUNT_NORESVPORT ? in nfs_start_lockd() 614 .cred = server->cred, in nfs_start_lockd() [all …]
|
| H A D | sysfs.c | 242 struct nfs_server *server; in shutdown_nfs_client() local 244 list_for_each_entry_rcu(server, &clp->cl_superblocks, client_link) { in shutdown_nfs_client() 245 if (!(server->flags & NFS_MOUNT_SHUTDOWN)) { in shutdown_nfs_client() 259 struct nfs_server *server = container_of(kobj, struct nfs_server, kobj); in shutdown_show() local 260 bool shutdown = server->flags & NFS_MOUNT_SHUTDOWN; in shutdown_show() 268 struct nfs_server *server; in shutdown_store() local 271 server = container_of(kobj, struct nfs_server, kobj); in shutdown_store() 281 if (server->flags & NFS_MOUNT_SHUTDOWN) in shutdown_store() 284 server->flags |= NFS_MOUNT_SHUTDOWN; in shutdown_store() 285 shutdown_client(server->client); in shutdown_store() [all …]
|
| H A D | delegation.c | 38 static struct hlist_head *nfs_delegation_hash(struct nfs_server *server, in nfs_delegation_hash() argument 41 return server->delegation_hash_table + in nfs_delegation_hash() 42 (nfs_fhandle_hash(fhandle) & server->delegation_hash_mask); in nfs_delegation_hash() 52 static void nfs_mark_delegation_revoked(struct nfs_server *server, in nfs_mark_delegation_revoked() argument 61 atomic_long_dec(&server->nr_active_delegations); in nfs_mark_delegation_revoked() 65 spin_lock(&server->delegations_lock); in nfs_mark_delegation_revoked() 70 spin_unlock(&server->delegations_lock); in nfs_mark_delegation_revoked() 92 static void nfs_mark_return_delegation(struct nfs_server *server, in nfs_mark_return_delegation() argument 95 spin_lock(&server->delegations_lock); in nfs_mark_return_delegation() 98 list_move_tail(&delegation->entry, &server->delegations_return); in nfs_mark_return_delegation() [all …]
|
| H A D | nfs4client.c | 633 static void nfs4_destroy_server(struct nfs_server *server) in nfs4_destroy_server() argument 637 nfs_server_return_all_delegations(server); in nfs4_destroy_server() 638 unset_pnfs_layoutdriver(server); in nfs4_destroy_server() 639 nfs4_purge_state_owners(server, &freeme); in nfs4_destroy_server() 641 kfree(server->delegation_hash_table); in nfs4_destroy_server() 723 static int nfs4_set_client(struct nfs_server *server, in nfs4_set_client() argument 729 cl_init->cred = server->cred; in nfs4_set_client() 745 if (server->flags & NFS_MOUNT_NORESVPORT) in nfs4_set_client() 747 if (server->options & NFS_OPTION_MIGRATION) in nfs4_set_client() 749 if (test_bit(NFS_MIG_TSM_POSSIBLE, &server->mig_status)) in nfs4_set_client() [all …]
|
| H A D | nfs3client.c | 28 static void nfs_init_server_aclclient(struct nfs_server *server) in nfs_init_server_aclclient() argument 30 if (server->flags & NFS_MOUNT_NOACL) in nfs_init_server_aclclient() 33 server->client_acl = rpc_bind_new_program(server->client, &nfsacl_program, 3); in nfs_init_server_aclclient() 34 if (IS_ERR(server->client_acl)) in nfs_init_server_aclclient() 37 nfs_sysfs_link_rpc_client(server, server->client_acl, NULL); in nfs_init_server_aclclient() 40 server->caps |= NFS_CAP_ACLS; in nfs_init_server_aclclient() 44 server->caps &= ~NFS_CAP_ACLS; in nfs_init_server_aclclient() 47 static inline void nfs_init_server_aclclient(struct nfs_server *server) in nfs_init_server_aclclient() argument 49 server->flags &= ~NFS_MOUNT_NOACL; in nfs_init_server_aclclient() 50 server->caps &= ~NFS_CAP_ACLS; in nfs_init_server_aclclient() [all …]
|
| H A D | nfs40proc.c | 153 static int nfs40_test_and_free_expired_stateid(struct nfs_server *server, in nfs40_test_and_free_expired_stateid() argument 167 static int _nfs40_proc_get_locations(struct nfs_server *server, in _nfs40_proc_get_locations() argument 172 struct rpc_clnt *clnt = server->client; in _nfs40_proc_get_locations() 173 struct nfs_client *clp = server->nfs_client; in _nfs40_proc_get_locations() 200 locations->server = server; in _nfs40_proc_get_locations() 204 status = nfs4_call_sync_sequence(clnt, server, &msg, in _nfs40_proc_get_locations() 209 renew_lease(server, now); in _nfs40_proc_get_locations() 222 struct nfs_server *server = NFS_SERVER(inode); in _nfs40_proc_fsid_present() local 224 struct rpc_clnt *clnt = server->client; in _nfs40_proc_fsid_present() 247 status = nfs4_call_sync_sequence(clnt, server, &msg, in _nfs40_proc_fsid_present() [all …]
|
| H A D | nfs4proc.c | 97 static int _nfs4_proc_getattr(struct nfs_server *server, struct nfs_fh *fhandle, 152 static inline u32 *nfs4_bitmask(struct nfs_server *server, struct nfs4_label *label) in nfs4_bitmask() argument 155 return server->attr_bitmask; in nfs4_bitmask() 157 return server->attr_bitmask_nl; in nfs4_bitmask() 168 nfs4_bitmask(struct nfs_server *server, struct nfs4_label *label) in nfs4_bitmask() argument 169 { return server->attr_bitmask; } in nfs4_bitmask() 424 static void nfs4_test_and_free_stateid(struct nfs_server *server, in nfs4_test_and_free_stateid() argument 428 const struct nfs4_minor_version_ops *ops = server->nfs_client->cl_mvops; in nfs4_test_and_free_stateid() 430 ops->test_and_free_expired(server, stateid, cred); in nfs4_test_and_free_stateid() 433 static void __nfs4_free_revoked_stateid(struct nfs_server *server, in __nfs4_free_revoked_stateid() argument [all …]
|
| H A D | pnfs_dev.c | 97 nfs4_get_device_info(struct nfs_server *server, in nfs4_get_device_info() argument 112 max_resp_sz = server->nfs_client->cl_session->fc_attrs.max_resp_sz; in nfs4_get_device_info() 115 __func__, server, max_resp_sz, max_pages); in nfs4_get_device_info() 132 pdev->layout_type = server->pnfs_curr_ld->id; in nfs4_get_device_info() 139 rc = nfs4_proc_getdeviceinfo(server, pdev, cred); in nfs4_get_device_info() 148 d = server->pnfs_curr_ld->alloc_deviceid_node(server, pdev, in nfs4_get_device_info() 170 __nfs4_find_get_deviceid(struct nfs_server *server, in __nfs4_find_get_deviceid() argument 176 d = _lookup_deviceid(server->pnfs_curr_ld, server->nfs_client, id, in __nfs4_find_get_deviceid() 185 nfs4_find_get_deviceid(struct nfs_server *server, in nfs4_find_get_deviceid() argument 192 d = __nfs4_find_get_deviceid(server, id, hash); in nfs4_find_get_deviceid() [all …]
|
| /linux/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() 59 __func__, d->irq, hw_irq, server, rc); in ics_opal_unmask_irq() 70 int server = ics_opal_mangle_server(xics_default_server); in ics_opal_mask_real_irq() local [all …]
|