Lines Matching defs:server
95 * defaults to 128 credits, the Windows server allows clients up to
96 * 512 credits (or 8K for later versions), and the NetApp server
100 * to reduce possibility of seeing more server credit overflow bugs.
163 __u32 server_flags; /* sent by server in type 2 ntlmssp exchange */
164 unsigned char ciphertext[CIFS_CPHTXT_SIZE]; /* sent to server */
187 * A smb_rqst represents a complete request to be issued to a server. It's
232 void (*add_credits)(struct TCP_Server_Info *server,
239 void (*revert_current_mid)(struct TCP_Server_Info *server,
263 void (*downgrade_oplock)(struct TCP_Server_Info *server,
271 /* negotiate to the server */
282 /* connect to a server share */
297 /* query path data from the server */
301 /* query file data from the server */
308 /* get server index number */
370 /* send a flush request to the server */
372 /* async read from the server */
374 /* async write to the server */
377 /* sync read from the server */
381 /* sync write to the server */
400 bool (*is_status_pending)(char *buf, struct TCP_Server_Info *server);
409 /* send mandatory brlock to the server */
415 /* push brlocks from the cache to the server */
473 int (*adjust_credits)(struct TCP_Server_Info *server,
533 #define HEADER_SIZE(server) (server->vals->header_size)
534 #define MAX_HEADER_SIZE(server) (server->vals->max_header_size)
569 bool server_ino:1; /* use inode numbers from server ie UniqueId */
675 /* 15 character server name + 0x20 16th byte indicating type = srv */
695 unsigned int in_flight; /* number of requests on the wire to server */
709 u16 dialect; /* dialect index that server chose */
712 /* than maxReq distinct unanswered SMBs to the server when using */
715 /* message size the server can send or receive for non-raw SMBs */
719 /* message size the server can send or receive for */
722 int timeAdj; /* Adjust for difference in server time zone in sec */
730 unsigned long lstrp; /* when we got last response from this server */
736 /* extended security flavors that server supports */
792 in_flight(struct TCP_Server_Info *server)
795 spin_lock(&server->req_lock);
796 num = server->in_flight;
797 spin_unlock(&server->req_lock);
802 has_credits(struct TCP_Server_Info *server, int *credits, int num_credits)
805 spin_lock(&server->req_lock);
807 spin_unlock(&server->req_lock);
812 add_credits(struct TCP_Server_Info *server, const struct cifs_credits *credits,
815 server->ops->add_credits(server, credits, optype);
819 add_credits_and_wake_if(struct TCP_Server_Info *server,
823 server->ops->add_credits(server, credits, optype);
824 wake_up(&server->request_q);
829 set_credits(struct TCP_Server_Info *server, const int val)
831 server->ops->set_credits(server, val);
835 adjust_credits(struct TCP_Server_Info *server, struct cifs_credits *credits,
838 return server->ops->adjust_credits ?
839 server->ops->adjust_credits(server, credits, payload_size) : 0;
843 get_next_mid64(struct TCP_Server_Info *server)
845 return cpu_to_le64(server->ops->get_next_mid(server));
849 get_next_mid(struct TCP_Server_Info *server)
851 __u16 mid = server->ops->get_next_mid(server);
860 revert_current_mid(struct TCP_Server_Info *server, const unsigned int val)
862 if (server->ops->revert_current_mid)
863 server->ops->revert_current_mid(server, val);
867 revert_current_mid_from_hdr(struct TCP_Server_Info *server,
872 return revert_current_mid(server, num > 0 ? num : 1);
888 * When the server supports very large reads and writes via POSIX extensions,
904 * When the server doesn't allow large posix writes, only allow a rsize/wsize
971 struct TCP_Server_Info *server;
983 struct TCP_Server_Info *server; /* pointer to server info */
987 char *serverOS; /* name of operating system underlying server */
988 char *serverNOS; /* name of network operating system of server */
989 char *serverDomain; /* security realm of server */
1000 struct ntlmssp_auth *ntlmssp; /* ciphertext, flags, server challenge */
1015 * Network interfaces available on the server this session is
1051 * Returns the server pointer of the session. When binding a new
1062 return ses->binding_chan->server;
1064 return ses->server;
1070 return ses->server->vals->cap_unix & ses->capabilities;
1094 atomic_t num_remote_opens; /* num of all network opens on server */
1145 bool nohandlecache:1; /* if strange server resource prob can turn off */
1149 for this mount even if server would support */
1152 bool broken_posix_open; /* e.g. Samba server versions < 3.3.2, 3.2.9 */
1153 bool broken_sparse_sup; /* if server or share does not support sparse */
1172 u64 resource_id; /* server resource id */
1344 struct TCP_Server_Info *server;
1385 int (*read_into_pages)(struct TCP_Server_Info *server,
1388 int (*copy_into_pages)(struct TCP_Server_Info *server,
1392 struct TCP_Server_Info *server;
1419 struct TCP_Server_Info *server;
1479 #define CIFS_INO_DELETE_PENDING (3) /* delete pending on server */
1486 u64 server_eof; /* current file size on server -- protected by i_lock */
1487 u64 uniqueid; /* server inode number */
1488 u64 createtime; /* creation time on server */
1570 typedef int (mid_receive_t)(struct TCP_Server_Info *server,
1587 typedef int (mid_handle_t)(struct TCP_Server_Info *server,
1590 /* one of these for every pending CIFS request to the server */
1592 struct list_head qhead; /* mids waiting on reply from this server */
1594 struct TCP_Server_Info *server; /* server corresponding to this mid */
1632 static inline void cifs_in_send_inc(struct TCP_Server_Info *server)
1634 atomic_inc(&server->in_send);
1637 static inline void cifs_in_send_dec(struct TCP_Server_Info *server)
1639 atomic_dec(&server->in_send);
1642 static inline void cifs_num_waiters_inc(struct TCP_Server_Info *server)
1644 atomic_inc(&server->num_waiters);
1647 static inline void cifs_num_waiters_dec(struct TCP_Server_Info *server)
1649 atomic_dec(&server->num_waiters);
1799 #define CIFS_NO_SRV_RSP 0x1000 /* there is no server response */
1897 * connecting our client to a distinct server (ip address), is
1907 * the reference counters for the server, smb session, and tcon. It also
1962 extern unsigned int cifs_max_pending; /* MAX requests at once to server*/
2032 static inline bool is_smb1_server(struct TCP_Server_Info *server)
2034 return strcmp(server->vals->version_string, SMB1_VERSION_STRING) == 0;
2046 if (!tcon || !tcon->ses || !tcon->ses->server)
2048 return is_smb1_server(tcon->ses->server) ? tcon->Flags & SMB_SHARE_IS_IN_DFS :