Searched refs:bhslr (Results 1 – 6 of 6) sorted by relevance
47 struct iscsi_bhs_login_response *bhslr; in login_nsg() local49 bhslr = (struct iscsi_bhs_login_response *)response->pdu_bhs; in login_nsg()51 return (bhslr->bhslr_flags & 0x03); in login_nsg()57 struct iscsi_bhs_login_request *bhslr; in login_set_nsg() local63 bhslr = (struct iscsi_bhs_login_request *)request->pdu_bhs; in login_set_nsg()65 bhslr->bhslr_flags &= 0xFC; in login_set_nsg()66 bhslr->bhslr_flags |= nsg; in login_set_nsg()72 struct iscsi_bhs_login_request *bhslr; in login_set_csg() local78 bhslr = (struct iscsi_bhs_login_request *)request->pdu_bhs; in login_set_csg()80 bhslr->bhslr_flags &= 0xF3; in login_set_csg()[all …]
45 struct iscsi_bhs_logout_response *bhslr; in logout_receive() local52 bhslr = (struct iscsi_bhs_logout_response *)response->pdu_bhs; in logout_receive()53 if (ntohs(bhslr->bhslr_response) != BHSLR_RESPONSE_CLOSED_SUCCESSFULLY) in logout_receive()55 ntohs(bhslr->bhslr_response)); in logout_receive()56 if (ntohl(bhslr->bhslr_statsn) != conn->conn_statsn + 1) { in logout_receive()58 "is %u, should be %u", ntohl(bhslr->bhslr_statsn), in logout_receive()61 conn->conn_statsn = ntohl(bhslr->bhslr_statsn); in logout_receive()70 struct iscsi_bhs_logout_request *bhslr; in logout_new_request() local73 bhslr = (struct iscsi_bhs_logout_request *)request->pdu_bhs; in logout_new_request()74 bhslr->bhslr_opcode = ISCSI_BHS_OPCODE_LOGOUT_REQUEST | in logout_new_request()[all …]
48 struct iscsi_bhs_logout_request *bhslr; in logout_receive() local56 bhslr = (struct iscsi_bhs_logout_request *)request->pdu_bhs; in logout_receive()57 if ((bhslr->bhslr_reason & 0x7f) != BHSLR_REASON_CLOSE_SESSION) in logout_receive()59 "continuing anyway", bhslr->bhslr_reason & 0x7f); in logout_receive()60 if (ISCSI_SNLT(ntohl(bhslr->bhslr_cmdsn), conn->conn_cmdsn)) { in logout_receive()63 ntohl(bhslr->bhslr_cmdsn)); in logout_receive()65 if (ntohl(bhslr->bhslr_expstatsn) != conn->conn_statsn) { in logout_receive()67 "is %u, should be %u", ntohl(bhslr->bhslr_expstatsn), in logout_receive()70 conn->conn_cmdsn = ntohl(bhslr->bhslr_cmdsn); in logout_receive()71 if ((bhslr->bhslr_opcode & ISCSI_BHS_OPCODE_IMMEDIATE) == 0) in logout_receive()[all …]
109 struct iscsi_bhs_login_response *bhslr; in login_set_nsg() local115 bhslr = (struct iscsi_bhs_login_response *)response->pdu_bhs; in login_set_nsg()117 bhslr->bhslr_flags &= 0xFC; in login_set_nsg()118 bhslr->bhslr_flags |= nsg; in login_set_nsg()119 bhslr->bhslr_flags |= BHSLR_FLAGS_TRANSIT; in login_set_nsg()125 struct iscsi_bhs_login_request *bhslr; in login_csg() local127 bhslr = (struct iscsi_bhs_login_request *)request->pdu_bhs; in login_csg()129 return ((bhslr->bhslr_flags & 0x0C) >> 2); in login_csg()135 struct iscsi_bhs_login_response *bhslr; in login_set_csg() local141 bhslr = (struct iscsi_bhs_login_response *)response->pdu_bhs; in login_set_csg()[all …]
945 struct iscsi_bhs_logout_request *bhslr; in cfiscsi_pdu_handle_logout_request() local951 bhslr = (struct iscsi_bhs_logout_request *)request->ip_bhs; in cfiscsi_pdu_handle_logout_request()952 switch (bhslr->bhslr_reason & 0x7f) { in cfiscsi_pdu_handle_logout_request()967 bhslr->bhslr_initiator_task_tag; in cfiscsi_pdu_handle_logout_request()986 bhslr->bhslr_initiator_task_tag; in cfiscsi_pdu_handle_logout_request()992 bhslr->bhslr_reason); in cfiscsi_pdu_handle_logout_request()
299 struct iscsi_bhs_logout_request *bhslr; in iscsi_session_logout() local305 bhslr = (struct iscsi_bhs_logout_request *)request->ip_bhs; in iscsi_session_logout()306 bhslr->bhslr_opcode = ISCSI_BHS_OPCODE_LOGOUT_REQUEST; in iscsi_session_logout()307 bhslr->bhslr_reason = BHSLR_REASON_CLOSE_SESSION; in iscsi_session_logout()