Lines Matching refs:conn_p
1992 struct iscsi_conn *conn_p; in iscsit_logout_closesession() local
2006 list_for_each_entry(conn_p, &sess->sess_conn_list, conn_list) { in iscsit_logout_closesession()
2007 if (conn_p->conn_state != TARG_CONN_STATE_LOGGED_IN) in iscsit_logout_closesession()
2011 conn_p->conn_state = TARG_CONN_STATE_IN_LOGOUT; in iscsit_logout_closesession()
2346 struct iscsi_conn *conn_p; in iscsit_build_conn_drop_async_message() local
2352 list_for_each_entry(conn_p, &conn->sess->sess_conn_list, conn_list) { in iscsit_build_conn_drop_async_message()
2353 if (conn_p->conn_state == TARG_CONN_STATE_LOGGED_IN) { in iscsit_build_conn_drop_async_message()
2354 iscsit_inc_conn_usage_count(conn_p); in iscsit_build_conn_drop_async_message()
2359 if (!conn_p) in iscsit_build_conn_drop_async_message()
2362 cmd = iscsit_allocate_cmd(conn_p, GFP_ATOMIC); in iscsit_build_conn_drop_async_message()
2364 iscsit_dec_conn_usage_count(conn_p); in iscsit_build_conn_drop_async_message()
2372 spin_lock_bh(&conn_p->cmd_lock); in iscsit_build_conn_drop_async_message()
2373 list_add_tail(&cmd->i_list, &conn_p->conn_cmd_list); in iscsit_build_conn_drop_async_message()
2374 spin_unlock_bh(&conn_p->cmd_lock); in iscsit_build_conn_drop_async_message()
2376 iscsit_add_cmd_to_response_queue(cmd, conn_p, cmd->i_state); in iscsit_build_conn_drop_async_message()
2377 iscsit_dec_conn_usage_count(conn_p); in iscsit_build_conn_drop_async_message()