Lines Matching full:pdu
61 static void pdu_receive_proxy(struct pdu *pdu);
62 static void pdu_send_proxy(struct pdu *pdu);
89 pdu_receive_proxy(struct pdu *pdu) in pdu_receive_proxy() argument
96 conn = (struct iscsid_connection *)pdu->pdu_connection; in pdu_receive_proxy()
99 pdu->pdu_data = malloc(conn->conn.conn_max_recv_data_segment_length); in pdu_receive_proxy()
100 if (pdu->pdu_data == NULL) in pdu_receive_proxy()
105 idr.idr_bhs = pdu->pdu_bhs; in pdu_receive_proxy()
107 idr.idr_data_segment = pdu->pdu_data; in pdu_receive_proxy()
113 len = pdu_ahs_length(pdu); in pdu_receive_proxy()
117 len = pdu_data_segment_length(pdu); in pdu_receive_proxy()
119 pdu->pdu_data_len = len; in pdu_receive_proxy()
123 pdu_send_proxy(struct pdu *pdu) in pdu_send_proxy() argument
129 conn = (struct iscsid_connection *)pdu->pdu_connection; in pdu_send_proxy()
132 pdu_set_data_segment_length(pdu, pdu->pdu_data_len); in pdu_send_proxy()
136 ids.ids_bhs = pdu->pdu_bhs; in pdu_send_proxy()
137 ids.ids_data_segment_len = pdu->pdu_data_len; in pdu_send_proxy()
138 ids.ids_data_segment = pdu->pdu_data; in pdu_send_proxy()