Lines Matching refs:TCP_Server_Info

191 struct TCP_Server_Info;
208 int (*send_cancel)(struct TCP_Server_Info *, struct smb_rqst *,
213 struct TCP_Server_Info *,
216 struct mid_q_entry *(*setup_async_request)(struct TCP_Server_Info *,
219 int (*check_receive)(struct mid_q_entry *, struct TCP_Server_Info *,
221 void (*add_credits)(struct TCP_Server_Info *server,
224 void (*set_credits)(struct TCP_Server_Info *, const int);
225 int * (*get_credits_field)(struct TCP_Server_Info *, const int);
227 __u64 (*get_next_mid)(struct TCP_Server_Info *);
228 void (*revert_current_mid)(struct TCP_Server_Info *server,
243 struct mid_q_entry * (*find_mid)(struct TCP_Server_Info *, char *);
244 void (*dump_detail)(void *buf, struct TCP_Server_Info *ptcp_info);
249 int (*check_message)(char *, unsigned int, struct TCP_Server_Info *);
250 bool (*is_oplock_break)(char *, struct TCP_Server_Info *);
251 int (*handle_cancelled_mid)(struct mid_q_entry *, struct TCP_Server_Info *);
252 void (*downgrade_oplock)(struct TCP_Server_Info *server,
256 bool (*check_trans2)(struct mid_q_entry *, struct TCP_Server_Info *,
259 bool (*need_neg)(struct TCP_Server_Info *);
313 bool (*can_echo)(struct TCP_Server_Info *);
315 int (*echo)(struct TCP_Server_Info *);
387 unsigned int (*calc_smb_size)(void *buf, struct TCP_Server_Info *ptcpi);
389 bool (*is_status_pending)(char *buf, struct TCP_Server_Info *server);
413 int (*calc_signature)(struct smb_rqst *, struct TCP_Server_Info *,
459 int (*wait_mtu_credits)(struct TCP_Server_Info *, unsigned int,
462 int (*adjust_credits)(struct TCP_Server_Info *server,
470 int (*init_transform_rq)(struct TCP_Server_Info *, int num_rqst,
473 int (*receive_transform)(struct TCP_Server_Info *,
475 enum securityEnum (*select_sectype)(struct TCP_Server_Info *,
500 void (*is_network_name_deleted)(char *buf, struct TCP_Server_Info *srv);
571 struct TCP_Server_Info { struct
703 in_flight(struct TCP_Server_Info *server) in in_flight() argument
713 has_credits(struct TCP_Server_Info *server, int *credits, int num_credits) in has_credits()
723 add_credits(struct TCP_Server_Info *server, const struct cifs_credits *credits, in add_credits()
730 add_credits_and_wake_if(struct TCP_Server_Info *server, in add_credits_and_wake_if()
740 set_credits(struct TCP_Server_Info *server, const int val) in set_credits()
746 adjust_credits(struct TCP_Server_Info *server, struct cifs_credits *credits, in adjust_credits()
754 get_next_mid64(struct TCP_Server_Info *server) in get_next_mid64()
760 get_next_mid(struct TCP_Server_Info *server) in get_next_mid()
771 revert_current_mid(struct TCP_Server_Info *server, const unsigned int val) in revert_current_mid()
778 revert_current_mid_from_hdr(struct TCP_Server_Info *server, in revert_current_mid_from_hdr()
851 static inline struct net *cifs_net_ns(struct TCP_Server_Info *srv) in cifs_net_ns()
856 static inline void cifs_set_net_ns(struct TCP_Server_Info *srv, struct net *net) in cifs_set_net_ns()
863 static inline struct net *cifs_net_ns(struct TCP_Server_Info *srv) in cifs_net_ns()
868 static inline void cifs_set_net_ns(struct TCP_Server_Info *srv, struct net *net) in cifs_set_net_ns()
882 struct TCP_Server_Info *server;
894 struct TCP_Server_Info *server; /* pointer to server info */
970 struct TCP_Server_Info *cifs_ses_server(struct cifs_ses *ses) in cifs_ses_server()
1267 struct TCP_Server_Info *server;
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;
1338 struct TCP_Server_Info *server;
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 */
1556 static inline void cifs_in_send_inc(struct TCP_Server_Info *server) in cifs_in_send_inc()
1561 static inline void cifs_in_send_dec(struct TCP_Server_Info *server) in cifs_in_send_dec()
1566 static inline void cifs_num_waiters_inc(struct TCP_Server_Info *server) in cifs_num_waiters_inc()
1571 static inline void cifs_num_waiters_dec(struct TCP_Server_Info *server) in cifs_num_waiters_dec()
1924 static inline bool is_smb1_server(struct TCP_Server_Info *server) in is_smb1_server()