Lines Matching refs:login_req
178 struct iscsi_login_req *login_req; in iscsi_target_check_login_request() local
180 login_req = (struct iscsi_login_req *) login->req; in iscsi_target_check_login_request()
181 payload_length = ntoh24(login_req->dlength); in iscsi_target_check_login_request()
183 switch (login_req->opcode & ISCSI_OPCODE_MASK) { in iscsi_target_check_login_request()
188 login_req->opcode & ISCSI_OPCODE_MASK); in iscsi_target_check_login_request()
194 if ((login_req->flags & ISCSI_FLAG_LOGIN_CONTINUE) && in iscsi_target_check_login_request()
195 (login_req->flags & ISCSI_FLAG_LOGIN_TRANSIT)) { in iscsi_target_check_login_request()
203 req_csg = (login_req->flags & ISCSI_FLAG_LOGIN_CURRENT_STAGE_MASK) >> 2; in iscsi_target_check_login_request()
204 req_nsg = (login_req->flags & ISCSI_FLAG_LOGIN_NEXT_STAGE_MASK); in iscsi_target_check_login_request()
216 ((login_req->flags & ISCSI_FLAG_LOGIN_TRANSIT) && in iscsi_target_check_login_request()
220 req_nsg, (login_req->flags & ISCSI_FLAG_LOGIN_TRANSIT)); in iscsi_target_check_login_request()
226 if ((login_req->max_version != login->version_max) || in iscsi_target_check_login_request()
227 (login_req->min_version != login->version_min)) { in iscsi_target_check_login_request()
230 login_req->max_version, login_req->min_version); in iscsi_target_check_login_request()
236 if (memcmp(login_req->isid, login->isid, 6) != 0) { in iscsi_target_check_login_request()
244 if (login_req->itt != login->init_task_tag) { in iscsi_target_check_login_request()
246 " 0x%08x, protocol error.\n", login_req->itt); in iscsi_target_check_login_request()
377 struct iscsi_login_req *login_req; in iscsi_target_do_rx_login_io() local
382 login_req = (struct iscsi_login_req *) login->req; in iscsi_target_do_rx_login_io()
383 payload_length = ntoh24(login_req->dlength); in iscsi_target_do_rx_login_io()
384 login_req->tsih = be16_to_cpu(login_req->tsih); in iscsi_target_do_rx_login_io()
385 login_req->itt = be32_to_cpu(login_req->itt); in iscsi_target_do_rx_login_io()
386 login_req->cid = be16_to_cpu(login_req->cid); in iscsi_target_do_rx_login_io()
387 login_req->cmdsn = be32_to_cpu(login_req->cmdsn); in iscsi_target_do_rx_login_io()
388 login_req->exp_statsn = be32_to_cpu(login_req->exp_statsn); in iscsi_target_do_rx_login_io()
392 login_req->flags, login_req->itt, login_req->cmdsn, in iscsi_target_do_rx_login_io()
393 login_req->exp_statsn, login_req->cid, payload_length); in iscsi_target_do_rx_login_io()
426 struct iscsi_login_req *login_req; in iscsi_target_get_initial_payload() local
428 login_req = (struct iscsi_login_req *) login->req; in iscsi_target_get_initial_payload()
429 payload_length = ntoh24(login_req->dlength); in iscsi_target_get_initial_payload()
433 login_req->flags, login_req->itt, login_req->cmdsn, in iscsi_target_get_initial_payload()
434 login_req->exp_statsn, payload_length); in iscsi_target_get_initial_payload()
478 struct iscsi_login_req *login_req; in iscsi_target_do_authentication() local
481 login_req = (struct iscsi_login_req *) login->req; in iscsi_target_do_authentication()
483 payload_length = ntoh24(login_req->dlength); in iscsi_target_do_authentication()
505 if ((login_req->flags & ISCSI_FLAG_LOGIN_NEXT_STAGE1) && in iscsi_target_do_authentication()
506 (login_req->flags & ISCSI_FLAG_LOGIN_TRANSIT)) { in iscsi_target_do_authentication()
537 struct iscsi_login_req *login_req; in iscsi_target_handle_csg_zero() local
540 login_req = (struct iscsi_login_req *) login->req; in iscsi_target_handle_csg_zero()
542 payload_length = ntoh24(login_req->dlength); in iscsi_target_handle_csg_zero()
601 if ((login_req->flags & ISCSI_FLAG_LOGIN_NEXT_STAGE1) && in iscsi_target_handle_csg_zero()
602 (login_req->flags & ISCSI_FLAG_LOGIN_TRANSIT)) { in iscsi_target_handle_csg_zero()
618 struct iscsi_login_req *login_req; in iscsi_target_handle_csg_one() local
621 login_req = (struct iscsi_login_req *) login->req; in iscsi_target_handle_csg_one()
623 payload_length = ntoh24(login_req->dlength); in iscsi_target_handle_csg_one()
661 if ((login_req->flags & ISCSI_FLAG_LOGIN_NEXT_STAGE3) && in iscsi_target_handle_csg_one()
662 (login_req->flags & ISCSI_FLAG_LOGIN_TRANSIT)) in iscsi_target_handle_csg_one()
672 struct iscsi_login_req *login_req; in iscsi_target_do_login() local
675 login_req = (struct iscsi_login_req *) login->req; in iscsi_target_do_login()
686 switch ((login_req->flags & ISCSI_FLAG_LOGIN_CURRENT_STAGE_MASK) >> 2) { in iscsi_target_do_login()
707 (login_req->flags & ISCSI_FLAG_LOGIN_CURRENT_STAGE_MASK) in iscsi_target_do_login()
751 struct iscsi_login_req *login_req; in iscsi_target_locate_portal() local
755 login_req = (struct iscsi_login_req *) login->req; in iscsi_target_locate_portal()
756 payload_length = ntoh24(login_req->dlength); in iscsi_target_locate_portal()
759 login->leading_connection = (!login_req->tsih) ? 1 : 0; in iscsi_target_locate_portal()
761 (login_req->flags & ISCSI_FLAG_LOGIN_CURRENT_STAGE_MASK) >> 2; in iscsi_target_locate_portal()
762 login->version_min = login_req->min_version; in iscsi_target_locate_portal()
763 login->version_max = login_req->max_version; in iscsi_target_locate_portal()
764 memcpy(login->isid, login_req->isid, 6); in iscsi_target_locate_portal()
765 login->cmd_sn = login_req->cmdsn; in iscsi_target_locate_portal()
766 login->init_task_tag = login_req->itt; in iscsi_target_locate_portal()
767 login->initial_exp_statsn = login_req->exp_statsn; in iscsi_target_locate_portal()
768 login->cid = login_req->cid; in iscsi_target_locate_portal()
769 login->tsih = login_req->tsih; in iscsi_target_locate_portal()