Lines Matching refs:conn

61 	iscsit_add_cmd_to_immediate_queue(cmd, cmd->conn, ISTATE_SEND_R2T);  in iscsit_add_r2t_to_list()
155 struct iscsit_cmd *iscsit_allocate_cmd(struct iscsit_conn *conn, int state) in iscsit_allocate_cmd() argument
158 struct se_session *se_sess = conn->sess->se_sess; in iscsit_allocate_cmd()
167 size = sizeof(struct iscsit_cmd) + conn->conn_transport->priv_size; in iscsit_allocate_cmd()
173 cmd->conn = conn; in iscsit_allocate_cmd()
285 int iscsit_sequence_cmd(struct iscsit_conn *conn, struct iscsit_cmd *cmd, in iscsit_sequence_cmd() argument
292 mutex_lock(&conn->sess->cmdsn_mutex); in iscsit_sequence_cmd()
294 cmdsn_ret = iscsit_check_received_cmdsn(conn->sess, be32_to_cpu(cmdsn)); in iscsit_sequence_cmd()
298 if ((ret >= 0) && !list_empty(&conn->sess->sess_ooo_cmdsn_list)) in iscsit_sequence_cmd()
299 iscsit_execute_ooo_cmdsns(conn->sess); in iscsit_sequence_cmd()
306 ret = iscsit_handle_ooo_cmdsn(conn->sess, cmd, be32_to_cpu(cmdsn)); in iscsit_sequence_cmd()
318 iscsit_add_cmd_to_immediate_queue(cmd, conn, cmd->i_state); in iscsit_sequence_cmd()
327 mutex_unlock(&conn->sess->cmdsn_mutex); in iscsit_sequence_cmd()
338 struct iscsit_conn *conn = cmd->conn; in iscsit_check_unsolicited_dataout() local
343 if (conn->sess->sess_ops->InitialR2T) { in iscsit_check_unsolicited_dataout()
352 conn->sess->sess_ops->FirstBurstLength) { in iscsit_check_unsolicited_dataout()
356 conn->sess->sess_ops->FirstBurstLength); in iscsit_check_unsolicited_dataout()
367 conn->sess->sess_ops->FirstBurstLength)) { in iscsit_check_unsolicited_dataout()
372 conn->sess->sess_ops->FirstBurstLength, cmd->se_cmd.data_length); in iscsit_check_unsolicited_dataout()
381 struct iscsit_conn *conn, in iscsit_find_cmd_from_itt() argument
386 spin_lock_bh(&conn->cmd_lock); in iscsit_find_cmd_from_itt()
387 list_for_each_entry(cmd, &conn->conn_cmd_list, i_conn_node) { in iscsit_find_cmd_from_itt()
389 spin_unlock_bh(&conn->cmd_lock); in iscsit_find_cmd_from_itt()
393 spin_unlock_bh(&conn->cmd_lock); in iscsit_find_cmd_from_itt()
396 init_task_tag, conn->cid); in iscsit_find_cmd_from_itt()
402 struct iscsit_conn *conn, in iscsit_find_cmd_from_itt_or_dump() argument
408 spin_lock_bh(&conn->cmd_lock); in iscsit_find_cmd_from_itt_or_dump()
409 list_for_each_entry(cmd, &conn->conn_cmd_list, i_conn_node) { in iscsit_find_cmd_from_itt_or_dump()
413 spin_unlock_bh(&conn->cmd_lock); in iscsit_find_cmd_from_itt_or_dump()
417 spin_unlock_bh(&conn->cmd_lock); in iscsit_find_cmd_from_itt_or_dump()
420 " dumping payload\n", init_task_tag, conn->cid); in iscsit_find_cmd_from_itt_or_dump()
422 iscsit_dump_data_payload(conn, length, 1); in iscsit_find_cmd_from_itt_or_dump()
429 struct iscsit_conn *conn, in iscsit_find_cmd_from_ttt() argument
434 spin_lock_bh(&conn->cmd_lock); in iscsit_find_cmd_from_ttt()
435 list_for_each_entry(cmd, &conn->conn_cmd_list, i_conn_node) { in iscsit_find_cmd_from_ttt()
437 spin_unlock_bh(&conn->cmd_lock); in iscsit_find_cmd_from_ttt()
441 spin_unlock_bh(&conn->cmd_lock); in iscsit_find_cmd_from_ttt()
444 targ_xfer_tag, conn->cid); in iscsit_find_cmd_from_ttt()
502 struct iscsit_conn *conn, in iscsit_add_cmd_to_immediate_queue() argument
517 spin_lock_bh(&conn->immed_queue_lock); in iscsit_add_cmd_to_immediate_queue()
518 list_add_tail(&qr->qr_list, &conn->immed_queue_list); in iscsit_add_cmd_to_immediate_queue()
520 atomic_set(&conn->check_immediate_queue, 1); in iscsit_add_cmd_to_immediate_queue()
521 spin_unlock_bh(&conn->immed_queue_lock); in iscsit_add_cmd_to_immediate_queue()
523 wake_up(&conn->queues_wq); in iscsit_add_cmd_to_immediate_queue()
527 struct iscsi_queue_req *iscsit_get_cmd_from_immediate_queue(struct iscsit_conn *conn) in iscsit_get_cmd_from_immediate_queue() argument
531 spin_lock_bh(&conn->immed_queue_lock); in iscsit_get_cmd_from_immediate_queue()
532 if (list_empty(&conn->immed_queue_list)) { in iscsit_get_cmd_from_immediate_queue()
533 spin_unlock_bh(&conn->immed_queue_lock); in iscsit_get_cmd_from_immediate_queue()
536 qr = list_first_entry(&conn->immed_queue_list, in iscsit_get_cmd_from_immediate_queue()
542 spin_unlock_bh(&conn->immed_queue_lock); in iscsit_get_cmd_from_immediate_queue()
549 struct iscsit_conn *conn) in iscsit_remove_cmd_from_immediate_queue() argument
553 spin_lock_bh(&conn->immed_queue_lock); in iscsit_remove_cmd_from_immediate_queue()
555 spin_unlock_bh(&conn->immed_queue_lock); in iscsit_remove_cmd_from_immediate_queue()
559 list_for_each_entry_safe(qr, qr_tmp, &conn->immed_queue_list, qr_list) { in iscsit_remove_cmd_from_immediate_queue()
567 spin_unlock_bh(&conn->immed_queue_lock); in iscsit_remove_cmd_from_immediate_queue()
578 struct iscsit_conn *conn, in iscsit_add_cmd_to_response_queue() argument
593 spin_lock_bh(&conn->response_queue_lock); in iscsit_add_cmd_to_response_queue()
594 list_add_tail(&qr->qr_list, &conn->response_queue_list); in iscsit_add_cmd_to_response_queue()
596 spin_unlock_bh(&conn->response_queue_lock); in iscsit_add_cmd_to_response_queue()
598 wake_up(&conn->queues_wq); in iscsit_add_cmd_to_response_queue()
602 struct iscsi_queue_req *iscsit_get_cmd_from_response_queue(struct iscsit_conn *conn) in iscsit_get_cmd_from_response_queue() argument
606 spin_lock_bh(&conn->response_queue_lock); in iscsit_get_cmd_from_response_queue()
607 if (list_empty(&conn->response_queue_list)) { in iscsit_get_cmd_from_response_queue()
608 spin_unlock_bh(&conn->response_queue_lock); in iscsit_get_cmd_from_response_queue()
612 qr = list_first_entry(&conn->response_queue_list, in iscsit_get_cmd_from_response_queue()
618 spin_unlock_bh(&conn->response_queue_lock); in iscsit_get_cmd_from_response_queue()
625 struct iscsit_conn *conn) in iscsit_remove_cmd_from_response_queue() argument
629 spin_lock_bh(&conn->response_queue_lock); in iscsit_remove_cmd_from_response_queue()
631 spin_unlock_bh(&conn->response_queue_lock); in iscsit_remove_cmd_from_response_queue()
635 list_for_each_entry_safe(qr, qr_tmp, &conn->response_queue_list, in iscsit_remove_cmd_from_response_queue()
644 spin_unlock_bh(&conn->response_queue_lock); in iscsit_remove_cmd_from_response_queue()
653 bool iscsit_conn_all_queues_empty(struct iscsit_conn *conn) in iscsit_conn_all_queues_empty() argument
657 spin_lock_bh(&conn->immed_queue_lock); in iscsit_conn_all_queues_empty()
658 empty = list_empty(&conn->immed_queue_list); in iscsit_conn_all_queues_empty()
659 spin_unlock_bh(&conn->immed_queue_lock); in iscsit_conn_all_queues_empty()
664 spin_lock_bh(&conn->response_queue_lock); in iscsit_conn_all_queues_empty()
665 empty = list_empty(&conn->response_queue_list); in iscsit_conn_all_queues_empty()
666 spin_unlock_bh(&conn->response_queue_lock); in iscsit_conn_all_queues_empty()
671 void iscsit_free_queue_reqs_for_conn(struct iscsit_conn *conn) in iscsit_free_queue_reqs_for_conn() argument
675 spin_lock_bh(&conn->immed_queue_lock); in iscsit_free_queue_reqs_for_conn()
676 list_for_each_entry_safe(qr, qr_tmp, &conn->immed_queue_list, qr_list) { in iscsit_free_queue_reqs_for_conn()
683 spin_unlock_bh(&conn->immed_queue_lock); in iscsit_free_queue_reqs_for_conn()
685 spin_lock_bh(&conn->response_queue_lock); in iscsit_free_queue_reqs_for_conn()
686 list_for_each_entry_safe(qr, qr_tmp, &conn->response_queue_list, in iscsit_free_queue_reqs_for_conn()
694 spin_unlock_bh(&conn->response_queue_lock); in iscsit_free_queue_reqs_for_conn()
704 if (cmd->conn) in iscsit_release_cmd()
705 sess = cmd->conn->sess; in iscsit_release_cmd()
725 struct iscsit_conn *conn = cmd->conn; in __iscsit_free_cmd() local
736 if (conn && check_queues) { in __iscsit_free_cmd()
737 iscsit_remove_cmd_from_immediate_queue(cmd, conn); in __iscsit_free_cmd()
738 iscsit_remove_cmd_from_response_queue(cmd, conn); in __iscsit_free_cmd()
741 if (conn && conn->conn_transport->iscsit_unmap_cmd) in __iscsit_free_cmd()
742 conn->conn_transport->iscsit_unmap_cmd(conn, cmd); in __iscsit_free_cmd()
803 struct iscsit_conn *conn; in iscsit_get_conn_from_cid() local
806 list_for_each_entry(conn, &sess->sess_conn_list, conn_list) { in iscsit_get_conn_from_cid()
807 if ((conn->cid == cid) && in iscsit_get_conn_from_cid()
808 (conn->conn_state == TARG_CONN_STATE_LOGGED_IN)) { in iscsit_get_conn_from_cid()
809 iscsit_inc_conn_usage_count(conn); in iscsit_get_conn_from_cid()
811 return conn; in iscsit_get_conn_from_cid()
821 struct iscsit_conn *conn; in iscsit_get_conn_from_cid_rcfr() local
824 list_for_each_entry(conn, &sess->sess_conn_list, conn_list) { in iscsit_get_conn_from_cid_rcfr()
825 if (conn->cid == cid) { in iscsit_get_conn_from_cid_rcfr()
826 iscsit_inc_conn_usage_count(conn); in iscsit_get_conn_from_cid_rcfr()
827 spin_lock(&conn->state_lock); in iscsit_get_conn_from_cid_rcfr()
828 atomic_set(&conn->connection_wait_rcfr, 1); in iscsit_get_conn_from_cid_rcfr()
829 spin_unlock(&conn->state_lock); in iscsit_get_conn_from_cid_rcfr()
831 return conn; in iscsit_get_conn_from_cid_rcfr()
839 void iscsit_check_conn_usage_count(struct iscsit_conn *conn) in iscsit_check_conn_usage_count() argument
841 spin_lock_bh(&conn->conn_usage_lock); in iscsit_check_conn_usage_count()
842 if (conn->conn_usage_count != 0) { in iscsit_check_conn_usage_count()
843 conn->conn_waiting_on_uc = 1; in iscsit_check_conn_usage_count()
844 spin_unlock_bh(&conn->conn_usage_lock); in iscsit_check_conn_usage_count()
846 wait_for_completion(&conn->conn_waiting_on_uc_comp); in iscsit_check_conn_usage_count()
849 spin_unlock_bh(&conn->conn_usage_lock); in iscsit_check_conn_usage_count()
852 void iscsit_dec_conn_usage_count(struct iscsit_conn *conn) in iscsit_dec_conn_usage_count() argument
854 spin_lock_bh(&conn->conn_usage_lock); in iscsit_dec_conn_usage_count()
855 conn->conn_usage_count--; in iscsit_dec_conn_usage_count()
857 if (!conn->conn_usage_count && conn->conn_waiting_on_uc) in iscsit_dec_conn_usage_count()
858 complete(&conn->conn_waiting_on_uc_comp); in iscsit_dec_conn_usage_count()
860 spin_unlock_bh(&conn->conn_usage_lock); in iscsit_dec_conn_usage_count()
863 void iscsit_inc_conn_usage_count(struct iscsit_conn *conn) in iscsit_inc_conn_usage_count() argument
865 spin_lock_bh(&conn->conn_usage_lock); in iscsit_inc_conn_usage_count()
866 conn->conn_usage_count++; in iscsit_inc_conn_usage_count()
867 spin_unlock_bh(&conn->conn_usage_lock); in iscsit_inc_conn_usage_count()
870 static int iscsit_add_nopin(struct iscsit_conn *conn, int want_response) in iscsit_add_nopin() argument
875 cmd = iscsit_allocate_cmd(conn, TASK_RUNNING); in iscsit_add_nopin()
884 session_get_next_ttt(conn->sess) : 0xFFFFFFFF; in iscsit_add_nopin()
885 spin_lock_bh(&conn->cmd_lock); in iscsit_add_nopin()
886 list_add_tail(&cmd->i_conn_node, &conn->conn_cmd_list); in iscsit_add_nopin()
887 spin_unlock_bh(&conn->cmd_lock); in iscsit_add_nopin()
890 iscsit_start_nopin_response_timer(conn); in iscsit_add_nopin()
891 iscsit_add_cmd_to_immediate_queue(cmd, conn, state); in iscsit_add_nopin()
898 struct iscsit_conn *conn = from_timer(conn, t, nopin_response_timer); in iscsit_handle_nopin_response_timeout() local
899 struct iscsit_session *sess = conn->sess; in iscsit_handle_nopin_response_timeout()
901 iscsit_inc_conn_usage_count(conn); in iscsit_handle_nopin_response_timeout()
903 spin_lock_bh(&conn->nopin_timer_lock); in iscsit_handle_nopin_response_timeout()
904 if (conn->nopin_response_timer_flags & ISCSI_TF_STOP) { in iscsit_handle_nopin_response_timeout()
905 spin_unlock_bh(&conn->nopin_timer_lock); in iscsit_handle_nopin_response_timeout()
906 iscsit_dec_conn_usage_count(conn); in iscsit_handle_nopin_response_timeout()
912 conn->cid, sess->sess_ops->InitiatorName, sess->isid, in iscsit_handle_nopin_response_timeout()
914 conn->nopin_response_timer_flags &= ~ISCSI_TF_RUNNING; in iscsit_handle_nopin_response_timeout()
915 spin_unlock_bh(&conn->nopin_timer_lock); in iscsit_handle_nopin_response_timeout()
918 iscsit_cause_connection_reinstatement(conn, 0); in iscsit_handle_nopin_response_timeout()
919 iscsit_dec_conn_usage_count(conn); in iscsit_handle_nopin_response_timeout()
922 void iscsit_mod_nopin_response_timer(struct iscsit_conn *conn) in iscsit_mod_nopin_response_timer() argument
924 struct iscsit_session *sess = conn->sess; in iscsit_mod_nopin_response_timer()
927 spin_lock_bh(&conn->nopin_timer_lock); in iscsit_mod_nopin_response_timer()
928 if (!(conn->nopin_response_timer_flags & ISCSI_TF_RUNNING)) { in iscsit_mod_nopin_response_timer()
929 spin_unlock_bh(&conn->nopin_timer_lock); in iscsit_mod_nopin_response_timer()
933 mod_timer(&conn->nopin_response_timer, in iscsit_mod_nopin_response_timer()
935 spin_unlock_bh(&conn->nopin_timer_lock); in iscsit_mod_nopin_response_timer()
938 void iscsit_start_nopin_response_timer(struct iscsit_conn *conn) in iscsit_start_nopin_response_timer() argument
940 struct iscsit_session *sess = conn->sess; in iscsit_start_nopin_response_timer()
943 spin_lock_bh(&conn->nopin_timer_lock); in iscsit_start_nopin_response_timer()
944 if (conn->nopin_response_timer_flags & ISCSI_TF_RUNNING) { in iscsit_start_nopin_response_timer()
945 spin_unlock_bh(&conn->nopin_timer_lock); in iscsit_start_nopin_response_timer()
949 conn->nopin_response_timer_flags &= ~ISCSI_TF_STOP; in iscsit_start_nopin_response_timer()
950 conn->nopin_response_timer_flags |= ISCSI_TF_RUNNING; in iscsit_start_nopin_response_timer()
951 mod_timer(&conn->nopin_response_timer, in iscsit_start_nopin_response_timer()
955 " seconds\n", conn->cid, na->nopin_response_timeout); in iscsit_start_nopin_response_timer()
956 spin_unlock_bh(&conn->nopin_timer_lock); in iscsit_start_nopin_response_timer()
959 void iscsit_stop_nopin_response_timer(struct iscsit_conn *conn) in iscsit_stop_nopin_response_timer() argument
961 spin_lock_bh(&conn->nopin_timer_lock); in iscsit_stop_nopin_response_timer()
962 if (!(conn->nopin_response_timer_flags & ISCSI_TF_RUNNING)) { in iscsit_stop_nopin_response_timer()
963 spin_unlock_bh(&conn->nopin_timer_lock); in iscsit_stop_nopin_response_timer()
966 conn->nopin_response_timer_flags |= ISCSI_TF_STOP; in iscsit_stop_nopin_response_timer()
967 spin_unlock_bh(&conn->nopin_timer_lock); in iscsit_stop_nopin_response_timer()
969 del_timer_sync(&conn->nopin_response_timer); in iscsit_stop_nopin_response_timer()
971 spin_lock_bh(&conn->nopin_timer_lock); in iscsit_stop_nopin_response_timer()
972 conn->nopin_response_timer_flags &= ~ISCSI_TF_RUNNING; in iscsit_stop_nopin_response_timer()
973 spin_unlock_bh(&conn->nopin_timer_lock); in iscsit_stop_nopin_response_timer()
978 struct iscsit_conn *conn = from_timer(conn, t, nopin_timer); in iscsit_handle_nopin_timeout() local
980 iscsit_inc_conn_usage_count(conn); in iscsit_handle_nopin_timeout()
982 spin_lock_bh(&conn->nopin_timer_lock); in iscsit_handle_nopin_timeout()
983 if (conn->nopin_timer_flags & ISCSI_TF_STOP) { in iscsit_handle_nopin_timeout()
984 spin_unlock_bh(&conn->nopin_timer_lock); in iscsit_handle_nopin_timeout()
985 iscsit_dec_conn_usage_count(conn); in iscsit_handle_nopin_timeout()
988 conn->nopin_timer_flags &= ~ISCSI_TF_RUNNING; in iscsit_handle_nopin_timeout()
989 spin_unlock_bh(&conn->nopin_timer_lock); in iscsit_handle_nopin_timeout()
991 iscsit_add_nopin(conn, 1); in iscsit_handle_nopin_timeout()
992 iscsit_dec_conn_usage_count(conn); in iscsit_handle_nopin_timeout()
995 void __iscsit_start_nopin_timer(struct iscsit_conn *conn) in __iscsit_start_nopin_timer() argument
997 struct iscsit_session *sess = conn->sess; in __iscsit_start_nopin_timer()
1000 lockdep_assert_held(&conn->nopin_timer_lock); in __iscsit_start_nopin_timer()
1008 if (conn->nopin_timer_flags & ISCSI_TF_RUNNING) in __iscsit_start_nopin_timer()
1011 conn->nopin_timer_flags &= ~ISCSI_TF_STOP; in __iscsit_start_nopin_timer()
1012 conn->nopin_timer_flags |= ISCSI_TF_RUNNING; in __iscsit_start_nopin_timer()
1013 mod_timer(&conn->nopin_timer, jiffies + na->nopin_timeout * HZ); in __iscsit_start_nopin_timer()
1016 " interval\n", conn->cid, na->nopin_timeout); in __iscsit_start_nopin_timer()
1019 void iscsit_start_nopin_timer(struct iscsit_conn *conn) in iscsit_start_nopin_timer() argument
1021 spin_lock_bh(&conn->nopin_timer_lock); in iscsit_start_nopin_timer()
1022 __iscsit_start_nopin_timer(conn); in iscsit_start_nopin_timer()
1023 spin_unlock_bh(&conn->nopin_timer_lock); in iscsit_start_nopin_timer()
1026 void iscsit_stop_nopin_timer(struct iscsit_conn *conn) in iscsit_stop_nopin_timer() argument
1028 spin_lock_bh(&conn->nopin_timer_lock); in iscsit_stop_nopin_timer()
1029 if (!(conn->nopin_timer_flags & ISCSI_TF_RUNNING)) { in iscsit_stop_nopin_timer()
1030 spin_unlock_bh(&conn->nopin_timer_lock); in iscsit_stop_nopin_timer()
1033 conn->nopin_timer_flags |= ISCSI_TF_STOP; in iscsit_stop_nopin_timer()
1034 spin_unlock_bh(&conn->nopin_timer_lock); in iscsit_stop_nopin_timer()
1036 del_timer_sync(&conn->nopin_timer); in iscsit_stop_nopin_timer()
1038 spin_lock_bh(&conn->nopin_timer_lock); in iscsit_stop_nopin_timer()
1039 conn->nopin_timer_flags &= ~ISCSI_TF_RUNNING; in iscsit_stop_nopin_timer()
1040 spin_unlock_bh(&conn->nopin_timer_lock); in iscsit_stop_nopin_timer()
1045 struct iscsit_conn *conn = from_timer(conn, t, login_timer); in iscsit_login_timeout() local
1046 struct iscsi_login *login = conn->login; in iscsit_login_timeout()
1050 spin_lock_bh(&conn->login_timer_lock); in iscsit_login_timeout()
1053 if (conn->login_kworker) { in iscsit_login_timeout()
1055 conn->login_kworker->comm, conn->login_kworker->pid); in iscsit_login_timeout()
1056 send_sig(SIGINT, conn->login_kworker, 1); in iscsit_login_timeout()
1058 schedule_delayed_work(&conn->login_work, 0); in iscsit_login_timeout()
1060 spin_unlock_bh(&conn->login_timer_lock); in iscsit_login_timeout()
1063 void iscsit_start_login_timer(struct iscsit_conn *conn, struct task_struct *kthr) in iscsit_start_login_timer() argument
1067 conn->login_kworker = kthr; in iscsit_start_login_timer()
1068 mod_timer(&conn->login_timer, jiffies + TA_LOGIN_TIMEOUT * HZ); in iscsit_start_login_timer()
1071 int iscsit_set_login_timer_kworker(struct iscsit_conn *conn, struct task_struct *kthr) in iscsit_set_login_timer_kworker() argument
1073 struct iscsi_login *login = conn->login; in iscsit_set_login_timer_kworker()
1076 spin_lock_bh(&conn->login_timer_lock); in iscsit_set_login_timer_kworker()
1081 conn->login_kworker = kthr; in iscsit_set_login_timer_kworker()
1083 spin_unlock_bh(&conn->login_timer_lock); in iscsit_set_login_timer_kworker()
1088 void iscsit_stop_login_timer(struct iscsit_conn *conn) in iscsit_stop_login_timer() argument
1091 timer_delete_sync(&conn->login_timer); in iscsit_stop_login_timer()
1096 struct iscsit_conn *conn, in iscsit_send_tx_data() argument
1114 tx_sent = tx_data(conn, &iov[0], iov_count, tx_size); in iscsit_send_tx_data()
1129 struct iscsit_conn *conn) in iscsit_fe_sendpage_sg() argument
1141 if (conn->conn_ops->HeaderDigest) in iscsit_fe_sendpage_sg()
1147 tx_sent = tx_data(conn, &iov, 1, tx_hdr_size); in iscsit_fe_sendpage_sg()
1161 if (conn->conn_ops->DataDigest) { in iscsit_fe_sendpage_sg()
1180 tx_sent = conn->sock->ops->sendmsg(conn->sock, &msghdr, in iscsit_fe_sendpage_sg()
1201 tx_sent = tx_data(conn, iov_p, 1, cmd->padding); in iscsit_fe_sendpage_sg()
1212 if (conn->conn_ops->DataDigest) { in iscsit_fe_sendpage_sg()
1215 tx_sent = tx_data(conn, iov_d, 1, ISCSI_CRC_LEN); in iscsit_fe_sendpage_sg()
1236 int iscsit_tx_login_rsp(struct iscsit_conn *conn, u8 status_class, u8 status_detail) in iscsit_tx_login_rsp() argument
1239 struct iscsi_login *login = conn->conn_login; in iscsit_tx_login_rsp()
1242 iscsit_collect_login_stats(conn, status_class, status_detail); in iscsit_tx_login_rsp()
1250 hdr->itt = conn->login_itt; in iscsit_tx_login_rsp()
1252 return conn->conn_transport->iscsit_put_login_tx(conn, login, 0); in iscsit_tx_login_rsp()
1257 struct iscsit_conn *conn; in iscsit_print_session_params() local
1262 list_for_each_entry(conn, &sess->sess_conn_list, conn_list) in iscsit_print_session_params()
1263 iscsi_dump_conn_ops(conn->conn_ops); in iscsit_print_session_params()
1270 struct iscsit_conn *conn, in rx_data() argument
1278 if (!conn || !conn->sock || !conn->conn_ops) in rx_data()
1285 rx_loop = sock_recvmsg(conn->sock, &msg, MSG_WAITALL); in rx_data()
1300 struct iscsit_conn *conn, in tx_data() argument
1308 if (!conn || !conn->sock || !conn->conn_ops) in tx_data()
1321 int tx_loop = sock_sendmsg(conn->sock, &msg); in tx_data()
1336 struct iscsit_conn *conn, in iscsit_collect_login_stats() argument
1344 tiqn = iscsit_snmp_get_tiqn(conn); in iscsit_collect_login_stats()
1375 if (conn->param_list) in iscsit_collect_login_stats()
1377 conn->param_list); in iscsit_collect_login_stats()
1382 ls->last_intr_fail_ip_family = conn->login_family; in iscsit_collect_login_stats()
1384 ls->last_intr_fail_sockaddr = conn->login_sockaddr; in iscsit_collect_login_stats()
1391 struct iscsi_tiqn *iscsit_snmp_get_tiqn(struct iscsit_conn *conn) in iscsit_snmp_get_tiqn() argument
1395 if (!conn) in iscsit_snmp_get_tiqn()
1398 tpg = conn->tpg; in iscsit_snmp_get_tiqn()