Lines Matching defs:tcon
163 struct cifs_tcon *tcon;
168 tcon = cifs_sb_master_tcon(cifs_sb);
173 if (tcon->snapshot_time)
176 if (tcon->ses->capabilities & tcon->ses->server->vals->cap_large_files)
188 if ((tcon->ses->server->vals->protocol_id == SMB10_PROT_ID) &&
189 ((tcon->ses->capabilities &
190 tcon->ses->server->vals->cap_nt_find) == 0) &&
191 !tcon->unix_ext) {
228 if (tcon->nocase)
265 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb);
266 struct TCP_Server_Info *server = tcon->ses->server;
272 if (le32_to_cpu(tcon->fsAttrInfo.MaxPathNameComponentLength) > 0)
274 le32_to_cpu(tcon->fsAttrInfo.MaxPathNameComponentLength);
278 buf->f_fsid.val[0] = tcon->vol_serial_number;
280 buf->f_fsid.val[1] = (int)le64_to_cpu(tcon->vol_create_time);
286 rc = server->ops->queryfs(xid, tcon, cifs_sb, buf);
295 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb);
296 struct TCP_Server_Info *server = tcon->ses->server;
299 return server->ops->fallocate(file, tcon, mode, off, len);
482 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb);
484 srcaddr = (struct sockaddr *)&tcon->ses->server->srcaddr;
486 seq_show_option(s, "vers", tcon->ses->server->vals->version_string);
487 cifs_show_security(s, tcon->ses);
490 if (tcon->no_lease)
494 else if (tcon->ses->user_name)
495 seq_show_option(s, "username", tcon->ses->user_name);
497 if (tcon->ses->domainName && tcon->ses->domainName[0] != 0)
498 seq_show_option(s, "domain", tcon->ses->domainName);
530 cifs_show_address(s, tcon->ses->server);
532 if (!tcon->unix_ext)
539 if (tcon->seal)
541 else if (tcon->ses->server->ignore_signature)
543 if (tcon->nocase)
545 if (tcon->nodelete)
547 if (tcon->local_lease)
549 if (tcon->retry)
553 if (tcon->use_persistent)
555 else if (tcon->use_resilient)
557 if (tcon->posix_extensions)
559 else if (tcon->unix_ext)
617 if (tcon->ses->server->min_offload)
618 seq_printf(s, ",esize=%u", tcon->ses->server->min_offload);
620 tcon->ses->server->echo_interval / HZ);
623 if (tcon->ses->server->max_credits != SMB2_MAX_CREDITS_AVAILABLE)
624 seq_printf(s, ",max_credits=%u", tcon->ses->server->max_credits);
625 if (tcon->ses->server->tcp_nodelay)
627 if (tcon->ses->server->noautotune)
629 if (tcon->ses->server->noblocksnd)
632 if (tcon->snapshot_time)
633 seq_printf(s, ",snapshot=%llu", tcon->snapshot_time);
634 if (tcon->handle_timeout)
635 seq_printf(s, ",handletimeout=%u", tcon->handle_timeout);
639 if (tcon->ses->chan_max > 1)
641 tcon->ses->chan_max);
649 struct cifs_tcon *tcon;
654 tcon = cifs_sb_master_tcon(cifs_sb);
657 if ((tcon->tc_count > 1) || (tcon->tidStatus == CifsExiting)) {
663 } else if (tcon->tc_count == 1)
664 tcon->tidStatus = CifsExiting;
667 /* cancel_brl_requests(tcon); */ /* BB mark all brl mids as exiting */
668 /* cancel_notify_requests(tcon); */
669 if (tcon->ses && tcon->ses->server) {
671 wake_up_all(&tcon->ses->server->request_q);
672 wake_up_all(&tcon->ses->server->response_q);
675 wake_up_all(&tcon->ses->server->response_q);
958 struct cifs_tcon *tcon;
992 tcon = tlink_tcon(cfile->tlink);
993 if (tcon->ses->server->ops->llseek)
994 return tcon->ses->server->ops->llseek(file, tcon,