Lines Matching refs:xid
387 smb2_negotiate(const unsigned int xid, struct cifs_ses *ses) in smb2_negotiate() argument
394 rc = SMB2_negotiate(xid, ses); in smb2_negotiate()
640 SMB3_request_interfaces(const unsigned int xid, struct cifs_tcon *tcon) in SMB3_request_interfaces() argument
649 rc = SMB2_ioctl(xid, tcon, NO_FILE_ID, NO_FILE_ID, in SMB3_request_interfaces()
743 int open_cached_dir(unsigned int xid, struct cifs_tcon *tcon, in open_cached_dir() argument
839 rc = compound_send_recv(xid, ses, server, in open_cached_dir()
868 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in open_cached_dir()
956 smb3_qfs_tcon(const unsigned int xid, struct cifs_tcon *tcon, in smb3_qfs_tcon() argument
973 rc = open_cached_dir(xid, tcon, "", cifs_sb, &cfid); in smb3_qfs_tcon()
977 rc = SMB2_open(xid, &oparms, &srch_path, &oplock, NULL, NULL, in smb3_qfs_tcon()
982 SMB3_request_interfaces(xid, tcon); in smb3_qfs_tcon()
984 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb3_qfs_tcon()
986 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb3_qfs_tcon()
988 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb3_qfs_tcon()
990 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb3_qfs_tcon()
993 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb3_qfs_tcon()
999 smb2_qfs_tcon(const unsigned int xid, struct cifs_tcon *tcon, in smb2_qfs_tcon() argument
1015 rc = SMB2_open(xid, &oparms, &srch_path, &oplock, NULL, NULL, in smb2_qfs_tcon()
1020 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb2_qfs_tcon()
1022 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb2_qfs_tcon()
1024 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb2_qfs_tcon()
1028 smb2_is_path_accessible(const unsigned int xid, struct cifs_tcon *tcon, in smb2_is_path_accessible() argument
1051 rc = SMB2_open(xid, &oparms, utf16_path, &oplock, NULL, NULL, NULL, in smb2_is_path_accessible()
1058 rc = SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb2_is_path_accessible()
1064 smb2_get_srv_inum(const unsigned int xid, struct cifs_tcon *tcon, in smb2_get_srv_inum() argument
1073 smb2_query_file_info(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_file_info() argument
1084 rc = SMB2_query_info(xid, tcon, fid->persistent_fid, fid->volatile_fid, in smb2_query_file_info()
1177 smb2_query_eas(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_eas() argument
1193 rc = smb2_query_info_compound(xid, tcon, utf16_path, in smb2_query_eas()
1233 smb2_set_ea(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_ea() argument
1275 rc = ses->server->ops->query_all_EAs(xid, tcon, path, in smb2_set_ea()
1286 rc = smb2_query_info_compound(xid, tcon, utf16_path, in smb2_set_ea()
1372 rc = compound_send_recv(xid, ses, server, in smb2_set_ea()
1519 smb2_close_file(const unsigned int xid, struct cifs_tcon *tcon, in smb2_close_file() argument
1522 SMB2_close(xid, tcon, fid->persistent_fid, fid->volatile_fid); in smb2_close_file()
1526 smb2_close_getattr(const unsigned int xid, struct cifs_tcon *tcon, in smb2_close_getattr() argument
1533 rc = __SMB2_close(xid, tcon, cfile->fid.persistent_fid, in smb2_close_getattr()
1565 SMB2_request_res_key(const unsigned int xid, struct cifs_tcon *tcon, in SMB2_request_res_key() argument
1573 rc = SMB2_ioctl(xid, tcon, persistent_fid, volatile_fid, in SMB2_request_res_key()
1608 smb2_ioctl_query_info(const unsigned int xid, in smb2_ioctl_query_info() argument
1771 rc = compound_send_recv(xid, ses, server, in smb2_ioctl_query_info()
1829 smb2_copychunk_range(const unsigned int xid, in smb2_copychunk_range() argument
1850 rc = SMB2_request_res_key(xid, tlink_tcon(srcfile->tlink), in smb2_copychunk_range()
1874 rc = SMB2_ioctl(xid, tcon, trgtfile->fid.persistent_fid, in smb2_copychunk_range()
1960 smb2_flush_file(const unsigned int xid, struct cifs_tcon *tcon, in smb2_flush_file() argument
1963 return SMB2_flush(xid, tcon, fid->persistent_fid, fid->volatile_fid); in smb2_flush_file()
1987 smb2_sync_read(const unsigned int xid, struct cifs_fid *pfid, in smb2_sync_read() argument
1993 return SMB2_read(xid, parms, bytes_read, buf, buf_type); in smb2_sync_read()
1997 smb2_sync_write(const unsigned int xid, struct cifs_fid *pfid, in smb2_sync_write() argument
2004 return SMB2_write(xid, parms, written, iov, nr_segs); in smb2_sync_write()
2008 static bool smb2_set_sparse(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_sparse() argument
2036 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb2_set_sparse()
2055 smb2_set_file_size(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_file_size() argument
2071 smb2_set_sparse(xid, tcon, cfile, inode, set_sparse); in smb2_set_file_size()
2074 return SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb2_set_file_size()
2079 smb2_duplicate_extents(const unsigned int xid, in smb2_duplicate_extents() argument
2105 rc = smb2_set_file_size(xid, tcon, trgtfile, dest_off + len, false); in smb2_duplicate_extents()
2118 rc = SMB2_ioctl(xid, tcon, trgtfile->fid.persistent_fid, in smb2_duplicate_extents()
2135 smb2_set_compression(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_compression() argument
2138 return SMB2_set_compression(xid, tcon, cfile->fid.persistent_fid, in smb2_set_compression()
2143 smb3_set_integrity(const unsigned int xid, struct cifs_tcon *tcon, in smb3_set_integrity() argument
2153 return SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_set_integrity()
2174 smb3_enum_snapshots(const unsigned int xid, struct cifs_tcon *tcon, in smb3_enum_snapshots() argument
2206 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_enum_snapshots()
2259 smb3_notify(const unsigned int xid, struct file *pfile, in smb3_notify() argument
2300 rc = SMB2_open(xid, &oparms, utf16_path, &oplock, NULL, NULL, NULL, in smb3_notify()
2305 rc = SMB2_change_notify(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb3_notify()
2308 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb3_notify()
2319 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()
2385 rc = compound_send_recv(xid, tcon->ses, server, in smb2_query_dir_first()
2403 SMB2_close(xid, tcon, fid->persistent_fid, fid->volatile_fid); in smb2_query_dir_first()
2405 trace_smb3_query_dir_err(xid, fid->persistent_fid, in smb2_query_dir_first()
2414 trace_smb3_query_dir_done(xid, fid->persistent_fid, in smb2_query_dir_first()
2424 trace_smb3_query_dir_err(xid, fid->persistent_fid, tcon->tid, in smb2_query_dir_first()
2430 trace_smb3_query_dir_done(xid, fid->persistent_fid, tcon->tid, in smb2_query_dir_first()
2443 smb2_query_dir_next(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_dir_next() argument
2447 return SMB2_query_directory(xid, tcon, fid->persistent_fid, in smb2_query_dir_next()
2452 smb2_close_dir(const unsigned int xid, struct cifs_tcon *tcon, in smb2_close_dir() argument
2455 return SMB2_close(xid, tcon, fid->persistent_fid, fid->volatile_fid); in smb2_close_dir()
2636 smb2_query_info_compound(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_info_compound() argument
2704 rc = compound_send_recv(xid, ses, server, in smb2_query_info_compound()
2729 smb2_queryfs(const unsigned int xid, struct cifs_tcon *tcon, in smb2_queryfs() argument
2740 rc = smb2_query_info_compound(xid, tcon, &utf16_path, in smb2_queryfs()
2766 smb311_queryfs(const unsigned int xid, struct cifs_tcon *tcon, in smb311_queryfs() argument
2776 return smb2_queryfs(xid, tcon, cifs_sb, buf); in smb311_queryfs()
2785 rc = SMB2_open(xid, &oparms, &srch_path, &oplock, NULL, NULL, in smb311_queryfs()
2790 rc = SMB311_posix_qfs_info(xid, tcon, fid.persistent_fid, in smb311_queryfs()
2793 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb311_queryfs()
2805 smb2_mand_lock(const unsigned int xid, struct cifsFileInfo *cfile, __u64 offset, in smb2_mand_lock() argument
2810 return SMB2_lock(xid, tlink_tcon(cfile->tlink), in smb2_mand_lock()
2834 smb2_get_dfs_refer(const unsigned int xid, struct cifs_ses *ses, in smb2_get_dfs_refer() argument
2894 rc = SMB2_ioctl(xid, tcon, NO_FILE_ID, NO_FILE_ID, in smb2_get_dfs_refer()
3031 smb2_query_symlink(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_symlink() argument
3127 rc = compound_send_recv(xid, tcon->ses, server, in smb2_query_symlink()
3220 smb2_query_reparse_tag(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_reparse_tag() argument
3308 rc = compound_send_recv(xid, tcon->ses, server, in smb2_query_reparse_tag()
3351 unsigned int xid; in get_smb2_acl_by_fid() local
3358 xid = get_xid(); in get_smb2_acl_by_fid()
3361 rc = SMB2_query_acl(xid, tlink_tcon(tlink), cifsfid->persistent_fid, in get_smb2_acl_by_fid()
3364 free_xid(xid); in get_smb2_acl_by_fid()
3381 unsigned int xid; in get_smb2_acl_by_path() local
3394 xid = get_xid(); in get_smb2_acl_by_path()
3399 free_xid(xid); in get_smb2_acl_by_path()
3418 rc = SMB2_open(xid, &oparms, utf16_path, &oplock, NULL, NULL, NULL, in get_smb2_acl_by_path()
3422 rc = SMB2_query_acl(xid, tlink_tcon(tlink), fid.persistent_fid, in get_smb2_acl_by_path()
3425 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in get_smb2_acl_by_path()
3429 free_xid(xid); in get_smb2_acl_by_path()
3442 unsigned int xid; in set_smb2_acl() local
3456 xid = get_xid(); in set_smb2_acl()
3468 free_xid(xid); in set_smb2_acl()
3480 rc = SMB2_open(xid, &oparms, utf16_path, &oplock, NULL, NULL, in set_smb2_acl()
3484 rc = SMB2_set_acl(xid, tlink_tcon(tlink), fid.persistent_fid, in set_smb2_acl()
3486 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in set_smb2_acl()
3490 free_xid(xid); in set_smb2_acl()
3522 unsigned int xid; in smb3_zero_range() local
3525 xid = get_xid(); in smb3_zero_range()
3530 trace_smb3_zero_enter(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_zero_range()
3543 trace_smb3_zero_err(xid, cfile->fid.persistent_fid, in smb3_zero_range()
3545 free_xid(xid); in smb3_zero_range()
3554 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_zero_range()
3567 rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb3_zero_range()
3572 free_xid(xid); in smb3_zero_range()
3574 trace_smb3_zero_err(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_zero_range()
3577 trace_smb3_zero_done(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_zero_range()
3589 unsigned int xid; in smb3_punch_hole() local
3592 xid = get_xid(); in smb3_punch_hole()
3598 if (!smb2_set_sparse(xid, tcon, cfile, inode, set_sparse)) { in smb3_punch_hole()
3600 free_xid(xid); in smb3_punch_hole()
3616 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_punch_hole()
3621 free_xid(xid); in smb3_punch_hole()
3626 static int smb3_simple_fallocate_write_range(unsigned int xid, in smb3_simple_fallocate_write_range() argument
3651 rc = SMB2_write(xid, &io_parms, &nbytes, iov, 1); in smb3_simple_fallocate_write_range()
3663 static int smb3_simple_fallocate_range(unsigned int xid, in smb3_simple_fallocate_range() argument
3676 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_simple_fallocate_range()
3697 rc = smb3_simple_fallocate_write_range(xid, tcon, in smb3_simple_fallocate_range()
3716 rc = smb3_simple_fallocate_write_range(xid, tcon, in smb3_simple_fallocate_range()
3754 unsigned int xid; in smb3_simple_falloc() local
3757 xid = get_xid(); in smb3_simple_falloc()
3762 trace_smb3_falloc_enter(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_simple_falloc()
3767 trace_smb3_falloc_err(xid, cfile->fid.persistent_fid, in smb3_simple_falloc()
3769 free_xid(xid); in smb3_simple_falloc()
3782 smb2_set_sparse(xid, tcon, cfile, inode, false); in smb3_simple_falloc()
3785 rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb3_simple_falloc()
3840 rc = smb3_simple_fallocate_range(xid, tcon, cfile, in smb3_simple_falloc()
3859 smb2_set_sparse(xid, tcon, cfile, inode, false); in smb3_simple_falloc()
3864 trace_smb3_falloc_err(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_simple_falloc()
3867 trace_smb3_falloc_done(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_simple_falloc()
3870 free_xid(xid); in smb3_simple_falloc()
3878 unsigned int xid; in smb3_collapse_range() local
3882 xid = get_xid(); in smb3_collapse_range()
3890 rc = smb2_copychunk_range(xid, cfile, cfile, off + len, in smb3_collapse_range()
3896 rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb3_collapse_range()
3903 free_xid(xid); in smb3_collapse_range()
3911 unsigned int xid; in smb3_insert_range() local
3916 xid = get_xid(); in smb3_insert_range()
3926 rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb3_insert_range()
3931 rc = smb2_copychunk_range(xid, cfile, cfile, off, count, off + len); in smb3_insert_range()
3941 free_xid(xid); in smb3_insert_range()
3953 unsigned int xid; in smb3_llseek() local
3964 xid = get_xid(); in smb3_llseek()
3975 smb2_flush_file(xid, tcon, &wrcfile->fid); in smb3_llseek()
3988 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_llseek()
4021 free_xid(xid); in smb3_llseek()
4033 unsigned int xid; in smb3_fiemap() local
4043 xid = get_xid(); in smb3_fiemap()
4048 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_fiemap()
4099 free_xid(xid); in smb3_fiemap()
5265 smb2_make_node(unsigned int xid, struct inode *inode, in smb2_make_node() argument
5320 rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, buf); in smb2_make_node()
5340 rc = tcon->ses->server->ops->sync_write(xid, &fid, &io_parms, in smb2_make_node()
5346 rc = tcon->ses->server->ops->sync_write(xid, &fid, &io_parms, in smb2_make_node()
5349 tcon->ses->server->ops->close(xid, tcon, &fid); in smb2_make_node()