Lines Matching refs:xid

457 smb2_negotiate(const unsigned int xid,  in smb2_negotiate()  argument
466 rc = SMB2_negotiate(xid, ses, server); in smb2_negotiate()
795 SMB3_request_interfaces(const unsigned int xid, struct cifs_tcon *tcon, bool in_mount) in SMB3_request_interfaces() argument
809 rc = SMB2_ioctl(xid, tcon, NO_FILE_ID, NO_FILE_ID, in SMB3_request_interfaces()
842 smb3_qfs_tcon(const unsigned int xid, struct cifs_tcon *tcon, in smb3_qfs_tcon() argument
861 rc = open_cached_dir(xid, tcon, "", cifs_sb, false, &cfid); in smb3_qfs_tcon()
865 rc = SMB2_open(xid, &oparms, &srch_path, &oplock, NULL, NULL, in smb3_qfs_tcon()
870 SMB3_request_interfaces(xid, tcon, true /* called during mount */); in smb3_qfs_tcon()
872 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb3_qfs_tcon()
874 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb3_qfs_tcon()
876 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb3_qfs_tcon()
878 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb3_qfs_tcon()
881 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb3_qfs_tcon()
887 smb2_qfs_tcon(const unsigned int xid, struct cifs_tcon *tcon, in smb2_qfs_tcon() argument
905 rc = SMB2_open(xid, &oparms, &srch_path, &oplock, NULL, NULL, in smb2_qfs_tcon()
910 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb2_qfs_tcon()
912 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb2_qfs_tcon()
914 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb2_qfs_tcon()
918 smb2_is_path_accessible(const unsigned int xid, struct cifs_tcon *tcon, in smb2_is_path_accessible() argument
931 rc = open_cached_dir(xid, tcon, full_path, cifs_sb, true, &cfid); in smb2_is_path_accessible()
953 rc = SMB2_open(xid, &oparms, utf16_path, &oplock, NULL, NULL, in smb2_is_path_accessible()
962 rc2 = cifs_inval_name_dfs_link_error(xid, tcon, cifs_sb, in smb2_is_path_accessible()
977 rc = SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb2_is_path_accessible()
985 static int smb2_get_srv_inum(const unsigned int xid, struct cifs_tcon *tcon, in smb2_get_srv_inum() argument
993 static int smb2_query_file_info(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_file_info() argument
1003 return SMB2_query_info(xid, tcon, fid->persistent_fid, fid->volatile_fid, &data->fi); in smb2_query_file_info()
1092 smb2_query_eas(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_eas() argument
1103 rc = smb2_query_info_compound(xid, tcon, path, in smb2_query_eas()
1141 smb2_set_ea(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_ea() argument
1194 rc = ses->server->ops->query_all_EAs(xid, tcon, path, in smb2_set_ea()
1205 rc = smb2_query_info_compound(xid, tcon, path, in smb2_set_ea()
1299 rc = compound_send_recv(xid, ses, server, in smb2_set_ea()
1453 smb2_close_file(const unsigned int xid, struct cifs_tcon *tcon, in smb2_close_file() argument
1456 return SMB2_close(xid, tcon, fid->persistent_fid, fid->volatile_fid); in smb2_close_file()
1460 smb2_close_getattr(const unsigned int xid, struct cifs_tcon *tcon, in smb2_close_getattr() argument
1467 rc = __SMB2_close(xid, tcon, cfile->fid.persistent_fid, in smb2_close_getattr()
1503 SMB2_request_res_key(const unsigned int xid, struct cifs_tcon *tcon, in SMB2_request_res_key() argument
1511 rc = SMB2_ioctl(xid, tcon, persistent_fid, volatile_fid, in SMB2_request_res_key()
1535 smb2_ioctl_query_info(const unsigned int xid, in smb2_ioctl_query_info() argument
1716 rc = compound_send_recv(xid, ses, server, in smb2_ioctl_query_info()
1785 smb2_copychunk_range(const unsigned int xid, in smb2_copychunk_range() argument
1805 rc = SMB2_request_res_key(xid, tlink_tcon(srcfile->tlink), in smb2_copychunk_range()
1820 trace_smb3_copychunk_enter(xid, srcfile->fid.volatile_fid, in smb2_copychunk_range()
1833 rc = SMB2_ioctl(xid, tcon, trgtfile->fid.persistent_fid, in smb2_copychunk_range()
1875 trace_smb3_copychunk_done(xid, srcfile->fid.volatile_fid, in smb2_copychunk_range()
1921 smb2_flush_file(const unsigned int xid, struct cifs_tcon *tcon, in smb2_flush_file() argument
1924 return SMB2_flush(xid, tcon, fid->persistent_fid, fid->volatile_fid); in smb2_flush_file()
1948 smb2_sync_read(const unsigned int xid, struct cifs_fid *pfid, in smb2_sync_read() argument
1954 return SMB2_read(xid, parms, bytes_read, buf, buf_type); in smb2_sync_read()
1958 smb2_sync_write(const unsigned int xid, struct cifs_fid *pfid, in smb2_sync_write() argument
1965 return SMB2_write(xid, parms, written, iov, nr_segs); in smb2_sync_write()
1969 static bool smb2_set_sparse(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_sparse() argument
1997 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb2_set_sparse()
2015 smb2_set_file_size(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_file_size() argument
2030 smb2_set_sparse(xid, tcon, cfile, inode, set_sparse); in smb2_set_file_size()
2033 return SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb2_set_file_size()
2038 smb2_duplicate_extents(const unsigned int xid, in smb2_duplicate_extents() argument
2061 trace_smb3_clone_enter(xid, srcfile->fid.volatile_fid, in smb2_duplicate_extents()
2066 rc = smb2_set_file_size(xid, tcon, trgtfile, dest_off + len, false); in smb2_duplicate_extents()
2080 rc = SMB2_ioctl(xid, tcon, trgtfile->fid.persistent_fid, in smb2_duplicate_extents()
2093 trace_smb3_clone_err(xid, srcfile->fid.volatile_fid, in smb2_duplicate_extents()
2098 trace_smb3_clone_done(xid, srcfile->fid.volatile_fid, in smb2_duplicate_extents()
2105 smb2_set_compression(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_compression() argument
2108 return SMB2_set_compression(xid, tcon, cfile->fid.persistent_fid, in smb2_set_compression()
2113 smb3_set_integrity(const unsigned int xid, struct cifs_tcon *tcon, in smb3_set_integrity() argument
2123 return SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_set_integrity()
2143 smb3_enum_snapshots(const unsigned int xid, struct cifs_tcon *tcon, in smb3_enum_snapshots() argument
2175 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_enum_snapshots()
2227 smb3_notify(const unsigned int xid, struct file *pfile, in smb3_notify() argument
2281 rc = SMB2_open(xid, &oparms, utf16_path, &oplock, NULL, NULL, NULL, in smb3_notify()
2286 rc = SMB2_change_notify(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb3_notify()
2290 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb3_notify()
2310 smb2_query_dir_first(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_dir_first() argument
2375 rc = SMB2_query_directory_init(xid, tcon, server, in smb2_query_dir_first()
2389 rc = compound_send_recv(xid, tcon->ses, server, in smb2_query_dir_first()
2404 SMB2_close(xid, tcon, fid->persistent_fid, fid->volatile_fid); in smb2_query_dir_first()
2406 trace_smb3_query_dir_err(xid, fid->persistent_fid, in smb2_query_dir_first()
2415 trace_smb3_query_dir_done(xid, fid->persistent_fid, in smb2_query_dir_first()
2425 trace_smb3_query_dir_err(xid, fid->persistent_fid, tcon->tid, in smb2_query_dir_first()
2431 trace_smb3_query_dir_done(xid, fid->persistent_fid, tcon->tid, in smb2_query_dir_first()
2449 smb2_query_dir_next(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_dir_next() argument
2453 return SMB2_query_directory(xid, tcon, fid->persistent_fid, in smb2_query_dir_next()
2458 smb2_close_dir(const unsigned int xid, struct cifs_tcon *tcon, in smb2_close_dir() argument
2461 return SMB2_close(xid, tcon, fid->persistent_fid, fid->volatile_fid); in smb2_close_dir()
2685 smb2_query_info_compound(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_info_compound() argument
2734 open_cached_dir(xid, tcon, path, cifs_sb, false, in smb2_query_info_compound()
2801 rc = compound_send_recv(xid, ses, server, in smb2_query_info_compound()
2805 rc = compound_send_recv(xid, ses, server, in smb2_query_info_compound()
2841 smb2_queryfs(const unsigned int xid, struct cifs_tcon *tcon, in smb2_queryfs() argument
2851 rc = smb2_query_info_compound(xid, tcon, path, in smb2_queryfs()
2872 trace_smb3_qfs_done(xid, tcon->tid, tcon->ses->Suid, tcon->tree_name, rc); in smb2_queryfs()
2878 smb311_queryfs(const unsigned int xid, struct cifs_tcon *tcon, in smb311_queryfs() argument
2888 return smb2_queryfs(xid, tcon, path, cifs_sb, buf); in smb311_queryfs()
2903 rc = SMB2_open(xid, &oparms, utf16_path, &oplock, NULL, NULL, in smb311_queryfs()
2909 rc = SMB311_posix_qfs_info(xid, tcon, fid.persistent_fid, in smb311_queryfs()
2912 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb311_queryfs()
2924 smb2_mand_lock(const unsigned int xid, struct cifsFileInfo *cfile, __u64 offset, in smb2_mand_lock() argument
2929 return SMB2_lock(xid, tlink_tcon(cfile->tlink), in smb2_mand_lock()
2953 smb2_get_dfs_refer(const unsigned int xid, struct cifs_ses *ses, in smb2_get_dfs_refer() argument
3016 rc = SMB2_ioctl(xid, tcon, NO_FILE_ID, NO_FILE_ID, in smb2_get_dfs_refer()
3064 unsigned int xid; in get_smb2_acl_by_fid() local
3071 xid = get_xid(); in get_smb2_acl_by_fid()
3074 rc = SMB2_query_acl(xid, tlink_tcon(tlink), cifsfid->persistent_fid, in get_smb2_acl_by_fid()
3077 free_xid(xid); in get_smb2_acl_by_fid()
3094 unsigned int xid; in get_smb2_acl_by_path() local
3107 xid = get_xid(); in get_smb2_acl_by_path()
3112 free_xid(xid); in get_smb2_acl_by_path()
3135 rc = SMB2_open(xid, &oparms, utf16_path, &oplock, NULL, NULL, NULL, in get_smb2_acl_by_path()
3139 rc = SMB2_query_acl(xid, tlink_tcon(tlink), fid.persistent_fid, in get_smb2_acl_by_path()
3142 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in get_smb2_acl_by_path()
3146 free_xid(xid); in get_smb2_acl_by_path()
3159 unsigned int xid; in set_smb2_acl() local
3173 xid = get_xid(); in set_smb2_acl()
3185 free_xid(xid); in set_smb2_acl()
3198 rc = SMB2_open(xid, &oparms, utf16_path, &oplock, NULL, NULL, in set_smb2_acl()
3202 rc = SMB2_set_acl(xid, tlink_tcon(tlink), fid.persistent_fid, in set_smb2_acl()
3204 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in set_smb2_acl()
3208 free_xid(xid); in set_smb2_acl()
3232 loff_t offset, loff_t len, unsigned int xid) in smb3_zero_data() argument
3242 return SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_zero_data()
3260 unsigned int xid; in smb3_zero_range() local
3262 xid = get_xid(); in smb3_zero_range()
3264 trace_smb3_zero_enter(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_zero_range()
3291 rc = smb3_zero_data(file, tcon, offset, len, xid); in smb3_zero_range()
3300 rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb3_zero_range()
3314 free_xid(xid); in smb3_zero_range()
3316 trace_smb3_zero_err(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_zero_range()
3319 trace_smb3_zero_done(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_zero_range()
3332 unsigned int xid; in smb3_punch_hole() local
3335 xid = get_xid(); in smb3_punch_hole()
3340 if (!smb2_set_sparse(xid, tcon, cfile, inode, set_sparse)) { in smb3_punch_hole()
3357 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_punch_hole()
3376 rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb3_punch_hole()
3386 free_xid(xid); in smb3_punch_hole()
3390 static int smb3_simple_fallocate_write_range(unsigned int xid, in smb3_simple_fallocate_write_range() argument
3415 rc = SMB2_write(xid, &io_parms, &nbytes, iov, 1); in smb3_simple_fallocate_write_range()
3427 static int smb3_simple_fallocate_range(unsigned int xid, in smb3_simple_fallocate_range() argument
3440 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_simple_fallocate_range()
3461 rc = smb3_simple_fallocate_write_range(xid, tcon, in smb3_simple_fallocate_range()
3480 rc = smb3_simple_fallocate_write_range(xid, tcon, in smb3_simple_fallocate_range()
3518 unsigned int xid; in smb3_simple_falloc() local
3521 xid = get_xid(); in smb3_simple_falloc()
3526 trace_smb3_falloc_enter(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_simple_falloc()
3531 trace_smb3_falloc_err(xid, cfile->fid.persistent_fid, in smb3_simple_falloc()
3533 free_xid(xid); in smb3_simple_falloc()
3546 smb2_set_sparse(xid, tcon, cfile, inode, false); in smb3_simple_falloc()
3549 rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb3_simple_falloc()
3604 rc = smb3_simple_fallocate_range(xid, tcon, cfile, in smb3_simple_falloc()
3623 smb2_set_sparse(xid, tcon, cfile, inode, false); in smb3_simple_falloc()
3628 trace_smb3_falloc_err(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_simple_falloc()
3631 trace_smb3_falloc_done(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_simple_falloc()
3634 free_xid(xid); in smb3_simple_falloc()
3642 unsigned int xid; in smb3_collapse_range() local
3649 xid = get_xid(); in smb3_collapse_range()
3668 rc = smb2_copychunk_range(xid, cfile, cfile, off + len, in smb3_collapse_range()
3674 rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb3_collapse_range()
3689 free_xid(xid); in smb3_collapse_range()
3697 unsigned int xid; in smb3_insert_range() local
3703 xid = get_xid(); in smb3_insert_range()
3722 rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb3_insert_range()
3731 rc = smb2_copychunk_range(xid, cfile, cfile, off, count, off + len); in smb3_insert_range()
3736 rc = smb3_zero_data(file, tcon, off, len, xid); in smb3_insert_range()
3745 free_xid(xid); in smb3_insert_range()
3757 unsigned int xid; in smb3_llseek() local
3768 xid = get_xid(); in smb3_llseek()
3779 smb2_flush_file(xid, tcon, &wrcfile->fid); in smb3_llseek()
3792 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_llseek()
3825 free_xid(xid); in smb3_llseek()
3837 unsigned int xid; in smb3_fiemap() local
3847 xid = get_xid(); in smb3_fiemap()
3852 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_fiemap()
3903 free_xid(xid); in smb3_fiemap()
5099 int __cifs_sfu_make_node(unsigned int xid, struct inode *inode, in __cifs_sfu_make_node() argument
5175 rc = server->ops->open(xid, &oparms, &oplock, NULL); in __cifs_sfu_make_node()
5188 rc = server->ops->sync_write(xid, &fid, &io_parms, in __cifs_sfu_make_node()
5193 server->ops->close(xid, tcon, &fid); in __cifs_sfu_make_node()
5200 int cifs_sfu_make_node(unsigned int xid, struct inode *inode, in cifs_sfu_make_node() argument
5207 rc = __cifs_sfu_make_node(xid, inode, dentry, tcon, in cifs_sfu_make_node()
5214 inode->i_sb, xid); in cifs_sfu_make_node()
5217 inode->i_sb, xid); in cifs_sfu_make_node()
5220 inode->i_sb, xid, NULL); in cifs_sfu_make_node()
5227 static int smb2_make_node(unsigned int xid, struct inode *inode, in smb2_make_node() argument
5241 rc = cifs_sfu_make_node(xid, inode, dentry, tcon, in smb2_make_node()
5244 rc = smb2_mknod_reparse(xid, inode, dentry, tcon, in smb2_make_node()