Lines Matching refs:server
229 void (*add_credits)(struct TCP_Server_Info *server,
236 void (*revert_current_mid)(struct TCP_Server_Info *server,
260 void (*downgrade_oplock)(struct TCP_Server_Info *server,
397 bool (*is_status_pending)(char *buf, struct TCP_Server_Info *server);
470 int (*adjust_credits)(struct TCP_Server_Info *server,
530 #define HEADER_SIZE(server) (server->vals->header_size) argument
531 #define MAX_HEADER_SIZE(server) (server->vals->max_header_size) argument
789 in_flight(struct TCP_Server_Info *server) in in_flight() argument
792 spin_lock(&server->req_lock); in in_flight()
793 num = server->in_flight; in in_flight()
794 spin_unlock(&server->req_lock); in in_flight()
799 has_credits(struct TCP_Server_Info *server, int *credits, int num_credits) in has_credits() argument
802 spin_lock(&server->req_lock); in has_credits()
804 spin_unlock(&server->req_lock); in has_credits()
809 add_credits(struct TCP_Server_Info *server, const struct cifs_credits *credits, in add_credits() argument
812 server->ops->add_credits(server, credits, optype); in add_credits()
816 add_credits_and_wake_if(struct TCP_Server_Info *server, in add_credits_and_wake_if() argument
820 server->ops->add_credits(server, credits, optype); in add_credits_and_wake_if()
821 wake_up(&server->request_q); in add_credits_and_wake_if()
826 set_credits(struct TCP_Server_Info *server, const int val) in set_credits() argument
828 server->ops->set_credits(server, val); in set_credits()
832 adjust_credits(struct TCP_Server_Info *server, struct cifs_credits *credits, in adjust_credits() argument
835 return server->ops->adjust_credits ? in adjust_credits()
836 server->ops->adjust_credits(server, credits, payload_size) : 0; in adjust_credits()
840 get_next_mid64(struct TCP_Server_Info *server) in get_next_mid64() argument
842 return cpu_to_le64(server->ops->get_next_mid(server)); in get_next_mid64()
846 get_next_mid(struct TCP_Server_Info *server) in get_next_mid() argument
848 __u16 mid = server->ops->get_next_mid(server); in get_next_mid()
857 revert_current_mid(struct TCP_Server_Info *server, const unsigned int val) in revert_current_mid() argument
859 if (server->ops->revert_current_mid) in revert_current_mid()
860 server->ops->revert_current_mid(server, val); in revert_current_mid()
864 revert_current_mid_from_hdr(struct TCP_Server_Info *server, in revert_current_mid_from_hdr() argument
869 return revert_current_mid(server, num > 0 ? num : 1); in revert_current_mid_from_hdr()
968 struct TCP_Server_Info *server; member
980 struct TCP_Server_Info *server; /* pointer to server info */ member
1059 return ses->binding_chan->server; in cifs_ses_server()
1061 return ses->server; in cifs_ses_server()
1067 return ses->server->vals->cap_unix & ses->capabilities; in cap_unix()
1341 struct TCP_Server_Info *server; member
1382 int (*read_into_pages)(struct TCP_Server_Info *server,
1385 int (*copy_into_pages)(struct TCP_Server_Info *server,
1389 struct TCP_Server_Info *server; member
1416 struct TCP_Server_Info *server; member
1567 typedef int (mid_receive_t)(struct TCP_Server_Info *server,
1584 typedef int (mid_handle_t)(struct TCP_Server_Info *server,
1591 struct TCP_Server_Info *server; /* server corresponding to this mid */ member
1629 static inline void cifs_in_send_inc(struct TCP_Server_Info *server) in cifs_in_send_inc() argument
1631 atomic_inc(&server->in_send); in cifs_in_send_inc()
1634 static inline void cifs_in_send_dec(struct TCP_Server_Info *server) in cifs_in_send_dec() argument
1636 atomic_dec(&server->in_send); in cifs_in_send_dec()
1639 static inline void cifs_num_waiters_inc(struct TCP_Server_Info *server) in cifs_num_waiters_inc() argument
1641 atomic_inc(&server->num_waiters); in cifs_num_waiters_inc()
1644 static inline void cifs_num_waiters_dec(struct TCP_Server_Info *server) in cifs_num_waiters_dec() argument
1646 atomic_dec(&server->num_waiters); in cifs_num_waiters_dec()
2027 static inline bool is_smb1_server(struct TCP_Server_Info *server) in is_smb1_server() argument
2029 return strcmp(server->vals->version_string, SMB1_VERSION_STRING) == 0; in is_smb1_server()
2041 if (!tcon || !tcon->ses || !tcon->ses->server) in is_tcon_dfs()
2043 return is_smb1_server(tcon->ses->server) ? tcon->Flags & SMB_SHARE_IS_IN_DFS : in is_tcon_dfs()