Lines Matching refs:TCP_Server_Info
247 struct TCP_Server_Info;
264 int (*send_cancel)(struct TCP_Server_Info *, struct smb_rqst *,
269 struct TCP_Server_Info *,
272 struct mid_q_entry *(*setup_async_request)(struct TCP_Server_Info *,
275 int (*check_receive)(struct mid_q_entry *, struct TCP_Server_Info *,
277 void (*add_credits)(struct TCP_Server_Info *server,
280 void (*set_credits)(struct TCP_Server_Info *, const int);
281 int * (*get_credits_field)(struct TCP_Server_Info *, const int);
283 __u64 (*get_next_mid)(struct TCP_Server_Info *);
284 void (*revert_current_mid)(struct TCP_Server_Info *server,
299 struct mid_q_entry * (*find_mid)(struct TCP_Server_Info *, char *);
300 void (*dump_detail)(void *buf, struct TCP_Server_Info *ptcp_info);
305 int (*check_message)(char *, unsigned int, struct TCP_Server_Info *);
306 bool (*is_oplock_break)(char *, struct TCP_Server_Info *);
307 int (*handle_cancelled_mid)(struct mid_q_entry *, struct TCP_Server_Info *);
308 void (*downgrade_oplock)(struct TCP_Server_Info *server,
312 bool (*check_trans2)(struct mid_q_entry *, struct TCP_Server_Info *,
315 bool (*need_neg)(struct TCP_Server_Info *);
319 struct TCP_Server_Info *server);
326 struct TCP_Server_Info *server,
377 bool (*can_echo)(struct TCP_Server_Info *);
379 int (*echo)(struct TCP_Server_Info *);
460 bool (*is_status_pending)(char *buf, struct TCP_Server_Info *server);
484 struct TCP_Server_Info *server);
485 int (*calc_signature)(struct smb_rqst *, struct TCP_Server_Info *,
531 int (*wait_mtu_credits)(struct TCP_Server_Info *, unsigned int,
534 int (*adjust_credits)(struct TCP_Server_Info *server,
542 int (*init_transform_rq)(struct TCP_Server_Info *, int num_rqst,
545 int (*receive_transform)(struct TCP_Server_Info *,
547 enum securityEnum (*select_sectype)(struct TCP_Server_Info *,
549 int (*next_header)(struct TCP_Server_Info *server, char *buf,
573 bool (*is_network_name_deleted)(char *buf, struct TCP_Server_Info *srv);
649 struct TCP_Server_Info {
773 struct TCP_Server_Info *primary_server;
798 static inline bool is_smb1(struct TCP_Server_Info *server)
803 static inline void cifs_server_lock(struct TCP_Server_Info *server)
811 static inline void cifs_server_unlock(struct TCP_Server_Info *server)
825 in_flight(struct TCP_Server_Info *server)
836 has_credits(struct TCP_Server_Info *server, int *credits, int num_credits)
847 add_credits(struct TCP_Server_Info *server, const struct cifs_credits *credits,
854 add_credits_and_wake_if(struct TCP_Server_Info *server,
864 set_credits(struct TCP_Server_Info *server, const int val)
870 adjust_credits(struct TCP_Server_Info *server, struct cifs_credits *credits,
878 get_next_mid64(struct TCP_Server_Info *server)
884 get_next_mid(struct TCP_Server_Info *server)
895 revert_current_mid(struct TCP_Server_Info *server, const unsigned int val)
902 revert_current_mid_from_hdr(struct TCP_Server_Info *server,
963 * Macros to allow the TCP_Server_Info->net field and related code to drop out
969 static inline struct net *cifs_net_ns(struct TCP_Server_Info *srv)
974 static inline void cifs_set_net_ns(struct TCP_Server_Info *srv, struct net *net)
981 static inline struct net *cifs_net_ns(struct TCP_Server_Info *srv)
986 static inline void cifs_set_net_ns(struct TCP_Server_Info *srv, struct net *net)
1016 struct TCP_Server_Info *server;
1033 struct TCP_Server_Info *server; /* pointer to server info */
1429 struct TCP_Server_Info *server;
1471 struct TCP_Server_Info *server;
1493 struct TCP_Server_Info *server;
1641 * the TCP_Server_Info will also be updated.
1643 typedef int (mid_receive_t)(struct TCP_Server_Info *server,
1660 typedef int (mid_handle_t)(struct TCP_Server_Info *server,
1667 struct TCP_Server_Info *server; /* server corresponding to this mid */
1705 static inline void cifs_in_send_inc(struct TCP_Server_Info *server)
1710 static inline void cifs_in_send_dec(struct TCP_Server_Info *server)
1715 static inline void cifs_num_waiters_inc(struct TCP_Server_Info *server)
1720 static inline void cifs_num_waiters_dec(struct TCP_Server_Info *server)
1769 struct TCP_Server_Info *server;
1950 * TCP_Server_Info-> TCP_Server_Info cifs_get_tcp_session
1952 * TCP_Server_Info->srv_mutex TCP_Server_Info cifs_get_tcp_session
1963 * TCP_Server_Info->srv_lock (anything in struct not protected by another lock and can change)
1964 * TCP_Server_Info->mid_lock TCP_Server_Info->pending_mid_q cifs_get_tcp_session
1967 * TCP_Server_Info->req_lock TCP_Server_Info->in_flight cifs_get_tcp_session
2000 * the list of TCP_Server_Info structures, ie each of the sockets
2119 static inline bool is_smb1_server(struct TCP_Server_Info *server)