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()
823 struct cifs_tcon *tcon = tlink_tcon(trgtfile->tlink); in smb2_duplicate_extents() local
826 if ((le32_to_cpu(tcon->fsAttrInfo.Attributes) & in smb2_duplicate_extents()
838 rc = smb2_set_file_size(xid, tcon, trgtfile, dest_off + len, false); in smb2_duplicate_extents()
842 rc = SMB2_ioctl(xid, tcon, trgtfile->fid.persistent_fid, in smb2_duplicate_extents()
858 smb2_set_compression(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_compression() argument
861 return SMB2_set_compression(xid, tcon, cfile->fid.persistent_fid, in smb2_set_compression()
866 smb3_set_integrity(const unsigned int xid, struct cifs_tcon *tcon, in smb3_set_integrity() argument
877 return SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_set_integrity()
888 smb2_query_dir_first(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_dir_first() argument
902 oparms.tcon = tcon; in smb2_query_dir_first()
919 rc = SMB2_query_directory(xid, tcon, fid->persistent_fid, in smb2_query_dir_first()
923 SMB2_close(xid, tcon, fid->persistent_fid, fid->volatile_fid); in smb2_query_dir_first()
929 smb2_query_dir_next(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_dir_next() argument
933 return SMB2_query_directory(xid, tcon, fid->persistent_fid, in smb2_query_dir_next()
938 smb2_close_dir(const unsigned int xid, struct cifs_tcon *tcon, in smb2_close_dir() argument
941 return SMB2_close(xid, tcon, fid->persistent_fid, fid->volatile_fid); in smb2_close_dir()
967 smb2_oplock_response(struct cifs_tcon *tcon, struct cifs_fid *fid, in smb2_oplock_response() argument
970 if (tcon->ses->server->capabilities & SMB2_GLOBAL_CAP_LEASING) in smb2_oplock_response()
971 return SMB2_lease_break(0, tcon, cinode->lease_key, in smb2_oplock_response()
974 return SMB2_oplock_break(0, tcon, fid->persistent_fid, in smb2_oplock_response()
980 smb2_queryfs(const unsigned int xid, struct cifs_tcon *tcon, in smb2_queryfs() argument
989 oparms.tcon = tcon; in smb2_queryfs()
1000 rc = SMB2_QFS_info(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb2_queryfs()
1002 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb2_queryfs()
1043 smb2_query_symlink(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_symlink() argument
1062 oparms.tcon = tcon; in smb2_query_symlink()
1093 static long smb3_zero_range(struct file *file, struct cifs_tcon *tcon, in smb3_zero_range() argument
1135 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_zero_range()
1143 static long smb3_punch_hole(struct file *file, struct cifs_tcon *tcon, in smb3_punch_hole() argument
1161 if (!smb2_set_sparse(xid, tcon, cfile, inode, set_sparse)) in smb3_punch_hole()
1169 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_punch_hole()
1177 static long smb3_simple_falloc(struct file *file, struct cifs_tcon *tcon, in smb3_simple_falloc() argument
1225 rc = smb2_set_sparse(xid, tcon, cfile, inode, false); in smb3_simple_falloc()
1235 static long smb3_fallocate(struct file *file, struct cifs_tcon *tcon, int mode, in smb3_fallocate() argument
1240 return smb3_punch_hole(file, tcon, off, len); in smb3_fallocate()
1243 return smb3_zero_range(file, tcon, off, len, true); in smb3_fallocate()
1244 return smb3_zero_range(file, tcon, off, len, false); in smb3_fallocate()
1246 return smb3_simple_falloc(file, tcon, off, len, true); in smb3_fallocate()
1248 return smb3_simple_falloc(file, tcon, off, len, false); in smb3_fallocate()