Lines Matching defs:conn
38 struct iscsi_conn *conn,
45 struct iscsi_chap *chap = conn->auth_protocol;
131 static void chap_close(struct iscsi_conn *conn)
133 kfree(conn->auth_protocol);
134 conn->auth_protocol = NULL;
138 struct iscsi_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);
209 struct iscsi_conn *conn,
226 struct iscsi_chap *chap = conn->auth_protocol;
500 struct iscsi_conn *conn,
507 struct iscsi_chap *chap = conn->auth_protocol;
510 chap = chap_server_open(conn, auth, in_text, out_text, out_len);
517 if (chap_server_compute_hash(conn, auth, in_text, out_text,
519 chap_close(conn);
526 chap_close(conn);