• Home
  • Raw
  • Download

Lines Matching refs:conn

33 	struct iscsi_conn *conn = cmd->conn;  in iscsit_create_conn_recovery_datain_values()  local
40 conn->conn_ops->MaxRecvDataSegmentLength) < in iscsit_create_conn_recovery_datain_values()
41 conn->sess->sess_ops->MaxBurstLength) { in iscsit_create_conn_recovery_datain_values()
43 conn->conn_ops->MaxRecvDataSegmentLength; in iscsit_create_conn_recovery_datain_values()
45 conn->conn_ops->MaxRecvDataSegmentLength; in iscsit_create_conn_recovery_datain_values()
48 (conn->sess->sess_ops->MaxBurstLength - in iscsit_create_conn_recovery_datain_values()
60 struct iscsi_conn *conn = cmd->conn; in iscsit_create_conn_recovery_dataout_values() local
66 if ((write_data_done + conn->sess->sess_ops->MaxBurstLength) <= in iscsit_create_conn_recovery_dataout_values()
68 write_data_done += conn->sess->sess_ops->MaxBurstLength; in iscsit_create_conn_recovery_dataout_values()
135 cmd->conn = NULL; in iscsit_free_connection_recovery_entries()
157 cmd->conn = NULL; in iscsit_free_connection_recovery_entries()
266 int iscsit_discard_unacknowledged_ooo_cmdsns_for_conn(struct iscsi_conn *conn) in iscsit_discard_unacknowledged_ooo_cmdsns_for_conn() argument
271 struct iscsi_session *sess = conn->sess; in iscsit_discard_unacknowledged_ooo_cmdsns_for_conn()
277 if (ooo_cmdsn->cid != conn->cid) in iscsit_discard_unacknowledged_ooo_cmdsns_for_conn()
283 ooo_cmdsn->cmdsn, conn->cid); in iscsit_discard_unacknowledged_ooo_cmdsns_for_conn()
288 spin_lock_bh(&conn->cmd_lock); in iscsit_discard_unacknowledged_ooo_cmdsns_for_conn()
289 list_for_each_entry_safe(cmd, cmd_tmp, &conn->conn_cmd_list, i_conn_node) { in iscsit_discard_unacknowledged_ooo_cmdsns_for_conn()
295 spin_unlock_bh(&conn->cmd_lock); in iscsit_discard_unacknowledged_ooo_cmdsns_for_conn()
297 spin_lock_bh(&conn->cmd_lock); in iscsit_discard_unacknowledged_ooo_cmdsns_for_conn()
299 spin_unlock_bh(&conn->cmd_lock); in iscsit_discard_unacknowledged_ooo_cmdsns_for_conn()
302 " %hu for ExpCmdSN: 0x%08x.\n", dropped_count, conn->cid, in iscsit_discard_unacknowledged_ooo_cmdsns_for_conn()
307 int iscsit_prepare_cmds_for_reallegiance(struct iscsi_conn *conn) in iscsit_prepare_cmds_for_reallegiance() argument
337 spin_lock_bh(&conn->cmd_lock); in iscsit_prepare_cmds_for_reallegiance()
338 list_for_each_entry_safe(cmd, cmd_tmp, &conn->conn_cmd_list, i_conn_node) { in iscsit_prepare_cmds_for_reallegiance()
345 cmd->init_task_tag, cmd->cmd_sn, conn->cid); in iscsit_prepare_cmds_for_reallegiance()
348 spin_unlock_bh(&conn->cmd_lock); in iscsit_prepare_cmds_for_reallegiance()
350 spin_lock_bh(&conn->cmd_lock); in iscsit_prepare_cmds_for_reallegiance()
366 iscsi_sna_gte(cmd->cmd_sn, conn->sess->exp_cmd_sn)) { in iscsit_prepare_cmds_for_reallegiance()
368 spin_unlock_bh(&conn->cmd_lock); in iscsit_prepare_cmds_for_reallegiance()
370 spin_lock_bh(&conn->cmd_lock); in iscsit_prepare_cmds_for_reallegiance()
379 conn->cid); in iscsit_prepare_cmds_for_reallegiance()
387 cmd->sess = conn->sess; in iscsit_prepare_cmds_for_reallegiance()
390 spin_unlock_bh(&conn->cmd_lock); in iscsit_prepare_cmds_for_reallegiance()
402 spin_lock_bh(&conn->cmd_lock); in iscsit_prepare_cmds_for_reallegiance()
404 cmd->conn = NULL; in iscsit_prepare_cmds_for_reallegiance()
406 spin_unlock_bh(&conn->cmd_lock); in iscsit_prepare_cmds_for_reallegiance()
410 cr->cid = conn->cid; in iscsit_prepare_cmds_for_reallegiance()
412 cr->maxrecvdatasegmentlength = conn->conn_ops->MaxRecvDataSegmentLength; in iscsit_prepare_cmds_for_reallegiance()
413 cr->maxxmitdatasegmentlength = conn->conn_ops->MaxXmitDataSegmentLength; in iscsit_prepare_cmds_for_reallegiance()
414 cr->sess = conn->sess; in iscsit_prepare_cmds_for_reallegiance()
416 iscsit_attach_inactive_connection_recovery_entry(conn->sess, cr); in iscsit_prepare_cmds_for_reallegiance()
421 int iscsit_connection_recovery_transport_reset(struct iscsi_conn *conn) in iscsit_connection_recovery_transport_reset() argument
423 atomic_set(&conn->connection_recovery, 1); in iscsit_connection_recovery_transport_reset()
425 if (iscsit_close_connection(conn) < 0) in iscsit_connection_recovery_transport_reset()