• Home
  • Raw
  • Download

Lines Matching +full:tcon +full:- +full:channel

61  * max attribute cache timeout (jiffies) - 2^30
145 struct crypto_shash *hmacmd5; /* hmac-md5 hash function */
147 struct crypto_shash *hmacsha256; /* hmac-sha256 hash function */
148 struct crypto_shash *cmacaes; /* block-cipher based MAC function */
246 * message field DataRemaining for out-of-band data read (e.g through
305 int (*query_reparse_tag)(const unsigned int xid, struct cifs_tcon *tcon,
329 umode_t mode, struct cifs_tcon *tcon,
333 struct cifs_tcon *tcon, const char *name,
359 /* open a file for non-posix mounts */
362 /* set fid protocol-specific info */
368 void (*close_getattr)(const unsigned int xid, struct cifs_tcon *tcon,
426 int (*set_integrity)(const unsigned int, struct cifs_tcon *tcon,
428 int (*enum_snapshots)(const unsigned int xid, struct cifs_tcon *tcon,
480 /* init transform request - used for encryption for now */
491 struct cifs_tcon *tcon,
499 struct cifs_tcon *tcon,
504 int (*fiemap)(struct cifs_tcon *tcon, struct cifsFileInfo *,
533 #define HEADER_SIZE(server) (server->vals->header_size)
534 #define MAX_HEADER_SIZE(server) (server->vals->max_header_size)
715 /* message size the server can send or receive for non-raw SMBs */
723 __u64 CurrentMid; /* multiplex id - rotating counter */
782 bool noblockcnt; /* use non-blocking connect() */
783 bool is_channel; /* if a session channel */
795 spin_lock(&server->req_lock); in in_flight()
796 num = server->in_flight; in in_flight()
797 spin_unlock(&server->req_lock); in in_flight()
805 spin_lock(&server->req_lock); in has_credits()
807 spin_unlock(&server->req_lock); in has_credits()
815 server->ops->add_credits(server, credits, optype); in add_credits()
822 if (credits->value) { in add_credits_and_wake_if()
823 server->ops->add_credits(server, credits, optype); in add_credits_and_wake_if()
824 wake_up(&server->request_q); in add_credits_and_wake_if()
831 server->ops->set_credits(server, val); in set_credits()
838 return server->ops->adjust_credits ? in adjust_credits()
839 server->ops->adjust_credits(server, credits, payload_size) : 0; in adjust_credits()
845 return cpu_to_le64(server->ops->get_next_mid(server)); in get_next_mid64()
851 __u16 mid = server->ops->get_next_mid(server); in get_next_mid()
854 * on-the-wire decoding. in get_next_mid()
862 if (server->ops->revert_current_mid) in revert_current_mid()
863 server->ops->revert_current_mid(server, val); in revert_current_mid()
870 unsigned int num = le16_to_cpu(shdr->CreditCharge); in revert_current_mid_from_hdr()
878 return le16_to_cpu(smb->Mid); in get_mid()
884 return mid == le16_to_cpu(smb->Mid); in compare_mid()
889 * we can allow up to 2^24-1, minus the size of a READ/WRITE_AND_X header, not
900 #define CIFS_MAX_WSIZE ((1<<24) - 1 - sizeof(WRITE_REQ) + 4)
901 #define CIFS_MAX_RSIZE ((1<<24) - sizeof(READ_RSP) + 4)
905 * of 2^17-1 minus the size of the call header. That allows for a read or
908 #define CIFS_MAX_RFC1002_WSIZE ((1<<17) - 1 - sizeof(WRITE_REQ) + 4)
909 #define CIFS_MAX_RFC1002_RSIZE ((1<<17) - 1 - sizeof(READ_RSP) + 4)
928 …s.msdn.com/b/openspecification/archive/2009/04/10/smb-maximum-transmit-buffer-size-and-performance
934 * Macros to allow the TCP_Server_Info->net field and related code to drop out
942 return srv->net; in cifs_net_ns()
947 srv->net = net; in cifs_set_net_ns()
986 unsigned overrideSecFlg; /* if non-zero override global sec flags */
1037 * When binding a new channel, we need to access the channel which isn't fully
1044 if (ses->binding) in cifs_ses_binding_channel()
1045 return ses->binding_chan; in cifs_ses_binding_channel()
1052 * channel this returns the last channel which isn't fully established
1061 if (ses->binding) in cifs_ses_server()
1062 return ses->binding_chan->server; in cifs_ses_server()
1064 return ses->server; in cifs_ses_server()
1070 return ses->server->vals->cap_unix & ses->capabilities; in cap_unix()
1080 struct cifs_tcon *tcon; member
1100 char *password; /* for share-level security */
1155 bool need_reopen_files:1; /* need to reopen tcon file handles */
1164 __u64 snapshot_time; /* for timewarp tokens - timestamp of snapshot */
1186 * This is a refcounted and timestamped container for a tcon pointer. The
1187 * container holds a tcon reference. It is considered safe to free one of
1209 return tlink->tl_tcon; in tlink_tcon()
1215 return cifs_sb->master_tlink; in cifs_sb_master_tlink()
1224 atomic_inc(&tlink->tl_count); in cifs_get_tlink()
1274 #define ACL_NO_MODE ((umode_t)(-1))
1276 struct cifs_tcon *tcon; member
1309 /* following two lists are protected by tcon->open_file_lock */
1310 struct list_head tlist; /* pointer to next fid owned by tcon */
1312 /* lock list below protected by cifsi->lock_sem */
1343 struct cifs_tcon *tcon; member
1433 * cfile->file_info_lock held.
1438 ++cifs_file->count; in cifsFileInfo_get_locked()
1453 #define CIFS_CACHE_READ(cinode) ((cinode->oplock & CIFS_CACHE_READ_FLG) || (CIFS_SB(cinode->vfs_ino…
1454 #define CIFS_CACHE_HANDLE(cinode) (cinode->oplock & CIFS_CACHE_HANDLE_FLG)
1455 #define CIFS_CACHE_WRITE(cinode) ((cinode->oplock & CIFS_CACHE_WRITE_FLG) || (CIFS_SB(cinode->vfs_i…
1486 u64 server_eof; /* current file size on server -- protected by i_lock */
1505 return sb->s_fs_info; in CIFS_SB()
1511 return CIFS_SB(file_inode(file)->i_sb); in CIFS_FILE_SB()
1516 if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_POSIX_PATHS) in CIFS_DIR_SEP()
1539 static inline void cifs_stats_bytes_written(struct cifs_tcon *tcon, in cifs_stats_bytes_written() argument
1543 spin_lock(&tcon->stat_lock); in cifs_stats_bytes_written()
1544 tcon->bytes_written += bytes; in cifs_stats_bytes_written()
1545 spin_unlock(&tcon->stat_lock); in cifs_stats_bytes_written()
1549 static inline void cifs_stats_bytes_read(struct cifs_tcon *tcon, in cifs_stats_bytes_read() argument
1552 spin_lock(&tcon->stat_lock); in cifs_stats_bytes_read()
1553 tcon->bytes_read += bytes; in cifs_stats_bytes_read()
1554 spin_unlock(&tcon->stat_lock); in cifs_stats_bytes_read()
1563 * - This will be called by cifsd, with no locks held.
1564 * - The mid will still be on the pending_mid_q.
1565 * - mid->resp_buf will point to the current buffer.
1578 * - it will be called by cifsd, with no locks held
1579 * - the mid will be removed from any lists
1624 struct cifs_tcon *tcon; member
1634 atomic_inc(&server->in_send); in cifs_in_send_inc()
1639 atomic_dec(&server->in_send); in cifs_in_send_dec()
1644 atomic_inc(&server->num_waiters); in cifs_num_waiters_inc()
1649 atomic_dec(&server->num_waiters); in cifs_num_waiters_dec()
1655 mid->when_sent = jiffies; in cifs_save_when_sent()
1721 kfree(param->path_name); in free_dfs_info_param()
1722 kfree(param->node_name); in free_dfs_info_param()
1742 case -EINTR: in is_interrupt_error()
1743 case -ERESTARTSYS: in is_interrupt_error()
1744 case -ERESTARTNOHAND: in is_interrupt_error()
1745 case -ERESTARTNOINTR: in is_interrupt_error()
1753 if (is_interrupt_error(error) || error == -EAGAIN) in is_retryable_error()
1786 #define CIFS_LOG_ERROR 0x010 /* log NT STATUS if non-zero */
1864 * ---------
1869 * updates to ses->status
1872 * tcon->open_file_lock protects the list of open files hanging off the tcon
1873 * inode->open_file_lock protects the openFileList hanging off the inode
1874 * cfile->file_info_lock protects counters and fields in cifs file struct
1876 * mapping->page_lock protects certain per page operations
1882 * ----------
1906 * tcp session, and the list of tcon's per smb session. It also protects
1907 * the reference counters for the server, smb session, and tcon. It also
1909 * changes to the tcon->tidStatus should be done while holding this lock.
1911 * tcon->open_file_lock and that before file->file_info_lock since the
1912 * structure order is cifs_socket-->cifs_ses-->cifs_tcon-->cifs_file
1956 extern bool enable_gcm_256; /* allow optional negotiate of strongest signing (aes-gcm-256) */
1957 extern bool require_gcm_256; /* require use of strongest signing (aes-gcm-256) */
2034 return strcmp(server->vals->version_string, SMB1_VERSION_STRING) == 0; in is_smb1_server()
2037 static inline bool is_tcon_dfs(struct cifs_tcon *tcon) in is_tcon_dfs() argument
2040 * For SMB1, see MS-CIFS 2.4.55 SMB_COM_TREE_CONNECT_ANDX (0x75) and MS-CIFS 3.3.4.4 DFS in is_tcon_dfs()
2043 * For SMB2+, see MS-SMB2 2.2.10 SMB2 TREE_CONNECT Response and MS-SMB2 3.3.4.14 Server in is_tcon_dfs()
2046 if (!tcon || !tcon->ses || !tcon->ses->server) in is_tcon_dfs()
2048 return is_smb1_server(tcon->ses->server) ? tcon->Flags & SMB_SHARE_IS_IN_DFS : in is_tcon_dfs()
2049 tcon->share_flags & (SHI1005_FLAGS_DFS | SHI1005_FLAGS_DFS_ROOT); in is_tcon_dfs()
2076 addr = (unsigned long)iov->iov_base + skip; in cifs_get_num_sgs()
2078 len = iov->iov_len - skip; in cifs_get_num_sgs()
2104 unsigned int len = min_t(unsigned int, buflen, PAGE_SIZE - off); in cifs_sg_set_buf()
2110 buflen -= len; in cifs_sg_set_buf()