Lines Matching refs:TCP_Server_Info
202 struct TCP_Server_Info;
219 int (*send_cancel)(struct TCP_Server_Info *, struct smb_rqst *,
224 struct TCP_Server_Info *,
227 struct mid_q_entry *(*setup_async_request)(struct TCP_Server_Info *,
230 int (*check_receive)(struct mid_q_entry *, struct TCP_Server_Info *,
232 void (*add_credits)(struct TCP_Server_Info *server,
235 void (*set_credits)(struct TCP_Server_Info *, const int);
236 int * (*get_credits_field)(struct TCP_Server_Info *, const int);
238 __u64 (*get_next_mid)(struct TCP_Server_Info *);
239 void (*revert_current_mid)(struct TCP_Server_Info *server,
254 struct mid_q_entry * (*find_mid)(struct TCP_Server_Info *, char *);
255 void (*dump_detail)(void *buf, struct TCP_Server_Info *ptcp_info);
260 int (*check_message)(char *, unsigned int, struct TCP_Server_Info *);
261 bool (*is_oplock_break)(char *, struct TCP_Server_Info *);
262 int (*handle_cancelled_mid)(struct mid_q_entry *, struct TCP_Server_Info *);
263 void (*downgrade_oplock)(struct TCP_Server_Info *server,
267 bool (*check_trans2)(struct mid_q_entry *, struct TCP_Server_Info *,
270 bool (*need_neg)(struct TCP_Server_Info *);
324 bool (*can_echo)(struct TCP_Server_Info *);
326 int (*echo)(struct TCP_Server_Info *);
398 unsigned int (*calc_smb_size)(void *buf, struct TCP_Server_Info *ptcpi);
400 bool (*is_status_pending)(char *buf, struct TCP_Server_Info *server);
424 int (*calc_signature)(struct smb_rqst *, struct TCP_Server_Info *,
470 int (*wait_mtu_credits)(struct TCP_Server_Info *, unsigned int,
473 int (*adjust_credits)(struct TCP_Server_Info *server,
481 int (*init_transform_rq)(struct TCP_Server_Info *, int num_rqst,
484 int (*receive_transform)(struct TCP_Server_Info *,
486 enum securityEnum (*select_sectype)(struct TCP_Server_Info *,
671 struct TCP_Server_Info {
792 in_flight(struct TCP_Server_Info *server)
802 has_credits(struct TCP_Server_Info *server, int *credits, int num_credits)
812 add_credits(struct TCP_Server_Info *server, const struct cifs_credits *credits,
819 add_credits_and_wake_if(struct TCP_Server_Info *server,
829 set_credits(struct TCP_Server_Info *server, const int val)
835 adjust_credits(struct TCP_Server_Info *server, struct cifs_credits *credits,
843 get_next_mid64(struct TCP_Server_Info *server)
849 get_next_mid(struct TCP_Server_Info *server)
860 revert_current_mid(struct TCP_Server_Info *server, const unsigned int val)
867 revert_current_mid_from_hdr(struct TCP_Server_Info *server,
934 * Macros to allow the TCP_Server_Info->net field and related code to drop out
940 static inline struct net *cifs_net_ns(struct TCP_Server_Info *srv)
945 static inline void cifs_set_net_ns(struct TCP_Server_Info *srv, struct net *net)
952 static inline struct net *cifs_net_ns(struct TCP_Server_Info *srv)
957 static inline void cifs_set_net_ns(struct TCP_Server_Info *srv, struct net *net)
971 struct TCP_Server_Info *server;
983 struct TCP_Server_Info *server; /* pointer to server info */
1059 struct TCP_Server_Info *cifs_ses_server(struct cifs_ses *ses)
1344 struct TCP_Server_Info *server;
1385 int (*read_into_pages)(struct TCP_Server_Info *server,
1388 int (*copy_into_pages)(struct TCP_Server_Info *server,
1392 struct TCP_Server_Info *server;
1419 struct TCP_Server_Info *server;
1568 * the TCP_Server_Info will also be updated.
1570 typedef int (mid_receive_t)(struct TCP_Server_Info *server,
1587 typedef int (mid_handle_t)(struct TCP_Server_Info *server,
1594 struct TCP_Server_Info *server; /* server corresponding to this mid */
1632 static inline void cifs_in_send_inc(struct TCP_Server_Info *server)
1637 static inline void cifs_in_send_dec(struct TCP_Server_Info *server)
1642 static inline void cifs_num_waiters_inc(struct TCP_Server_Info *server)
1647 static inline void cifs_num_waiters_dec(struct TCP_Server_Info *server)
1896 * the list of TCP_Server_Info structures, ie each of the sockets
1908 * protects some fields in the TCP_Server_Info struct such as dstaddr. Finally,
2032 static inline bool is_smb1_server(struct TCP_Server_Info *server)