Home
last modified time | relevance | path

Searched refs:pdu_bhs (Results 1 – 9 of 9) sorted by relevance

/src/lib/libiscsiutil/
H A Dpdu.c47 return (pdu->pdu_bhs->bhs_total_ahs_len * 4); in pdu_ahs_length()
55 len += pdu->pdu_bhs->bhs_data_segment_len[0]; in pdu_data_segment_length()
57 len += pdu->pdu_bhs->bhs_data_segment_len[1]; in pdu_data_segment_length()
59 len += pdu->pdu_bhs->bhs_data_segment_len[2]; in pdu_data_segment_length()
68 pdu->pdu_bhs->bhs_data_segment_len[2] = len; in pdu_set_data_segment_length()
69 pdu->pdu_bhs->bhs_data_segment_len[1] = len >> 8; in pdu_set_data_segment_length()
70 pdu->pdu_bhs->bhs_data_segment_len[0] = len >> 16; in pdu_set_data_segment_length()
82 pdu->pdu_bhs = calloc(1, sizeof(*pdu->pdu_bhs)); in pdu_new()
83 if (pdu->pdu_bhs == NULL) in pdu_new()
143 pdu_read(conn, (char *)pdu->pdu_bhs, sizeof(*pdu->pdu_bhs)); in pdu_receive()
[all …]
H A Dtext.c48 bhstr = (struct iscsi_bhs_text_request *)request->pdu_bhs; in text_new_request()
70 if ((request->pdu_bhs->bhs_opcode & ~ISCSI_BHS_OPCODE_IMMEDIATE) != in text_receive_request()
73 request->pdu_bhs->bhs_opcode); in text_receive_request()
74 bhstr = (struct iscsi_bhs_text_request *)request->pdu_bhs; in text_receive_request()
103 bhstr = (struct iscsi_bhs_text_request *)request->pdu_bhs; in text_new_response()
107 bhstr2 = (struct iscsi_bhs_text_response *)response->pdu_bhs; in text_new_response()
133 if (response->pdu_bhs->bhs_opcode != ISCSI_BHS_OPCODE_TEXT_RESPONSE) in text_receive_response()
135 response->pdu_bhs->bhs_opcode); in text_receive_response()
136 bhstr = (struct iscsi_bhs_text_response *)response->pdu_bhs; in text_receive_response()
206 bhstr = (struct iscsi_bhs_text_response *)response->pdu_bhs; in text_read_response()
[all …]
H A Dlibiscsiutil.h63 struct iscsi_bhs *pdu_bhs; member
/src/usr.sbin/iscsid/
H A Ddiscovery.c49 if (response->pdu_bhs->bhs_opcode != ISCSI_BHS_OPCODE_LOGOUT_RESPONSE) in logout_receive()
51 response->pdu_bhs->bhs_opcode); in logout_receive()
52 bhslr = (struct iscsi_bhs_logout_response *)response->pdu_bhs; in logout_receive()
73 bhslr = (struct iscsi_bhs_logout_request *)request->pdu_bhs; in logout_new_request()
H A Dlogin.c49 bhslr = (struct iscsi_bhs_login_response *)response->pdu_bhs; in login_nsg()
63 bhslr = (struct iscsi_bhs_login_request *)request->pdu_bhs; in login_set_nsg()
78 bhslr = (struct iscsi_bhs_login_request *)request->pdu_bhs; in login_set_csg()
194 bhslr = (struct iscsi_bhs_login_response *)response->pdu_bhs; in login_handle_redirection()
224 if (response->pdu_bhs->bhs_opcode != ISCSI_BHS_OPCODE_LOGIN_RESPONSE) { in login_receive()
226 response->pdu_bhs->bhs_opcode); in login_receive()
228 bhslr = (struct iscsi_bhs_login_response *)response->pdu_bhs; in login_receive()
278 bhslr = (struct iscsi_bhs_login_request *)request->pdu_bhs; in login_new_request()
565 bhslr = (struct iscsi_bhs_login_response *)response->pdu_bhs; in login_negotiate()
845 bhslr2 = (struct iscsi_bhs_login_response *)response->pdu_bhs; in login()
H A Discsid.c105 idr.idr_bhs = pdu->pdu_bhs; in pdu_receive_proxy()
136 ids.ids_bhs = pdu->pdu_bhs; in pdu_send_proxy()
/src/usr.sbin/ctld/
H A Ddiscovery.cc53 if ((request->pdu_bhs->bhs_opcode & ~ISCSI_BHS_OPCODE_IMMEDIATE) != in logout_receive()
56 request->pdu_bhs->bhs_opcode); in logout_receive()
57 bhslr = (struct iscsi_bhs_logout_request *)request->pdu_bhs; in logout_receive()
86 bhslr = (struct iscsi_bhs_logout_request *)request->pdu_bhs; in logout_new_response()
90 bhslr2 = (struct iscsi_bhs_logout_response *)response->pdu_bhs; in logout_new_response()
H A Dlogin.cc114 bhslr = (struct iscsi_bhs_login_response *)response->pdu_bhs; in login_set_nsg()
126 bhslr = (struct iscsi_bhs_login_request *)request->pdu_bhs; in login_csg()
140 bhslr = (struct iscsi_bhs_login_response *)response->pdu_bhs; in login_set_csg()
154 if ((request->pdu_bhs->bhs_opcode & ~ISCSI_BHS_OPCODE_IMMEDIATE) != in login_receive()
167 request->pdu_bhs->bhs_opcode); in login_receive()
169 bhslr = (struct iscsi_bhs_login_request *)request->pdu_bhs; in login_receive()
214 bhslr = (struct iscsi_bhs_login_request *)request->pdu_bhs; in login_new_response()
218 bhslr2 = (struct iscsi_bhs_login_response *)response->pdu_bhs; in login_new_response()
240 bhslr2 = (struct iscsi_bhs_login_response *)response->pdu_bhs; in login_send_error()
684 bhslr2 = (struct iscsi_bhs_login_response *)response->pdu_bhs; in login_redirect()
[all …]
H A Dkernel.cc1057 req.data.send.bhs = pdu->pdu_bhs; in kernel_send()
1087 req.data.receive.bhs = pdu->pdu_bhs; in kernel_receive()