Lines Matching refs:tcon
43 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); in cifs_ioctl_query_info() local
66 if (tcon->ses->server->ops->ioctl_query_info) in cifs_ioctl_query_info()
67 rc = tcon->ses->server->ops->ioctl_query_info( in cifs_ioctl_query_info()
68 xid, tcon, cifs_sb, utf16_path, in cifs_ioctl_query_info()
129 static long smb_mnt_get_fsinfo(unsigned int xid, struct cifs_tcon *tcon, in smb_mnt_get_fsinfo() argument
140 fsinf->protocol_id = tcon->ses->server->vals->protocol_id; in smb_mnt_get_fsinfo()
142 le32_to_cpu(tcon->fsDevInfo.DeviceCharacteristics); in smb_mnt_get_fsinfo()
143 fsinf->device_type = le32_to_cpu(tcon->fsDevInfo.DeviceType); in smb_mnt_get_fsinfo()
144 fsinf->fs_attributes = le32_to_cpu(tcon->fsAttrInfo.Attributes); in smb_mnt_get_fsinfo()
146 le32_to_cpu(tcon->fsAttrInfo.MaxPathNameComponentLength); in smb_mnt_get_fsinfo()
147 fsinf->vol_serial_number = tcon->vol_serial_number; in smb_mnt_get_fsinfo()
148 fsinf->vol_create_time = le64_to_cpu(tcon->vol_create_time); in smb_mnt_get_fsinfo()
149 fsinf->share_flags = tcon->share_flags; in smb_mnt_get_fsinfo()
150 fsinf->share_caps = le32_to_cpu(tcon->capabilities); in smb_mnt_get_fsinfo()
151 fsinf->sector_flags = tcon->ss_flags; in smb_mnt_get_fsinfo()
152 fsinf->optimal_sector_size = tcon->perf_sector_size; in smb_mnt_get_fsinfo()
153 fsinf->max_bytes_chunk = tcon->max_bytes_chunk; in smb_mnt_get_fsinfo()
154 fsinf->maximal_access = tcon->maximal_access; in smb_mnt_get_fsinfo()
155 fsinf->cifs_posix_caps = le64_to_cpu(tcon->fsUnixInfo.Capability); in smb_mnt_get_fsinfo()
171 struct cifs_tcon *tcon; in cifs_ioctl() local
184 tcon = tlink_tcon(pSMBFile->tlink); in cifs_ioctl()
185 caps = le64_to_cpu(tcon->fsUnixInfo.Capability); in cifs_ioctl()
189 rc = CIFSGetExtAttr(xid, tcon, in cifs_ioctl()
211 tcon = tlink_tcon(pSMBFile->tlink); in cifs_ioctl()
212 caps = le64_to_cpu(tcon->fsUnixInfo.Capability); in cifs_ioctl()
234 if (tcon->ses->server->ops->set_compression) { in cifs_ioctl()
235 rc = tcon->ses->server->ops->set_compression( in cifs_ioctl()
236 xid, tcon, pSMBFile); in cifs_ioctl()
249 tcon = tlink_tcon(pSMBFile->tlink); in cifs_ioctl()
250 if (tcon->ses->server->ops->set_integrity) in cifs_ioctl()
251 rc = tcon->ses->server->ops->set_integrity(xid, in cifs_ioctl()
252 tcon, pSMBFile); in cifs_ioctl()
259 tcon = tlink_tcon(pSMBFile->tlink); in cifs_ioctl()
260 rc = smb_mnt_get_fsinfo(xid, tcon, (void __user *)arg); in cifs_ioctl()
269 tcon = tlink_tcon(pSMBFile->tlink); in cifs_ioctl()
270 if (tcon->ses->server->ops->enum_snapshots) in cifs_ioctl()
271 rc = tcon->ses->server->ops->enum_snapshots(xid, tcon, in cifs_ioctl()
284 tcon = tlink_tcon(pSMBFile->tlink); in cifs_ioctl()
285 if (!smb3_encryption_required(tcon)) { in cifs_ioctl()
290 le16_to_cpu(tcon->ses->server->cipher_type); in cifs_ioctl()
291 pkey_inf.Suid = tcon->ses->Suid; in cifs_ioctl()
292 memcpy(pkey_inf.auth_key, tcon->ses->auth_key.response, in cifs_ioctl()
295 tcon->ses->smb3decryptionkey, SMB3_SIGN_KEY_SIZE); in cifs_ioctl()
297 tcon->ses->smb3encryptionkey, SMB3_SIGN_KEY_SIZE); in cifs_ioctl()
316 tcon = tlink_tcon(tlink); in cifs_ioctl()
317 if (tcon && tcon->ses->server->ops->notify) { in cifs_ioctl()
318 rc = tcon->ses->server->ops->notify(xid, in cifs_ioctl()