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()
174 struct cifs_tcon *tcon; in cifs_shutdown() local
187 tcon = tlink_tcon(tlink); in cifs_shutdown()
189 trace_smb3_shutdown_enter(flags, tcon->tid); in cifs_shutdown()
231 trace_smb3_shutdown_done(flags, tcon->tid); in cifs_shutdown()
235 trace_smb3_shutdown_err(rc, flags, tcon->tid); in cifs_shutdown()
240 static int cifs_dump_full_key(struct cifs_tcon *tcon, struct smb3_full_key_debug_info __user *in) in cifs_dump_full_key() argument
248 if (!smb3_encryption_required(tcon)) { in cifs_dump_full_key()
261 ses = tcon->ses; in cifs_dump_full_key()
359 struct cifs_tcon *tcon; in cifs_ioctl() local
381 tcon = tlink_tcon(pSMBFile->tlink); in cifs_ioctl()
384 caps = le64_to_cpu(tcon->fsUnixInfo.Capability); in cifs_ioctl()
387 rc = CIFSGetExtAttr(xid, tcon, in cifs_ioctl()
410 tcon = tlink_tcon(pSMBFile->tlink); in cifs_ioctl()
411 /* caps = le64_to_cpu(tcon->fsUnixInfo.Capability); */ in cifs_ioctl()
420 * rc = CIFSSetExtAttr(xid, tcon, in cifs_ioctl()
433 if (tcon->ses->server->ops->set_compression) { in cifs_ioctl()
434 rc = tcon->ses->server->ops->set_compression( in cifs_ioctl()
435 xid, tcon, pSMBFile); in cifs_ioctl()
448 tcon = tlink_tcon(pSMBFile->tlink); in cifs_ioctl()
449 if (tcon->ses->server->ops->set_integrity) in cifs_ioctl()
450 rc = tcon->ses->server->ops->set_integrity(xid, in cifs_ioctl()
451 tcon, pSMBFile); in cifs_ioctl()
458 tcon = tlink_tcon(pSMBFile->tlink); in cifs_ioctl()
459 rc = smb_mnt_get_fsinfo(xid, tcon, (void __user *)arg); in cifs_ioctl()
468 tcon = tlink_tcon(tlink); in cifs_ioctl()
469 rc = smb_mnt_get_tcon_info(tcon, (void __user *)arg); in cifs_ioctl()
479 tcon = tlink_tcon(pSMBFile->tlink); in cifs_ioctl()
480 if (tcon->ses->server->ops->enum_snapshots) in cifs_ioctl()
481 rc = tcon->ses->server->ops->enum_snapshots(xid, tcon, in cifs_ioctl()
502 tcon = tlink_tcon(tlink); in cifs_ioctl()
503 if (!smb3_encryption_required(tcon)) { in cifs_ioctl()
509 le16_to_cpu(tcon->ses->server->cipher_type); in cifs_ioctl()
510 pkey_inf.Suid = tcon->ses->Suid; in cifs_ioctl()
511 memcpy(pkey_inf.auth_key, tcon->ses->auth_key.response, in cifs_ioctl()
514 tcon->ses->smb3decryptionkey, SMB3_SIGN_KEY_SIZE); in cifs_ioctl()
516 tcon->ses->smb3encryptionkey, SMB3_SIGN_KEY_SIZE); in cifs_ioctl()
541 tcon = tlink_tcon(tlink); in cifs_ioctl()
542 rc = cifs_dump_full_key(tcon, (void __user *)arg); in cifs_ioctl()
557 tcon = tlink_tcon(tlink); in cifs_ioctl()
558 if (tcon && tcon->ses->server->ops->notify) { in cifs_ioctl()
559 rc = tcon->ses->server->ops->notify(xid, in cifs_ioctl()
579 tcon = tlink_tcon(tlink); in cifs_ioctl()
580 if (tcon && tcon->ses->server->ops->notify) { in cifs_ioctl()
581 rc = tcon->ses->server->ops->notify(xid, in cifs_ioctl()