diff options
Diffstat (limited to 'drivers/target/iscsi/iscsi_target_util.h')
-rw-r--r-- | drivers/target/iscsi/iscsi_target_util.h | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/drivers/target/iscsi/iscsi_target_util.h b/drivers/target/iscsi/iscsi_target_util.h new file mode 100644 index 000000000000..2cd49d607bda --- /dev/null +++ b/drivers/target/iscsi/iscsi_target_util.h | |||
@@ -0,0 +1,60 @@ | |||
1 | #ifndef ISCSI_TARGET_UTIL_H | ||
2 | #define ISCSI_TARGET_UTIL_H | ||
3 | |||
4 | #define MARKER_SIZE 8 | ||
5 | |||
6 | extern int iscsit_add_r2t_to_list(struct iscsi_cmd *, u32, u32, int, u32); | ||
7 | extern struct iscsi_r2t *iscsit_get_r2t_for_eos(struct iscsi_cmd *, u32, u32); | ||
8 | extern struct iscsi_r2t *iscsit_get_r2t_from_list(struct iscsi_cmd *); | ||
9 | extern void iscsit_free_r2t(struct iscsi_r2t *, struct iscsi_cmd *); | ||
10 | extern void iscsit_free_r2ts_from_list(struct iscsi_cmd *); | ||
11 | extern struct iscsi_cmd *iscsit_allocate_cmd(struct iscsi_conn *, gfp_t); | ||
12 | extern struct iscsi_cmd *iscsit_allocate_se_cmd(struct iscsi_conn *, u32, int, int); | ||
13 | extern struct iscsi_cmd *iscsit_allocate_se_cmd_for_tmr(struct iscsi_conn *, u8); | ||
14 | extern int iscsit_decide_list_to_build(struct iscsi_cmd *, u32); | ||
15 | extern struct iscsi_seq *iscsit_get_seq_holder_for_datain(struct iscsi_cmd *, u32); | ||
16 | extern struct iscsi_seq *iscsit_get_seq_holder_for_r2t(struct iscsi_cmd *); | ||
17 | extern struct iscsi_r2t *iscsit_get_holder_for_r2tsn(struct iscsi_cmd *, u32); | ||
18 | int iscsit_sequence_cmd(struct iscsi_conn *conn, struct iscsi_cmd *cmd, u32 cmdsn); | ||
19 | extern int iscsit_check_unsolicited_dataout(struct iscsi_cmd *, unsigned char *); | ||
20 | extern struct iscsi_cmd *iscsit_find_cmd_from_itt(struct iscsi_conn *, u32); | ||
21 | extern struct iscsi_cmd *iscsit_find_cmd_from_itt_or_dump(struct iscsi_conn *, | ||
22 | u32, u32); | ||
23 | extern struct iscsi_cmd *iscsit_find_cmd_from_ttt(struct iscsi_conn *, u32); | ||
24 | extern int iscsit_find_cmd_for_recovery(struct iscsi_session *, struct iscsi_cmd **, | ||
25 | struct iscsi_conn_recovery **, u32); | ||
26 | extern void iscsit_add_cmd_to_immediate_queue(struct iscsi_cmd *, struct iscsi_conn *, u8); | ||
27 | extern struct iscsi_queue_req *iscsit_get_cmd_from_immediate_queue(struct iscsi_conn *); | ||
28 | extern void iscsit_add_cmd_to_response_queue(struct iscsi_cmd *, struct iscsi_conn *, u8); | ||
29 | extern struct iscsi_queue_req *iscsit_get_cmd_from_response_queue(struct iscsi_conn *); | ||
30 | extern void iscsit_remove_cmd_from_tx_queues(struct iscsi_cmd *, struct iscsi_conn *); | ||
31 | extern void iscsit_free_queue_reqs_for_conn(struct iscsi_conn *); | ||
32 | extern void iscsit_release_cmd(struct iscsi_cmd *); | ||
33 | extern int iscsit_check_session_usage_count(struct iscsi_session *); | ||
34 | extern void iscsit_dec_session_usage_count(struct iscsi_session *); | ||
35 | extern void iscsit_inc_session_usage_count(struct iscsi_session *); | ||
36 | extern int iscsit_set_sync_and_steering_values(struct iscsi_conn *); | ||
37 | extern struct iscsi_conn *iscsit_get_conn_from_cid(struct iscsi_session *, u16); | ||
38 | extern struct iscsi_conn *iscsit_get_conn_from_cid_rcfr(struct iscsi_session *, u16); | ||
39 | extern void iscsit_check_conn_usage_count(struct iscsi_conn *); | ||
40 | extern void iscsit_dec_conn_usage_count(struct iscsi_conn *); | ||
41 | extern void iscsit_inc_conn_usage_count(struct iscsi_conn *); | ||
42 | extern void iscsit_mod_nopin_response_timer(struct iscsi_conn *); | ||
43 | extern void iscsit_start_nopin_response_timer(struct iscsi_conn *); | ||
44 | extern void iscsit_stop_nopin_response_timer(struct iscsi_conn *); | ||
45 | extern void __iscsit_start_nopin_timer(struct iscsi_conn *); | ||
46 | extern void iscsit_start_nopin_timer(struct iscsi_conn *); | ||
47 | extern void iscsit_stop_nopin_timer(struct iscsi_conn *); | ||
48 | extern int iscsit_send_tx_data(struct iscsi_cmd *, struct iscsi_conn *, int); | ||
49 | extern int iscsit_fe_sendpage_sg(struct iscsi_cmd *, struct iscsi_conn *); | ||
50 | extern int iscsit_tx_login_rsp(struct iscsi_conn *, u8, u8); | ||
51 | extern void iscsit_print_session_params(struct iscsi_session *); | ||
52 | extern int iscsit_print_dev_to_proc(char *, char **, off_t, int); | ||
53 | extern int iscsit_print_sessions_to_proc(char *, char **, off_t, int); | ||
54 | extern int iscsit_print_tpg_to_proc(char *, char **, off_t, int); | ||
55 | extern int rx_data(struct iscsi_conn *, struct kvec *, int, int); | ||
56 | extern int tx_data(struct iscsi_conn *, struct kvec *, int, int); | ||
57 | extern void iscsit_collect_login_stats(struct iscsi_conn *, u8, u8); | ||
58 | extern struct iscsi_tiqn *iscsit_snmp_get_tiqn(struct iscsi_conn *); | ||
59 | |||
60 | #endif /*** ISCSI_TARGET_UTIL_H ***/ | ||