Lines Matching full:server

86  * defaults to 128 credits, the Windows server allows clients up to
87 * 512 credits (or 8K for later versions), and the NetApp server
91 * to reduce possibility of seeing more server credit overflow bugs.
152 __u32 server_flags; /* sent by server in type 2 ntlmssp exchange */
153 unsigned char ciphertext[CIFS_CPHTXT_SIZE]; /* sent to server */
176 * A smb_rqst represents a complete request to be issued to a server. It's
221 void (*add_credits)(struct TCP_Server_Info *server,
228 void (*revert_current_mid)(struct TCP_Server_Info *server,
252 void (*downgrade_oplock)(struct TCP_Server_Info *server,
260 /* negotiate to the server */
271 /* connect to a server share */
286 /* query path data from the server */
290 /* query file data from the server */
297 /* get server index number */
359 /* send a flush request to the server */
361 /* async read from the server */
363 /* async write to the server */
366 /* sync read from the server */
370 /* sync write to the server */
389 bool (*is_status_pending)(char *buf, struct TCP_Server_Info *server);
398 /* send mandatory brlock to the server */
404 /* push brlocks from the cache to the server */
462 int (*adjust_credits)(struct TCP_Server_Info *server,
524 #define HEADER_SIZE(server) (server->vals->header_size) argument
525 #define MAX_HEADER_SIZE(server) (server->vals->max_header_size) argument
576 /* 15 character server name + 0x20 16th byte indicating type = srv */
597 unsigned int in_flight; /* number of requests on the wire to server */
611 u16 dialect; /* dialect index that server chose */
614 /* than maxReq distinct unanswered SMBs to the server when using */
617 /* message size the server can send or receive for non-raw SMBs */
621 /* message size the server can send or receive for */
624 int timeAdj; /* Adjust for difference in server time zone in sec */
632 unsigned long lstrp; /* when we got last response from this server */
637 /* extended security flavors that server supports */
674 bool signing_negotiated; /* true if valid signing context rcvd from server */
703 in_flight(struct TCP_Server_Info *server) in in_flight() argument
706 spin_lock(&server->req_lock); in in_flight()
707 num = server->in_flight; in in_flight()
708 spin_unlock(&server->req_lock); in in_flight()
713 has_credits(struct TCP_Server_Info *server, int *credits, int num_credits) in has_credits() argument
716 spin_lock(&server->req_lock); in has_credits()
718 spin_unlock(&server->req_lock); in has_credits()
723 add_credits(struct TCP_Server_Info *server, const struct cifs_credits *credits, in add_credits() argument
726 server->ops->add_credits(server, credits, optype); in add_credits()
730 add_credits_and_wake_if(struct TCP_Server_Info *server, in add_credits_and_wake_if() argument
734 server->ops->add_credits(server, credits, optype); in add_credits_and_wake_if()
735 wake_up(&server->request_q); in add_credits_and_wake_if()
740 set_credits(struct TCP_Server_Info *server, const int val) in set_credits() argument
742 server->ops->set_credits(server, val); in set_credits()
746 adjust_credits(struct TCP_Server_Info *server, struct cifs_credits *credits, in adjust_credits() argument
749 return server->ops->adjust_credits ? in adjust_credits()
750 server->ops->adjust_credits(server, credits, payload_size) : 0; in adjust_credits()
754 get_next_mid64(struct TCP_Server_Info *server) in get_next_mid64() argument
756 return cpu_to_le64(server->ops->get_next_mid(server)); in get_next_mid64()
760 get_next_mid(struct TCP_Server_Info *server) in get_next_mid() argument
762 __u16 mid = server->ops->get_next_mid(server); in get_next_mid()
771 revert_current_mid(struct TCP_Server_Info *server, const unsigned int val) in revert_current_mid() argument
773 if (server->ops->revert_current_mid) in revert_current_mid()
774 server->ops->revert_current_mid(server, val); in revert_current_mid()
778 revert_current_mid_from_hdr(struct TCP_Server_Info *server, in revert_current_mid_from_hdr() argument
783 return revert_current_mid(server, num > 0 ? num : 1); in revert_current_mid_from_hdr()
799 * When the server supports very large reads and writes via POSIX extensions,
815 * When the server doesn't allow large posix writes, only allow a rsize/wsize
882 struct TCP_Server_Info *server; member
894 struct TCP_Server_Info *server; /* pointer to server info */ member
898 char *serverOS; /* name of operating system underlying server */
899 char *serverNOS; /* name of network operating system of server */
900 char *serverDomain; /* security realm of server */
911 struct ntlmssp_auth *ntlmssp; /* ciphertext, flags, server challenge */
926 * Network interfaces available on the server this session is
962 * Returns the server pointer of the session. When binding a new
973 return ses->binding_chan->server; in cifs_ses_server()
975 return ses->server; in cifs_ses_server()
981 return ses->server->vals->cap_unix & ses->capabilities; in cap_unix()
1007 atomic_t num_remote_opens; /* num of all network opens on server */
1058 bool nohandlecache:1; /* if strange server resource prob can turn off */
1062 for this mount even if server would support */
1065 bool broken_posix_open; /* e.g. Samba server versions < 3.3.2, 3.2.9 */
1066 bool broken_sparse_sup; /* if server or share does not support sparse */
1086 u64 resource_id; /* server resource id */
1267 struct TCP_Server_Info *server; member
1306 int (*read_into_pages)(struct TCP_Server_Info *server,
1309 int (*copy_into_pages)(struct TCP_Server_Info *server,
1313 struct TCP_Server_Info *server; member
1338 struct TCP_Server_Info *server; member
1398 #define CIFS_INO_DELETE_PENDING (3) /* delete pending on server */
1407 u64 server_eof; /* current file size on server -- protected by i_lock */
1408 u64 uniqueid; /* server inode number */
1409 u64 createtime; /* creation time on server */
1494 typedef int (mid_receive_t)(struct TCP_Server_Info *server,
1511 typedef int (mid_handle_t)(struct TCP_Server_Info *server,
1514 /* one of these for every pending CIFS request to the server */
1516 struct list_head qhead; /* mids waiting on reply from this server */
1518 struct TCP_Server_Info *server; /* server corresponding to this mid */ member
1556 static inline void cifs_in_send_inc(struct TCP_Server_Info *server) in cifs_in_send_inc() argument
1558 atomic_inc(&server->in_send); in cifs_in_send_inc()
1561 static inline void cifs_in_send_dec(struct TCP_Server_Info *server) in cifs_in_send_dec() argument
1563 atomic_dec(&server->in_send); in cifs_in_send_dec()
1566 static inline void cifs_num_waiters_inc(struct TCP_Server_Info *server) in cifs_num_waiters_inc() argument
1568 atomic_inc(&server->num_waiters); in cifs_num_waiters_inc()
1571 static inline void cifs_num_waiters_dec(struct TCP_Server_Info *server) in cifs_num_waiters_dec() argument
1573 atomic_dec(&server->num_waiters); in cifs_num_waiters_dec()
1730 #define CIFS_NO_SRV_RSP 0x1000 /* there is no server response */
1780 * updates to server->CurrentMid
1807 * connecting our client to a distinct server (ip address), is
1817 * the reference counters for the server, smb session, and tcon. It also
1867 extern unsigned int cifs_max_pending; /* MAX requests at once to server*/
1924 static inline bool is_smb1_server(struct TCP_Server_Info *server) in is_smb1_server() argument
1926 return strcmp(server->vals->version_string, SMB1_VERSION_STRING) == 0; in is_smb1_server()
1935 * For SMB2+, see MS-SMB2 2.2.10 SMB2 TREE_CONNECT Response and MS-SMB2 3.3.4.14 Server in is_tcon_dfs()
1938 if (!tcon || !tcon->ses || !tcon->ses->server) in is_tcon_dfs()
1940 return is_smb1_server(tcon->ses->server) ? tcon->Flags & SMB_SHARE_IS_IN_DFS : in is_tcon_dfs()