Lines Matching defs:TCP_Server_Info

263 struct TCP_Server_Info;
280 int (*send_cancel)(struct TCP_Server_Info *, struct smb_rqst *,
285 struct TCP_Server_Info *,
288 struct mid_q_entry *(*setup_async_request)(struct TCP_Server_Info *,
291 int (*check_receive)(struct mid_q_entry *, struct TCP_Server_Info *,
293 void (*add_credits)(struct TCP_Server_Info *server,
296 void (*set_credits)(struct TCP_Server_Info *, const int);
297 int * (*get_credits_field)(struct TCP_Server_Info *, const int);
299 __u64 (*get_next_mid)(struct TCP_Server_Info *);
300 void (*revert_current_mid)(struct TCP_Server_Info *server,
315 struct mid_q_entry * (*find_mid)(struct TCP_Server_Info *, char *);
316 void (*dump_detail)(void *buf, struct TCP_Server_Info *ptcp_info);
321 int (*check_message)(char *, unsigned int, struct TCP_Server_Info *);
322 bool (*is_oplock_break)(char *, struct TCP_Server_Info *);
323 int (*handle_cancelled_mid)(struct mid_q_entry *, struct TCP_Server_Info *);
324 void (*downgrade_oplock)(struct TCP_Server_Info *server,
328 bool (*check_trans2)(struct mid_q_entry *, struct TCP_Server_Info *,
331 bool (*need_neg)(struct TCP_Server_Info *);
335 struct TCP_Server_Info *server);
342 struct TCP_Server_Info *server,
397 bool (*can_echo)(struct TCP_Server_Info *);
399 int (*echo)(struct TCP_Server_Info *);
480 bool (*is_status_pending)(char *buf, struct TCP_Server_Info *server);
504 struct TCP_Server_Info *server);
505 int (*calc_signature)(struct smb_rqst *, struct TCP_Server_Info *,
551 int (*wait_mtu_credits)(struct TCP_Server_Info *, unsigned int,
554 int (*adjust_credits)(struct TCP_Server_Info *server,
562 int (*init_transform_rq)(struct TCP_Server_Info *, int num_rqst,
565 int (*receive_transform)(struct TCP_Server_Info *,
567 enum securityEnum (*select_sectype)(struct TCP_Server_Info *,
569 int (*next_header)(struct TCP_Server_Info *server, char *buf,
593 bool (*is_network_name_deleted)(char *buf, struct TCP_Server_Info *srv);
675 struct TCP_Server_Info {
804 struct TCP_Server_Info *primary_server;
829 static inline bool is_smb1(struct TCP_Server_Info *server)
834 static inline void cifs_server_lock(struct TCP_Server_Info *server)
842 static inline void cifs_server_unlock(struct TCP_Server_Info *server)
856 in_flight(struct TCP_Server_Info *server)
867 has_credits(struct TCP_Server_Info *server, int *credits, int num_credits)
878 add_credits(struct TCP_Server_Info *server, const struct cifs_credits *credits,
885 add_credits_and_wake_if(struct TCP_Server_Info *server,
895 set_credits(struct TCP_Server_Info *server, const int val)
901 adjust_credits(struct TCP_Server_Info *server, struct cifs_credits *credits,
909 get_next_mid64(struct TCP_Server_Info *server)
915 get_next_mid(struct TCP_Server_Info *server)
926 revert_current_mid(struct TCP_Server_Info *server, const unsigned int val)
933 revert_current_mid_from_hdr(struct TCP_Server_Info *server,
994 * Macros to allow the TCP_Server_Info->net field and related code to drop out
1000 static inline struct net *cifs_net_ns(struct TCP_Server_Info *srv)
1005 static inline void cifs_set_net_ns(struct TCP_Server_Info *srv, struct net *net)
1012 static inline struct net *cifs_net_ns(struct TCP_Server_Info *srv)
1017 static inline void cifs_set_net_ns(struct TCP_Server_Info *srv, struct net *net)
1047 struct TCP_Server_Info *server;
1064 struct TCP_Server_Info *server; /* pointer to server info */
1469 struct TCP_Server_Info *server;
1511 struct TCP_Server_Info *server;
1533 struct TCP_Server_Info *server;
1681 * the TCP_Server_Info will also be updated.
1683 typedef int (mid_receive_t)(struct TCP_Server_Info *server,
1700 typedef int (mid_handle_t)(struct TCP_Server_Info *server,
1707 struct TCP_Server_Info *server; /* server corresponding to this mid */
1745 static inline void cifs_in_send_inc(struct TCP_Server_Info *server)
1750 static inline void cifs_in_send_dec(struct TCP_Server_Info *server)
1755 static inline void cifs_num_waiters_inc(struct TCP_Server_Info *server)
1760 static inline void cifs_num_waiters_dec(struct TCP_Server_Info *server)
1809 struct TCP_Server_Info *server;
1989 * TCP_Server_Info-> TCP_Server_Info cifs_get_tcp_session
1991 * TCP_Server_Info->srv_mutex TCP_Server_Info cifs_get_tcp_session
2002 * TCP_Server_Info->srv_lock (anything in struct not protected by another lock and can change)
2003 * TCP_Server_Info->mid_lock TCP_Server_Info->pending_mid_q cifs_get_tcp_session
2006 * TCP_Server_Info->req_lock TCP_Server_Info->in_flight cifs_get_tcp_session
2039 * the list of TCP_Server_Info structures, ie each of the sockets
2161 static inline bool is_smb1_server(struct TCP_Server_Info *server)