Lines Matching defs:xid
329 smb2_negotiate(const unsigned int xid, struct cifs_ses *ses)
334 rc = SMB2_negotiate(xid, ses);
580 SMB3_request_interfaces(const unsigned int xid, struct cifs_tcon *tcon)
589 rc = SMB2_ioctl(xid, tcon, NO_FILE_ID, NO_FILE_ID,
672 int open_shroot(unsigned int xid, struct cifs_tcon *tcon,
755 rc = compound_send_recv(xid, ses, server,
786 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid);
851 smb3_qfs_tcon(const unsigned int xid, struct cifs_tcon *tcon,
871 rc = SMB2_open(xid, &oparms, &srch_path, &oplock, NULL, NULL,
874 rc = open_shroot(xid, tcon, cifs_sb, &cfid);
881 SMB3_request_interfaces(xid, tcon);
883 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid,
885 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid,
887 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid,
889 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid,
892 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid);
898 smb2_qfs_tcon(const unsigned int xid, struct cifs_tcon *tcon,
914 rc = SMB2_open(xid, &oparms, &srch_path, &oplock, NULL, NULL,
919 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid,
921 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid,
923 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid);
927 smb2_is_path_accessible(const unsigned int xid, struct cifs_tcon *tcon,
950 rc = SMB2_open(xid, &oparms, utf16_path, &oplock, NULL, NULL, NULL,
957 rc = SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid);
963 smb2_get_srv_inum(const unsigned int xid, struct cifs_tcon *tcon,
972 smb2_query_file_info(const unsigned int xid, struct cifs_tcon *tcon,
983 rc = SMB2_query_info(xid, tcon, fid->persistent_fid, fid->volatile_fid,
1077 smb2_query_eas(const unsigned int xid, struct cifs_tcon *tcon,
1093 rc = smb2_query_info_compound(xid, tcon, utf16_path,
1133 smb2_set_ea(const unsigned int xid, struct cifs_tcon *tcon,
1175 rc = ses->server->ops->query_all_EAs(xid, tcon, path,
1186 rc = smb2_query_info_compound(xid, tcon, utf16_path,
1276 rc = compound_send_recv(xid, ses, server,
1423 smb2_close_file(const unsigned int xid, struct cifs_tcon *tcon,
1426 SMB2_close(xid, tcon, fid->persistent_fid, fid->volatile_fid);
1430 smb2_close_getattr(const unsigned int xid, struct cifs_tcon *tcon,
1437 rc = __SMB2_close(xid, tcon, cfile->fid.persistent_fid,
1469 SMB2_request_res_key(const unsigned int xid, struct cifs_tcon *tcon,
1477 rc = SMB2_ioctl(xid, tcon, persistent_fid, volatile_fid,
1508 smb2_ioctl_query_info(const unsigned int xid,
1675 rc = compound_send_recv(xid, ses, server,
1739 smb2_copychunk_range(const unsigned int xid,
1768 rc = SMB2_request_res_key(xid, tlink_tcon(srcfile->tlink),
1792 rc = SMB2_ioctl(xid, tcon, trgtfile->fid.persistent_fid,
1877 smb2_flush_file(const unsigned int xid, struct cifs_tcon *tcon,
1880 return SMB2_flush(xid, tcon, fid->persistent_fid, fid->volatile_fid);
1904 smb2_sync_read(const unsigned int xid, struct cifs_fid *pfid,
1910 return SMB2_read(xid, parms, bytes_read, buf, buf_type);
1914 smb2_sync_write(const unsigned int xid, struct cifs_fid *pfid,
1921 return SMB2_write(xid, parms, written, iov, nr_segs);
1925 static bool smb2_set_sparse(const unsigned int xid, struct cifs_tcon *tcon,
1953 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid,
1971 smb2_set_file_size(const unsigned int xid, struct cifs_tcon *tcon,
1987 smb2_set_sparse(xid, tcon, cfile, inode, set_sparse);
1990 return SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid,
1995 smb2_duplicate_extents(const unsigned int xid,
2021 rc = smb2_set_file_size(xid, tcon, trgtfile, dest_off + len, false);
2034 rc = SMB2_ioctl(xid, tcon, trgtfile->fid.persistent_fid,
2050 smb2_set_compression(const unsigned int xid, struct cifs_tcon *tcon,
2053 return SMB2_set_compression(xid, tcon, cfile->fid.persistent_fid,
2058 smb3_set_integrity(const unsigned int xid, struct cifs_tcon *tcon,
2068 return SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid,
2088 smb3_enum_snapshots(const unsigned int xid, struct cifs_tcon *tcon,
2120 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid,
2172 smb3_notify(const unsigned int xid, struct file *pfile,
2212 rc = SMB2_open(xid, &oparms, utf16_path, &oplock, NULL, NULL, NULL,
2217 rc = SMB2_change_notify(xid, tcon, fid.persistent_fid, fid.volatile_fid,
2220 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid);
2231 smb2_query_dir_first(const unsigned int xid, struct cifs_tcon *tcon,
2286 rc = SMB2_query_directory_init(xid, tcon, server,
2295 rc = compound_send_recv(xid, tcon->ses, server,
2310 SMB2_close(xid, tcon, fid->persistent_fid, fid->volatile_fid);
2312 trace_smb3_query_dir_err(xid, fid->persistent_fid,
2321 trace_smb3_query_dir_done(xid, fid->persistent_fid,
2331 trace_smb3_query_dir_err(xid, fid->persistent_fid, tcon->tid,
2337 trace_smb3_query_dir_done(xid, fid->persistent_fid, tcon->tid,
2350 smb2_query_dir_next(const unsigned int xid, struct cifs_tcon *tcon,
2354 return SMB2_query_directory(xid, tcon, fid->persistent_fid,
2359 smb2_close_dir(const unsigned int xid, struct cifs_tcon *tcon,
2362 return SMB2_close(xid, tcon, fid->persistent_fid, fid->volatile_fid);
2505 smb2_query_info_compound(const unsigned int xid, struct cifs_tcon *tcon,
2573 rc = compound_send_recv(xid, ses, server,
2598 smb2_queryfs(const unsigned int xid, struct cifs_tcon *tcon,
2609 rc = smb2_query_info_compound(xid, tcon, &utf16_path,
2635 smb311_queryfs(const unsigned int xid, struct cifs_tcon *tcon,
2645 return smb2_queryfs(xid, tcon, cifs_sb, buf);
2654 rc = SMB2_open(xid, &oparms, &srch_path, &oplock, NULL, NULL,
2659 rc = SMB311_posix_qfs_info(xid, tcon, fid.persistent_fid,
2662 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid);
2674 smb2_mand_lock(const unsigned int xid, struct cifsFileInfo *cfile, __u64 offset,
2679 return SMB2_lock(xid, tlink_tcon(cfile->tlink),
2703 smb2_get_dfs_refer(const unsigned int xid, struct cifs_ses *ses,
2762 rc = SMB2_ioctl(xid, tcon, NO_FILE_ID, NO_FILE_ID,
2895 smb2_query_symlink(const unsigned int xid, struct cifs_tcon *tcon,
2990 rc = compound_send_recv(xid, tcon->ses, server,
3083 smb2_query_reparse_tag(const unsigned int xid, struct cifs_tcon *tcon,
3170 rc = compound_send_recv(xid, tcon->ses, server,
3219 unsigned int xid;
3226 xid = get_xid();
3229 rc = SMB2_query_acl(xid, tlink_tcon(tlink), cifsfid->persistent_fid,
3231 free_xid(xid);
3248 unsigned int xid;
3261 xid = get_xid();
3266 free_xid(xid);
3282 rc = SMB2_open(xid, &oparms, utf16_path, &oplock, NULL, NULL, NULL,
3286 rc = SMB2_query_acl(xid, tlink_tcon(tlink), fid.persistent_fid,
3288 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid);
3292 free_xid(xid);
3305 unsigned int xid;
3319 xid = get_xid();
3329 free_xid(xid);
3341 rc = SMB2_open(xid, &oparms, utf16_path, &oplock, NULL, NULL,
3345 rc = SMB2_set_acl(xid, tlink_tcon(tlink), fid.persistent_fid,
3347 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid);
3351 free_xid(xid);
3383 unsigned int xid;
3386 xid = get_xid();
3391 trace_smb3_zero_enter(xid, cfile->fid.persistent_fid, tcon->tid,
3404 trace_smb3_zero_err(xid, cfile->fid.persistent_fid,
3406 free_xid(xid);
3415 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid,
3428 rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid,
3433 free_xid(xid);
3435 trace_smb3_zero_err(xid, cfile->fid.persistent_fid, tcon->tid,
3438 trace_smb3_zero_done(xid, cfile->fid.persistent_fid, tcon->tid,
3450 unsigned int xid;
3453 xid = get_xid();
3458 if (!smb2_set_sparse(xid, tcon, cfile, inode, set_sparse)) {
3474 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid,
3481 free_xid(xid);
3485 static int smb3_simple_fallocate_write_range(unsigned int xid,
3510 rc = SMB2_write(xid, &io_parms, &nbytes, iov, 1);
3522 static int smb3_simple_fallocate_range(unsigned int xid,
3535 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid,
3556 rc = smb3_simple_fallocate_write_range(xid, tcon,
3575 rc = smb3_simple_fallocate_write_range(xid, tcon,
3613 unsigned int xid;
3616 xid = get_xid();
3621 trace_smb3_falloc_enter(xid, cfile->fid.persistent_fid, tcon->tid,
3626 trace_smb3_falloc_err(xid, cfile->fid.persistent_fid,
3628 free_xid(xid);
3641 smb2_set_sparse(xid, tcon, cfile, inode, false);
3644 rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid,
3699 rc = smb3_simple_fallocate_range(xid, tcon, cfile,
3718 smb2_set_sparse(xid, tcon, cfile, inode, false);
3723 trace_smb3_falloc_err(xid, cfile->fid.persistent_fid, tcon->tid,
3726 trace_smb3_falloc_done(xid, cfile->fid.persistent_fid, tcon->tid,
3729 free_xid(xid);
3741 unsigned int xid;
3752 xid = get_xid();
3763 smb2_flush_file(xid, tcon, &wrcfile->fid);
3776 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid,
3809 free_xid(xid);
3821 unsigned int xid;
3831 xid = get_xid();
3836 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid,
3887 free_xid(xid);
5032 smb2_make_node(unsigned int xid, struct inode *inode,
5087 rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, buf);
5107 rc = tcon->ses->server->ops->sync_write(xid, &fid, &io_parms,
5113 rc = tcon->ses->server->ops->sync_write(xid, &fid, &io_parms,
5116 tcon->ses->server->ops->close(xid, tcon, &fid);