Lines Matching defs:chunk

354  * svc_rdma_encode_read_list - Encode RPC Reply's Read chunk list
371 * @chunk: Write chunk to push
372 * @remaining: remaining bytes of the payload left in the Write chunk
373 * @segno: which segment in the chunk
381 const struct svc_rdma_chunk *chunk,
384 const struct svc_rdma_segment *segment = &chunk->ch_segments[segno];
403 * svc_rdma_encode_write_chunk - Encode one Write chunk
405 * @chunk: Write chunk to push
407 * Copy a Write chunk from the Call transport header to the
413 * that was consumed by the Write chunk
417 const struct svc_rdma_chunk *chunk)
419 u32 remaining = chunk->ch_payload_length;
429 ret = xdr_stream_encode_u32(&sctxt->sc_stream, chunk->ch_segcount);
434 for (segno = 0; segno < chunk->ch_segcount; segno++) {
435 ret = svc_rdma_encode_write_segment(sctxt, chunk, &remaining, segno);
445 * svc_rdma_encode_write_list - Encode RPC Reply's Write chunk list
457 struct svc_rdma_chunk *chunk;
461 pcl_for_each_chunk(chunk, &rctxt->rc_write_pcl) {
462 ret = svc_rdma_encode_write_chunk(sctxt, chunk);
477 * svc_rdma_encode_reply_chunk - Encode RPC Reply's Reply chunk
480 * @length: size in bytes of the payload in the Reply chunk
484 * that was consumed by the Reply's Reply chunk
486 * %-E2BIG if the RPC message is larger than the Reply chunk
493 struct svc_rdma_chunk *chunk;
498 chunk = pcl_first_chunk(&rctxt->rc_reply_pcl);
499 if (length > chunk->ch_length)
502 chunk->ch_payload_length = length;
503 return svc_rdma_encode_write_chunk(sctxt, chunk);
791 /* If there is a Reply chunk, nothing follows the transport
830 * Depending on whether a Write list or Reply chunk is present,
1028 * %-E2BIG if the payload was larger than the Write chunk
1038 struct svc_rdma_chunk *chunk;
1043 chunk = rctxt->rc_cur_result_payload;
1044 if (!length || !chunk)
1047 pcl_next_chunk(&rctxt->rc_write_pcl, chunk);
1048 if (length > chunk->ch_length)
1051 chunk->ch_position = offset;
1052 chunk->ch_payload_length = length;
1058 ret = svc_rdma_send_write_chunk(rdma, chunk, &subbuf);