Lines Matching refs:server

328 	void (*add_credits)(struct TCP_Server_Info *server,
335 void (*revert_current_mid)(struct TCP_Server_Info *server,
359 void (*downgrade_oplock)(struct TCP_Server_Info *server,
370 struct TCP_Server_Info *server);
377 struct TCP_Server_Info *server,
514 bool (*is_status_pending)(char *buf, struct TCP_Server_Info *server);
538 struct TCP_Server_Info *server);
588 int (*adjust_credits)(struct TCP_Server_Info *server,
603 int (*next_header)(struct TCP_Server_Info *server, char *buf,
662 #define HEADER_SIZE(server) (server->vals->header_size) argument
663 #define MAX_HEADER_SIZE(server) (server->vals->max_header_size) argument
664 #define HEADER_PREAMBLE_SIZE(server) (server->vals->header_preamble_size) argument
665 #define MID_HEADER_SIZE(server) (HEADER_SIZE(server) - 1 - HEADER_PREAMBLE_SIZE(server)) argument
846 #define SERVER_IS_CHAN(server) (!!(server)->primary_server) argument
865 static inline bool is_smb1(struct TCP_Server_Info *server) in is_smb1() argument
867 return HEADER_PREAMBLE_SIZE(server) != 0; in is_smb1()
870 static inline void cifs_server_lock(struct TCP_Server_Info *server) in cifs_server_lock() argument
874 mutex_lock(&server->_srv_mutex); in cifs_server_lock()
875 server->nofs_flag = nofs_flag; in cifs_server_lock()
878 static inline void cifs_server_unlock(struct TCP_Server_Info *server) in cifs_server_unlock() argument
880 unsigned int nofs_flag = server->nofs_flag; in cifs_server_unlock()
882 mutex_unlock(&server->_srv_mutex); in cifs_server_unlock()
895 in_flight(struct TCP_Server_Info *server) in in_flight() argument
899 spin_lock(&server->req_lock); in in_flight()
900 num = server->in_flight; in in_flight()
901 spin_unlock(&server->req_lock); in in_flight()
906 has_credits(struct TCP_Server_Info *server, int *credits, int num_credits) in has_credits() argument
910 spin_lock(&server->req_lock); in has_credits()
912 spin_unlock(&server->req_lock); in has_credits()
917 add_credits(struct TCP_Server_Info *server, struct cifs_credits *credits, in add_credits() argument
920 server->ops->add_credits(server, credits, optype); in add_credits()
924 add_credits_and_wake_if(struct TCP_Server_Info *server, in add_credits_and_wake_if() argument
928 server->ops->add_credits(server, credits, optype); in add_credits_and_wake_if()
929 wake_up(&server->request_q); in add_credits_and_wake_if()
935 set_credits(struct TCP_Server_Info *server, const int val) in set_credits() argument
937 server->ops->set_credits(server, val); in set_credits()
941 adjust_credits(struct TCP_Server_Info *server, struct cifs_io_subrequest *subreq, in adjust_credits() argument
944 return server->ops->adjust_credits ? in adjust_credits()
945 server->ops->adjust_credits(server, subreq, trace) : 0; in adjust_credits()
949 get_next_mid64(struct TCP_Server_Info *server) in get_next_mid64() argument
951 return cpu_to_le64(server->ops->get_next_mid(server)); in get_next_mid64()
955 get_next_mid(struct TCP_Server_Info *server) in get_next_mid() argument
957 __u16 mid = server->ops->get_next_mid(server); in get_next_mid()
966 revert_current_mid(struct TCP_Server_Info *server, const unsigned int val) in revert_current_mid() argument
968 if (server->ops->revert_current_mid) in revert_current_mid()
969 server->ops->revert_current_mid(server, val); in revert_current_mid()
973 revert_current_mid_from_hdr(struct TCP_Server_Info *server, in revert_current_mid_from_hdr() argument
978 return revert_current_mid(server, num > 0 ? num : 1); in revert_current_mid_from_hdr()
1087 struct TCP_Server_Info *server; member
1106 struct TCP_Server_Info *server; /* pointer to server info */ member
1197 return ses->server->vals->cap_unix & ses->capabilities; in cap_unix()
1519 struct TCP_Server_Info *server; member
1541 struct TCP_Server_Info *server; member
1689 typedef int (mid_receive_t)(struct TCP_Server_Info *server,
1706 typedef int (mid_handle_t)(struct TCP_Server_Info *server,
1713 struct TCP_Server_Info *server; /* server corresponding to this mid */ member
1754 static inline void cifs_in_send_inc(struct TCP_Server_Info *server) in cifs_in_send_inc() argument
1756 atomic_inc(&server->in_send); in cifs_in_send_inc()
1759 static inline void cifs_in_send_dec(struct TCP_Server_Info *server) in cifs_in_send_dec() argument
1761 atomic_dec(&server->in_send); in cifs_in_send_dec()
1764 static inline void cifs_num_waiters_inc(struct TCP_Server_Info *server) in cifs_num_waiters_inc() argument
1766 atomic_inc(&server->num_waiters); in cifs_num_waiters_inc()
1769 static inline void cifs_num_waiters_dec(struct TCP_Server_Info *server) in cifs_num_waiters_dec() argument
1771 atomic_dec(&server->num_waiters); in cifs_num_waiters_dec()
1818 struct TCP_Server_Info *server; member
2179 static inline bool is_smb1_server(struct TCP_Server_Info *server) in is_smb1_server() argument
2181 return strcmp(server->vals->version_string, SMB1_VERSION_STRING) == 0; in is_smb1_server()
2193 if (!tcon || !tcon->ses || !tcon->ses->server) in is_tcon_dfs()
2195 return is_smb1_server(tcon->ses->server) ? tcon->Flags & SMB_SHARE_IS_IN_DFS : in is_tcon_dfs()
2216 if (WARN_ON_ONCE(!ses || !ses->server)) in ntlmssp_workstation_name_size()
2222 if (ses->server->dialect <= SMB20_PROT_ID) in ntlmssp_workstation_name_size()