Home | History | Annotate | Download | only in block

Lines Matching refs:iobuf

102 	struct io_buffer *iobuf;
117 iobuf = xfer_alloc_iob ( &srp->socket, sizeof ( *login_req ) );
118 if ( ! iobuf ) {
124 login_req = iob_put ( iobuf, sizeof ( *login_req ) );
136 DBGC2_HDA ( srp, 0, iobuf->data, iob_len ( iobuf ) );
139 if ( ( rc = xfer_deliver_iob ( &srp->socket, iobuf ) ) != 0 ) {
155 * @v iobuf I/O buffer
158 static int srp_login_rsp ( struct srp_device *srp, struct io_buffer *iobuf ) {
159 struct srp_login_rsp *login_rsp = iobuf->data;
167 if ( iob_len ( iobuf ) < sizeof ( *login_rsp ) ) {
169 srp, iob_len ( iobuf ) );
187 free_iob ( iobuf );
195 * @v iobuf I/O buffer
198 static int srp_login_rej ( struct srp_device *srp, struct io_buffer *iobuf ) {
199 struct srp_login_rej *login_rej = iobuf->data;
207 if ( iob_len ( iobuf ) < sizeof ( *login_rej ) ) {
209 "bytes)\n", srp, iob_len ( iobuf ) );
220 free_iob ( iobuf );
230 struct io_buffer *iobuf;
239 iobuf = xfer_alloc_iob ( &srp->socket, SRP_MAX_I_T_IU_LEN );
240 if ( ! iobuf ) {
246 cmd = iob_put ( iobuf, sizeof ( *cmd ) );
256 data_out = iob_put ( iobuf, sizeof ( *data_out ) );
266 data_in = iob_put ( iobuf, sizeof ( *data_in ) );
275 DBGC2_HDA ( srp, 0, iobuf->data, iob_len ( iobuf ) );
278 if ( ( rc = xfer_deliver_iob ( &srp->socket, iobuf ) ) != 0 ) {
294 * @v iobuf I/O buffer
297 static int srp_rsp ( struct srp_device *srp, struct io_buffer *iobuf ) {
298 struct srp_rsp *rsp = iobuf->data;
305 if ( iob_len ( iobuf ) < sizeof ( *rsp ) ) {
307 srp, iob_len ( iobuf ) );
341 free_iob ( iobuf );
349 * @v iobuf I/O buffer
353 struct io_buffer *iobuf ) {
354 struct srp_common *common = iobuf->data;
360 free_iob ( iobuf );
368 * @v iobuf Datagram I/O buffer
373 struct io_buffer *iobuf,
377 struct srp_common *common = iobuf->data;
378 int ( * type ) ( struct srp_device *srp, struct io_buffer *iobuf );
398 if ( ( rc = type ( srp, iobuf ) ) != 0 )