Lines Matching defs:conn
51 struct iscsi_conn *conn,
57 struct iscsi_chap *chap = conn->auth_protocol;
110 struct iscsi_conn *conn,
126 conn->auth_protocol = kzalloc(sizeof(struct iscsi_chap), GFP_KERNEL);
127 if (!conn->auth_protocol)
130 chap = conn->auth_protocol;
152 chap->id = conn->tpg->tpg_chap_id++;
159 chap_gen_challenge(conn, 1, aic_str, aic_len);
164 static void chap_close(struct iscsi_conn *conn)
166 kfree(conn->auth_protocol);
167 conn->auth_protocol = NULL;
171 struct iscsi_conn *conn,
187 struct iscsi_chap *chap = conn->auth_protocol;
449 struct iscsi_conn *conn,
455 struct iscsi_chap *chap = conn->auth_protocol;
459 if (chap_server_compute_md5(conn, auth, nr_in_ptr,
471 struct iscsi_conn *conn,
478 struct iscsi_chap *chap = conn->auth_protocol;
481 chap = chap_server_open(conn, auth, in_text, out_text, out_len);
488 if (chap_got_response(conn, auth, in_text, out_text,
490 chap_close(conn);
497 chap_close(conn);