Lines Matching refs:xid

420 smb2_negotiate(const unsigned int xid,  in smb2_negotiate()  argument
429 rc = SMB2_negotiate(xid, ses, server); in smb2_negotiate()
758 SMB3_request_interfaces(const unsigned int xid, struct cifs_tcon *tcon, bool in_mount) in SMB3_request_interfaces() argument
772 rc = SMB2_ioctl(xid, tcon, NO_FILE_ID, NO_FILE_ID, in SMB3_request_interfaces()
805 smb3_qfs_tcon(const unsigned int xid, struct cifs_tcon *tcon, in smb3_qfs_tcon() argument
824 rc = open_cached_dir(xid, tcon, "", cifs_sb, false, &cfid); in smb3_qfs_tcon()
828 rc = SMB2_open(xid, &oparms, &srch_path, &oplock, NULL, NULL, in smb3_qfs_tcon()
833 SMB3_request_interfaces(xid, tcon, true /* called during mount */); in smb3_qfs_tcon()
835 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb3_qfs_tcon()
837 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb3_qfs_tcon()
839 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb3_qfs_tcon()
841 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb3_qfs_tcon()
844 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb3_qfs_tcon()
850 smb2_qfs_tcon(const unsigned int xid, struct cifs_tcon *tcon, in smb2_qfs_tcon() argument
868 rc = SMB2_open(xid, &oparms, &srch_path, &oplock, NULL, NULL, in smb2_qfs_tcon()
873 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb2_qfs_tcon()
875 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb2_qfs_tcon()
877 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb2_qfs_tcon()
881 smb2_is_path_accessible(const unsigned int xid, struct cifs_tcon *tcon, in smb2_is_path_accessible() argument
894 rc = open_cached_dir(xid, tcon, full_path, cifs_sb, true, &cfid); in smb2_is_path_accessible()
916 rc = SMB2_open(xid, &oparms, utf16_path, &oplock, NULL, NULL, in smb2_is_path_accessible()
925 rc2 = cifs_inval_name_dfs_link_error(xid, tcon, cifs_sb, in smb2_is_path_accessible()
940 rc = SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb2_is_path_accessible()
948 static int smb2_get_srv_inum(const unsigned int xid, struct cifs_tcon *tcon, in smb2_get_srv_inum() argument
956 static int smb2_query_file_info(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_file_info() argument
966 return SMB2_query_info(xid, tcon, fid->persistent_fid, fid->volatile_fid, &data->fi); in smb2_query_file_info()
1055 smb2_query_eas(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_eas() argument
1066 rc = smb2_query_info_compound(xid, tcon, path, in smb2_query_eas()
1104 smb2_set_ea(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_ea() argument
1149 rc = ses->server->ops->query_all_EAs(xid, tcon, path, in smb2_set_ea()
1160 rc = smb2_query_info_compound(xid, tcon, path, in smb2_set_ea()
1247 rc = compound_send_recv(xid, ses, server, in smb2_set_ea()
1396 smb2_close_file(const unsigned int xid, struct cifs_tcon *tcon, in smb2_close_file() argument
1399 SMB2_close(xid, tcon, fid->persistent_fid, fid->volatile_fid); in smb2_close_file()
1403 smb2_close_getattr(const unsigned int xid, struct cifs_tcon *tcon, in smb2_close_getattr() argument
1410 rc = __SMB2_close(xid, tcon, cfile->fid.persistent_fid, in smb2_close_getattr()
1445 SMB2_request_res_key(const unsigned int xid, struct cifs_tcon *tcon, in SMB2_request_res_key() argument
1453 rc = SMB2_ioctl(xid, tcon, persistent_fid, volatile_fid, in SMB2_request_res_key()
1477 smb2_ioctl_query_info(const unsigned int xid, in smb2_ioctl_query_info() argument
1644 rc = compound_send_recv(xid, ses, server, in smb2_ioctl_query_info()
1708 smb2_copychunk_range(const unsigned int xid, in smb2_copychunk_range() argument
1728 rc = SMB2_request_res_key(xid, tlink_tcon(srcfile->tlink), in smb2_copychunk_range()
1752 rc = SMB2_ioctl(xid, tcon, trgtfile->fid.persistent_fid, in smb2_copychunk_range()
1837 smb2_flush_file(const unsigned int xid, struct cifs_tcon *tcon, in smb2_flush_file() argument
1840 return SMB2_flush(xid, tcon, fid->persistent_fid, fid->volatile_fid); in smb2_flush_file()
1864 smb2_sync_read(const unsigned int xid, struct cifs_fid *pfid, in smb2_sync_read() argument
1870 return SMB2_read(xid, parms, bytes_read, buf, buf_type); in smb2_sync_read()
1874 smb2_sync_write(const unsigned int xid, struct cifs_fid *pfid, in smb2_sync_write() argument
1881 return SMB2_write(xid, parms, written, iov, nr_segs); in smb2_sync_write()
1885 static bool smb2_set_sparse(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_sparse() argument
1913 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb2_set_sparse()
1931 smb2_set_file_size(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_file_size() argument
1947 smb2_set_sparse(xid, tcon, cfile, inode, set_sparse); in smb2_set_file_size()
1950 return SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb2_set_file_size()
1955 smb2_duplicate_extents(const unsigned int xid, in smb2_duplicate_extents() argument
1981 rc = smb2_set_file_size(xid, tcon, trgtfile, dest_off + len, false); in smb2_duplicate_extents()
1994 rc = SMB2_ioctl(xid, tcon, trgtfile->fid.persistent_fid, in smb2_duplicate_extents()
2010 smb2_set_compression(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_compression() argument
2013 return SMB2_set_compression(xid, tcon, cfile->fid.persistent_fid, in smb2_set_compression()
2018 smb3_set_integrity(const unsigned int xid, struct cifs_tcon *tcon, in smb3_set_integrity() argument
2028 return SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_set_integrity()
2048 smb3_enum_snapshots(const unsigned int xid, struct cifs_tcon *tcon, in smb3_enum_snapshots() argument
2080 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_enum_snapshots()
2132 smb3_notify(const unsigned int xid, struct file *pfile, in smb3_notify() argument
2186 rc = SMB2_open(xid, &oparms, utf16_path, &oplock, NULL, NULL, NULL, in smb3_notify()
2191 rc = SMB2_change_notify(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb3_notify()
2195 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb3_notify()
2215 smb2_query_dir_first(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_dir_first() argument
2273 rc = SMB2_query_directory_init(xid, tcon, server, in smb2_query_dir_first()
2283 rc = compound_send_recv(xid, tcon->ses, server, in smb2_query_dir_first()
2301 SMB2_close(xid, tcon, fid->persistent_fid, fid->volatile_fid); in smb2_query_dir_first()
2303 trace_smb3_query_dir_err(xid, fid->persistent_fid, in smb2_query_dir_first()
2312 trace_smb3_query_dir_done(xid, fid->persistent_fid, in smb2_query_dir_first()
2322 trace_smb3_query_dir_err(xid, fid->persistent_fid, tcon->tid, in smb2_query_dir_first()
2328 trace_smb3_query_dir_done(xid, fid->persistent_fid, tcon->tid, in smb2_query_dir_first()
2341 smb2_query_dir_next(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_dir_next() argument
2345 return SMB2_query_directory(xid, tcon, fid->persistent_fid, in smb2_query_dir_next()
2350 smb2_close_dir(const unsigned int xid, struct cifs_tcon *tcon, in smb2_close_dir() argument
2353 return SMB2_close(xid, tcon, fid->persistent_fid, fid->volatile_fid); in smb2_close_dir()
2538 smb2_query_info_compound(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_info_compound() argument
2580 open_cached_dir(xid, tcon, path, cifs_sb, false, in smb2_query_info_compound()
2638 rc = compound_send_recv(xid, ses, server, in smb2_query_info_compound()
2642 rc = compound_send_recv(xid, ses, server, in smb2_query_info_compound()
2673 smb2_queryfs(const unsigned int xid, struct cifs_tcon *tcon, in smb2_queryfs() argument
2683 rc = smb2_query_info_compound(xid, tcon, "", in smb2_queryfs()
2704 trace_smb3_qfs_done(xid, tcon->tid, tcon->ses->Suid, tcon->tree_name, rc); in smb2_queryfs()
2710 smb311_queryfs(const unsigned int xid, struct cifs_tcon *tcon, in smb311_queryfs() argument
2720 return smb2_queryfs(xid, tcon, cifs_sb, buf); in smb311_queryfs()
2731 rc = SMB2_open(xid, &oparms, &srch_path, &oplock, NULL, NULL, in smb311_queryfs()
2736 rc = SMB311_posix_qfs_info(xid, tcon, fid.persistent_fid, in smb311_queryfs()
2739 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb311_queryfs()
2751 smb2_mand_lock(const unsigned int xid, struct cifsFileInfo *cfile, __u64 offset, in smb2_mand_lock() argument
2756 return SMB2_lock(xid, tlink_tcon(cfile->tlink), in smb2_mand_lock()
2780 smb2_get_dfs_refer(const unsigned int xid, struct cifs_ses *ses, in smb2_get_dfs_refer() argument
2840 rc = SMB2_ioctl(xid, tcon, NO_FILE_ID, NO_FILE_ID, in smb2_get_dfs_refer()
2996 static int smb2_query_reparse_point(const unsigned int xid, in smb2_query_reparse_point() argument
3086 rc = compound_send_recv(xid, tcon->ses, server, in smb2_query_reparse_point()
3140 unsigned int xid; in get_smb2_acl_by_fid() local
3147 xid = get_xid(); in get_smb2_acl_by_fid()
3150 rc = SMB2_query_acl(xid, tlink_tcon(tlink), cifsfid->persistent_fid, in get_smb2_acl_by_fid()
3153 free_xid(xid); in get_smb2_acl_by_fid()
3170 unsigned int xid; in get_smb2_acl_by_path() local
3183 xid = get_xid(); in get_smb2_acl_by_path()
3188 free_xid(xid); in get_smb2_acl_by_path()
3211 rc = SMB2_open(xid, &oparms, utf16_path, &oplock, NULL, NULL, NULL, in get_smb2_acl_by_path()
3215 rc = SMB2_query_acl(xid, tlink_tcon(tlink), fid.persistent_fid, in get_smb2_acl_by_path()
3218 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in get_smb2_acl_by_path()
3222 free_xid(xid); in get_smb2_acl_by_path()
3235 unsigned int xid; in set_smb2_acl() local
3249 xid = get_xid(); in set_smb2_acl()
3261 free_xid(xid); in set_smb2_acl()
3274 rc = SMB2_open(xid, &oparms, utf16_path, &oplock, NULL, NULL, in set_smb2_acl()
3278 rc = SMB2_set_acl(xid, tlink_tcon(tlink), fid.persistent_fid, in set_smb2_acl()
3280 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in set_smb2_acl()
3284 free_xid(xid); in set_smb2_acl()
3308 loff_t offset, loff_t len, unsigned int xid) in smb3_zero_data() argument
3318 return SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_zero_data()
3334 unsigned int xid; in smb3_zero_range() local
3337 xid = get_xid(); in smb3_zero_range()
3339 trace_smb3_zero_enter(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_zero_range()
3356 rc = smb3_zero_data(file, tcon, offset, len, xid); in smb3_zero_range()
3366 rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb3_zero_range()
3377 free_xid(xid); in smb3_zero_range()
3379 trace_smb3_zero_err(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_zero_range()
3382 trace_smb3_zero_done(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_zero_range()
3394 unsigned int xid; in smb3_punch_hole() local
3397 xid = get_xid(); in smb3_punch_hole()
3402 if (!smb2_set_sparse(xid, tcon, cfile, inode, set_sparse)) { in smb3_punch_hole()
3419 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_punch_hole()
3427 free_xid(xid); in smb3_punch_hole()
3431 static int smb3_simple_fallocate_write_range(unsigned int xid, in smb3_simple_fallocate_write_range() argument
3456 rc = SMB2_write(xid, &io_parms, &nbytes, iov, 1); in smb3_simple_fallocate_write_range()
3468 static int smb3_simple_fallocate_range(unsigned int xid, in smb3_simple_fallocate_range() argument
3481 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_simple_fallocate_range()
3502 rc = smb3_simple_fallocate_write_range(xid, tcon, in smb3_simple_fallocate_range()
3521 rc = smb3_simple_fallocate_write_range(xid, tcon, in smb3_simple_fallocate_range()
3559 unsigned int xid; in smb3_simple_falloc() local
3562 xid = get_xid(); in smb3_simple_falloc()
3567 trace_smb3_falloc_enter(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_simple_falloc()
3572 trace_smb3_falloc_err(xid, cfile->fid.persistent_fid, in smb3_simple_falloc()
3574 free_xid(xid); in smb3_simple_falloc()
3587 smb2_set_sparse(xid, tcon, cfile, inode, false); in smb3_simple_falloc()
3590 rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb3_simple_falloc()
3645 rc = smb3_simple_fallocate_range(xid, tcon, cfile, in smb3_simple_falloc()
3664 smb2_set_sparse(xid, tcon, cfile, inode, false); in smb3_simple_falloc()
3669 trace_smb3_falloc_err(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_simple_falloc()
3672 trace_smb3_falloc_done(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_simple_falloc()
3675 free_xid(xid); in smb3_simple_falloc()
3683 unsigned int xid; in smb3_collapse_range() local
3690 xid = get_xid(); in smb3_collapse_range()
3708 rc = smb2_copychunk_range(xid, cfile, cfile, off + len, in smb3_collapse_range()
3714 rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb3_collapse_range()
3728 free_xid(xid); in smb3_collapse_range()
3736 unsigned int xid; in smb3_insert_range() local
3742 xid = get_xid(); in smb3_insert_range()
3761 rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb3_insert_range()
3769 rc = smb2_copychunk_range(xid, cfile, cfile, off, count, off + len); in smb3_insert_range()
3773 rc = smb3_zero_data(file, tcon, off, len, xid); in smb3_insert_range()
3782 free_xid(xid); in smb3_insert_range()
3794 unsigned int xid; in smb3_llseek() local
3805 xid = get_xid(); in smb3_llseek()
3816 smb2_flush_file(xid, tcon, &wrcfile->fid); in smb3_llseek()
3829 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_llseek()
3862 free_xid(xid); in smb3_llseek()
3874 unsigned int xid; in smb3_fiemap() local
3884 xid = get_xid(); in smb3_fiemap()
3889 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_fiemap()
3940 free_xid(xid); in smb3_fiemap()
5106 smb2_make_node(unsigned int xid, struct inode *inode, in smb2_make_node() argument
5156 rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, &buf); in smb2_make_node()
5176 rc = tcon->ses->server->ops->sync_write(xid, &fid, &io_parms, in smb2_make_node()
5182 rc = tcon->ses->server->ops->sync_write(xid, &fid, &io_parms, in smb2_make_node()
5188 rc = tcon->ses->server->ops->sync_write(xid, &fid, &io_parms, in smb2_make_node()
5191 tcon->ses->server->ops->close(xid, tcon, &fid); in smb2_make_node()