Lines Matching refs:xid
329 smb2_negotiate(const unsigned int xid, struct cifs_ses *ses) in smb2_negotiate() argument
334 rc = SMB2_negotiate(xid, ses); in smb2_negotiate()
580 SMB3_request_interfaces(const unsigned int xid, struct cifs_tcon *tcon) in SMB3_request_interfaces() argument
589 rc = SMB2_ioctl(xid, tcon, NO_FILE_ID, NO_FILE_ID, in SMB3_request_interfaces()
672 int open_shroot(unsigned int xid, struct cifs_tcon *tcon, in open_shroot() argument
755 rc = compound_send_recv(xid, ses, server, in open_shroot()
786 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in open_shroot()
851 smb3_qfs_tcon(const unsigned int xid, struct cifs_tcon *tcon, in smb3_qfs_tcon() argument
870 rc = SMB2_open(xid, &oparms, &srch_path, &oplock, NULL, NULL, in smb3_qfs_tcon()
873 rc = open_shroot(xid, tcon, cifs_sb, &cfid); in smb3_qfs_tcon()
880 SMB3_request_interfaces(xid, tcon); in smb3_qfs_tcon()
882 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb3_qfs_tcon()
884 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb3_qfs_tcon()
886 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb3_qfs_tcon()
888 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb3_qfs_tcon()
891 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb3_qfs_tcon()
897 smb2_qfs_tcon(const unsigned int xid, struct cifs_tcon *tcon, in smb2_qfs_tcon() argument
913 rc = SMB2_open(xid, &oparms, &srch_path, &oplock, NULL, NULL, in smb2_qfs_tcon()
918 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb2_qfs_tcon()
920 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb2_qfs_tcon()
922 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb2_qfs_tcon()
926 smb2_is_path_accessible(const unsigned int xid, struct cifs_tcon *tcon, in smb2_is_path_accessible() argument
949 rc = SMB2_open(xid, &oparms, utf16_path, &oplock, NULL, NULL, NULL, in smb2_is_path_accessible()
956 rc = SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb2_is_path_accessible()
962 smb2_get_srv_inum(const unsigned int xid, struct cifs_tcon *tcon, in smb2_get_srv_inum() argument
971 smb2_query_file_info(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_file_info() argument
982 rc = SMB2_query_info(xid, tcon, fid->persistent_fid, fid->volatile_fid, in smb2_query_file_info()
1076 smb2_query_eas(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_eas() argument
1092 rc = smb2_query_info_compound(xid, tcon, utf16_path, in smb2_query_eas()
1132 smb2_set_ea(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_ea() argument
1174 rc = ses->server->ops->query_all_EAs(xid, tcon, path, in smb2_set_ea()
1185 rc = smb2_query_info_compound(xid, tcon, utf16_path, in smb2_set_ea()
1275 rc = compound_send_recv(xid, ses, server, in smb2_set_ea()
1422 smb2_close_file(const unsigned int xid, struct cifs_tcon *tcon, in smb2_close_file() argument
1425 SMB2_close(xid, tcon, fid->persistent_fid, fid->volatile_fid); in smb2_close_file()
1429 smb2_close_getattr(const unsigned int xid, struct cifs_tcon *tcon, in smb2_close_getattr() argument
1436 rc = __SMB2_close(xid, tcon, cfile->fid.persistent_fid, in smb2_close_getattr()
1468 SMB2_request_res_key(const unsigned int xid, struct cifs_tcon *tcon, in SMB2_request_res_key() argument
1476 rc = SMB2_ioctl(xid, tcon, persistent_fid, volatile_fid, in SMB2_request_res_key()
1507 smb2_ioctl_query_info(const unsigned int xid, in smb2_ioctl_query_info() argument
1674 rc = compound_send_recv(xid, ses, server, in smb2_ioctl_query_info()
1738 smb2_copychunk_range(const unsigned int xid, in smb2_copychunk_range() argument
1767 rc = SMB2_request_res_key(xid, tlink_tcon(srcfile->tlink), in smb2_copychunk_range()
1791 rc = SMB2_ioctl(xid, tcon, trgtfile->fid.persistent_fid, in smb2_copychunk_range()
1876 smb2_flush_file(const unsigned int xid, struct cifs_tcon *tcon, in smb2_flush_file() argument
1879 return SMB2_flush(xid, tcon, fid->persistent_fid, fid->volatile_fid); in smb2_flush_file()
1903 smb2_sync_read(const unsigned int xid, struct cifs_fid *pfid, in smb2_sync_read() argument
1909 return SMB2_read(xid, parms, bytes_read, buf, buf_type); in smb2_sync_read()
1913 smb2_sync_write(const unsigned int xid, struct cifs_fid *pfid, in smb2_sync_write() argument
1920 return SMB2_write(xid, parms, written, iov, nr_segs); in smb2_sync_write()
1924 static bool smb2_set_sparse(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_sparse() argument
1952 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb2_set_sparse()
1970 smb2_set_file_size(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_file_size() argument
1986 smb2_set_sparse(xid, tcon, cfile, inode, set_sparse); in smb2_set_file_size()
1989 return SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb2_set_file_size()
1994 smb2_duplicate_extents(const unsigned int xid, in smb2_duplicate_extents() argument
2020 rc = smb2_set_file_size(xid, tcon, trgtfile, dest_off + len, false); in smb2_duplicate_extents()
2033 rc = SMB2_ioctl(xid, tcon, trgtfile->fid.persistent_fid, in smb2_duplicate_extents()
2049 smb2_set_compression(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_compression() argument
2052 return SMB2_set_compression(xid, tcon, cfile->fid.persistent_fid, in smb2_set_compression()
2057 smb3_set_integrity(const unsigned int xid, struct cifs_tcon *tcon, in smb3_set_integrity() argument
2067 return SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_set_integrity()
2087 smb3_enum_snapshots(const unsigned int xid, struct cifs_tcon *tcon, in smb3_enum_snapshots() argument
2119 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_enum_snapshots()
2171 smb3_notify(const unsigned int xid, struct file *pfile, in smb3_notify() argument
2211 rc = SMB2_open(xid, &oparms, utf16_path, &oplock, NULL, NULL, NULL, in smb3_notify()
2216 rc = SMB2_change_notify(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb3_notify()
2219 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb3_notify()
2230 smb2_query_dir_first(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_dir_first() argument
2285 rc = SMB2_query_directory_init(xid, tcon, server, in smb2_query_dir_first()
2294 rc = compound_send_recv(xid, tcon->ses, server, in smb2_query_dir_first()
2309 SMB2_close(xid, tcon, fid->persistent_fid, fid->volatile_fid); in smb2_query_dir_first()
2311 trace_smb3_query_dir_err(xid, fid->persistent_fid, in smb2_query_dir_first()
2320 trace_smb3_query_dir_done(xid, fid->persistent_fid, in smb2_query_dir_first()
2330 trace_smb3_query_dir_err(xid, fid->persistent_fid, tcon->tid, in smb2_query_dir_first()
2336 trace_smb3_query_dir_done(xid, fid->persistent_fid, tcon->tid, in smb2_query_dir_first()
2349 smb2_query_dir_next(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_dir_next() argument
2353 return SMB2_query_directory(xid, tcon, fid->persistent_fid, in smb2_query_dir_next()
2358 smb2_close_dir(const unsigned int xid, struct cifs_tcon *tcon, in smb2_close_dir() argument
2361 return SMB2_close(xid, tcon, fid->persistent_fid, fid->volatile_fid); in smb2_close_dir()
2504 smb2_query_info_compound(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_info_compound() argument
2572 rc = compound_send_recv(xid, ses, server, in smb2_query_info_compound()
2597 smb2_queryfs(const unsigned int xid, struct cifs_tcon *tcon, in smb2_queryfs() argument
2608 rc = smb2_query_info_compound(xid, tcon, &utf16_path, in smb2_queryfs()
2634 smb311_queryfs(const unsigned int xid, struct cifs_tcon *tcon, in smb311_queryfs() argument
2644 return smb2_queryfs(xid, tcon, cifs_sb, buf); in smb311_queryfs()
2653 rc = SMB2_open(xid, &oparms, &srch_path, &oplock, NULL, NULL, in smb311_queryfs()
2658 rc = SMB311_posix_qfs_info(xid, tcon, fid.persistent_fid, in smb311_queryfs()
2661 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb311_queryfs()
2673 smb2_mand_lock(const unsigned int xid, struct cifsFileInfo *cfile, __u64 offset, in smb2_mand_lock() argument
2678 return SMB2_lock(xid, tlink_tcon(cfile->tlink), in smb2_mand_lock()
2702 smb2_get_dfs_refer(const unsigned int xid, struct cifs_ses *ses, in smb2_get_dfs_refer() argument
2761 rc = SMB2_ioctl(xid, tcon, NO_FILE_ID, NO_FILE_ID, in smb2_get_dfs_refer()
2892 smb2_query_symlink(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_symlink() argument
2987 rc = compound_send_recv(xid, tcon->ses, server, in smb2_query_symlink()
3080 smb2_query_reparse_tag(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_reparse_tag() argument
3167 rc = compound_send_recv(xid, tcon->ses, server, in smb2_query_reparse_tag()
3210 unsigned int xid; in get_smb2_acl_by_fid() local
3217 xid = get_xid(); in get_smb2_acl_by_fid()
3220 rc = SMB2_query_acl(xid, tlink_tcon(tlink), cifsfid->persistent_fid, in get_smb2_acl_by_fid()
3222 free_xid(xid); in get_smb2_acl_by_fid()
3239 unsigned int xid; in get_smb2_acl_by_path() local
3252 xid = get_xid(); in get_smb2_acl_by_path()
3257 free_xid(xid); in get_smb2_acl_by_path()
3273 rc = SMB2_open(xid, &oparms, utf16_path, &oplock, NULL, NULL, NULL, in get_smb2_acl_by_path()
3277 rc = SMB2_query_acl(xid, tlink_tcon(tlink), fid.persistent_fid, in get_smb2_acl_by_path()
3279 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in get_smb2_acl_by_path()
3283 free_xid(xid); in get_smb2_acl_by_path()
3296 unsigned int xid; in set_smb2_acl() local
3310 xid = get_xid(); in set_smb2_acl()
3320 free_xid(xid); in set_smb2_acl()
3332 rc = SMB2_open(xid, &oparms, utf16_path, &oplock, NULL, NULL, in set_smb2_acl()
3336 rc = SMB2_set_acl(xid, tlink_tcon(tlink), fid.persistent_fid, in set_smb2_acl()
3338 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in set_smb2_acl()
3342 free_xid(xid); in set_smb2_acl()
3374 unsigned int xid; in smb3_zero_range() local
3377 xid = get_xid(); in smb3_zero_range()
3382 trace_smb3_zero_enter(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_zero_range()
3395 trace_smb3_zero_err(xid, cfile->fid.persistent_fid, in smb3_zero_range()
3397 free_xid(xid); in smb3_zero_range()
3406 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_zero_range()
3419 rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb3_zero_range()
3424 free_xid(xid); in smb3_zero_range()
3426 trace_smb3_zero_err(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_zero_range()
3429 trace_smb3_zero_done(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_zero_range()
3441 unsigned int xid; in smb3_punch_hole() local
3444 xid = get_xid(); in smb3_punch_hole()
3449 if (!smb2_set_sparse(xid, tcon, cfile, inode, set_sparse)) { in smb3_punch_hole()
3465 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_punch_hole()
3472 free_xid(xid); in smb3_punch_hole()
3476 static int smb3_simple_fallocate_write_range(unsigned int xid, in smb3_simple_fallocate_write_range() argument
3501 rc = SMB2_write(xid, &io_parms, &nbytes, iov, 1); in smb3_simple_fallocate_write_range()
3513 static int smb3_simple_fallocate_range(unsigned int xid, in smb3_simple_fallocate_range() argument
3526 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_simple_fallocate_range()
3547 rc = smb3_simple_fallocate_write_range(xid, tcon, in smb3_simple_fallocate_range()
3566 rc = smb3_simple_fallocate_write_range(xid, tcon, in smb3_simple_fallocate_range()
3604 unsigned int xid; in smb3_simple_falloc() local
3607 xid = get_xid(); in smb3_simple_falloc()
3612 trace_smb3_falloc_enter(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_simple_falloc()
3617 trace_smb3_falloc_err(xid, cfile->fid.persistent_fid, in smb3_simple_falloc()
3619 free_xid(xid); in smb3_simple_falloc()
3632 smb2_set_sparse(xid, tcon, cfile, inode, false); in smb3_simple_falloc()
3635 rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb3_simple_falloc()
3690 rc = smb3_simple_fallocate_range(xid, tcon, cfile, in smb3_simple_falloc()
3709 smb2_set_sparse(xid, tcon, cfile, inode, false); in smb3_simple_falloc()
3714 trace_smb3_falloc_err(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_simple_falloc()
3717 trace_smb3_falloc_done(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_simple_falloc()
3720 free_xid(xid); in smb3_simple_falloc()
3732 unsigned int xid; in smb3_llseek() local
3743 xid = get_xid(); in smb3_llseek()
3754 smb2_flush_file(xid, tcon, &wrcfile->fid); in smb3_llseek()
3767 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_llseek()
3800 free_xid(xid); in smb3_llseek()
3812 unsigned int xid; in smb3_fiemap() local
3822 xid = get_xid(); in smb3_fiemap()
3827 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_fiemap()
3878 free_xid(xid); in smb3_fiemap()
5030 smb2_make_node(unsigned int xid, struct inode *inode, in smb2_make_node() argument
5085 rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, buf); in smb2_make_node()
5105 rc = tcon->ses->server->ops->sync_write(xid, &fid, &io_parms, in smb2_make_node()
5111 rc = tcon->ses->server->ops->sync_write(xid, &fid, &io_parms, in smb2_make_node()
5114 tcon->ses->server->ops->close(xid, tcon, &fid); in smb2_make_node()