Lines Matching refs:conn
38 struct iscsit_conn *conn,
45 struct iscsi_chap *chap = conn->auth_protocol;
131 static void chap_close(struct iscsit_conn *conn)
133 kfree(conn->auth_protocol);
134 conn->auth_protocol = NULL;
138 struct iscsit_conn *conn,
154 conn->auth_protocol = kzalloc(sizeof(struct iscsi_chap), GFP_KERNEL);
155 if (!conn->auth_protocol)
158 chap = conn->auth_protocol;
176 chap_close(conn);
193 chap->id = conn->tpg->tpg_chap_id++;
200 if (chap_gen_challenge(conn, 1, aic_str, aic_len) < 0) {
201 chap_close(conn);
241 struct iscsit_conn *conn,
258 struct iscsi_chap *chap = conn->auth_protocol;
572 struct iscsit_conn *conn,
579 struct iscsi_chap *chap = conn->auth_protocol;
582 chap = chap_server_open(conn, auth, in_text, out_text, out_len);
589 if (chap_server_compute_hash(conn, auth, in_text, out_text,
591 chap_close(conn);
598 chap_close(conn);