Lines Matching full:tcon

31 	struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb);  in cifs_ioctl_query_info()  local
57 if (tcon->ses->server->ops->ioctl_query_info) in cifs_ioctl_query_info()
58 rc = tcon->ses->server->ops->ioctl_query_info( in cifs_ioctl_query_info()
59 xid, tcon, cifs_sb, utf16_path, in cifs_ioctl_query_info()
120 static long smb_mnt_get_tcon_info(struct cifs_tcon *tcon, void __user *arg) in smb_mnt_get_tcon_info() argument
125 tcon_inf.tid = tcon->tid; in smb_mnt_get_tcon_info()
126 tcon_inf.session_id = tcon->ses->Suid; in smb_mnt_get_tcon_info()
134 static long smb_mnt_get_fsinfo(unsigned int xid, struct cifs_tcon *tcon, in smb_mnt_get_fsinfo() argument
145 fsinf->protocol_id = tcon->ses->server->vals->protocol_id; in smb_mnt_get_fsinfo()
146 fsinf->tcon_flags = tcon->Flags; in smb_mnt_get_fsinfo()
148 le32_to_cpu(tcon->fsDevInfo.DeviceCharacteristics); in smb_mnt_get_fsinfo()
149 fsinf->device_type = le32_to_cpu(tcon->fsDevInfo.DeviceType); in smb_mnt_get_fsinfo()
150 fsinf->fs_attributes = le32_to_cpu(tcon->fsAttrInfo.Attributes); in smb_mnt_get_fsinfo()
152 le32_to_cpu(tcon->fsAttrInfo.MaxPathNameComponentLength); in smb_mnt_get_fsinfo()
153 fsinf->vol_serial_number = tcon->vol_serial_number; in smb_mnt_get_fsinfo()
154 fsinf->vol_create_time = le64_to_cpu(tcon->vol_create_time); in smb_mnt_get_fsinfo()
155 fsinf->share_flags = tcon->share_flags; in smb_mnt_get_fsinfo()
156 fsinf->share_caps = le32_to_cpu(tcon->capabilities); in smb_mnt_get_fsinfo()
157 fsinf->sector_flags = tcon->ss_flags; in smb_mnt_get_fsinfo()
158 fsinf->optimal_sector_size = tcon->perf_sector_size; in smb_mnt_get_fsinfo()
159 fsinf->max_bytes_chunk = tcon->max_bytes_chunk; in smb_mnt_get_fsinfo()
160 fsinf->maximal_access = tcon->maximal_access; in smb_mnt_get_fsinfo()
161 fsinf->cifs_posix_caps = le64_to_cpu(tcon->fsUnixInfo.Capability); in smb_mnt_get_fsinfo()
220 static int cifs_dump_full_key(struct cifs_tcon *tcon, struct smb3_full_key_debug_info __user *in) in cifs_dump_full_key() argument
228 if (!smb3_encryption_required(tcon)) { in cifs_dump_full_key()
241 ses = tcon->ses; in cifs_dump_full_key()
339 struct cifs_tcon *tcon; in cifs_ioctl() local
361 tcon = tlink_tcon(pSMBFile->tlink); in cifs_ioctl()
364 caps = le64_to_cpu(tcon->fsUnixInfo.Capability); in cifs_ioctl()
367 rc = CIFSGetExtAttr(xid, tcon, in cifs_ioctl()
390 tcon = tlink_tcon(pSMBFile->tlink); in cifs_ioctl()
391 /* caps = le64_to_cpu(tcon->fsUnixInfo.Capability); */ in cifs_ioctl()
400 * rc = CIFSSetExtAttr(xid, tcon, in cifs_ioctl()
413 if (tcon->ses->server->ops->set_compression) { in cifs_ioctl()
414 rc = tcon->ses->server->ops->set_compression( in cifs_ioctl()
415 xid, tcon, pSMBFile); in cifs_ioctl()
428 tcon = tlink_tcon(pSMBFile->tlink); in cifs_ioctl()
429 if (tcon->ses->server->ops->set_integrity) in cifs_ioctl()
430 rc = tcon->ses->server->ops->set_integrity(xid, in cifs_ioctl()
431 tcon, pSMBFile); in cifs_ioctl()
438 tcon = tlink_tcon(pSMBFile->tlink); in cifs_ioctl()
439 rc = smb_mnt_get_fsinfo(xid, tcon, (void __user *)arg); in cifs_ioctl()
448 tcon = tlink_tcon(tlink); in cifs_ioctl()
449 rc = smb_mnt_get_tcon_info(tcon, (void __user *)arg); in cifs_ioctl()
459 tcon = tlink_tcon(pSMBFile->tlink); in cifs_ioctl()
460 if (tcon->ses->server->ops->enum_snapshots) in cifs_ioctl()
461 rc = tcon->ses->server->ops->enum_snapshots(xid, tcon, in cifs_ioctl()
482 tcon = tlink_tcon(tlink); in cifs_ioctl()
483 if (!smb3_encryption_required(tcon)) { in cifs_ioctl()
489 le16_to_cpu(tcon->ses->server->cipher_type); in cifs_ioctl()
490 pkey_inf.Suid = tcon->ses->Suid; in cifs_ioctl()
491 memcpy(pkey_inf.auth_key, tcon->ses->auth_key.response, in cifs_ioctl()
494 tcon->ses->smb3decryptionkey, SMB3_SIGN_KEY_SIZE); in cifs_ioctl()
496 tcon->ses->smb3encryptionkey, SMB3_SIGN_KEY_SIZE); in cifs_ioctl()
521 tcon = tlink_tcon(tlink); in cifs_ioctl()
522 rc = cifs_dump_full_key(tcon, (void __user *)arg); in cifs_ioctl()
537 tcon = tlink_tcon(tlink); in cifs_ioctl()
538 if (tcon && tcon->ses->server->ops->notify) { in cifs_ioctl()
539 rc = tcon->ses->server->ops->notify(xid, in cifs_ioctl()
559 tcon = tlink_tcon(tlink); in cifs_ioctl()
560 if (tcon && tcon->ses->server->ops->notify) { in cifs_ioctl()
561 rc = tcon->ses->server->ops->notify(xid, in cifs_ioctl()