Lines Matching refs:server
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,
389 bool (*is_status_pending)(char *buf, struct TCP_Server_Info *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
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()
882 struct TCP_Server_Info *server; member
894 struct TCP_Server_Info *server; /* pointer to server info */ member
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()
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
1494 typedef int (mid_receive_t)(struct TCP_Server_Info *server,
1511 typedef int (mid_handle_t)(struct TCP_Server_Info *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()
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()
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()