| /linux/fs/smb/client/ |
| H A D | fscache.c | 26 struct cifs_tcon *tcon, in cifs_fscache_fill_volume_coherency() argument 30 cd->resource_id = cpu_to_le64(tcon->resource_id); in cifs_fscache_fill_volume_coherency() 31 cd->vol_create_time = tcon->vol_create_time; in cifs_fscache_fill_volume_coherency() 32 cd->vol_serial_number = cpu_to_le32(tcon->vol_serial_number); in cifs_fscache_fill_volume_coherency() 35 int cifs_fscache_get_super_cookie(struct cifs_tcon *tcon) in cifs_fscache_get_super_cookie() argument 38 struct TCP_Server_Info *server = tcon->ses->server; in cifs_fscache_get_super_cookie() 45 if (tcon->fscache_acquired) in cifs_fscache_get_super_cookie() 48 mutex_lock(&tcon->fscache_lock); in cifs_fscache_get_super_cookie() 49 if (tcon->fscache_acquired) { in cifs_fscache_get_super_cookie() 50 mutex_unlock(&tcon->fscache_lock); in cifs_fscache_get_super_cookie() [all …]
|
| H A D | cifs_swn.c | 79 static int cifs_swn_auth_info_krb(struct cifs_tcon *tcon, struct sk_buff *skb) in cifs_swn_auth_info_krb() argument 90 static int cifs_swn_auth_info_ntlm(struct cifs_tcon *tcon, struct sk_buff *skb) in cifs_swn_auth_info_ntlm() argument 94 if (tcon->ses->user_name != NULL) { in cifs_swn_auth_info_ntlm() 95 ret = nla_put_string(skb, CIFS_GENL_ATTR_SWN_USER_NAME, tcon->ses->user_name); in cifs_swn_auth_info_ntlm() 100 if (tcon->ses->password != NULL) { in cifs_swn_auth_info_ntlm() 101 ret = nla_put_string(skb, CIFS_GENL_ATTR_SWN_PASSWORD, tcon->ses->password); in cifs_swn_auth_info_ntlm() 106 if (tcon->ses->domainName != NULL) { in cifs_swn_auth_info_ntlm() 107 ret = nla_put_string(skb, CIFS_GENL_ATTR_SWN_DOMAIN_NAME, tcon->ses->domainName); in cifs_swn_auth_info_ntlm() 121 struct cifs_tcon *tcon) in cifs_swn_send_register_message() argument 157 if (tcon->ses->server->use_swn_dstaddr) in cifs_swn_send_register_message() [all …]
|
| H A D | dfs.c | 206 struct cifs_tcon *tcon; in __dfs_mount_share() local 224 else if (WARN_ON(!mnt_ctx->tcon)) in __dfs_mount_share() 230 tcon = mnt_ctx->tcon; in __dfs_mount_share() 231 spin_lock(&tcon->tc_lock); in __dfs_mount_share() 232 tcon->origin_fullpath = origin_fullpath; in __dfs_mount_share() 234 ref_walk_set_tcon(rw, tcon); in __dfs_mount_share() 235 spin_unlock(&tcon->tc_lock); in __dfs_mount_share() 236 queue_delayed_work(dfscache_wq, &tcon->dfs_cache_work, in __dfs_mount_share() 337 struct cifs_tcon *tcon, in tree_connect_dfs_target() argument 342 const struct smb_version_operations *ops = tcon->ses->server->ops; in tree_connect_dfs_target() [all …]
|
| H A D | smb2proto.h | 57 struct cifs_tcon *tcon, 61 int smb2_query_reparse_point(const unsigned int xid, struct cifs_tcon *tcon, 65 int smb2_query_path_info(const unsigned int xid, struct cifs_tcon *tcon, 68 int smb2_set_path_size(const unsigned int xid, struct cifs_tcon *tcon, 75 umode_t mode, struct cifs_tcon *tcon, 78 umode_t mode, struct cifs_tcon *tcon, const char *name, 81 struct cifs_sb_info *cifs_sb, struct cifs_tcon *tcon, 83 int smb2_rmdir(const unsigned int xid, struct cifs_tcon *tcon, 85 int smb2_unlink(const unsigned int xid, struct cifs_tcon *tcon, 88 int smb2_rename_path(const unsigned int xid, struct cifs_tcon *tcon, [all …]
|
| H A D | smb2inode.c | 189 static void set_next_compound(struct cifs_tcon *tcon, in set_next_compound() argument 197 smb2_set_next_command(tcon, &rqst[*num_rqst]); in set_next_compound() 214 static int smb2_compound_op(const unsigned int xid, struct cifs_tcon *tcon, in smb2_compound_op() argument 226 struct cifs_ses *ses = tcon->ses; in smb2_compound_op() 259 if (smb3_encryption_required(tcon)) in smb2_compound_op() 301 rc = SMB2_open_init(tcon, server, in smb2_compound_op() 308 smb2_set_next_command(tcon, &rqst[num_rqst]); in smb2_compound_op() 326 rc = SMB2_query_info_init(tcon, server, in smb2_compound_op() 335 set_next_compound(tcon, cfile, i, num_cmds, rqst, &num_rqst); in smb2_compound_op() 336 trace_smb3_query_info_compound_enter(xid, tcon->tid, in smb2_compound_op() [all …]
|
| H A D | smb2pdu.c | 77 int smb3_encryption_required(const struct cifs_tcon *tcon) in smb3_encryption_required() argument 79 if (!tcon || !tcon->ses) in smb3_encryption_required() 81 if ((tcon->ses->session_flags & SMB2_SESSION_FLAG_ENCRYPT_DATA) || in smb3_encryption_required() 82 (tcon->share_flags & SHI1005_FLAGS_ENCRYPT_DATA)) in smb3_encryption_required() 84 if (tcon->seal && in smb3_encryption_required() 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() 95 const struct cifs_tcon *tcon, in smb2_hdr_assemble() argument 133 if (!tcon) in smb2_hdr_assemble() 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 1354 smb3_validate_negotiate(const unsigned int xid,struct cifs_tcon * tcon) smb3_validate_negotiate() argument 2116 cifs_stats_fail_inc(struct cifs_tcon * tcon,uint16_t code) cifs_stats_fail_inc() argument 2124 init_copy_chunk_defaults(struct cifs_tcon * tcon) init_copy_chunk_defaults() argument 2133 SMB2_tcon(const unsigned int xid,struct cifs_ses * ses,const char * tree,struct cifs_tcon * tcon,const struct nls_table * cp) SMB2_tcon() argument 2272 SMB2_tdis(const unsigned int xid,struct cifs_tcon * tcon) SMB2_tdis() argument 2946 smb311_posix_mkdir(const unsigned int xid,struct inode * inode,umode_t mode,struct cifs_tcon * tcon,const char * full_path,struct cifs_sb_info * cifs_sb) smb311_posix_mkdir() argument 3135 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 3324 struct cifs_tcon *tcon = oparms->tcon; SMB2_open() local 3438 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 3544 SMB2_ioctl(const unsigned int xid,struct cifs_tcon * tcon,u64 persistent_fid,u64 volatile_fid,u32 opcode,char * in_data,u32 indatalen,u32 max_out_data_len,char ** out_data,u32 * plen) SMB2_ioctl() argument 3691 SMB2_set_compression(const unsigned int xid,struct cifs_tcon * tcon,u64 persistent_fid,u64 volatile_fid,__u16 compression_state) SMB2_set_compression() argument 3713 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 3747 __SMB2_close(const unsigned int xid,struct cifs_tcon * tcon,u64 persistent_fid,u64 volatile_fid,struct smb2_file_network_open_info * pbuf) __SMB2_close() argument 3844 SMB2_close(const unsigned int xid,struct cifs_tcon * tcon,u64 persistent_fid,u64 volatile_fid) SMB2_close() argument 3906 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 3955 query_info(const unsigned int xid,struct cifs_tcon * tcon,u64 persistent_fid,u64 volatile_fid,u8 info_class,u8 info_type,u32 additional_info,size_t output_len,size_t min_len,void ** data,u32 * dlen) query_info() argument 4063 SMB2_query_info(const unsigned int xid,struct cifs_tcon * tcon,u64 persistent_fid,u64 volatile_fid,struct smb2_file_all_info * data) SMB2_query_info() argument 4074 SMB2_query_acl(const unsigned int xid,struct cifs_tcon * tcon,u64 persistent_fid,u64 volatile_fid,void ** data,u32 * plen,u32 extra_info) SMB2_query_acl() argument 4086 SMB2_get_srv_num(const unsigned int xid,struct cifs_tcon * tcon,u64 persistent_fid,u64 volatile_fid,__le64 * uniqueid) SMB2_get_srv_num() argument 4103 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 4135 SMB2_change_notify(const unsigned int xid,struct cifs_tcon * tcon,u64 persistent_fid,u64 volatile_fid,bool watch_tree,u32 completion_filter,u32 max_out_data_len,char ** out_data,u32 * plen) SMB2_change_notify() argument 4260 cifs_renegotiate_iosize(struct TCP_Server_Info * server,struct cifs_tcon * tcon) cifs_renegotiate_iosize() argument 4279 struct cifs_tcon *tcon, *tcon2; smb2_reconnect_server() local 4459 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 4482 SMB2_flush(const unsigned int xid,struct cifs_tcon * tcon,u64 persistent_fid,u64 volatile_fid) SMB2_flush() argument 4554 struct cifs_tcon *tcon = io_parms->tcon; smb3_use_rdma_offload() local 4688 struct cifs_tcon *tcon = tlink_tcon(rdata->req->cfile->tlink); smb2_readv_callback() local 4846 struct cifs_tcon *tcon = tlink_tcon(rdata->req->cfile->tlink); smb2_async_readv() local 5027 struct cifs_tcon *tcon = tlink_tcon(wdata->req->cfile->tlink); smb2_writev_callback() local 5162 struct cifs_tcon *tcon = tlink_tcon(wdata->req->cfile->tlink); smb2_async_writev() local 5594 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 5674 smb2_parse_query_directory(struct cifs_tcon * tcon,struct kvec * rsp_iov,int resp_buftype,struct cifs_search_info * srch_inf) smb2_parse_query_directory() argument 5757 SMB2_query_directory(const unsigned int xid,struct cifs_tcon * tcon,u64 persistent_fid,u64 volatile_fid,int index,struct cifs_search_info * srch_inf) SMB2_query_directory() argument 5847 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 5897 send_set_info(const unsigned int xid,struct cifs_tcon * tcon,u64 persistent_fid,u64 volatile_fid,u32 pid,u8 info_class,u8 info_type,u32 additional_info,unsigned int num,void ** data,unsigned int * size) send_set_info() argument 5974 SMB2_set_eof(const unsigned int xid,struct cifs_tcon * tcon,u64 persistent_fid,u64 volatile_fid,u32 pid,loff_t new_eof) SMB2_set_eof() argument 5994 SMB2_set_allocation(const unsigned int xid,struct cifs_tcon * tcon,u64 persistent_fid,u64 volatile_fid,u32 pid,loff_t allocation_size) SMB2_set_allocation() argument 6013 SMB2_set_acl(const unsigned int xid,struct cifs_tcon * tcon,u64 persistent_fid,u64 volatile_fid,struct smb_ntsd * pnntsd,int pacllen,int aclflag) SMB2_set_acl() argument 6023 SMB2_set_ea(const unsigned int xid,struct cifs_tcon * tcon,u64 persistent_fid,u64 volatile_fid,struct smb2_file_full_ea_info * buf,int len) SMB2_set_ea() argument 6033 SMB2_oplock_break(const unsigned int xid,struct cifs_tcon * tcon,const u64 persistent_fid,const u64 volatile_fid,__u8 oplock_level) SMB2_oplock_break() argument 6131 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 6171 SMB311_posix_qfs_info(const unsigned int xid,struct cifs_tcon * tcon,u64 persistent_fid,u64 volatile_fid,struct kstatfs * fsdata) SMB311_posix_qfs_info() argument 6240 SMB2_QFS_attr(const unsigned int xid,struct cifs_tcon * tcon,u64 persistent_fid,u64 volatile_fid,int level) SMB2_QFS_attr() argument 6343 smb2_lockv(const unsigned int xid,struct cifs_tcon * tcon,const __u64 persist_fid,const __u64 volatile_fid,const __u32 pid,const __u32 num_lock,struct smb2_lock_element * buf) smb2_lockv() argument 6432 SMB2_lock(const unsigned int xid,struct cifs_tcon * tcon,const __u64 persist_fid,const __u64 volatile_fid,const __u32 pid,const __u64 length,const __u64 offset,const __u32 lock_flags,const bool wait) SMB2_lock() argument 6449 SMB2_lease_break(const unsigned int xid,struct cifs_tcon * tcon,__u8 * lease_key,const __le32 lease_state) SMB2_lease_break() argument [all...] |
| H A D | link.c | 136 create_mf_symlink(const unsigned int xid, struct cifs_tcon *tcon, in create_mf_symlink() argument 152 if (tcon->ses->server->ops->create_mf_symlink) in create_mf_symlink() 153 rc = tcon->ses->server->ops->create_mf_symlink(xid, tcon, in create_mf_symlink() 170 check_mf_symlink(unsigned int xid, struct cifs_tcon *tcon, in check_mf_symlink() argument 188 if (tcon->ses->server->ops->query_mf_symlink) in check_mf_symlink() 189 rc = tcon->ses->server->ops->query_mf_symlink(xid, tcon, in check_mf_symlink() 227 cifs_query_mf_symlink(unsigned int xid, struct cifs_tcon *tcon, in cifs_query_mf_symlink() argument 240 .tcon = tcon, in cifs_query_mf_symlink() 249 rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, &query_data); in cifs_query_mf_symlink() 261 io_parms.tcon = tcon; in cifs_query_mf_symlink() [all …]
|
| H A D | smb2misc.c | 583 smb2_tcon_has_lease(struct cifs_tcon *tcon, struct smb2_lease_break *rsp) in smb2_tcon_has_lease() argument 593 list_for_each_entry(cfile, &tcon->openFileList, tlist) { in smb2_tcon_has_lease() 622 smb2_tcon_find_pending_open_lease(struct cifs_tcon *tcon, in smb2_tcon_find_pending_open_lease() argument 631 list_for_each_entry(open, &tcon->pending_opens, olist) { in smb2_tcon_find_pending_open_lease() 656 struct cifs_tcon *tcon; in smb2_is_valid_lease_break() local 678 list_for_each_entry(tcon, &ses->tcon_list, tcon_list) { in smb2_is_valid_lease_break() 679 spin_lock(&tcon->open_file_lock); in smb2_is_valid_lease_break() 681 &tcon->stats.cifs_stats.num_oplock_brks); in smb2_is_valid_lease_break() 682 if (smb2_tcon_has_lease(tcon, rsp)) { in smb2_is_valid_lease_break() 683 spin_unlock(&tcon->open_file_lock); in smb2_is_valid_lease_break() [all …]
|
| H A D | connect.c | 107 struct cifs_tcon *tcon = container_of(work, in smb2_query_server_interfaces() local 110 struct TCP_Server_Info *server = tcon->ses->server; in smb2_query_server_interfaces() 119 rc = server->ops->query_server_interfaces(xid, tcon, false); in smb2_query_server_interfaces() 126 queue_delayed_work(cifsiod_wq, &tcon->query_interfaces, in smb2_query_server_interfaces() 214 struct cifs_tcon *tcon; in cifs_mark_tcp_ses_conns_for_reconnect() local 284 list_for_each_entry(tcon, &ses->tcon_list, tcon_list) { in cifs_mark_tcp_ses_conns_for_reconnect() 285 tcon->need_reconnect = true; in cifs_mark_tcp_ses_conns_for_reconnect() 286 spin_lock(&tcon->tc_lock); in cifs_mark_tcp_ses_conns_for_reconnect() 287 tcon->status = TID_NEED_RECON; in cifs_mark_tcp_ses_conns_for_reconnect() 288 spin_unlock(&tcon->tc_lock); in cifs_mark_tcp_ses_conns_for_reconnect() [all …]
|
| H A D | dir.c | 40 struct cifs_tcon *tcon, int add_treename) in cifs_build_path_to_root() argument 53 dfsplen = strnlen(tcon->tree_name, MAX_TREE_SIZE + 1); in cifs_build_path_to_root() 62 memcpy(full_path, tcon->tree_name, dfsplen); in cifs_build_path_to_root() 74 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); in build_path_from_dentry() local 75 bool prefix = tcon->Flags & SMB_SHARE_IS_IN_DFS; in build_path_from_dentry() 138 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); in build_path_from_dentry_optional_prefix() local 140 return __build_path_from_dentry_optional_prefix(direntry, page, tcon->tree_name, in build_path_from_dentry_optional_prefix() 150 check_name(struct dentry *direntry, struct cifs_tcon *tcon) in check_name() argument 155 if (unlikely(tcon->fsAttrInfo.MaxPathNameComponentLength && in check_name() 157 le32_to_cpu(tcon->fsAttrInfo.MaxPathNameComponentLength))) in check_name() [all …]
|
| H A D | smb2ops.c | 493 smb2_negotiate_wsize(struct cifs_tcon *tcon, struct smb3_fs_context *ctx) in smb2_negotiate_wsize() argument 495 struct TCP_Server_Info *server = tcon->ses->server; in smb2_negotiate_wsize() 508 smb3_negotiate_wsize(struct cifs_tcon *tcon, struct smb3_fs_context *ctx) in smb3_negotiate_wsize() argument 510 struct TCP_Server_Info *server = tcon->ses->server; in smb3_negotiate_wsize() 543 smb2_negotiate_rsize(struct cifs_tcon *tcon, struct smb3_fs_context *ctx) in smb2_negotiate_rsize() argument 545 struct TCP_Server_Info *server = tcon->ses->server; in smb2_negotiate_rsize() 559 smb3_negotiate_rsize(struct cifs_tcon *tcon, struct smb3_fs_context *ctx) in smb3_negotiate_rsize() argument 561 struct TCP_Server_Info *server = tcon->ses->server; in smb3_negotiate_rsize() 829 SMB3_request_interfaces(const unsigned int xid, struct cifs_tcon *tcon, bool in_mount) in SMB3_request_interfaces() argument 834 struct cifs_ses *ses = tcon in SMB3_request_interfaces() 883 smb3_qfs_tcon(const unsigned int xid,struct cifs_tcon * tcon,struct cifs_sb_info * cifs_sb) smb3_qfs_tcon() argument 928 smb2_qfs_tcon(const unsigned int xid,struct cifs_tcon * tcon,struct cifs_sb_info * cifs_sb) smb2_qfs_tcon() argument 959 smb2_is_path_accessible(const unsigned int xid,struct cifs_tcon * tcon,struct cifs_sb_info * cifs_sb,const char * full_path) smb2_is_path_accessible() argument 1023 smb2_get_srv_inum(const unsigned int xid,struct cifs_tcon * tcon,struct cifs_sb_info * cifs_sb,const char * full_path,u64 * uniqueid,struct cifs_open_info_data * data) smb2_get_srv_inum() argument 1031 smb2_query_file_info(const unsigned int xid,struct cifs_tcon * tcon,struct cifsFileInfo * cfile,struct cifs_open_info_data * data) smb2_query_file_info() argument 1141 smb2_query_eas(const unsigned int xid,struct cifs_tcon * tcon,const unsigned char * path,const unsigned char * ea_name,char * ea_data,size_t buf_size,struct cifs_sb_info * cifs_sb) smb2_query_eas() argument 1190 smb2_set_ea(const unsigned int xid,struct cifs_tcon * tcon,const char * path,const char * ea_name,const void * ea_value,const __u16 ea_value_len,const struct nls_table * nls_codepage,struct cifs_sb_info * cifs_sb) smb2_set_ea() argument 1384 smb2_clear_stats(struct cifs_tcon * tcon) smb2_clear_stats() argument 1395 smb2_dump_share_caps(struct seq_file * m,struct cifs_tcon * tcon) smb2_dump_share_caps() argument 1428 smb2_print_stats(struct seq_file * m,struct cifs_tcon * tcon) smb2_print_stats() argument 1508 smb2_close_file(const unsigned int xid,struct cifs_tcon * tcon,struct cifs_fid * fid) smb2_close_file() argument 1515 smb2_close_getattr(const unsigned int xid,struct cifs_tcon * tcon,struct cifsFileInfo * cfile) smb2_close_getattr() argument 1554 SMB2_request_res_key(const unsigned int xid,struct cifs_tcon * tcon,u64 persistent_fid,u64 volatile_fid,struct copychunk_ioctl_req * pcchunk) SMB2_request_res_key() argument 1587 smb2_ioctl_query_info(const unsigned int xid,struct cifs_tcon * tcon,struct cifs_sb_info * cifs_sb,__le16 * path,int is_dir,unsigned long p) smb2_ioctl_query_info() argument 1856 calc_chunk_count(struct cifs_tcon * tcon,u64 bytes_left,u32 chunk_size) calc_chunk_count() argument 1901 struct cifs_tcon *tcon; __smb2_copychunk_range() local 2159 smb2_flush_file(const unsigned int xid,struct cifs_tcon * tcon,struct cifs_fid * fid) smb2_flush_file() argument 2207 smb2_set_sparse(const unsigned int xid,struct cifs_tcon * tcon,struct cifsFileInfo * cfile,struct inode * inode,__u8 setsparse) smb2_set_sparse() argument 2254 smb2_set_file_size(const unsigned int xid,struct cifs_tcon * tcon,struct cifsFileInfo * cfile,__u64 size,bool set_alloc) smb2_set_file_size() argument 2289 struct cifs_tcon *tcon = tlink_tcon(trgtfile->tlink); smb2_duplicate_extents() local 2368 smb2_set_compression(const unsigned int xid,struct cifs_tcon * tcon,struct cifsFileInfo * cfile,__u16 compression_state) smb2_set_compression() argument 2376 smb3_set_integrity(const unsigned int xid,struct cifs_tcon * tcon,struct cifsFileInfo * cfile) smb3_set_integrity() argument 2406 smb3_enum_snapshots(const unsigned int xid,struct cifs_tcon * tcon,struct cifsFileInfo * cfile,void __user * ioc_buf) smb3_enum_snapshots() argument 2506 struct cifs_tcon *tcon; smb3_notify() local 2579 smb2_query_dir_first(const unsigned int xid,struct cifs_tcon * tcon,const char * path,struct cifs_sb_info * cifs_sb,struct cifs_fid * fid,__u16 search_flags,struct cifs_search_info * srch_inf) smb2_query_dir_first() argument 2721 smb2_query_dir_next(const unsigned int xid,struct cifs_tcon * tcon,struct cifs_fid * fid,__u16 search_flags,struct cifs_search_info * srch_inf) smb2_query_dir_next() argument 2730 smb2_close_dir(const unsigned int xid,struct cifs_tcon * tcon,struct cifs_fid * fid) smb2_close_dir() argument 2802 struct cifs_tcon *tcon; smb2_is_network_name_deleted() local 2831 smb2_oplock_response(struct cifs_tcon * tcon,__u64 persistent_fid,__u64 volatile_fid,__u16 net_fid,struct cifsInodeInfo * cinode,unsigned int oplock) smb2_oplock_response() argument 2878 smb2_set_next_command(struct cifs_tcon * tcon,struct smb_rqst * rqst) smb2_set_next_command() argument 2928 smb2_should_replay(struct cifs_tcon * tcon,int * pretries,int * pcur_sleep) smb2_should_replay() argument 2955 smb2_query_info_compound(const unsigned int xid,struct cifs_tcon * tcon,const char * path,u32 desired_access,u32 class,u32 type,u32 output_len,struct kvec * rsp,int * buftype,struct cifs_sb_info * cifs_sb) smb2_query_info_compound() argument 3115 smb2_queryfs(const unsigned int xid,struct cifs_tcon * tcon,const char * path,struct cifs_sb_info * cifs_sb,struct kstatfs * buf) smb2_queryfs() argument 3152 smb311_queryfs(const unsigned int xid,struct cifs_tcon * tcon,const char * path,struct cifs_sb_info * cifs_sb,struct kstatfs * buf) smb311_queryfs() argument 3236 struct cifs_tcon *tcon; smb2_get_dfs_refer() local 3370 struct cifs_tcon *tcon; get_smb2_acl_by_path() local 3435 struct cifs_tcon *tcon; set_smb2_acl() local 3505 smb3_zero_data(struct file * file,struct cifs_tcon * tcon,loff_t offset,loff_t len,unsigned int xid) smb3_zero_data() argument 3523 smb3_zero_range(struct file * file,struct cifs_tcon * tcon,unsigned long long offset,unsigned long long len,bool keep_size) smb3_zero_range() argument 3607 smb3_punch_hole(struct file * file,struct cifs_tcon * tcon,loff_t offset,loff_t len) smb3_punch_hole() argument 3686 smb3_simple_fallocate_write_range(unsigned int xid,struct cifs_tcon * tcon,struct cifsFileInfo * cfile,loff_t off,loff_t len,char * buf) smb3_simple_fallocate_write_range() argument 3724 smb3_simple_fallocate_range(unsigned int xid,struct cifs_tcon * tcon,struct cifsFileInfo * cfile,loff_t off,loff_t len) smb3_simple_fallocate_range() argument 3825 smb3_simple_falloc(struct file * file,struct cifs_tcon * tcon,loff_t off,loff_t len,bool keep_size) smb3_simple_falloc() argument 4029 smb3_collapse_range(struct file * file,struct cifs_tcon * tcon,loff_t off,loff_t len) smb3_collapse_range() argument 4093 smb3_insert_range(struct file * file,struct cifs_tcon * tcon,loff_t off,loff_t len) smb3_insert_range() argument 4173 smb3_llseek(struct file * file,struct cifs_tcon * tcon,loff_t offset,int whence) smb3_llseek() argument 4257 smb3_fiemap(struct cifs_tcon * tcon,struct cifsFileInfo * cfile,struct fiemap_extent_info * fei,u64 start,u64 len) smb3_fiemap() argument 4332 smb3_fallocate(struct file * file,struct cifs_tcon * tcon,int mode,loff_t off,loff_t len) smb3_fallocate() argument 5530 __cifs_sfu_make_node(unsigned int xid,struct inode * inode,struct dentry * dentry,struct cifs_tcon * tcon,const char * full_path,umode_t mode,dev_t dev,const char * symname) __cifs_sfu_make_node() argument 5649 cifs_sfu_make_node(unsigned int xid,struct inode * inode,struct dentry * dentry,struct cifs_tcon * tcon,const char * full_path,umode_t mode,dev_t dev) cifs_sfu_make_node() argument 5676 smb2_make_node(unsigned int xid,struct inode * inode,struct dentry * dentry,struct cifs_tcon * tcon,const char * full_path,umode_t mode,dev_t dev) smb2_make_node() argument [all...] |
| H A D | cifssmb.c | 72 cifs_reconnect_tcon(struct cifs_tcon *tcon, int smb_command) in cifs_reconnect_tcon() argument 83 if (!tcon) in cifs_reconnect_tcon() 86 ses = tcon->ses; in cifs_reconnect_tcon() 93 spin_lock(&tcon->tc_lock); in cifs_reconnect_tcon() 94 if (tcon->status == TID_EXITING) { in cifs_reconnect_tcon() 96 spin_unlock(&tcon->tc_lock); in cifs_reconnect_tcon() 102 spin_unlock(&tcon->tc_lock); in cifs_reconnect_tcon() 105 rc = cifs_wait_for_server_reconnect(server, tcon->retry); in cifs_reconnect_tcon() 110 if (!cifs_chan_needs_reconnect(ses, server) && !tcon->need_reconnect) { in cifs_reconnect_tcon() 130 if (!tcon->retry) in cifs_reconnect_tcon() [all …]
|
| H A D | inode.c | 31 static void cifs_invalidate_cached_dir(struct cifs_tcon *tcon, in cifs_invalidate_cached_dir() argument 36 if (!tcon || !parent) in cifs_invalidate_cached_dir() 39 if (!open_cached_dir_by_dentry(tcon, parent, &parent_cfid)) { in cifs_invalidate_cached_dir() 61 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); in cifs_set_ops() local 86 if (tcon->ses->server->max_read < PAGE_SIZE + MAX_CIFS_HDR_SIZE) in cifs_set_ops() 91 if (tcon->ses->server->sign) in cifs_set_ops() 421 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); in cifs_get_file_info_unix() 433 rc = CIFSSMBUnixQFileInfo(xid, tcon, cfile->fid.netfid, &find_data); in cifs_get_file_info_unix() 457 struct cifs_tcon *tcon; in cifs_get_unix_fattr() 466 tcon in cifs_get_unix_fattr() 419 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); cifs_get_file_info_unix() local 455 struct cifs_tcon *tcon; cifs_get_unix_fattr() local 543 struct cifs_tcon *tcon; cifs_sfu_type() local 731 struct cifs_tcon *tcon; cifs_sfu_mode() local 853 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); smb311_posix_info_to_fattr() local 916 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); cifs_open_info_to_fattr() local 997 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); cifs_get_file_info() local 1088 cifs_backup_query_path_info(int xid,struct cifs_tcon * tcon,struct super_block * sb,const char * full_path,void ** resp_buf,FILE_ALL_INFO ** data) cifs_backup_query_path_info() argument 1126 cifs_set_fattr_ino(int xid,struct cifs_tcon * tcon,struct super_block * sb,struct inode ** inode,const char * full_path,struct cifs_open_info_data * data,struct cifs_fattr * fattr) cifs_set_fattr_ino() argument 1184 reparse_info_to_fattr(struct cifs_open_info_data * data,struct super_block * sb,const unsigned int xid,struct cifs_tcon * tcon,const char * full_path,struct cifs_fattr * fattr) reparse_info_to_fattr() argument 1293 struct cifs_tcon *tcon; cifs_get_fattr() local 1482 struct cifs_tcon *tcon; smb311_posix_get_fattr() local 1681 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); cifs_root_iget() local 1827 struct cifs_tcon *tcon; cifs_rename_pending_delete() local 1971 struct cifs_tcon *tcon; __cifs_unlink() local 2128 cifs_mkdir_qinfo(struct inode * parent,struct dentry * dentry,umode_t mode,const char * full_path,struct cifs_sb_info * cifs_sb,struct cifs_tcon * tcon,const unsigned int xid) global() argument 2223 cifs_posix_mkdir(struct inode * inode,struct dentry * dentry,umode_t mode,const char * full_path,struct cifs_sb_info * cifs_sb,struct cifs_tcon * tcon,const unsigned int xid) global() argument 2291 struct cifs_tcon *tcon; global() local 2376 struct cifs_tcon *tcon; global() local 2459 struct cifs_tcon *tcon; global() local 2543 struct cifs_tcon *tcon; global() local 2737 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); global() local 2944 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); global() local 3021 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); global() local 3105 struct cifs_tcon *tcon = NULL; global() local [all...] |
| H A D | cached_dir.c | 135 int open_cached_dir(unsigned int xid, struct cifs_tcon *tcon, in open_cached_dir() argument 164 if (tcon == NULL) in open_cached_dir() 167 ses = tcon->ses; in open_cached_dir() 168 cfids = tcon->cfids; in open_cached_dir() 187 cfid = find_or_create_cached_dir(cfids, path, lookup_only, tcon->max_cached_dirs); in open_cached_dir() 251 cfid->tcon = tcon; in open_cached_dir() 260 if (smb3_encryption_required(tcon)) in open_cached_dir() 275 .tcon = tcon, in open_cached_dir() 286 rc = SMB2_open_init(tcon, server, in open_cached_dir() 298 smb2_set_next_command(tcon, &rqst[0]); in open_cached_dir() [all …]
|
| H A D | file.c | 375 cifs_mark_open_files_invalid(struct cifs_tcon *tcon) in cifs_mark_open_files_invalid() argument 382 spin_lock(&tcon->tc_lock); in cifs_mark_open_files_invalid() 383 if (tcon->need_reconnect) in cifs_mark_open_files_invalid() 384 tcon->status = TID_NEED_RECON; in cifs_mark_open_files_invalid() 386 if (tcon->status != TID_NEED_RECON) { in cifs_mark_open_files_invalid() 387 spin_unlock(&tcon->tc_lock); in cifs_mark_open_files_invalid() 390 tcon->status = TID_IN_FILES_INVALIDATE; in cifs_mark_open_files_invalid() 391 spin_unlock(&tcon->tc_lock); in cifs_mark_open_files_invalid() 394 spin_lock(&tcon->open_file_lock); in cifs_mark_open_files_invalid() 395 list_for_each_safe(tmp, tmp1, &tcon in cifs_mark_open_files_invalid() 500 struct cifs_tcon *tcon; cifs_posix_open() local 554 cifs_nt_open(const char * full_path,struct inode * inode,struct cifs_sb_info * cifs_sb,struct cifs_tcon * tcon,unsigned int f_flags,__u32 * oplock,struct cifs_fid * fid,unsigned int xid,struct cifs_open_info_data * buf) cifs_nt_open() argument 678 struct cifs_tcon *tcon = tlink_tcon(tlink); cifs_new_fileinfo() local 810 struct cifs_tcon *tcon = tlink_tcon(cifs_file->tlink); serverclose_work() local 871 struct cifs_tcon *tcon = tlink_tcon(cifs_file->tlink); _cifsFileInfo_put() local 971 struct cifs_tcon *tcon; cifs_file_flush() local 999 struct cifs_tcon *tcon; cifs_do_truncate() local 1062 struct cifs_tcon *tcon; cifs_open() local 1245 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); cifs_relock_file() local 1278 struct cifs_tcon *tcon; cifs_reopen_file() local 1487 struct cifs_tcon *tcon; cifs_close() local 1544 cifs_reopen_persistent_handles(struct cifs_tcon * tcon) cifs_reopen_persistent_handles() argument 1579 struct cifs_tcon *tcon; cifs_closedir() local 1789 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); cifs_lock_add_if() local 1883 struct cifs_tcon *tcon; cifs_push_mandatory_locks() local 1975 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); cifs_push_posix_locks() local 2066 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); cifs_push_locks() local 2148 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); cifs_getlk() local 2221 cifs_get_hardlink_path(struct cifs_tcon * tcon,struct inode * inode,struct file * file) cifs_get_hardlink_path() argument 2267 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); cifs_unlock_range() local 2375 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); cifs_setlk() local 2469 struct cifs_tcon *tcon; cifs_flock() local 2518 struct cifs_tcon *tcon; cifs_lock() local 2808 cifs_get_writable_path(struct cifs_tcon * tcon,const char * name,struct inode * inode,int flags,struct cifsFileInfo ** ret_file) cifs_get_writable_path() argument 2845 cifs_get_readable_path(struct cifs_tcon * tcon,const char * name,struct cifsFileInfo ** ret_file) cifs_get_readable_path() argument 2914 struct cifs_tcon *tcon; cifs_fsync() local 3028 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); cifs_strict_writev() local 3142 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); cifs_strict_readv() local 3345 struct cifs_tcon *tcon; cifs_oplock_break() local [all...] |
| H A D | misc.c | 33 struct cifs_tcon *tcon; member 171 tconInfoFree(struct cifs_tcon *tcon, enum smb3_tcon_ref_trace trace) in tconInfoFree() argument 173 if (tcon == NULL) { in tconInfoFree() 177 trace_smb3_tcon_ref(tcon->debug_id, tcon->tc_count, trace); in tconInfoFree() 178 free_cached_dirs(tcon->cfids); in tconInfoFree() 180 kfree(tcon->nativeFileSystem); in tconInfoFree() 181 kfree_sensitive(tcon->password); in tconInfoFree() 182 kfree(tcon->origin_fullpath); in tconInfoFree() 183 kfree(tcon); in tconInfoFree() 286 struct cifs_tcon *tcon = NULL; in cifs_autodisable_serverino() local [all …]
|
| H A D | cifsglob.h | 371 unsigned int (*negotiate_wsize)(struct cifs_tcon *tcon, struct smb3_fs_context *ctx); 373 unsigned int (*negotiate_rsize)(struct cifs_tcon *tcon, struct smb3_fs_context *ctx); 400 struct cifs_tcon *tcon, 405 int (*query_file_info)(const unsigned int xid, struct cifs_tcon *tcon, 409 struct cifs_tcon *tcon, 415 int (*get_srv_inum)(const unsigned int xid, struct cifs_tcon *tcon, 436 umode_t mode, struct cifs_tcon *tcon, 440 struct cifs_tcon *tcon, const char *name, 457 struct cifs_tcon *tcon, 463 struct cifs_tcon *tcon, 1402 struct cifs_tcon *tcon; global() member 1479 struct cifs_tcon *tcon; global() member 1658 cifs_stats_bytes_written(struct cifs_tcon * tcon,unsigned int bytes) cifs_stats_bytes_written() argument 1668 cifs_stats_bytes_read(struct cifs_tcon * tcon,unsigned int bytes) cifs_stats_bytes_read() argument 1747 struct cifs_tcon *tcon; global() member 1821 struct cifs_tcon *tcon; global() member 2191 is_tcon_dfs(struct cifs_tcon * tcon) is_tcon_dfs() argument 2206 cifs_is_referral_server(struct cifs_tcon * tcon,const struct dfs_info3_param * ref) cifs_is_referral_server() argument 2322 CIFS_REPARSE_SUPPORT(tcon) global() argument [all...] |
| H A D | cifsproto.h | 82 struct cifs_tcon *tcon, int add_treename); 144 int cifs_get_writable_path(struct cifs_tcon *tcon, const char *name, 150 int cifs_get_readable_path(struct cifs_tcon *tcon, const char *name, 152 int cifs_get_hardlink_path(struct cifs_tcon *tcon, struct inode *inode, 242 void cifs_mark_open_files_invalid(struct cifs_tcon *tcon); 243 void cifs_reopen_persistent_handles(struct cifs_tcon *tcon); 265 void cifs_close_all_deferred_files(struct cifs_tcon *tcon); 268 void cifs_close_deferred_file_under_dentry(struct cifs_tcon *tcon, 277 void cifs_put_tcon(struct cifs_tcon *tcon, enum smb3_tcon_ref_trace trace); 288 int cifs_tree_connect(const unsigned int xid, struct cifs_tcon *tcon); [all …]
|
| H A D | reparse.c | 19 struct dentry *dentry, struct cifs_tcon *tcon, 24 struct dentry *dentry, struct cifs_tcon *tcon, 29 struct dentry *dentry, struct cifs_tcon *tcon, 39 struct dentry *dentry, struct cifs_tcon *tcon, in create_reparse_symlink() argument 44 return create_native_symlink(xid, inode, dentry, tcon, full_path, symname); in create_reparse_symlink() 46 return mknod_nfs(xid, inode, dentry, tcon, full_path, S_IFLNK, 0, symname); in create_reparse_symlink() 48 return mknod_wsl(xid, inode, dentry, tcon, full_path, S_IFLNK, 0, symname); in create_reparse_symlink() 55 struct dentry *dentry, struct cifs_tcon *tcon, in create_native_symlink() argument 256 new = tcon->ses->server->ops->create_reparse_inode( in create_native_symlink() 258 tcon, full_path, directory, in create_native_symlink() [all …]
|
| H A D | dfs_cache.c | 1115 static bool target_share_equal(struct cifs_tcon *tcon, const char *s1) in target_share_equal() argument 1117 struct TCP_Server_Info *server = tcon->ses->server; in target_share_equal() 1118 const char *s2 = &tcon->tree_name[1]; in target_share_equal() 1142 static bool is_ses_good(struct cifs_tcon *tcon, struct cifs_ses *ses) in is_ses_good() argument 1169 ipc = cifs_setup_ipc(ses, tcon->seal); in is_ses_good() 1198 static void refresh_ses_referral(struct cifs_tcon *tcon, struct cifs_ses *ses) in refresh_ses_referral() argument 1214 if (!is_ses_good(tcon, ses)) { in refresh_ses_referral() 1230 static int __refresh_tcon_referral(struct cifs_tcon *tcon, in __refresh_tcon_referral() argument 1246 if (target_share_equal(tcon, refs[i].node_name)) { in __refresh_tcon_referral() 1267 cifs_signal_cifsd_for_reconnect(tcon->ses->server, true); in __refresh_tcon_referral() [all …]
|
| H A D | readdir.c | 364 struct cifs_tcon *tcon; in _initiate_cifs_search() local 382 tcon = tlink_tcon(tlink); in _initiate_cifs_search() 385 tcon = tlink_tcon(cifsFile->tlink); in _initiate_cifs_search() 388 server = tcon->ses->server; in _initiate_cifs_search() 405 if (tcon->unix_ext) in _initiate_cifs_search() 407 else if (tcon->posix_extensions) in _initiate_cifs_search() 409 else if ((tcon->ses->capabilities & in _initiate_cifs_search() 410 tcon->ses->server->vals->cap_nt_find) == 0) { in _initiate_cifs_search() 422 rc = server->ops->query_dir_first(xid, tcon, full_path, cifs_sb, in _initiate_cifs_search() 696 find_cifs_entry(const unsigned int xid, struct cifs_tcon *tcon, loff_t pos, in find_cifs_entry() argument [all …]
|
| H A D | fs_context.h | 401 struct cifs_tcon *tcon) in cifs_negotiate_rsize() argument 405 size = umax(server->ops->negotiate_rsize(tcon, ctx), PAGE_SIZE); in cifs_negotiate_rsize() 413 struct cifs_tcon *tcon) in cifs_negotiate_wsize() argument 417 size = umax(server->ops->negotiate_wsize(tcon, ctx), PAGE_SIZE); in cifs_negotiate_wsize() 425 struct cifs_tcon *tcon) in cifs_negotiate_iosize() argument 427 cifs_negotiate_rsize(server, ctx, tcon); in cifs_negotiate_iosize() 428 cifs_negotiate_wsize(server, ctx, tcon); in cifs_negotiate_iosize()
|
| /linux/fs/smb/server/mgmt/ |
| H A D | tree_connect.c | 106 void ksmbd_tree_connect_put(struct ksmbd_tree_connect *tcon) in ksmbd_tree_connect_put() argument 108 if (atomic_dec_and_test(&tcon->refcount)) { in ksmbd_tree_connect_put() 109 ksmbd_share_config_put(tcon->share_conf); in ksmbd_tree_connect_put() 110 kfree(tcon); in ksmbd_tree_connect_put() 149 struct ksmbd_tree_connect *tcon; in ksmbd_tree_conn_lookup() local 152 tcon = xa_load(&sess->tree_conns, id); in ksmbd_tree_conn_lookup() 153 if (tcon) { in ksmbd_tree_conn_lookup() 154 if (tcon->t_state != TREE_CONNECTED) in ksmbd_tree_conn_lookup() 155 tcon = NULL; in ksmbd_tree_conn_lookup() 156 else if (!atomic_inc_not_zero(&tcon->refcount)) in ksmbd_tree_conn_lookup() [all …]
|
| /linux/drivers/gpu/drm/sun4i/ |
| H A D | Makefile | 21 sun4i-tcon-y += sun4i_crtc.o 22 sun4i-tcon-y += sun4i_tcon_dclk.o 23 sun4i-tcon-y += sun4i_lvds.o 24 sun4i-tcon-y += sun4i_tcon.o 25 sun4i-tcon-y += sun4i_rgb.o 28 obj-$(CONFIG_DRM_SUN4I) += sun4i-tcon.o
|
| /linux/drivers/gpu/drm/fsl-dcu/ |
| H A D | fsl_tcon.h | 24 void fsl_tcon_free(struct fsl_tcon *tcon); 26 void fsl_tcon_bypass_disable(struct fsl_tcon *tcon); 27 void fsl_tcon_bypass_enable(struct fsl_tcon *tcon);
|