Home
last modified time | relevance | path

Searched refs:bhslr (Results 1 – 6 of 6) sorted by relevance

/freebsd/usr.sbin/iscsid/
H A Dlogin.c47 struct iscsi_bhs_login_response *bhslr; in login_nsg() local
49 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() local
63 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() local
78 bhslr = (struct iscsi_bhs_login_request *)request->pdu_bhs; in login_set_csg()
80 bhslr->bhslr_flags &= 0xF3; in login_set_csg()
[all …]
H A Ddiscovery.c45 struct iscsi_bhs_logout_response *bhslr; in logout_receive() local
52 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() local
73 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 …]
/freebsd/usr.sbin/ctld/
H A Ddiscovery.c48 struct iscsi_bhs_logout_request *bhslr; in logout_receive() local
56 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 …]
H A Dlogin.c109 struct iscsi_bhs_login_response *bhslr; in login_set_nsg() local
115 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() local
127 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() local
141 bhslr = (struct iscsi_bhs_login_response *)response->pdu_bhs; in login_set_csg()
[all …]
/freebsd/sys/cam/ctl/
H A Dctl_frontend_iscsi.c945 struct iscsi_bhs_logout_request *bhslr; in cfiscsi_pdu_handle_logout_request() local
951 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()
/freebsd/sys/dev/iscsi/
H A Discsi.c299 struct iscsi_bhs_logout_request *bhslr; in iscsi_session_logout() local
305 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()