Lines Matching refs: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_fsinfo(unsigned int xid, struct cifs_tcon *tcon, in smb_mnt_get_fsinfo() argument
131 fsinf->protocol_id = tcon->ses->server->vals->protocol_id; in smb_mnt_get_fsinfo()
133 le32_to_cpu(tcon->fsDevInfo.DeviceCharacteristics); in smb_mnt_get_fsinfo()
134 fsinf->device_type = le32_to_cpu(tcon->fsDevInfo.DeviceType); in smb_mnt_get_fsinfo()
135 fsinf->fs_attributes = le32_to_cpu(tcon->fsAttrInfo.Attributes); in smb_mnt_get_fsinfo()
137 le32_to_cpu(tcon->fsAttrInfo.MaxPathNameComponentLength); in smb_mnt_get_fsinfo()
138 fsinf->vol_serial_number = tcon->vol_serial_number; in smb_mnt_get_fsinfo()
139 fsinf->vol_create_time = le64_to_cpu(tcon->vol_create_time); in smb_mnt_get_fsinfo()
140 fsinf->share_flags = tcon->share_flags; in smb_mnt_get_fsinfo()
141 fsinf->share_caps = le32_to_cpu(tcon->capabilities); in smb_mnt_get_fsinfo()
142 fsinf->sector_flags = tcon->ss_flags; in smb_mnt_get_fsinfo()
143 fsinf->optimal_sector_size = tcon->perf_sector_size; in smb_mnt_get_fsinfo()
144 fsinf->max_bytes_chunk = tcon->max_bytes_chunk; in smb_mnt_get_fsinfo()
145 fsinf->maximal_access = tcon->maximal_access; in smb_mnt_get_fsinfo()
146 fsinf->cifs_posix_caps = le64_to_cpu(tcon->fsUnixInfo.Capability); in smb_mnt_get_fsinfo()
205 static int cifs_dump_full_key(struct cifs_tcon *tcon, struct smb3_full_key_debug_info __user *in) in cifs_dump_full_key() argument
213 if (!smb3_encryption_required(tcon)) { in cifs_dump_full_key()
226 ses = tcon->ses; in cifs_dump_full_key()
320 struct cifs_tcon *tcon; in cifs_ioctl() local
333 tcon = tlink_tcon(pSMBFile->tlink); in cifs_ioctl()
334 caps = le64_to_cpu(tcon->fsUnixInfo.Capability); in cifs_ioctl()
339 rc = CIFSGetExtAttr(xid, tcon, in cifs_ioctl()
362 tcon = tlink_tcon(pSMBFile->tlink); in cifs_ioctl()
385 if (tcon->ses->server->ops->set_compression) { in cifs_ioctl()
386 rc = tcon->ses->server->ops->set_compression( in cifs_ioctl()
387 xid, tcon, pSMBFile); in cifs_ioctl()
400 tcon = tlink_tcon(pSMBFile->tlink); in cifs_ioctl()
401 if (tcon->ses->server->ops->set_integrity) in cifs_ioctl()
402 rc = tcon->ses->server->ops->set_integrity(xid, in cifs_ioctl()
403 tcon, pSMBFile); in cifs_ioctl()
410 tcon = tlink_tcon(pSMBFile->tlink); in cifs_ioctl()
411 rc = smb_mnt_get_fsinfo(xid, tcon, (void __user *)arg); in cifs_ioctl()
420 tcon = tlink_tcon(pSMBFile->tlink); in cifs_ioctl()
421 if (tcon->ses->server->ops->enum_snapshots) in cifs_ioctl()
422 rc = tcon->ses->server->ops->enum_snapshots(xid, tcon, in cifs_ioctl()
439 tcon = tlink_tcon(pSMBFile->tlink); in cifs_ioctl()
440 if (!smb3_encryption_required(tcon)) { in cifs_ioctl()
445 le16_to_cpu(tcon->ses->server->cipher_type); in cifs_ioctl()
446 pkey_inf.Suid = tcon->ses->Suid; in cifs_ioctl()
447 memcpy(pkey_inf.auth_key, tcon->ses->auth_key.response, in cifs_ioctl()
450 tcon->ses->smb3decryptionkey, SMB3_SIGN_KEY_SIZE); in cifs_ioctl()
452 tcon->ses->smb3encryptionkey, SMB3_SIGN_KEY_SIZE); in cifs_ioctl()
469 tcon = tlink_tcon(pSMBFile->tlink); in cifs_ioctl()
470 rc = cifs_dump_full_key(tcon, (void __user *)arg); in cifs_ioctl()
484 tcon = tlink_tcon(tlink); in cifs_ioctl()
485 if (tcon && tcon->ses->server->ops->notify) { in cifs_ioctl()
486 rc = tcon->ses->server->ops->notify(xid, in cifs_ioctl()
506 tcon = tlink_tcon(tlink); in cifs_ioctl()
507 if (tcon && tcon->ses->server->ops->notify) { in cifs_ioctl()
508 rc = tcon->ses->server->ops->notify(xid, in cifs_ioctl()