Lines Matching refs:tcon

230 smb2_negotiate_wsize(struct cifs_tcon *tcon, struct smb_vol *volume_info)  in smb2_negotiate_wsize()  argument
232 struct TCP_Server_Info *server = tcon->ses->server; in smb2_negotiate_wsize()
246 smb2_negotiate_rsize(struct cifs_tcon *tcon, struct smb_vol *volume_info) in smb2_negotiate_rsize() argument
248 struct TCP_Server_Info *server = tcon->ses->server; in smb2_negotiate_rsize()
263 SMB3_request_interfaces(const unsigned int xid, struct cifs_tcon *tcon) in SMB3_request_interfaces() argument
269 rc = SMB2_ioctl(xid, tcon, NO_FILE_ID, NO_FILE_ID, in SMB3_request_interfaces()
291 smb3_qfs_tcon(const unsigned int xid, struct cifs_tcon *tcon) in smb3_qfs_tcon() argument
299 oparms.tcon = tcon; in smb3_qfs_tcon()
311 SMB3_request_interfaces(xid, tcon); in smb3_qfs_tcon()
314 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb3_qfs_tcon()
316 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb3_qfs_tcon()
318 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb3_qfs_tcon()
320 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb3_qfs_tcon()
325 smb2_qfs_tcon(const unsigned int xid, struct cifs_tcon *tcon) in smb2_qfs_tcon() argument
333 oparms.tcon = tcon; in smb2_qfs_tcon()
344 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb2_qfs_tcon()
346 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb2_qfs_tcon()
348 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb2_qfs_tcon()
353 smb2_is_path_accessible(const unsigned int xid, struct cifs_tcon *tcon, in smb2_is_path_accessible() argument
366 oparms.tcon = tcon; in smb2_is_path_accessible()
379 rc = SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb2_is_path_accessible()
385 smb2_get_srv_inum(const unsigned int xid, struct cifs_tcon *tcon, in smb2_get_srv_inum() argument
394 smb2_query_file_info(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_file_info() argument
405 rc = SMB2_query_info(xid, tcon, fid->persistent_fid, fid->volatile_fid, in smb2_query_file_info()
420 smb2_clear_stats(struct cifs_tcon *tcon) in smb2_clear_stats() argument
425 atomic_set(&tcon->stats.smb2_stats.smb2_com_sent[i], 0); in smb2_clear_stats()
426 atomic_set(&tcon->stats.smb2_stats.smb2_com_failed[i], 0); in smb2_clear_stats()
432 smb2_dump_share_caps(struct seq_file *m, struct cifs_tcon *tcon) in smb2_dump_share_caps() argument
435 if (tcon->capabilities & SMB2_SHARE_CAP_DFS) in smb2_dump_share_caps()
437 if (tcon->capabilities & SMB2_SHARE_CAP_CONTINUOUS_AVAILABILITY) in smb2_dump_share_caps()
439 if (tcon->capabilities & SMB2_SHARE_CAP_SCALEOUT) in smb2_dump_share_caps()
441 if (tcon->capabilities & SMB2_SHARE_CAP_CLUSTER) in smb2_dump_share_caps()
443 if (tcon->capabilities & SMB2_SHARE_CAP_ASYMMETRIC) in smb2_dump_share_caps()
445 if (tcon->capabilities == 0) in smb2_dump_share_caps()
447 if (tcon->ss_flags & SSINFO_FLAGS_ALIGNED_DEVICE) in smb2_dump_share_caps()
449 if (tcon->ss_flags & SSINFO_FLAGS_PARTITION_ALIGNED_ON_DEVICE) in smb2_dump_share_caps()
451 if (tcon->ss_flags & SSINFO_FLAGS_NO_SEEK_PENALTY) in smb2_dump_share_caps()
453 if (tcon->ss_flags & SSINFO_FLAGS_TRIM_ENABLED) in smb2_dump_share_caps()
456 seq_printf(m, "\tShare Flags: 0x%x", tcon->share_flags); in smb2_dump_share_caps()
457 if (tcon->perf_sector_size) in smb2_dump_share_caps()
459 tcon->perf_sector_size); in smb2_dump_share_caps()
463 smb2_print_stats(struct seq_file *m, struct cifs_tcon *tcon) in smb2_print_stats() argument
466 atomic_t *sent = tcon->stats.smb2_stats.smb2_com_sent; in smb2_print_stats()
467 atomic_t *failed = tcon->stats.smb2_stats.smb2_com_failed; in smb2_print_stats()
542 smb2_close_file(const unsigned int xid, struct cifs_tcon *tcon, in smb2_close_file() argument
545 SMB2_close(xid, tcon, fid->persistent_fid, fid->volatile_fid); in smb2_close_file()
549 SMB2_request_res_key(const unsigned int xid, struct cifs_tcon *tcon, in SMB2_request_res_key() argument
557 rc = SMB2_ioctl(xid, tcon, persistent_fid, volatile_fid, in SMB2_request_res_key()
588 struct cifs_tcon *tcon; in smb2_clone_range() local
612 tcon = tlink_tcon(trgtfile->tlink); in smb2_clone_range()
618 cpu_to_le32(min_t(u32, len, tcon->max_bytes_chunk)); in smb2_clone_range()
621 rc = SMB2_ioctl(xid, tcon, trgtfile->fid.persistent_fid, in smb2_clone_range()
683 tcon->max_bytes_chunk) in smb2_clone_range()
684 tcon->max_bytes_chunk = in smb2_clone_range()
701 smb2_flush_file(const unsigned int xid, struct cifs_tcon *tcon, in smb2_flush_file() argument
704 return SMB2_flush(xid, tcon, fid->persistent_fid, fid->volatile_fid); in smb2_flush_file()
744 static bool smb2_set_sparse(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_sparse() argument
769 if (tcon->broken_sparse_sup) in smb2_set_sparse()
772 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb2_set_sparse()
776 tcon->broken_sparse_sup = true; in smb2_set_sparse()
790 smb2_set_file_size(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_file_size() argument
806 smb2_set_sparse(xid, tcon, cfile, inode, set_sparse); in smb2_set_file_size()
809 return SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb2_set_file_size()
814 smb2_set_compression(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_compression() argument
817 return SMB2_set_compression(xid, tcon, cfile->fid.persistent_fid, in smb2_set_compression()
822 smb2_query_dir_first(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_dir_first() argument
836 oparms.tcon = tcon; in smb2_query_dir_first()
853 rc = SMB2_query_directory(xid, tcon, fid->persistent_fid, in smb2_query_dir_first()
857 SMB2_close(xid, tcon, fid->persistent_fid, fid->volatile_fid); in smb2_query_dir_first()
863 smb2_query_dir_next(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_dir_next() argument
867 return SMB2_query_directory(xid, tcon, fid->persistent_fid, in smb2_query_dir_next()
872 smb2_close_dir(const unsigned int xid, struct cifs_tcon *tcon, in smb2_close_dir() argument
875 return SMB2_close(xid, tcon, fid->persistent_fid, fid->volatile_fid); in smb2_close_dir()
901 smb2_oplock_response(struct cifs_tcon *tcon, struct cifs_fid *fid, in smb2_oplock_response() argument
904 if (tcon->ses->server->capabilities & SMB2_GLOBAL_CAP_LEASING) in smb2_oplock_response()
905 return SMB2_lease_break(0, tcon, cinode->lease_key, in smb2_oplock_response()
908 return SMB2_oplock_break(0, tcon, fid->persistent_fid, in smb2_oplock_response()
914 smb2_queryfs(const unsigned int xid, struct cifs_tcon *tcon, in smb2_queryfs() argument
923 oparms.tcon = tcon; in smb2_queryfs()
934 rc = SMB2_QFS_info(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb2_queryfs()
936 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb2_queryfs()
977 smb2_query_symlink(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_symlink() argument
996 oparms.tcon = tcon; in smb2_query_symlink()
1027 static long smb3_zero_range(struct file *file, struct cifs_tcon *tcon, in smb3_zero_range() argument
1069 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_zero_range()
1077 static long smb3_punch_hole(struct file *file, struct cifs_tcon *tcon, in smb3_punch_hole() argument
1095 if (!smb2_set_sparse(xid, tcon, cfile, inode, set_sparse)) in smb3_punch_hole()
1103 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_punch_hole()
1111 static long smb3_simple_falloc(struct file *file, struct cifs_tcon *tcon, in smb3_simple_falloc() argument
1159 rc = smb2_set_sparse(xid, tcon, cfile, inode, false); in smb3_simple_falloc()
1169 static long smb3_fallocate(struct file *file, struct cifs_tcon *tcon, int mode, in smb3_fallocate() argument
1174 return smb3_punch_hole(file, tcon, off, len); in smb3_fallocate()
1177 return smb3_zero_range(file, tcon, off, len, true); in smb3_fallocate()
1178 return smb3_zero_range(file, tcon, off, len, false); in smb3_fallocate()
1180 return smb3_simple_falloc(file, tcon, off, len, true); in smb3_fallocate()
1182 return smb3_simple_falloc(file, tcon, off, len, false); in smb3_fallocate()